/*
 * Tema v2 - camada visual sobre os componentes que já existem (etapa 2)
 *
 * Só CSS, em cima das classes atuais (sidebar, header, card, btn, form-control, table, badge, modal).
 * Nenhum HTML, ID ou JS muda. Referência: docs/tema-v2/prototipos/dashboard.html.
 * Carregar DEPOIS de theme-v2.css e theme-v2-sistema.css.
 */

/* ===== Fundo "aurora": duas manchas de cor desfocadas atrás de tudo ===== */
body {
    background: var(--bg-app);
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;            /* atrás de todo o conteúdo, sem criar contexto de empilhamento no .wrapper */
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

body::before {
    width: 520px;
    height: 520px;
    left: -120px;
    top: -140px;
    background: var(--tc-aurora-1);
    animation: tc-drift 22s ease-in-out infinite alternate;
}

body::after {
    width: 480px;
    height: 480px;
    right: -140px;
    bottom: -120px;
    background: var(--tc-aurora-2);
    animation: tc-drift 26s ease-in-out infinite alternate-reverse;
}

.main-content {
    background: transparent;
}

/* ===== Menu lateral: painel flutuante em vidro (computador) ===== */
@media (min-width: 769px) {
    .sidebar {
        top: 16px;
        left: 16px;
        bottom: 16px;
        border: 1px solid var(--border-light);
        border-radius: 26px;
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }

    .main-content {
        margin-left: calc(var(--sidebar-width) + 32px);
    }

    .sidebar.collapsed ~ .main-content {
        margin-left: calc(var(--sidebar-collapsed) + 32px);
    }

    /* Cabeçalho também flutua, alinhado ao painel */
    header {
        margin: 16px 16px 0 0;
        top: 16px;
        border: 1px solid var(--border-light);
        border-radius: 20px;
        box-shadow: var(--shadow-sm);
    }
}

/* Celular: o menu abre por cima do conteúdo, então precisa de fundo sólido */
@media (max-width: 768px) {
    .sidebar {
        background: var(--tc-surface-solid);
        border-radius: 0 26px 26px 0;
    }
}

.sidebar-logo {
    border-bottom: 0;
}

/* Itens do menu */
.sidebar-menu a {
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.sidebar-menu a:hover {
    background: var(--primary-light);
    color: var(--text-primary);
}

.sidebar-menu a.active,
.sidebar-menu > ul > li > a.active {
    background: var(--tc-grad-brand);
    color: var(--tc-on-grad);
    font-weight: 600;
    box-shadow: 0 8px 20px -10px rgba(68, 191, 225, .8);
}

.sidebar-menu a.active svg,
.sidebar-menu a.active i {
    color: var(--tc-on-grad);
    stroke: currentColor;
}

/* Grupo aberto: o item do grupo fica em destaque leve, não em gradiente */
.has-submenu.active > .submenu-toggle {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: none;
}

/* Submenu com linha guia à esquerda (como no protótipo); recolhido, o submenu é painel flutuante e fica como está */
.sidebar:not(.collapsed) .sidebar-submenu ul {
    margin-left: 32px;
    padding-left: 10px;
    border-left: 1.5px solid var(--border-light);
}

.sidebar-submenu a {
    border-radius: 10px;
    font-size: 13px;
    background: transparent;
}

.sidebar:not(.collapsed) .sidebar-submenu a {
    padding-left: 12px;
}

.sidebar-submenu a.active {
    background: var(--primary-light);
    color: var(--tc-primary-strong);
    font-weight: 600;
    box-shadow: none;
}

/* Rodapé do menu: cartão do usuário e botões */
.sidebar-footer {
    border-top: 0;
}

.sidebar-user {
    border-radius: 18px;
    background: linear-gradient(150deg, var(--secondary), #2b2a3a);
    color: #e9f4f8;
    border: 0;
    position: relative;
    overflow: hidden;
}

.sidebar-user::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    opacity: .5;
    pointer-events: none;
}

.sidebar-user-name {
    color: #ffffff;
}

.sidebar-user-role {
    color: rgba(233, 244, 248, .75);
}

.sidebar-action-btn {
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
}

.sidebar-action-btn:hover {
    background: var(--primary-light);
    color: var(--text-primary);
}

/* ===== Cabeçalho ===== */
header .header-title h1 {
    font-family: var(--tc-font-display);
    font-weight: 800;
    letter-spacing: -.02em;
}

.header-search input {
    border-radius: 99px;
    background: var(--tc-field);
    border: 1px solid var(--border-light);
}

.header-search input:focus {
    background: var(--tc-surface-solid);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(68, 191, 225, .18);
}

.header-icon-btn,
.mobile-menu-toggle {
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--card-bg);
    transition: transform .2s ease, background .2s ease;
}

.header-icon-btn:hover {
    transform: translateY(-2px);
    background: var(--tc-surface-solid);
}

/* ===== Cartões em vidro ===== */
.card,
.content,
.stat-card,
.widget-card,
.resumo-card,
.metrica-card {
    border: 1px solid var(--border-light);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.card,
.content,
.widget-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    border-bottom-color: var(--border-light);
}

.card-header h3,
.card-title {
    font-family: var(--tc-font-display);
    letter-spacing: -.01em;
}

/* Cartões de indicador: elevam 3px no hover (tabelas e formulários não animam) */
.stat-card,
.resumo-card,
.metrica-card {
    border-radius: 18px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.stat-card:hover,
.resumo-card:hover,
.metrica-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Entrada suave dos cartões, em cascata */
.indicadores > *,
.stats-grid > *,
.cards-grid > * {
    animation: tc-rise .55s cubic-bezier(.2, .7, .2, 1) both;
}

.indicadores > :nth-child(2), .stats-grid > :nth-child(2), .cards-grid > :nth-child(2) { animation-delay: 55ms; }
.indicadores > :nth-child(3), .stats-grid > :nth-child(3), .cards-grid > :nth-child(3) { animation-delay: 110ms; }
.indicadores > :nth-child(4), .stats-grid > :nth-child(4), .cards-grid > :nth-child(4) { animation-delay: 165ms; }
.indicadores > :nth-child(5), .stats-grid > :nth-child(5), .cards-grid > :nth-child(5) { animation-delay: 220ms; }
.indicadores > :nth-child(6), .stats-grid > :nth-child(6), .cards-grid > :nth-child(6) { animation-delay: 275ms; }

/* ===== Botões ===== */
.btn {
    border-radius: 99px;
    font-weight: 600;
}

/* Botão principal com o gradiente da marca.
   ":not(#tc-v2)" dá peso de id à regra: vence os ".pacotes-header .header-buttons .btn-primary" e
   parecidos dos módulos, que repintavam o botão de azul chapado */
body .btn.btn-primary:not(#tc-v2),
body .btn-primary:not(.btn),
.btn-primary {
    background: var(--tc-grad-brand);
    color: var(--tc-on-grad);
    border: 0;
    box-shadow: 0 10px 22px -12px rgba(68, 191, 225, .9);
}

body .btn.btn-primary:not(#tc-v2):hover,
body .btn-primary:not(.btn):hover,
.btn-primary:hover {
    background: var(--tc-grad-brand);
    color: var(--tc-on-grad);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -12px rgba(68, 191, 225, .95);
}

body .btn.btn-primary:not(#tc-v2) svg,
body .btn.btn-primary:not(#tc-v2) i,
.btn-primary svg,
.btn-primary i {
    color: var(--tc-on-grad);
    stroke: currentColor;
}

/* ":not(#tc-v2)" pelo mesmo motivo do botão principal: módulos (ex.: agenda.css) pintavam o secundário de azul */
body .btn.btn-secondary:not(#tc-v2),
.btn-secondary,
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
}

body .btn.btn-secondary:not(#tc-v2):hover,
.btn-secondary:hover,
.btn-outline:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--text-primary);
}

/* ===== Campos ===== */
.form-control {
    border: 1.5px solid var(--border-light);
    border-radius: 13px;
    background: var(--tc-field);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(68, 191, 225, .18);
    background: var(--tc-surface-solid);
}

/* ===== Tabelas ===== */
.table thead th {
    background: transparent;
    color: var(--text-muted);
    font-size: 11.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-light);
}

.table tbody td {
    border-bottom: 1px solid var(--border-light);
}

.table tbody tr:hover {
    background: var(--primary-light);
}

/* ===== Etiquetas de situação: pílulas suaves (verde ok, amarelo pendente, vermelho erro, azul info) ===== */
.badge {
    border-radius: 99px;
    font-weight: 600;
    padding: 3px 10px;
}

.badge-success { background: var(--tc-ok-soft);   color: var(--tc-ok-ink); }
.badge-warning { background: var(--tc-warn-soft); color: var(--tc-warn-ink); }
.badge-danger  { background: var(--tc-bad-soft);  color: var(--tc-bad-ink); }
.badge-info    { background: var(--primary-light); color: var(--tc-primary-strong); }

/* ===== Modais ===== */
.modal-backdrop {
    background-color: var(--tc-overlay);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.modal {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .5);
}

.modal-header {
    background: linear-gradient(110deg, var(--primary-light), var(--accent-light));
    border-bottom: 1px solid var(--border-light);
}

.modal-title {
    font-weight: 800;
    letter-spacing: -.01em;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
}

/* ===== Movimento: tudo desligado para quem pede menos animação ===== */
@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    .indicadores > *,
    .stats-grid > *,
    .cards-grid > * {
        animation: none !important;
    }

    .stat-card,
    .resumo-card,
    .metrica-card,
    .btn-primary,
    .header-icon-btn {
        transition: none !important;
    }
}

/* ===== Botão de alternar tema (lua no claro, sol no escuro) ===== */
#tc-tema-btn .tc-tema-sol,
#tc-tema-btn svg.tc-tema-sol { display: none; }
:root[data-theme="dark"] #tc-tema-btn .tc-tema-lua { display: none; }
:root[data-theme="dark"] #tc-tema-btn .tc-tema-sol { display: inline-block; }

/* ===== Barra inferior do celular (até 768px) ===== */
.tc-tabbar,
.tc-atalhos { display: none; }

@media (max-width: 768px) {
    .tc-tabbar {
        display: grid;
        grid-template-columns: 1fr 1fr auto 1fr 1fr;
        align-items: end;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 980;               /* abaixo do menu lateral aberto (999) e dos modais */
        max-width: 520px;
        margin-inline: auto;
        padding: 8px;
        background: var(--tc-surface-solid);
        border: 1px solid var(--border-light);
        border-radius: 26px;
        box-shadow: var(--shadow-lg);
    }

    .tc-tabbar a,
    .tc-tabbar > button:not(.tc-tabbar-fab) {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 6px 0;
        border: 0;
        background: none;
        border-radius: 16px;
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
    }

    .tc-tabbar svg { width: 20px; height: 20px; }

    .tc-tabbar a.on { color: var(--text-primary); }
    .tc-tabbar a.on svg { color: var(--tc-primary-strong); }
    .tc-tabbar a.on::after {
        content: "";
        width: 18px;
        height: 3px;
        border-radius: 9px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
    }

    .tc-tabbar-fab {
        width: 56px;
        height: 56px;
        margin: -26px 6px 0;
        border: 0;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: linear-gradient(135deg, var(--accent), var(--primary));
        color: var(--tc-on-grad);
        box-shadow: 0 12px 24px -8px rgba(68, 191, 225, .9);
        cursor: pointer;
        transition: transform .3s ease;
    }

    .tc-tabbar-fab svg { width: 26px; height: 26px; }
    .tc-tabbar-fab.aberto { transform: rotate(45deg); }

    .tc-atalhos:not([hidden]) {
        display: flex;
        flex-direction: column;
        gap: 4px;
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: calc(96px + env(safe-area-inset-bottom, 0px));
        z-index: 981;
        width: min(320px, calc(100vw - 32px));
        padding: 8px;
        background: var(--tc-surface-solid);
        border: 1px solid var(--border-light);
        border-radius: 20px;
        box-shadow: var(--shadow-lg);
    }

    .tc-atalhos a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 14px;
        color: var(--text-primary);
        font-weight: 600;
        text-decoration: none;
    }

    .tc-atalhos a:hover { background: var(--primary-light); }
    .tc-atalhos svg { width: 20px; height: 20px; color: var(--tc-primary-strong); }

    /* espaço para a barra não cobrir o fim da página */
    .main-content { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
    .tc-tabbar-fab { transition: none !important; }
}

/* A área principal não cresce além da tela quando algo dentro dela é largo (ex.: Kanban);
   quem é largo rola dentro do próprio quadro. */
.wrapper > .main-content { min-width: 0; }

/* Menu recolhido: painel flutuante com as subpáginas (montado por tema-v2.js) */
.tc-subpainel {
    position: fixed;
    z-index: 1100;
    min-width: 210px;
    max-width: 280px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--tc-surface-solid, #fff);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: var(--tc-shadow-hover, 0 22px 44px -14px rgba(36, 67, 86, .28));
    animation: tc-subpainel .16s ease both;
}

@keyframes tc-subpainel { from { opacity: 0; transform: translateX(-6px); } }

.tc-subpainel-titulo {
    padding: 6px 10px 8px;
    font: 700 11px var(--tc-font-display, inherit);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tc-subpainel a {
    padding: 9px 12px;
    border-radius: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-subpainel a:hover,
.tc-subpainel a:focus-visible {
    background: var(--primary-light);
    color: var(--text-primary);
}

.tc-subpainel a.ativo {
    background: var(--primary-light);
    color: var(--tc-primary-strong, var(--primary));
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) { .tc-subpainel { animation: none; } }

/* ===== Topo (Tema v2): título + data, usuário com iniciais, nome e cargo ===== */
header {
    height: auto;
    min-height: var(--header-height);
    padding-top: 10px;
    padding-bottom: 10px;
}

header .header-title { min-width: 0; }
header .header-title h1 { margin: 0; line-height: 1.15; }

.tc-topo-sub {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-topo-marca { display: none; }

.tc-topo-usuario {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border: 0;
    border-radius: 99px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: background .2s ease;
}

.tc-topo-usuario:hover { background: var(--primary-light); }

.tc-topo-avatar {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--tc-grad-brand);
    color: var(--tc-on-grad);
    font: 700 14px var(--tc-font-display);
}

.tc-topo-quem { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.tc-topo-quem b { font: 700 13.5px var(--tc-font-display); white-space: nowrap; }
.tc-topo-quem small { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }

/* Celular: logo à esquerda, título e data, tema e avatar; sem busca, sem nome e sem sanduíche */
@media (max-width: 768px) {
    header {
        gap: 10px;
        padding: 10px 14px;
    }

    .tc-topo-marca {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        flex: none;
        border-radius: 14px;
        background: var(--tc-grad-brand);
        box-shadow: 0 8px 18px -10px rgba(68, 191, 225, .9);
    }

    /* logo escuro sobre o gradiente (o colorido sumia no fundo) */
    .tc-topo-marca img { width: 24px; height: 24px; filter: brightness(0); opacity: .82; }

    header .header-actions .header-icon-btn {
        width: 42px;
        height: 42px;
        flex: none;
        padding: 0;
    }

    body header .header-actions .header-icon-btn svg { width: 19px !important; height: 19px !important; flex: none; }

    body header .header-title {
        flex: 1 1 auto;
        max-width: none !important;
    }

    body header .header-title h1 { font-size: 19px !important; }
    .tc-topo-sub { font-size: 12px; }

    .mobile-menu-toggle,
    .tc-topo-quem { display: none !important; }

    .tc-topo-usuario { padding: 0; }
    .tc-topo-avatar { width: 40px; height: 40px; }
    header .header-actions { gap: 8px; margin-left: 0; }
}

/* ===== Folha do Menu (celular) ===== */
.tc-menu-fundo,
.tc-menu-folha { display: none; }

@media (max-width: 768px) {
    .tc-menu-fundo:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1190;
        background: var(--tc-overlay, rgba(16, 30, 40, .42));
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        animation: tc-menu-fade .2s ease both;
    }

    .tc-menu-folha:not([hidden]) {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        max-height: calc(100vh - 48px);
        padding: 8px 18px calc(18px + env(safe-area-inset-bottom, 0px));
        background: var(--tc-surface-solid);
        border-radius: 28px 28px 0 0;
        box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .35);
        animation: tc-menu-sobe .28s cubic-bezier(.2, .8, .2, 1) both;
    }

    body.tc-menu-aberto { overflow: hidden; }
}

@keyframes tc-menu-fade { from { opacity: 0; } }
@keyframes tc-menu-sobe { from { transform: translateY(100%); } }

.tc-menu-alca {
    width: 44px;
    height: 5px;
    margin: 0 auto 10px;
    border-radius: 99px;
    background: var(--border-medium, rgba(36, 67, 86, .2));
}

.tc-menu-topo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.tc-menu-topo h2 {
    flex: 1;
    margin: 0;
    font: 800 22px var(--tc-font-display);
    letter-spacing: -.02em;
    color: var(--text-primary);
}

.tc-menu-fechar,
.tc-menu-voltar {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    background: var(--tc-surface-solid);
    color: var(--text-secondary);
    cursor: pointer;
}

.tc-menu-voltar[hidden] { display: none; }
.tc-menu-fechar svg, .tc-menu-voltar svg { width: 20px; height: 20px; }

.tc-menu-folha:focus { outline: none; }

.tc-menu-corpo { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; }

.tc-menu-grupo {
    margin: 14px 0 8px;
    font: 700 11.5px var(--tc-font-display);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tc-menu-grupo:first-child { margin-top: 0; }

.tc-menu-grade {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tc-menu-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 98px;
    padding: 14px 6px 12px;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    background: var(--tc-surface-solid);
    color: var(--text-primary);
    font: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, border-color .2s ease;
}

.tc-menu-tile:active { transform: scale(.97); }

.tc-menu-tile.ativo {
    border-color: var(--primary);
    background: var(--primary-light);
}

.tc-menu-icone {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #e9f9a8, #8fdcf2);
    color: #10303c;
}

.tc-tom-b .tc-menu-icone { background: linear-gradient(135deg, #bfe9f6, #8fbdf2); }

:root[data-theme="dark"] .tc-menu-icone { background: linear-gradient(135deg, #4c5a1c, #1e6f8c); color: #f2fafc; }
:root[data-theme="dark"] .tc-tom-b .tc-menu-icone { background: linear-gradient(135deg, #1f5c5f, #1e4f8c); }

.tc-menu-icone svg { width: 20px; height: 20px; }

.tc-menu-nome {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
}

.tc-menu-lista { display: flex; flex-direction: column; gap: 6px; }

.tc-menu-lista a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
}

.tc-menu-lista a svg { width: 18px; height: 18px; color: var(--text-muted); }
.tc-menu-lista a.ativo { border-color: var(--primary); background: var(--primary-light); }

@media (prefers-reduced-motion: reduce) {
    .tc-menu-folha, .tc-menu-fundo { animation: none !important; }
}

/* ===== Topo sem barra: sem fundo, borda, sombra nem vidro; título e ações soltos sobre a página.
   Deixa de ficar preso no alto ao rolar (sem fundo, o conteúdo passaria por trás do texto). ===== */
body header {
    position: relative;
    top: auto;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media (min-width: 769px) {
    body header {
        margin: 16px 16px 0 0;
        /* alinhado com a borda esquerda dos cartões da página */
        padding-left: 32px;
        padding-right: 12px;
    }
}

/* os botões redondos do topo ganham um fundo próprio, já que a barra sumiu */
body header .header-icon-btn {
    background: var(--tc-surface-solid);
}
