/* App shell, login, sidebar, main, topbar, estrutura de páginas */
/* Sprint 236 — shell corporativo: sidebar/topbar/nav usam tokens --corp-* (theme.css) */
.screen {
    display: none;
    width: 100%;
    height: 100%;
}

.screen-active {
    display: flex;
}

/* Login visual: css/pages/login.css (Sprint 229) */

#appScreen {
    flex: 1;
    min-height: 100vh;
}

#appScreen.screen-active {
    display: flex;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

@supports (height: 100dvh) {
    #appScreen.screen-active {
        min-height: 100dvh;
        max-height: 100dvh;
    }
}

.sidebar {
    --sidebar-active-bg: #52525b;
    --sidebar-submenu-bg: #174452;
    --sidebar-hover-glow: 0 0 0.5rem rgba(var(--corp-accent-neon-rgb), 0.36);
    width: 4rem;
    min-width: 4rem;
    max-width: 4rem;
    flex: 0 0 4rem;
    position: relative;
    z-index: 1300;
    overflow: visible;
    background: transparent;
    color: white;
}

.sidebar-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--corp-sidebar-bg);
    border-right: 0.0625rem solid var(--corp-border-subtle);
    overflow: hidden;
    transition: width 0.3s ease, box-shadow var(--corp-transition);
    z-index: 1;
    will-change: width;
}

.sidebar:hover .sidebar-panel {
    width: 14.5rem;
    box-shadow: var(--corp-shadow-card);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    height: 5.125rem;
    min-height: 5.125rem;
    box-sizing: border-box;
    padding: 1.25rem 1rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.12);
    flex-wrap: nowrap;
    position: relative;
}

.logo-small {
    width: 2.625rem;
    height: 2.625rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0.0625rem 0.125rem rgba(0, 0, 0, 0.15));
}

.sidebar-title {
    font-weight: 700;
    font-size: 0.875rem;
    font-family: var(--corp-font-family);
    color: var(--corp-text-on-dark);
    white-space: nowrap;
    opacity: 0;
    overflow: hidden;
    max-width: 0;
    transition: opacity 0.28s ease, max-width 0.3s ease;
    transition-delay: 0s;
}

.sidebar:hover .sidebar-title {
    opacity: 1;
    max-width: 10rem;
    transition-delay: 0.06s;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 2.875rem;
    box-sizing: border-box;
    margin: 0 1rem;
    padding: 0.75rem 0.53125rem; 
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--corp-transition), text-shadow var(--corp-transition);
    justify-content: flex-start;
    overflow: hidden;
}


.nav-item:hover {
    background: transparent;
}

.sidebar:hover .nav-submenu .nav-item-sub:hover .nav-label,
.sidebar:hover .sidebar-nav > .nav-item:hover .nav-label,
.sidebar:hover .sidebar-nav .nav-group > .nav-item-parent:hover .nav-label {
    color: var(--corp-accent-neon);
    text-shadow: none;
}

.nav-item:focus-visible {
    outline: none;
    box-shadow: var(--corp-focus-ring);
}

.nav-item.active {
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    box-shadow: none;
}

.nav-item[data-page="chats"].active {
    background: transparent;
}

.nav-item.active:hover {
    background: transparent;
}

.nav-item.hidden {
    display: none !important;
}

.nav-group-indicadores,
.nav-group-clientes,
.nav-group-dashboard,
.nav-group-relatorios {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav .nav-group.is-open {
    gap: 0;
}

.nav-group-indicadores.hidden,
.nav-group-clientes.hidden {
    display: none !important;
}

.nav-item-parent {
    width: 100%;
}

.nav-item-parent .nav-chevron {
    margin-left: auto;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 0.125rem solid currentColor;
    border-bottom: 0.125rem solid currentColor;
    transform: rotate(-45deg);
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.28s ease, max-width 0.3s ease;
}

.sidebar:hover .nav-item-parent .nav-chevron {
    opacity: 0.85;
    max-width: 0.75rem;
}

.nav-group-indicadores.is-open .nav-item-parent .nav-chevron,
.nav-group-clientes.is-open .nav-item-parent .nav-chevron,
.nav-group-dashboard.is-open .nav-item-parent .nav-chevron,
.nav-group-relatorios.is-open .nav-item-parent .nav-chevron {
    transform: rotate(45deg);
}

.nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--sidebar-submenu-bg);
    border-radius: 0;
    box-shadow: none;
}

html[data-theme='dark'] .nav-submenu {
    background: var(--sidebar-submenu-bg);
}

.nav-submenu.hidden {
    display: none !important;
}

.nav-item-sub {
    width: 100%;
    min-height: 2.375rem;
    margin: 0;
    padding: 0.625rem 1.5625rem 0.625rem 2.5625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    justify-content: flex-start;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.nav-item-sub .nav-label {
    opacity: 0;
    max-width: 0;
}

.sidebar:hover .nav-item-sub .nav-label {
    opacity: 1;
    max-width: 10rem;
}

.nav-item-sub.active,
.nav-item-sub.is-active-page {
    background: transparent;
    color: var(--corp-accent-neon);
    font-weight: 700;
    text-shadow: none;
    box-shadow: none;
}

/* Semantic active state — .is-active-page (leaf) e .is-active-parent (grupo pai) */

/* Itens diretos (Tickets, Chats, Auditoria...): fill retangular ponta a ponta */
.sidebar-nav > .nav-item.is-active-page,
.sidebar-nav .nav-group > .nav-item-parent.is-active-parent,
.sidebar-nav .nav-group > .nav-item-parent.active,
.sidebar-nav .nav-group.is-open > .nav-item-parent {
    background: var(--sidebar-active-bg);
    color: var(--corp-accent-neon);
    font-weight: 600;
    box-shadow: none;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding-left: 1.5625rem;
    padding-right: 1.5625rem;
}

.sidebar-nav > .nav-item.is-active-page:hover {
    background: var(--sidebar-active-bg);
}

.sidebar:hover .sidebar-nav > .nav-item:hover,
.sidebar:hover .sidebar-nav .nav-group > .nav-item-parent:hover,
.sidebar:hover .nav-submenu .nav-item-sub:hover {
    background: transparent;
}

.sidebar:hover .sidebar-nav > .nav-item.is-active-page:hover,
.sidebar:hover .sidebar-nav .nav-group > .nav-item-parent.is-active-parent:hover,
.sidebar:hover .sidebar-nav .nav-group > .nav-item-parent.active:hover,
.sidebar:hover .sidebar-nav .nav-group.is-open > .nav-item-parent:hover {
    background: var(--sidebar-active-bg);
}

.sidebar:hover .nav-submenu .nav-item-sub,
.sidebar:hover .nav-submenu .nav-item-sub:hover,
.sidebar:hover .nav-submenu .nav-item-sub.is-active-page,
.sidebar:hover .nav-submenu .nav-item-sub.active {
    margin-left: 0;
    margin-right: 0;
    padding-left: 2.5625rem;
    padding-right: 1.5625rem;
}

.sidebar-nav > .nav-item.is-active-page .nav-icon svg {
    opacity: 1;
}

.nav-submenu .nav-item.is-active-page {
    background: transparent;
    color: var(--corp-accent-neon);
    font-weight: 700;
    text-shadow: none;
    box-shadow: none;
}

.nav-submenu .nav-item.is-active-page:hover {
    background: transparent;
}

/* Pai da página ativa */
.nav-item-parent.is-active-parent {
    background: var(--sidebar-active-bg);
    color: var(--corp-accent-neon);
}

/* Grupo aberto (sidebar expandida): parent fill ponta a ponta */
.sidebar:hover .nav-group-dashboard.is-open > .nav-item-parent,
.sidebar:hover .nav-group-clientes.is-open > .nav-item-parent,
.sidebar:hover .nav-group-indicadores.is-open > .nav-item-parent,
.sidebar:hover .nav-group-relatorios.is-open > .nav-item-parent {
    background: var(--sidebar-active-bg);
    color: var(--corp-accent-neon);
    font-weight: 600;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding-left: 1.5625rem;
    padding-right: 1.5625rem;
}

.nav-icon {
    width: 1.375rem;
    height: 1.375rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 1.375rem;
    height: 1.375rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

.nav-item.active .nav-icon svg {
    opacity: 1;
}

.nav-label {
    opacity: 0;
    overflow: hidden;
    max-width: 0;
    white-space: nowrap;
    transition: opacity 0.28s ease, max-width 0.3s ease;
    transition-delay: 0s;
}

.sidebar:hover .nav-label {
    opacity: 1;
    max-width: 9.375rem;
    transition-delay: 0.06s;
}

/* Sprint 264 / compacto — ícones centralizados; submenus e guias ocultos */
.sidebar:not(:hover) .nav-submenu {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.sidebar:not(:hover) .nav-chevron {
    display: none !important;
}

.sidebar:not(:hover) .nav-item-sub,
.sidebar:not(:hover) .nav-item-sub.active {
    display: none !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    font-weight: 500 !important;
}

.sidebar:not(:hover) .sidebar-nav > .nav-item,
.sidebar:not(:hover) .sidebar-nav .nav-group > .nav-item-parent {
    justify-content: center;
    gap: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Ativo no compacto: só no ícone do item principal */
.sidebar:not(:hover) .sidebar-nav > .nav-item.active,
.sidebar:not(:hover) .sidebar-nav .nav-group > .nav-item-parent.active {
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.sidebar:not(:hover) .sidebar-nav > .nav-item.active .nav-icon,
.sidebar:not(:hover) .sidebar-nav .nav-group > .nav-item-parent.active .nav-icon {
    color: var(--corp-accent-neon);
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(var(--corp-accent-neon-rgb), 0.2);
    border-radius: 0.625rem;
    box-shadow: 0 0 0 0.0625rem rgba(var(--corp-accent-neon-rgb), 0.28);
}

.sidebar:not(:hover) .sidebar-nav > .nav-item.active .nav-icon svg,
.sidebar:not(:hover) .sidebar-nav .nav-group > .nav-item-parent.active .nav-icon svg {
    opacity: 1;
}

/* Compact — barra preenchida ponta a ponta */
.sidebar:not(:hover) .sidebar-nav > .nav-item.is-active-page,
.sidebar:not(:hover) .sidebar-nav .nav-group > .nav-item-parent.is-active-parent,
.sidebar:not(:hover) .sidebar-nav .nav-group.is-open > .nav-item-parent {
    background: var(--sidebar-active-bg);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

.sidebar:not(:hover) .sidebar-nav > .nav-item.is-active-page .nav-icon,
.sidebar:not(:hover) .sidebar-nav .nav-group > .nav-item-parent.is-active-parent .nav-icon {
    color: var(--corp-accent-neon);
    width: 1.375rem;
    height: 1.375rem;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.sidebar:not(:hover) .sidebar-nav > .nav-item.is-active-page .nav-icon svg,
.sidebar:not(:hover) .sidebar-nav .nav-group > .nav-item-parent.is-active-parent .nav-icon svg {
    opacity: 1;
}

.nav-divider {
    height: 0.0625rem;
    background: rgba(var(--corp-accent-neon-rgb), 0.2);
    margin: 0.5rem 0;
}

.main-content {
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.625rem 1.5rem;
    background: var(--surface);
    border-bottom: 0.0625rem solid var(--corp-border-strong);
    box-shadow: var(--corp-shadow-soft);
    flex-shrink: 0;
    /* Escala via --ui-scale; sem overflow-x:auto na chrome. */
    overflow-x: hidden;
    overflow-y: visible;
}

.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.topbar-theme-switch {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 2.625rem;
    min-height: 2.625rem;
    max-height: 2.625rem;
    padding: 0.125rem;
    gap: 0;
    border: 0.0625rem solid rgba(100, 116, 139, 0.35);
    border-radius: var(--corp-radius-sm);
    background: rgba(100, 116, 139, 0.08);
}

.topbar-theme-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 2.25rem;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.topbar-theme-switch__icon,
.topbar-theme-switch__icon svg {
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
}

.topbar-theme-switch__icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Sprint 275 — atalho Chats na topbar (assets/icons/chat.png) */
/* Sprint 310 visual: icon 24→32, button 40→46, avatar 40→46 */
.topbar-chats-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.875rem;
    height: 2.875rem;
    padding: 0;
    flex-shrink: 0;
    border: 0.0625rem solid rgba(100, 116, 139, 0.35);
    border-radius: var(--corp-radius-sm);
    background: rgba(100, 116, 139, 0.08);
    cursor: pointer;
    transition: border-color var(--corp-transition), box-shadow var(--corp-transition),
        background var(--corp-transition);
}

.topbar-chats-quick-btn:hover,
.topbar-chats-quick-btn:focus-visible {
    border-color: var(--corp-accent-neon);
    box-shadow: var(--corp-shadow-neon-glow);
    background: rgba(100, 116, 139, 0.14);
    outline: none;
}

.topbar-chats-quick-btn__img {
    width: 1.875rem;
    height: 1.875rem;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.topbar-pref-row-hint--notif {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.topbar-pref-notif-btn {
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    border-radius: 0.375rem;
    border: 0.0625rem solid var(--corp-border-strong);
    background: var(--surface);
    color: var(--corp-accent-neon, #0ea5e9);
    cursor: pointer;
}

.topbar-pref-notif-btn:hover,
.topbar-pref-notif-btn:focus-visible {
    border-color: var(--corp-focus-border);
    outline: none;
}

.app-topbar-notificacoes {
    margin-left: 0;
}

.app-topbar-notificacoes .notificacoes-painel {
    z-index: 15001;
}

.app-topbar-notificacoes .notificacoes-btn {
    background: var(--corp-surface-muted);
    border: 0.0625rem solid var(--corp-border-strong);
    color: var(--text);
    border-radius: var(--corp-radius-sm);
    transition: border-color var(--corp-transition), box-shadow var(--corp-transition), background var(--corp-transition);
}

.app-topbar-notificacoes .notificacoes-btn:hover,
.app-topbar-notificacoes .notificacoes-btn:focus-visible {
    border-color: var(--corp-focus-border);
    box-shadow: var(--corp-focus-ring);
    outline: none;
}

.topbar-perfil-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.topbar-perfil-btn {
    border: 0.0625rem solid rgba(100, 116, 139, 0.35);
    border-radius: 0.6875rem;
    padding: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.topbar-perfil-btn:hover,
.topbar-perfil-btn:focus-visible {
    border-color: var(--corp-accent-neon);
    box-shadow: var(--corp-shadow-neon-glow);
    outline: none;
}

.analyst-avatar-topbar {
    width: 2.875rem;
    height: 2.875rem;
    overflow: hidden;
    border-radius: 0.6875rem;
    font-size: 0.9375rem;
}

.analyst-avatar-topbar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.topbar-user-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(22.5rem, calc(100vw - 1.5rem));
    min-width: 18.75rem;
    background: var(--surface, #fff);
    border: 0.0625rem solid var(--fd-border, var(--corp-border-strong, #e4e9f0));
    border-radius: 0.5rem;
    box-shadow: var(--fd-shadow-2, 0 0.75rem 1.875rem -1rem rgba(13, 27, 52, 0.25));
    z-index: 15001;
    padding: 0.375rem 0 0;
    overflow: hidden;
}

.tum-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 0.0625rem solid var(--fd-border, #e4e9f0);
    box-sizing: border-box;
}

.tum-row:last-of-type {
    border-bottom: 0;
}

.tum-row--action {
    width: 100%;
    margin: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    color: inherit;
}

.tum-row--action:hover,
.tum-row--action:focus-visible {
    background: var(--fd-topbar-menu-hover, var(--corp-surface-muted, #f4f6fb));
    outline: none;
}

.tum-row--danger .tum-title {
    color: #cf3b40;
}

.tum-row--logout {
    align-items: center;
    border-bottom: 0 !important;
    background: #fdeced !important;
    color: #7f1d1d;
}

.tum-row--logout .tum-meta {
    color: #b45353;
}

.tum-row--logout .tum-chevron {
    border-color: #cf3b40;
}

/* Etiqueta de versão — rodapé da sidebar (acima do divisor do Logout) */
.app-version-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    box-sizing: border-box;
    margin: 0.125rem 1rem 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 62.4375rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.35);
    background: rgba(90, 168, 255, 0.92);
    color: #ffffff;
    font-size: 0.71875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    pointer-events: none;
    max-width: calc(100% - 2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow:
        0 0.375rem 1rem rgba(37, 99, 235, 0.22),
        0 0.0625rem 0 rgba(255, 255, 255, 0.28) inset;
    backdrop-filter: blur(0.75rem);
    -webkit-backdrop-filter: blur(0.75rem);
}
.app-version-badge.hidden {
    display: none !important;
}

.tum-row--logout:hover,
.tum-row--logout:focus-visible {
    background: #fad5d8 !important;
    outline: none;
}

.tum-row[data-pref-row] {
    align-items: center;
}

.tum-ic {
    width: 2.5rem;
    height: 2.5rem;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--fd-radius-card, 0.25rem);
    background: #eef2f8;
    color: #5b6a86;
}

.tum-ic svg {
    width: 1.25rem;
    height: 1.25rem;
}

.tum-ic--danger {
    background: #fdeced;
    color: #cf3b40;
}

.tum-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.tum-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--fd-text, #0d1b34);
    line-height: 1.25;
}

.tum-meta {
    font-size: 0.78125rem;
    font-weight: 500;
    color: var(--fd-text-muted, #7c8aa6);
    line-height: 1.35;
}

.tum-chevron {
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.375rem;
    flex-shrink: 0;
    border-right: 0.125rem solid #9aa6bd;
    border-bottom: 0.125rem solid #9aa6bd;
    transform: rotate(-45deg);
    align-self: center;
}

.tum-chevron--down {
    transform: rotate(45deg);
    margin-top: 0.125rem;
    align-self: auto;
}

.tum-row--themes {
    align-items: center;
}

.tum-row--themes.tum-row--soon {
    opacity: 0.78;
    pointer-events: none;
    cursor: default;
}

.tum-row--themes .theme-soon-badge {
    flex-shrink: 0;
    align-self: center;
    padding: 0.1875rem 0.4375rem;
    border-radius: var(--fd-radius-card, 0.25rem);
    background: #e8e4f8;
    color: #3b4a9a;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

.tum-status-head .tum-title {
    flex: none;
}

.tum-status-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--fd-text, #0d1b34);
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.25;
    margin-left: auto;
}

.tum-status-trigger:hover,
.tum-status-trigger.is-open {
    background: transparent !important;
}

.tum-status-label {
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tum-status-dot,
.topbar-user-menu .tum-status-dot.topbar-status-swatch {
    width: 0.5625rem;
    height: 0.5625rem;
    border-radius: 50%;
    box-shadow: none;
}

.topbar-status-panel {
    margin: 0.625rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

html[data-theme='dark'] .topbar-status-panel {
    background: transparent;
    border: 0;
}

.topbar-status-option {
    display: flex !important;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 0.0625rem solid var(--fd-border, #e4e9f0);
    border-radius: 0;
    color: var(--fd-text, #0d1b34);
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    box-sizing: border-box;
}

.topbar-status-option:last-child {
    border-bottom: 0;
}

.topbar-status-option[data-user-menu='status-ONLINE'] {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.42) 0%, rgba(34, 197, 94, 0.14) 42%, #ffffff 100%);
}

.topbar-status-option[data-user-menu='status-OCUPADO'] {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.42) 0%, rgba(234, 179, 8, 0.14) 42%, #ffffff 100%);
}

.topbar-status-option[data-user-menu='status-AUSENTE'] {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.42) 0%, rgba(239, 68, 68, 0.14) 42%, #ffffff 100%);
}

.topbar-status-option[data-user-menu='status-OFFLINE'] {
    background: linear-gradient(90deg, rgba(100, 116, 139, 0.42) 0%, rgba(100, 116, 139, 0.14) 42%, #ffffff 100%);
}

.topbar-status-option:hover {
    filter: brightness(0.98);
}

.topbar-status-option.is-current {
    font-weight: 700;
}

html[data-theme='dark'] .topbar-status-option {
    border-bottom-color: rgba(143, 163, 176, 0.22);
    color: #e8eef9;
}
html[data-theme='cinza'] .topbar-status-option{
    border-bottom-color: rgba(143, 163, 176, 0.22);
    color: #14181d;
}

html[data-theme='dark'] .topbar-status-option[data-user-menu='status-ONLINE'] {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.45) 0%, rgba(34, 197, 94, 0.12) 45%, rgba(20, 29, 48, 0.95) 100%);
}

html[data-theme='dark'] .topbar-status-option[data-user-menu='status-OCUPADO'] {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.45) 0%, rgba(234, 179, 8, 0.12) 45%, rgba(20, 29, 48, 0.95) 100%);
}

html[data-theme='dark'] .topbar-status-option[data-user-menu='status-AUSENTE'] {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.45) 0%, rgba(239, 68, 68, 0.12) 45%, rgba(20, 29, 48, 0.95) 100%);
}

html[data-theme='dark'] .topbar-status-option[data-user-menu='status-OFFLINE'] {
    background: linear-gradient(90deg, rgba(100, 116, 139, 0.45) 0%, rgba(100, 116, 139, 0.12) 45%, rgba(20, 29, 48, 0.95) 100%);
}

html[data-theme='dark'] .topbar-status-option:hover {
    filter: brightness(1.06);
}
html[data-theme='cinza'] .topbar-status-option:hover{
    filter: brightness(1.06);
}

html[data-theme='cinza'] .topbar-status-option[data-user-menu='status-ONLINE'] {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.4) 0%, rgba(34, 197, 94, 0.12) 45%, #9fa7b1 100%);
}

html[data-theme='cinza'] .topbar-status-option[data-user-menu='status-OCUPADO'] {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.4) 0%, rgba(234, 179, 8, 0.12) 45%, #9fa7b1 100%);
}

html[data-theme='cinza'] .topbar-status-option[data-user-menu='status-AUSENTE'] {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.4) 0%, rgba(239, 68, 68, 0.12) 45%, #9fa7b1 100%);
}

html[data-theme='cinza'] .topbar-status-option[data-user-menu='status-OFFLINE'] {
    background: linear-gradient(90deg, rgba(100, 116, 139, 0.4) 0%, rgba(100, 116, 139, 0.12) 45%, #9fa7b1 100%);
}

.topbar-status-option-label {
    flex: 1;
    min-width: 0;
}

.topbar-status-check {
    font-size: 0.875rem;
    font-weight: 700;
    color: #007bff;
    flex-shrink: 0;
}

html[data-theme='dark'] .topbar-status-check {
    color: #7dd3fc;
}

.topbar-status-swatch {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: var(--fd-radius-card, 0.25rem);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 0.0625rem rgba(0, 0, 0, 0.12);
}

.topbar-status-swatch--online {
    background: #22c55e;
}

.topbar-status-swatch--ocupado {
    background: #eab308;
}

.topbar-status-swatch--ausente {
    background: #ef4444;
}

.topbar-status-swatch--offline {
    background: #64748b;
}

html[data-theme='dark'] .topbar-status-swatch--offline {
    background: #475569;
}

.topbar-status-toggle.is-open .tum-chevron--down {
    transform: rotate(-135deg);
    margin-top: 0.25rem;
}

/* Status do usuário: título + seletor; opções em faixa horizontal. */
.topbar-user-menu .tum-row--status {
    display: block;
    align-items: stretch;
}

.topbar-user-menu .tum-row--status > .tum-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.topbar-user-menu .tum-row--status .tum-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    min-height: 1.375rem;
    width: 100%;
}

.topbar-user-menu .tum-row--status .tum-status-trigger,
.topbar-user-menu .tum-row--status .tum-status-trigger:hover,
.topbar-user-menu .tum-row--status .tum-status-trigger:focus,
.topbar-user-menu .tum-row--status .tum-status-trigger:focus-visible,
.topbar-user-menu .tum-row--status .tum-status-trigger.is-open {
    margin-left: auto;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.topbar-user-menu .tum-row--status .topbar-status-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    margin-top: 0.75rem;
    overflow: visible;
}

.topbar-user-menu .tum-row--status .topbar-status-panel.hidden {
    display: none !important;
}

.topbar-user-menu .tum-row--status .topbar-status-option {
    position: relative;
    justify-content: center;
    gap: 0.375rem;
    min-width: 0;
    padding: 0.625rem 0.3125rem;
    border-right: 0.0625rem solid var(--fd-border, #e4e9f0);
    border-bottom: 0;
    text-align: center;
    white-space: nowrap;
}

.topbar-user-menu .tum-row--status .topbar-status-option:last-child {
    border-right: 0;
}

.topbar-user-menu .tum-row--status .topbar-status-option-label {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 0.75rem;
}

.topbar-user-menu .tum-row--status .topbar-status-check {
    position: absolute;
    top: 0.125rem;
    right: 0.1875rem;
    font-size: 0.6875rem;
}

.tum-toggle {
    position: relative;
    flex: none;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 1.625rem;
    margin-top: 0;
    padding: 0 !important;
    border: none !important;
    border-radius: 62.4375rem;
    background: #c5cedd !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.15s ease;
}

.tum-toggle:hover,
.tum-toggle:focus-visible {
    background: #b3bdcf !important;
    outline: none;
    box-shadow: var(--fd-focus-ring, 0 0 0 0.1875rem rgba(0, 123, 255, 0.25)) !important;
}

.tum-toggle[aria-checked='true'] {
    background: #007bff !important;
}

.tum-toggle[aria-checked='true']:hover,
.tum-toggle[aria-checked='true']:focus-visible {
    background: #0066e6 !important;
}

.tum-toggle-knob {
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0.0625rem 0.1875rem rgba(13, 27, 52, 0.25);
    transition: transform 0.15s ease;
}

.tum-toggle[aria-checked='true'] .tum-toggle-knob {
    transform: translateX(1.125rem);
}

.tum-row.is-syncing .tum-toggle {
    opacity: 0.55;
    pointer-events: none;
}

.tum-sync-hint {
    color: #9aa6bd;
}

.tum-secure {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem 1rem;
    border-top: 0.0625rem solid var(--fd-border, #e4e9f0);
    border-bottom: 0.0625rem solid var(--fd-border, #e4e9f0);
    background: color-mix(in srgb, var(--fd-field, #f4f6fb) 55%, #fff);
}

.tum-secure-ic {
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    margin-top: 0.125rem;
    color: #007bff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tum-secure-ic svg {
    width: 1.375rem;
    height: 1.375rem;
}

.tum-secure-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tum-secure-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    min-width: 0;
}

.tum-secure-title {
    font-size: 0.84375rem;
    font-weight: 700;
    color: var(--fd-text, #0d1b34);
    min-width: 0;
    line-height: 1.25;
}

.tum-secure-meta-line {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
}

.tum-secure-meta {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--fd-text-muted, #7c8aa6);
    line-height: 1.35;
    white-space: nowrap;
}

.tum-secure-meta-line .tum-secure-meta:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tum-secure-btn {
    flex: none;
    height: 1.75rem;
    padding: 0 0.625rem !important;
    border: none !important;
    border-radius: var(--fd-radius-card, 0.25rem);
    background: #e8e4f8 !important;
    color: #3b4a9a !important;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    width: auto !important;
    box-shadow: none !important;
}

.tum-secure-btn:hover,
.tum-secure-btn:focus-visible {
    background: #ddd7f4 !important;
    outline: none;
    box-shadow: var(--fd-focus-ring, 0 0 0 0.1875rem rgba(59, 74, 154, 0.2)) !important;
}

html[data-theme='dark'] .tum-ic {
    background: rgba(255, 255, 255, 0.08);
    color: #a8b4c8;
}
html[data-theme='cinza'] .tum-ic{
    background: rgba(255, 255, 255, 0.08);
    color: #a8b4c8;
}

html[data-theme='dark'] .tum-ic--danger {
    background: rgba(207, 59, 64, 0.18);
    color: #f87171;
}
html[data-theme='cinza'] .tum-ic--danger{
    background: rgba(151,35,31,0.18);
    color: #6e1614;
}

html[data-theme='dark'] .tum-secure {
    background: rgba(15, 23, 42, 0.35);
}
html[data-theme='cinza'] .tum-secure{
    background: rgba(15, 23, 42, 0.35);
}

html[data-theme='dark'] .tum-secure-btn {
    background: rgba(99, 102, 241, 0.22) !important;
    color: #c7d2fe !important;
}
html[data-theme='cinza'] .tum-secure-btn{
    background: rgba(99, 102, 241, 0.22) !important;
    color: #3d2a7a !important;
}

html[data-theme='dark'] .tum-toggle {
    background: #475569 !important;
}
html[data-theme='cinza'] .tum-toggle{
    background: #475569 !important;
}

html[data-theme='dark'] .tum-toggle[aria-checked='true'] {
    background: #3b82f6 !important;
}
html[data-theme='cinza'] .tum-toggle[aria-checked='true']{
    background: #3b82f6 !important;
}

/* Legacy segmented prefs — removidos do shell; regras mortas não mantidas. */

.topbar-ticket-toast {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    margin-top: 0.5rem;
    max-width: min(22.5rem, 90vw);
    padding: 0.625rem 0.875rem;
    background: var(--surface);
    border: 0.0625rem solid #64748b;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 600;
    z-index: 1450;
}

.topbar-ticket-toast-clickable {
    cursor: pointer;
}

.topbar-ticket-toast-clickable:hover,
.topbar-ticket-toast-clickable:focus-visible {
    background: var(--surface-hover);
    outline: 0.125rem solid #64748b;
    outline-offset: 0.125rem;
}

html[data-theme='dark'] .topbar-ticket-toast,
html[data-theme='cinza'] .topbar-ticket-toast {
    border-color: color-mix(in srgb, var(--fd-primary, var(--primary)) 55%, var(--fd-border, var(--border)));
}

html[data-theme='dark'] .topbar-ticket-toast-clickable:hover,
html[data-theme='dark'] .topbar-ticket-toast-clickable:focus-visible,
html[data-theme='cinza'] .topbar-ticket-toast-clickable:hover,
html[data-theme='cinza'] .topbar-ticket-toast-clickable:focus-visible {
    outline-color: var(--fd-primary, var(--primary));
}

.topbar-ticket-alert-badge {
    position: absolute;
    left: -0.5rem;
    top: -0.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3125rem;
    border-radius: 62.4375rem;
    background: var(--warning);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: ticket-alert-pulse 1.2s ease-in-out infinite;
}

@keyframes ticket-alert-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

/* Sprint 270 — só a página ativa participa do fluxo (evita empilhar seções inativas) */
.main-content > .page:not(.active) {
    display: none !important;
}

.page {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.main-content > .page.active {
    display: block !important;
    flex: 1 1 auto;
    min-height: 0;
}

#page-chats.page.active,
#page-call.page.active {
    display: flex !important;
    flex-direction: column;
    padding: 0 !important;
    min-height: 0;
    overflow: hidden;
}

/* Shell crítico Chats — evita flash sem grid antes do chats.css lazy */
#page-chats .chats-layout {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(16.25rem, 18.75rem) minmax(0, 1fr) minmax(17.5rem, 20rem);
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
}

/* Fila Chats — busca + divisória superior (shell sempre carregado; evita colar ao lazy @import) */
#page-chats .la-queue-head-stack .chats-search.la-search {
    box-sizing: border-box;
    position: relative;
    padding: 0.625rem var(--chats-queue-head-inset-x, 0.625rem) 0.625rem;
}

#page-chats .la-queue-head-stack .chats-search.la-search::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 0.0625rem;
    background: var(--f5c-border, #e2e8f0);
    pointer-events: none;
}

.main-content:has(#page-chats.active) {
    overflow: hidden;
    min-height: 0;
}

/* Topbar Chats: mesmo padding e alinhamento do padrão global (topbar-v2.css) */
html body #page-chats .chats-main.chats-main--no-selection {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
}

html body #page-chats .chats-main.chats-main--no-selection .chats-main-header,
html body #page-chats .chats-main.chats-main--no-selection .chats-timeline-wrap,
html body #page-chats .chats-main.chats-main--no-selection .chats-composer {
    grid-column: 1 / -1 !important;
    min-width: 0;
}

html body #page-chats .chats-main.chats-main--no-selection .chats-main-header {
    grid-row: 1 !important;
}

html body #page-chats .chats-main.chats-main--no-selection .chats-main-subhead-rail {
    display: none !important;
}

html body #page-chats .chats-main.chats-main--no-selection .chats-timeline-wrap {
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: column !important;
}

html body #page-chats .chats-main.chats-main--no-selection .chats-timeline-scrollport {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

html body #page-chats .chats-main.chats-main--no-selection .chats-composer {
    grid-row: 3 !important;
}

html body #page-chats .chats-main.chats-main--no-selection .chats-timeline {
    display: none !important;
}

html body #page-chats .chats-main.chats-main--no-selection .chats-timeline-scrollport > :not(#chatsTimelineEmpty) {
    display: none !important;
}

html body #page-chats .chats-main.chats-main--no-selection .chats-timeline-wrap--has-wallpaper .chats-timeline-wallpaper {
    display: block !important;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 0.125rem solid var(--border);
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--corp-text-on-light);
}

html[data-theme='dark'] .page-header h1 {
    color: var(--corp-text-on-light);
}

/* Sprint 249 — avatares sem azul legado */
.analyst-avatar {
    background: var(--corp-bg-deep);
    color: var(--corp-text-on-dark);
    border-radius: 50%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 0px) /* ui-scale-freeze: was 1024px */ {
    .sidebar {
        width: 4rem;
        min-width: 4rem;
        max-width: 4rem;
        flex: 0 0 4rem;
    }

    .sidebar:hover .sidebar-panel {
        width: 14.5rem;
    }

    .page {
        padding: 1rem;
    }
}

@media (max-width: 720px) {
    .sidebar {
        display: none;
    }

    #appScreen {
        flex-direction: column;
    }
}

/* Sprint 246 — Perfil: menu lateral oculto; acesso via topbar → Meu Perfil */
.sidebar .nav-item[data-page='perfil'] {
    display: none !important;
}

/* Sprint 310 — visual global: page padding reduzido, page-header neon accent */
.page {
    padding: 1.5rem 1.75rem;
}

.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.875rem;
    border-bottom-color: var(--corp-border-strong);
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

@media (max-width: 0px) /* ui-scale-freeze: was 1024px */ {
    .page {
        padding: 1.125rem;
    }
}

@media (max-width: 720px) {
    .page {
        padding: 0.875rem;
    }
}

/* ==========================================================================
   TH-16 — layout: cinza + dark shell (status, segmented, submenu, headers)
   Paridade com tema claro; paletas TH-1. Tema claro inalterado.
   ========================================================================== */

html[data-theme='cinza'] .nav-submenu {
    background: var(--sidebar-submenu-bg);
}

html[data-theme='cinza'] .topbar-status-panel {
    background: transparent;
    border: 0;
}

html[data-theme='cinza'] .topbar-status-option.is-current {
    background: transparent;
}

html[data-theme='cinza'] .topbar-status-check {
    color: #0b63d6;
}

html[data-theme='cinza'] .topbar-status-swatch--offline {
    background: #6b7888;
}

html[data-theme='cinza'] .topbar-segmented {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme='cinza'] .topbar-segmented-btn.is-active {
    background: rgba(11,99,214,0.16);
    color: #14181d;
}

html[data-theme='cinza'] .page-header h1 {
    color: var(--corp-text-on-light);
}

html[data-theme='dark'] .topbar-status-panel {
    background: transparent;
    border: 0;
}

html[data-theme='dark'] .topbar-status-option.is-current {
    background: transparent;
}

html[data-theme='dark'] .topbar-status-check {
    color: #3b9bff;
}

html[data-theme='dark'] .topbar-status-swatch--offline {
    background: #8a99b8;
}

html[data-theme='dark'] .topbar-segmented {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .topbar-segmented-btn.is-active {
    background: rgba(59, 155, 255, 0.16);
    color: #e8eef9;
}

html[data-theme='cinza'] .main-content,
html[data-theme='dark'] .main-content {
    background: var(--bg-app);
}

/* Drawers fixos à direita (fechados fora da tela): sombra com offset negativo vazava na borda do viewport */
.pp-drawer,
.drill {
    box-shadow: none !important;
}

.call-mini-bar {
    --call-mini-blue: #2f6fe0;
    position: fixed;
    top: 28%;
    right: 0;
    left: auto;
    bottom: auto;
    z-index: 240;
    width: max-content;
    height: max-content;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    border-radius: 0.875rem 0 0 0.875rem;
    background: color-mix(in srgb, #ffffff 94%, transparent);
    color: #1a2740;
    border: 0.0625rem solid color-mix(in srgb, var(--call-mini-blue) 16%, #dce3ee);
    border-right: 0;
    box-shadow: 0 0.625rem 1.75rem color-mix(in srgb, #163f9a 16%, transparent);
    backdrop-filter: blur(0.875rem);
    font-family: inherit;
    user-select: none;
    touch-action: none;
}
.call-mini-bar button:focus {
    outline: none;
}
.call-mini-bar button:focus-visible {
    outline: 0.125rem solid var(--call-mini-blue);
    outline-offset: 0.125rem;
}
.call-mini-bar[hidden],
.call-mini-bar.hidden {
    display: none !important;
}
.call-mini-dock-toggle {
    width: 1.75rem;
    min-width: 1.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-right: 0.0625rem solid color-mix(in srgb, var(--call-mini-blue) 16%, #dce3ee);
    border-radius: 0.875rem 0 0 0.875rem;
    background: color-mix(in srgb, var(--call-mini-blue) 12%, #fff);
    color: var(--call-mini-blue);
    display: grid;
    place-items: center;
    cursor: grab;
}
.call-mini-dock-toggle:hover {
    background: color-mix(in srgb, var(--call-mini-blue) 18%, #fff);
}
.call-mini-dock-toggle:active { cursor: grabbing; }
.call-mini-dock-toggle svg {
    width: 1rem;
    height: 1rem;
    stroke-width: 3.6;
    pointer-events: none;
}
.call-mini-bar:not(.is-collapsed) .call-mini-dock-toggle svg {
    transform: scaleX(-1);
}
.call-mini-dock-body {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.5rem 0.625rem;
}
.call-mini-bar.is-collapsed {
    width: 3.25rem;
    height: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
    overflow: hidden;
    border-radius: 0.875rem 0 0 0.875rem;
}
.call-mini-bar.is-collapsed .call-mini-dock-toggle {
    width: 3.25rem;
    min-width: 3.25rem;
    border-right: 0;
    border-radius: 0.875rem 0 0 0.875rem;
}
.call-mini-bar.is-collapsed .call-mini-dock-body {
    display: none;
}
.call-mini-bar.is-dragging,
.call-mini-bar.is-dragging .call-mini-dock-toggle { cursor: grabbing; }
.call-mini-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    min-width: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    border-radius: 0.5rem;
}
.call-mini-open strong {
    font-size: 0.8125rem;
    font-weight: 700;
}
.call-mini-open span {
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
    color: #5e6b80;
}
.call-mini-btn,
.call-mini-hang {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.625rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #1a2740;
    background: rgba(255, 255, 255, 0.55);
    transition: background-color 120ms ease, opacity 120ms ease;
}
.call-mini-btn svg,
.call-mini-hang svg {
    width: 1rem;
    height: 1rem;
    display: block;
}
.call-mini-hang img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}
.call-mini-btn:hover {
    background: color-mix(in srgb, #2f6fe0 10%, #fff);
}
.call-mini-btn.is-off {
    opacity: 1;
    color: #d22d35;
}
.call-mini-btn svg {
    overflow: visible;
}
.call-mini-btn .call-ctl-slash-gap,
.call-mini-btn .call-ctl-slash {
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 22;
    stroke-dashoffset: 22;
    transition: stroke-dashoffset 280ms cubic-bezier(.22, .8, .28, 1);
}
.call-mini-btn .call-ctl-slash-gap {
    stroke: #fff;
    stroke-width: 4.4;
}
.call-mini-btn .call-ctl-slash {
    stroke: currentColor;
    stroke-width: 2.2;
}
.call-mini-btn.is-off .call-ctl-slash-gap,
.call-mini-btn.is-off .call-ctl-slash {
    stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: reduce) {
    .call-mini-btn .call-ctl-slash-gap,
    .call-mini-btn .call-ctl-slash {
        transition: none;
    }
}
.call-mini-hang {
    background: transparent;
    overflow: hidden;
    padding: 0;
}
.call-mini-hang:hover {
    background: transparent;
    filter: brightness(0.92);
}

/* Sem overlay de página: o preview flutuante usa Document Picture-in-Picture. */
