/* Visual 1: somente apresentação. O visual clássico permanece intacto. */
.pf-modern-overview[hidden] {
    display: none !important;
}
.pf-home-v1 #sidebarPanel {
    background: var(--pf-home-panel, #f8fafc);
    border-right: 1px solid var(--pf-home-border, #dbe3ee);
}
.pf-home-v1 #sidebarPanel > div:nth-child(2) {
    border-radius: 12px;
    margin: 9px 9px 0;
    padding: 13px;
}
.pf-home-v1 #accountsListTree > div {
    border: 1px solid var(--pf-home-border, #dbe3ee);
    border-radius: 12px;
    padding: 7px;
    background: var(--pf-home-card, #fff);
    box-shadow: 0 2px 10px #0000000a;
}
.pf-home-v1 #accountsListTree > div > div:first-child {
    border-radius: 9px;
}
.pf-home-v1 #centralMainView {
    background: var(--pf-home-panel, #f8fafc);
}
.pf-home-v1 #subBar {
    margin: 9px 12px;
    border: 1px solid var(--pf-home-border, #dbe3ee);
    border-radius: 12px;
    background: var(--pf-home-card, #fff);
}
.pf-home-v1 #viewLancamentos {
    min-height: 0;
}
.pf-modern-overview {
    padding: 8px 12px 12px;
    overflow-y: auto;
    max-height: 48%;
    flex-shrink: 0;
}
.pf-home-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.pf-home-kpi,
.pf-home-insight {
    min-width: 0;
    padding: 14px;
    border-radius: 13px;
    background: var(--pf-home-card, #fff);
    border: 1px solid var(--pf-home-border, #dbe3ee);
    box-shadow: 0 3px 12px #0000000b;
}
.pf-home-kpi > span,
.pf-home-insight > span {
    display: block;
    font-size: 12px;
    font-weight: 650;
    opacity: 0.85;
}
.pf-home-kpi > strong {
    display: block;
    font-size: clamp(13px, 1.35vw, 22px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 9px 0 4px;
}
.pf-home-kpi small,
.pf-home-insight small {
    font-size: 10px;
    opacity: 0.7;
}
.pf-home-balance {
    background: linear-gradient(120deg, #0e7490, #155e75);
    color: white;
    border-color: #0e7490;
}
.pf-home-green {
    color: #16a34a;
}
.pf-home-red {
    color: #ef4444;
}
.pf-home-insights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.pf-home-insight {
    padding: 10px 12px;
    min-height: 100px;
}
.pf-home-insight strong {
    display: block;
    margin-top: 8px;
    font-size: 16px;
}
.pf-home-insight svg {
    width: 100%;
    height: 30px;
    margin-top: 4px;
}
.pf-home-category {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 6px;
    font-size: 10px;
    margin-top: 5px;
}
.pf-home-category > span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.pf-home-progress {
    grid-column: 1 / -1;
    height: 4px;
    border-radius: 5px;
    background: #94a3b83b;
    overflow: hidden;
}
.pf-home-progress > span {
    display: block;
    height: 100%;
    background: #3b82f6;
}
.pf-home-empty {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 8px;
}
.pf-home-list-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 4px 0;
    font-weight: 700;
}
.pf-home-list-title small {
    display: block;
    font-weight: 400;
    opacity: 0.65;
    font-size: 10px;
}
.pf-home-list-title > span:last-child {
    font-size: 11px;
    opacity: 0.7;
}
.pf-home-v1 .pf-modern-transactions-scroll {
    margin: 0 12px 12px;
    border: 1px solid var(--pf-home-border, #dbe3ee);
    border-radius: 12px;
    background: var(--pf-home-card, #fff);
}
.pf-home-v1 #transactionsTable tbody tr {
    border-bottom: 1px solid #94a3b826;
}
.pf-home-v1 #transactionsTable tbody tr:hover {
    filter: brightness(1.09);
}
.pf-home-v1.dark,
.dark .pf-home-v1,
body.dark.pf-home-v1,
body.pf-home-v1[class*="skin-"] {
    --pf-home-panel: #111318;
    --pf-home-card: #1c2028;
    --pf-home-border: #343b48;
}
@media (max-width: 1200px) {
    .pf-home-kpis,
    .pf-home-insights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pf-modern-overview {
        max-height: 55%;
    }
}
@media (max-width: 750px) {
    .pf-home-kpis,
    .pf-home-insights {
        grid-template-columns: 1fr;
    }
    .pf-modern-overview {
        max-height: 40%;
    }
}

/* Refinamento do painel moderno: contraste, foco e melhor aproveitamento do espaço. */
.pf-home-v1 .pf-modern-overview {
    scrollbar-width: thin;
    scrollbar-color: #64748b66 transparent;
}
.pf-home-v1 .pf-home-kpi,
.pf-home-v1 .pf-home-insight {
    transition:
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.pf-home-v1 .pf-home-kpi:hover,
.pf-home-v1 .pf-home-insight:hover {
    border-color: #3b82f680;
    box-shadow: 0 5px 16px #00000016;
}
.pf-home-v1 .pf-home-kpi > span i,
.pf-home-v1 .pf-home-insight > span i {
    margin-right: 5px;
}
.pf-home-v1 .pf-home-category {
    padding: 2px 0;
}
.pf-home-v1 .pf-home-category strong {
    margin: 0;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}
.pf-home-v1 .pf-home-category i {
    width: 15px;
    text-align: center;
    color: #60a5fa;
}
.pf-home-v1 .pf-home-list-title {
    border-top: 1px solid var(--pf-home-border, #dbe3ee);
    margin-top: 12px;
}
.pf-home-v1 .pf-home-kpi strong {
    font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
    .pf-home-v1 .pf-home-kpi,
    .pf-home-v1 .pf-home-insight {
        transition: none;
    }
}

/* Entrega consolidada Visual 1: densidade legível, responsividade e acessibilidade. */
.pf-home-v1 .pf-home-kpi,
.pf-home-v1 .pf-home-insight {
    position: relative;
    overflow: hidden;
}
.pf-home-v1 .pf-home-kpi:focus-within,
.pf-home-v1 .pf-home-insight:focus-within {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
.pf-home-v1 .pf-home-insight strong {
    font-variant-numeric: tabular-nums;
}
.pf-home-v1 .pf-home-category {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}
.pf-home-v1 .pf-home-category strong {
    white-space: nowrap;
}
.pf-home-v1 .pf-home-progress {
    height: 5px;
}
.pf-home-v1 .pf-home-insight svg {
    min-height: 35px;
}
.pf-home-v1 .pf-home-list-title {
    flex-wrap: wrap;
}
@media (max-width: 1500px) and (min-width: 1201px) {
    .pf-home-v1 .pf-home-insights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .pf-home-v1 .pf-home-kpi > strong {
        font-size: 16px;
    }
    .pf-home-v1 .pf-home-kpis,
    .pf-home-v1 .pf-home-insights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .pf-home-v1 .pf-home-kpis,
    .pf-home-v1 .pf-home-insights {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Etapa 2: permitir priorizar a área de lançamentos sem perder os indicadores. */
.pf-home-v1 .pf-home-overview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 2px 2px 10px;
    font-size: 12px;
    font-weight: 650;
}
.pf-home-v1 .pf-home-overview-toolbar > span i {
    margin-right: 6px;
    color: #60a5fa;
}
.pf-home-v1 .pf-home-insights-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid var(--pf-home-border, #dbe3ee);
    border-radius: 9px;
    background: var(--pf-home-card, #fff);
    color: inherit;
    cursor: pointer;
    font: inherit;
    white-space: nowrap;
}
.pf-home-v1 .pf-home-insights-toggle:hover {
    border-color: #60a5fa;
}
.pf-home-v1 .pf-home-insights-toggle:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
.pf-home-v1 #pfHomeInsights[hidden] {
    display: none !important;
}

/* Visual 1: o recolhimento libera altura efetiva para a tabela de lançamentos. */
.pf-home-v1 .pf-modern-overview.pf-home-overview-compact {
    max-height: none;
    overflow-y: visible;
}
.pf-home-v1 .pf-modern-overview.pf-home-overview-compact .pf-home-list-title {
    margin-top: 8px;
}

/* Visual 1 — painéis completos. Seletores restritos ao modo moderno: o Clássico não muda. */
body.pf-home-v1 {
    --pf-v1-accent: #1689bb;
    --pf-v1-shadow: 0 5px 20px rgb(0 0 0 / 9%);
}
body.pf-home-v1 #sidebarPanel {
    padding: 10px 9px 12px;
    gap: 10px;
    scrollbar-width: thin;
}
body.pf-home-v1 #sidebarPanel > div:nth-child(2) {
    margin: 0;
    padding: 15px 12px;
    border: 1px solid var(--pf-home-border);
    border-radius: 15px;
    background: var(--pf-home-card);
    box-shadow: var(--pf-v1-shadow);
    gap: 10px;
}
body.pf-home-v1 #sidebarPanel #globalBalanceLabel {
    font-size: 13px;
    letter-spacing: 0.02em;
}
body.pf-home-v1 #sidebarPanel #globalBalance {
    font-size: clamp(13px, 1.15vw, 18px);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
body.pf-home-v1 #accountsListTree {
    padding: 0 2px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
body.pf-home-v1 #accountsListTree > div {
    margin: 0;
    padding: 9px;
    border-radius: 15px;
    box-shadow: var(--pf-v1-shadow);
}
body.pf-home-v1 #accountsListTree > div > div:first-child {
    padding: 9px 8px;
    border-radius: 10px;
    font-weight: 700;
}
body.pf-home-v1 #accountsListTree input[type="checkbox"],
body.pf-home-v1 #sidebarPanel input[type="checkbox"] {
    accent-color: var(--pf-v1-accent);
    cursor: pointer;
}
body.pf-home-v1 #accountsListTree > div > div:not(:first-child) {
    border-radius: 9px;
    transition:
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}
body.pf-home-v1 #accountsListTree > div > div:not(:first-child):hover {
    background-color: rgb(59 130 246 / 12%);
    box-shadow: inset 3px 0 0 var(--pf-v1-accent);
}
body.pf-home-v1 #subBar {
    padding: 11px 14px;
    box-shadow: var(--pf-v1-shadow);
}
body.pf-home-v1 #subBar select,
body.pf-home-v1 #navigatorGroup,
body.pf-home-v1 #customPeriodContainer {
    border-radius: 9px;
    min-height: 33px;
}
body.pf-home-v1 .pf-modern-transactions-scroll {
    padding: 9px;
    border-radius: 15px;
    box-shadow: var(--pf-v1-shadow);
    scrollbar-width: thin;
}
body.pf-home-v1 #transactionsTable {
    border-collapse: separate;
    border-spacing: 0 5px;
    min-width: 650px;
}
body.pf-home-v1 #transactionsTable thead {
    box-shadow: none;
    border: 0;
    background: transparent;
}
body.pf-home-v1 #transactionsTable thead th {
    padding-top: 11px;
    padding-bottom: 11px;
    background: var(--pf-home-panel);
    border-bottom: 1px solid var(--pf-home-border);
}
body.pf-home-v1 #transactionsTable tbody tr {
    transition:
        filter 0.15s ease,
        box-shadow 0.15s ease;
}
body.pf-home-v1 #transactionsTable tbody tr > td {
    border-top: 1px solid var(--pf-home-border);
    border-bottom: 1px solid var(--pf-home-border);
    padding-top: 10px;
    padding-bottom: 10px;
    font-variant-numeric: tabular-nums;
}
body.pf-home-v1 #transactionsTable tbody tr > td:first-child {
    border-left: 1px solid var(--pf-home-border);
    border-radius: 10px 0 0 10px;
}
body.pf-home-v1 #transactionsTable tbody tr > td:last-child {
    border-right: 1px solid var(--pf-home-border);
    border-radius: 0 10px 10px 0;
}
body.pf-home-v1 #transactionsTable tbody tr:hover > td {
    box-shadow:
        inset 0 1px 0 rgb(59 130 246 / 18%),
        inset 0 -1px 0 rgb(59 130 246 / 18%);
}
body.pf-home-v1 #rightSidebar {
    padding: 13px 10px;
    gap: 10px;
    background: var(--pf-home-panel);
    border-left-color: var(--pf-home-border);
}
body.pf-home-v1 #rightSidebar > button {
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid var(--pf-home-border);
    border-radius: 12px;
    background: var(--pf-home-card);
    color: inherit;
    box-shadow: var(--pf-v1-shadow);
    font-weight: 600;
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background-color 0.16s ease;
}
body.pf-home-v1 #rightSidebar > button:first-of-type {
    background: linear-gradient(120deg, #087cbd, #175bd0);
    border-color: #1976ca;
    color: #fff;
}
body.pf-home-v1 #rightSidebar > button:hover {
    transform: translateY(-1px);
    border-color: #60a5fa;
}
body.pf-home-v1 #rightSidebar > button:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
body.pf-home-v1 #rightSidebar > button i {
    font-size: 15px;
    width: 20px;
    text-align: center;
}
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1 #rightSidebar > button,
    body.pf-home-v1 #transactionsTable tbody tr,
    body.pf-home-v1 #accountsListTree > div > div:not(:first-child) {
        transition: none;
    }
}

/* Visual 1 completo: painel de lançamentos em cartões, sem interferir na tabela clássica. */
body.pf-home-v1 {
    --pf-home-panel: #0c0d10;
    --pf-home-card: #191b20;
    --pf-home-border: #33363e;
}
body.pf-home-v1 .pf-home-balance {
    background: linear-gradient(120deg, #12365e, #1d4ed8);
    border-color: #2563eb;
}
body.pf-home-v1 .pf-modern-transactions-scroll {
    display: none;
}
body.pf-home-v1 .pf-modern-transaction-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 12px 12px;
    padding: 2px 3px 12px;
    min-height: 0;
    flex: 1;
    overflow: auto;
    scrollbar-width: thin;
}
.pf-modern-transaction-cards[hidden] {
    display: none !important;
}
.pf-home-tx-group {
    border: 1px solid var(--pf-home-border);
    background: var(--pf-home-card);
    border-radius: 13px;
    overflow: hidden;
    flex-shrink: 0;
}
.pf-home-tx-group-title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #2563eb15;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
}
.pf-home-tx-group-title > span {
    display: flex;
    align-items: center;
    gap: 9px;
}
.pf-home-tx-group-title .fa-calendar-days {
    color: #60a5fa;
}
.pf-home-tx-group-title small {
    opacity: 0.65;
}
.pf-home-tx-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 5px 7px;
    border-radius: 10px;
    border: 1px solid var(--pf-home-border);
    cursor: pointer;
    background: #ffffff05;
    font-size: 12px;
    min-height: 58px;
}
.pf-home-tx-card:hover,
.pf-home-tx-card:focus-visible {
    border-color: #3b82f6;
    background: #2563eb13;
    outline: none;
}
.pf-home-tx-card.selected {
    border-color: #60a5fa;
    background: #2563eb32;
}
.pf-home-tx-icon {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 16px;
    background: #2563eb24;
    color: #93c5fd;
}
.pf-home-tx-card.income .pf-home-tx-icon {
    color: #4ade80;
    background: #16a34a24;
}
.pf-home-tx-card.expense .pf-home-tx-icon {
    color: #f87171;
    background: #dc262624;
}
.pf-home-tx-description {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.pf-home-tx-description strong,
.pf-home-tx-description small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.pf-home-tx-description small {
    opacity: 0.65;
}
.pf-home-tx-account {
    width: 24%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.8;
}
.pf-home-tx-amount {
    min-width: 108px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.pf-home-tx-card.income .pf-home-tx-amount,
.pf-home-tx-group-title .income {
    color: #4ade80;
}
.pf-home-tx-card.expense .pf-home-tx-amount,
.pf-home-tx-group-title .expense {
    color: #f87171;
}
.pf-home-tx-consider {
    padding: 6px;
    cursor: pointer;
}
.pf-home-tx-consider input {
    cursor: pointer;
    accent-color: #3b82f6;
}
.pf-home-card-empty {
    padding: 24px;
    opacity: 0.7;
    text-align: center;
}
body.pf-home-v1 #accountsListTree > div {
    background: #191b20;
}
body.pf-home-v1 #sidebarPanel {
    background: #0c0d10;
}
body.pf-home-v1 #centralMainView {
    background: #0c0d10;
}
@media (max-width: 1050px) {
    .pf-home-tx-account {
        display: none;
    }
    .pf-home-tx-amount {
        min-width: 95px;
    }
}

/* Acabamento dos cartões: hierarquia visual consistente com o esboço aprovado. */
body.pf-home-v1 .pf-home-tx-group {
    background: #17181c;
    border-color: #34363c;
    border-radius: 15px;
    box-shadow: 0 3px 12px rgb(0 0 0 / 12%);
}
body.pf-home-v1 .pf-home-tx-group-title {
    background: #202329;
    border: 0;
    color: inherit;
    min-height: 44px;
    padding: 10px 14px;
    cursor: pointer;
}
body.pf-home-v1 .pf-home-tx-group-title:hover {
    background: #272c36;
}
body.pf-home-v1 .pf-home-tx-group-title:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: -3px;
}
body.pf-home-v1 .pf-home-tx-group-icon {
    color: #75aaff;
    width: 17px;
    text-align: center;
}
body.pf-home-v1 .pf-home-tx-group-title small {
    font-weight: 500;
}
body.pf-home-v1 .pf-home-tx-card {
    background: #1b1d22;
    border-color: #30333a;
    border-radius: 11px;
    margin: 6px 9px;
    padding: 9px 12px;
    min-height: 56px;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}
body.pf-home-v1 .pf-home-tx-card:hover {
    background: #232936;
}
body.pf-home-v1 .pf-home-tx-icon {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    font-size: 17px;
}
body.pf-home-v1 .pf-home-tx-description strong {
    font-size: 12px;
    line-height: 1.4;
}
body.pf-home-v1 .pf-home-tx-description small {
    font-size: 11px;
}
body.pf-home-v1 .pf-home-tx-amount {
    font-size: 13px;
}
body.pf-home-v1 .pf-home-tx-consider input {
    width: 16px;
    height: 16px;
}
body.pf-home-v1 #accountsListTree > div {
    border-color: #34363c;
    border-radius: 15px;
}
body.pf-home-v1 #accountsListTree > div > div:first-child {
    background: #22252b;
}
body.pf-home-v1 .pf-home-kpi,
body.pf-home-v1 .pf-home-insight {
    border-color: #34363c;
}
@media (max-width: 1050px) {
    body.pf-home-v1 .pf-home-tx-card {
        gap: 8px;
        padding: 8px;
    }
    body.pf-home-v1 .pf-home-tx-amount {
        min-width: 92px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1 .pf-home-tx-card {
        transition: none;
    }
}

/* Visual 1 — formulários de lançamentos, contas e categorias.
   Escopo limitado à skin moderna; nenhuma regra de negócio é alterada. */
body.pf-home-v1:is(.dark, [class*="skin-"]) :is(#modalLancamento, #modalNovaConta, #modalCategorias) {
    background: rgb(0 0 0 / 68%);
    backdrop-filter: blur(4px);
}
body.pf-home-v1:is(.dark, [class*="skin-"]) :is(#modalLancamento, #modalNovaConta, #modalCategorias) > div {
    background: #181a1f;
    color: #f2f4f8;
    border: 1px solid #363a43;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
}
body.pf-home-v1:is(.dark, [class*="skin-"]) :is(#modalHeaderLancamento, #modalHeaderNovaConta, #modalHeaderCategorias) {
    background: linear-gradient(115deg, #1d2535, #20242c);
    color: #f4f7ff;
    border-bottom: 1px solid #36435b;
}
body.pf-home-v1:is(.dark, [class*="skin-"])
    :is(#modalLancamento, #modalNovaConta, #modalCategorias)
    :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    background: #111318;
    color: #f1f5f9;
    border: 1px solid #404653;
    border-radius: 9px;
    min-height: 34px;
}
body.pf-home-v1:is(.dark, [class*="skin-"])
    :is(#modalLancamento, #modalNovaConta, #modalCategorias)
    :is(input, select, textarea):focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
    border-color: #60a5fa;
}
body.pf-home-v1:is(.dark, [class*="skin-"]) :is(#modalLancamento, #modalNovaConta, #modalCategorias) label {
    color: #dbe2ec;
}
body.pf-home-v1:is(.dark, [class*="skin-"])
    :is(#modalLancamento, #modalNovaConta, #modalCategorias)
    :is(button, input, select, textarea) {
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1:is(.dark, [class*="skin-"])
        :is(#modalLancamento, #modalNovaConta, #modalCategorias)
        :is(button, input, select, textarea) {
        transition: none;
    }
}

/* Visual 1 — consolidação da tela principal: contas, lançamentos e ações. */
body.pf-home-v1 {
    --pf-home-panel: #101114;
    --pf-home-card: #1b1d22;
    --pf-home-border: #343740;
    --pf-v1-accent: #3b82f6;
}
body.pf-home-v1 #sidebarPanel {
    border-right: 1px solid #343740;
    background: #101114;
}
body.pf-home-v1 #sidebarPanel > div:nth-child(2) {
    background: linear-gradient(145deg, #1d222c, #191b20);
    border: 1px solid #3b4454;
    border-radius: 16px;
    padding: 16px 12px;
}
body.pf-home-v1 #accountsListTree > div {
    border: 1px solid #363942;
    background: #1b1d22;
    border-radius: 16px;
    padding: 9px;
}
body.pf-home-v1 #accountsListTree > div > div:first-child {
    background: #242831;
    border: 1px solid #343e51;
    color: #e9eef8;
    border-radius: 11px;
}
body.pf-home-v1 #accountsListTree > div > div:not(:first-child) {
    margin-top: 3px;
    padding-top: 7px;
    padding-bottom: 7px;
    border: 1px solid transparent;
}
body.pf-home-v1 #accountsListTree > div > div:not(:first-child):hover {
    border-color: #344d75;
    background: #252d3b;
}
body.pf-home-v1 .pf-home-tx-group {
    background: #17191e;
    border: 1px solid #363a43;
    border-radius: 16px;
}
body.pf-home-v1 .pf-home-tx-group-title {
    background: #22262e;
    border-bottom: 1px solid #363a43;
    padding: 12px 16px;
}
body.pf-home-v1 .pf-home-tx-card {
    background: #1d2026;
    border: 1px solid #363a43;
    border-radius: 12px;
    margin: 7px 10px;
    min-height: 62px;
}
body.pf-home-v1 .pf-home-tx-card.selected {
    background: #1d3455;
    border-color: #60a5fa;
    box-shadow: inset 3px 0 0 #3b82f6;
}
body.pf-home-v1 .pf-home-tx-icon {
    border-radius: 13px;
    background: #263a58;
    color: #93c5fd;
}
body.pf-home-v1 #rightSidebar {
    background: #121418;
    color: #e8edf6;
    border-left: 1px solid #353a43;
    padding: 16px 11px;
    gap: 11px;
}
body.pf-home-v1 #rightSidebar > button {
    min-height: 43px;
    border-radius: 12px;
    background: #20242c;
    color: #edf2fa;
    border: 1px solid #3a404b;
    box-shadow: none;
    font-weight: 600;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}
body.pf-home-v1 #rightSidebar > button:first-of-type {
    background: #1d4ed8;
    border-color: #3b82f6;
    color: #fff;
}
body.pf-home-v1 #rightSidebar > button:hover {
    background: #29384f;
    border-color: #60a5fa;
}
body.pf-home-v1 #rightSidebar > button:first-of-type:hover {
    background: #2563eb;
}
body.pf-home-v1 #rightSidebar > button:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}
body.pf-home-v1 #rightSidebar > button i {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #93c5fd;
}
body.pf-home-v1 #rightSidebar > button:first-of-type i {
    color: #fff;
}
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1 #rightSidebar > button {
        transition: none;
    }
}

/* Correção: o resumo é um contêiner real. Não usar display:contents,
   pois os elementos internos não devem competir na grade com os lançamentos. */
body.pf-home-v1 #viewLancamentos:not(.hidden) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
body.pf-home-v1 #pfModernOverview:not([hidden]) {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    max-height: 52%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 12px 12px;
    box-sizing: border-box;
}
body.pf-home-v1 #pfModernOverview .pf-home-overview-toolbar,
body.pf-home-v1 #pfModernOverview .pf-home-list-title {
    display: flex;
    position: static;
    width: auto;
    margin: 0;
    padding: 8px 4px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
body.pf-home-v1 #pfModernOverview .pf-home-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
body.pf-home-v1 #pfModernOverview .pf-home-insights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
body.pf-home-v1 #pfModernTransactionCards:not([hidden]) {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
}
@media (max-width: 1400px) {
    body.pf-home-v1 #pfModernOverview .pf-home-kpis,
    body.pf-home-v1 #pfModernOverview .pf-home-insights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 750px) {
    body.pf-home-v1 #pfModernOverview .pf-home-kpis,
    body.pf-home-v1 #pfModernOverview .pf-home-insights {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Visual 1 — composição de referência: KPIs baixos + gráficos estreitos à esquerda
   dos lançamentos. Posicionamento explícito impede a sobreposição anterior. */
@media (min-width: 1200px) {
    body.pf-home-v1 #viewLancamentos:not(.hidden) {
        display: grid !important;
        grid-template-columns: minmax(210px, 25%) minmax(0, 1fr);
        grid-template-rows: 94px 44px minmax(0, 1fr);
        gap: 9px 12px;
        padding: 9px 12px 12px;
        min-height: 0;
        overflow: hidden;
        align-items: stretch;
    }
    body.pf-home-v1 #viewLancamentos > #pfModernOverview:not([hidden]) {
        display: contents !important;
    }
    body.pf-home-v1 #pfModernOverview > .pf-home-kpis {
        grid-column: 1 / -1;
        grid-row: 1;
        display: grid;
        grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin: 0;
        min-width: 0;
    }
    body.pf-home-v1 #pfModernOverview .pf-home-kpi {
        min-height: 0;
        height: 94px;
        box-sizing: border-box;
        padding: 11px 13px;
    }
    body.pf-home-v1 #pfModernOverview .pf-home-kpi > strong {
        margin: 4px 0 2px;
        font-size: clamp(15px, 1.45vw, 23px);
    }
    body.pf-home-v1 #pfModernOverview .pf-home-kpi small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    body.pf-home-v1 #pfModernOverview > .pf-home-overview-toolbar {
        grid-column: 1;
        grid-row: 2;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        min-width: 0;
        padding: 0;
        font-size: 11px;
    }
    body.pf-home-v1 #pfModernOverview > .pf-home-overview-toolbar > span {
        display: none;
    }
    body.pf-home-v1 #pfModernOverview > .pf-home-list-title {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0 10px;
        border: 0;
        min-width: 0;
    }
    body.pf-home-v1 #pfModernOverview > #pfHomeInsights:not([hidden]) {
        grid-column: 1;
        grid-row: 3;
        display: flex !important;
        flex-direction: column;
        gap: 9px;
        margin: 0;
        min-width: 0;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
    }
    body.pf-home-v1 #pfModernOverview #pfHomeInsights > .pf-home-insight {
        flex: 0 0 auto;
        min-height: 105px;
        padding: 11px 12px;
    }
    body.pf-home-v1 #pfModernOverview #pfHomeInsights > .pf-home-categories {
        min-height: 180px;
    }
    body.pf-home-v1 #pfModernOverview #pfHomeInsights .pf-home-insight svg {
        height: 42px;
    }
    body.pf-home-v1 #viewLancamentos > #pfModernTransactionCards:not([hidden]) {
        grid-column: 2;
        grid-row: 3;
        display: flex;
        min-width: 0;
        min-height: 0;
        overflow-y: auto;
        margin: 0;
        padding: 0 2px 8px;
    }
    body.pf-home-v1 #viewLancamentos:has(#pfHomeInsights[hidden]) > #pfModernTransactionCards:not([hidden]) {
        grid-column: 1 / -1;
    }
    body.pf-home-v1 #viewLancamentos:has(#pfHomeInsights[hidden]) #pfModernOverview > .pf-home-list-title {
        grid-column: 2;
    }
    body.pf-home-v1 #viewLancamentos > .pf-modern-transactions-scroll {
        display: none !important;
    }
}

/* Visual 1 — refinamento conservador após aprovação da disposição em colunas.
   Não altera a lógica de recolher/exibir gráficos nem a estrutura de grade. */
@media (min-width: 1200px) {
    body.pf-home-v1 #viewLancamentos:not(.hidden) {
        grid-template-rows: 82px 40px minmax(0, 1fr);
        grid-template-columns: minmax(205px, 24%) minmax(0, 1fr);
    }
    body.pf-home-v1 #pfModernOverview .pf-home-kpi {
        height: 82px;
        padding: 9px 12px;
    }
    body.pf-home-v1 #pfModernOverview .pf-home-kpi > strong {
        margin: 3px 0 1px;
        line-height: 1.15;
    }
    body.pf-home-v1 #pfModernOverview #pfHomeInsights > .pf-home-insight {
        min-height: 96px;
        padding: 10px 11px;
    }
    body.pf-home-v1 #pfModernOverview #pfHomeInsights .pf-home-insight svg {
        height: 37px;
        margin-top: 2px;
    }
    body.pf-home-v1 #pfModernOverview #pfHomeInsights > .pf-home-categories {
        min-height: 168px;
    }
}
body.pf-home-v1 .pf-home-tx-group-title {
    min-height: 39px;
    padding: 8px 12px;
}
body.pf-home-v1 .pf-home-tx-card {
    min-height: 49px;
    padding: 7px 10px;
    margin: 5px 8px;
    gap: 10px;
}
body.pf-home-v1 .pf-home-tx-icon {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
    font-size: 16px;
}
body.pf-home-v1 .pf-home-tx-description {
    gap: 2px;
}
body.pf-home-v1 .pf-home-tx-account {
    max-width: 23%;
}
body.pf-home-v1 .pf-home-tx-consider input {
    accent-color: #3b82f6;
}
body.pf-home-v1 #accountsListTree > div {
    padding: 7px;
}
body.pf-home-v1 #accountsListTree > div > div:first-child {
    padding: 8px;
}
body.pf-home-v1 #rightSidebar > button {
    min-height: 41px;
    border-radius: 11px;
}

/* Visual 1 — acabamento dos painéis laterais, sem alterar estrutura ou eventos. */
body.pf-home-v1 #sidebarPanel {
    background: linear-gradient(180deg, #151b24 0%, #101318 100%);
}
body.pf-home-v1 #accountsListTree {
    scrollbar-width: thin;
    scrollbar-color: #465367 transparent;
}
body.pf-home-v1 #accountsListTree > div {
    border-color: #394655;
    background: linear-gradient(155deg, #202a35, #181e27);
    box-shadow: 0 4px 12px rgb(0 0 0 / 12%);
}
body.pf-home-v1 #accountsListTree > div > div:first-child {
    background: linear-gradient(90deg, #213c4b, #202b38);
    border-color: #3b5264;
}
body.pf-home-v1 #accountsListTree > div > div:not(:first-child) {
    border-radius: 8px;
    transition:
        background-color 150ms ease,
        border-color 150ms ease;
}
body.pf-home-v1 #accountsListTree input[type="checkbox"] {
    accent-color: #12b9c3;
}
body.pf-home-v1 #rightSidebar {
    background: linear-gradient(180deg, #151b24, #101318);
}
body.pf-home-v1 #rightSidebar > button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding-inline: 13px;
    text-align: left;
    border-color: #3d4b5b;
    background: linear-gradient(125deg, #222d39, #1b232e);
}
body.pf-home-v1 #rightSidebar > button:first-of-type {
    background: linear-gradient(125deg, #087e9d, #096f88);
    border-color: #13a8b6;
}
body.pf-home-v1 #rightSidebar > button:first-of-type:hover {
    background: linear-gradient(125deg, #0b95b0, #087e9d);
}
body.pf-home-v1 #rightSidebar > button:not(:first-of-type):hover {
    background: #2a3949;
}
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1 #accountsListTree > div > div:not(:first-child) {
        transition: none;
    }
}

/* Visual 1: o saldo já está no KPI; o Clássico conserva o cabeçalho original. */
body.pf-home-v1 #sidebarPanel > div:nth-child(2) {
    display: none !important;
}
body.pf-home-v1 #accountsListTree {
    padding-top: 5px;
}
/* Paleta final: grafite e azul, sem turquesa nos controles estruturais. */
body.pf-home-v1 #accountsListTree input[type="checkbox"] {
    accent-color: #3b82f6;
}
body.pf-home-v1 #accountsListTree > div:not(.pf-v1-select-all) > div:first-child {
    background: linear-gradient(90deg, #202b3e, #1d2633);
    border-color: #344761;
}
body.pf-home-v1 #rightSidebar > button:first-of-type {
    background: linear-gradient(125deg, #1d4ed8, #1e40af);
    border-color: #3b82f6;
}
body.pf-home-v1 #rightSidebar > button:first-of-type:hover {
    background: #2563eb;
}

/* Visual 1: paleta unificada e acabamento dos gráficos, sem mudanças de lógica. */
body.pf-home-v1 {
    --pf-v1-accent: #2563eb;
    --pf-v1-panel-border: #374151;
}
body.pf-home-v1 #rightSidebar > button:first-of-type {
    background: linear-gradient(115deg, #1d4ed8, #2563eb);
    border-color: #3b82f6;
}
body.pf-home-v1 #rightSidebar > button:first-of-type:hover {
    background: #2563eb;
}
body.pf-home-v1 #accountsListTree input[type="checkbox"],
body.pf-home-v1 #pfModernTransactionCards input[type="checkbox"] {
    accent-color: #3b82f6;
}
body.pf-home-v1 #accountsListTree > div > div:first-child {
    background: linear-gradient(90deg, #1d2b42, #202735);
    border-color: #3b4a63;
}
body.pf-home-v1 #pfModernOverview #pfHomeInsights > .pf-home-insight {
    background: linear-gradient(145deg, #202936, #1b2029);
    border: 1px solid var(--pf-v1-panel-border);
    border-radius: 14px;
    box-shadow: 0 3px 10px rgb(0 0 0 / 15%);
}
body.pf-home-v1 #pfModernOverview #pfHomeInsights > .pf-home-insight:hover {
    border-color: #5278ae;
}
body.pf-home-v1 #pfModernOverview #pfHomeInsights .pf-home-insight > span {
    color: #dbe4f0;
    font-weight: 650;
}
body.pf-home-v1 #pfModernOverview #pfHomeInsights .pf-home-insight > strong {
    color: #f4f7fb;
    font-variant-numeric: tabular-nums;
    margin-top: 5px;
}
body.pf-home-v1 #pfModernOverview #pfHomeInsights .pf-home-progress {
    height: 5px;
    background: #394454;
}
body.pf-home-v1 #pfModernOverview #pfHomeInsights .pf-home-progress > span {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}
body.pf-home-v1 #pfModernOverview .pf-home-insights-toggle {
    border-color: #39465a;
    background: #202733;
    color: #e5edf8;
}
body.pf-home-v1 #pfModernOverview .pf-home-insights-toggle:hover {
    background: #29364a;
    border-color: #60a5fa;
}

/* Visual 1 — ajuste aprovado: cabeçalhos em grafite azulado discreto.
   Preserva as linhas das contas, ícones existentes, seleção e layout. */
body.pf-home-v1 #accountsListTree > div {
    background: linear-gradient(155deg, #1d222a, #181c23);
    border-color: #353d49;
}
body.pf-home-v1 #accountsListTree > div > div:first-child {
    background: linear-gradient(90deg, #222730, #1e232b);
    border-color: #3a434f;
    color: #f0f3f8;
}
body.pf-home-v1 #accountsListTree > div > div:not(:first-child) {
    background-color: #111318;
}
body.pf-home-v1 #accountsListTree > div > div:not(:first-child):hover {
    background-color: #222d3c;
    border-color: #3b5375;
}
body.pf-home-v1 #accountsListTree input[type="checkbox"] {
    accent-color: #3b82f6;
}

/* Visual 1: cartões de lançamentos e gráficos mais próximos do esboço.
   Apenas skins escuras; o ajuste das skins claras será tratado separadamente. */
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-card {
    border-radius: 11px;
    border-color: #343d4b;
    background: #1b2028;
    transition:
        background-color 140ms ease,
        border-color 140ms ease;
}
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-card:hover {
    background: #242c38;
    border-color: #4a6387;
}
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-card.selected {
    background: #1d3555;
    border-color: #60a5fa;
}
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-description strong {
    color: #f1f5f9;
    line-height: 1.25;
}
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-description small {
    color: #aeb9c9;
}
body.pf-home-v1 #pfModernOverview #pfHomeInsights svg {
    display: block;
    width: 100%;
    overflow: visible;
}
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-card {
        transition: none;
    }
}

/* Visual 1 — compatibilidade com skins claras.
   Escopo explícito: não altera o Clássico nem as skins dark/pro-mode. */
body.pf-home-v1:not(.dark):not(.pro-mode) {
    --pf-home-panel: #f3f6fb;
    --pf-home-card: #ffffff;
    --pf-home-border: #d6deea;
    --pf-v1-panel-border: #d6deea;
    color: #1e293b;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #sidebarPanel,
body.pf-home-v1:not(.dark):not(.pro-mode) #rightSidebar {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #d6deea;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #accountsListTree > div {
    background: #ffffff;
    border-color: #d6deea;
    box-shadow: 0 2px 8px rgb(15 23 42 / 6%);
}
body.pf-home-v1:not(.dark):not(.pro-mode) #accountsListTree > div > div:first-child {
    background: linear-gradient(90deg, #eaf1fb, #f2f6fc);
    border-color: #c8d7ec;
    color: #1e293b;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #accountsListTree > div > div:not(:first-child) {
    background: #f8fafc;
    color: #1e293b;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #accountsListTree > div > div:not(:first-child):hover {
    background: #eaf1fb;
    border-color: #93b4e8;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #rightSidebar > button:not(:first-of-type) {
    background: #ffffff;
    color: #1e293b;
    border-color: #cbd5e1;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #rightSidebar > button:not(:first-of-type):hover {
    background: #eaf1fb;
    border-color: #93b4e8;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernOverview .pf-home-kpi:not(.pf-home-balance),
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernOverview #pfHomeInsights > .pf-home-insight {
    background: #ffffff;
    color: #1e293b;
    border-color: #d6deea;
    box-shadow: 0 2px 8px rgb(15 23 42 / 5%);
}
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernOverview #pfHomeInsights .pf-home-insight > span,
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernOverview #pfHomeInsights .pf-home-insight > strong {
    color: #1e293b;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernOverview .pf-home-insights-toggle {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernOverview .pf-home-insights-toggle:hover {
    background: #eaf1fb;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernTransactionCards .pf-home-tx-group {
    background: #ffffff;
    border-color: #d6deea;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernTransactionCards .pf-home-tx-group-title {
    background: #edf2f9;
    color: #1e293b;
    border-color: #d6deea;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernTransactionCards .pf-home-tx-card {
    background: #f8fafc;
    color: #1e293b;
    border-color: #d6deea;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernTransactionCards .pf-home-tx-card:hover {
    background: #eaf1fb;
    border-color: #93b4e8;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernTransactionCards .pf-home-tx-card.selected {
    background: #dbeafe;
    border-color: #3b82f6;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernTransactionCards .pf-home-tx-description strong {
    color: #172033;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernTransactionCards .pf-home-tx-description small {
    color: #526174;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernTransactionCards .pf-home-tx-account {
    color: #526174;
}

/* Visual 1: refinamento final dos cartões, mantendo a skin responsável pela paleta. */
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-description {
    min-width: 0;
}
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-description strong,
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-description small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-account {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-amount {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-card:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* Visual 1 — subtelas: tratamento consistente para skins claras e escuras.
   Não altera dimensões, movimentação, eventos ou persistência dos modais. */
body.pf-home-v1 :is(#modalLancamento, #modalNovaConta, #modalCategorias) {
    --pf-form-bg: #fff;
    --pf-form-field: #f8fafc;
    --pf-form-ink: #1e293b;
    --pf-form-border: #cbd5e1;
    --pf-form-header: #1d4ed8;
}
body.pf-home-v1:is(.dark, .pro-mode) :is(#modalLancamento, #modalNovaConta, #modalCategorias) {
    --pf-form-bg: #1b1d22;
    --pf-form-field: #111318;
    --pf-form-ink: #f1f5f9;
    --pf-form-border: #404653;
    --pf-form-header: #1d3557;
}
body.pf-home-v1 :is(#modalLancamento, #modalNovaConta, #modalCategorias) > div {
    background: var(--pf-form-bg);
    color: var(--pf-form-ink);
    border: 1px solid var(--pf-form-border);
    border-radius: 15px;
    box-shadow: 0 18px 55px rgb(0 0 0 / 30%);
}
body.pf-home-v1 :is(#modalHeaderLancamento, #modalHeaderNovaConta, #modalHeaderCategorias) {
    background: var(--pf-form-header);
    border-bottom: 1px solid var(--pf-form-border);
    color: #fff;
}
body.pf-home-v1
    :is(#modalLancamento, #modalNovaConta, #modalCategorias)
    :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    background: var(--pf-form-field);
    color: var(--pf-form-ink);
    border: 1px solid var(--pf-form-border);
    border-radius: 8px;
}
body.pf-home-v1 :is(#modalLancamento, #modalNovaConta, #modalCategorias) :is(input, select, textarea):focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
}
body.pf-home-v1 :is(#modalLancamento, #modalNovaConta, #modalCategorias) label {
    color: var(--pf-form-ink);
}
body.pf-home-v1 :is(#modalLancamento, #modalNovaConta, #modalCategorias) input[type="checkbox"] {
    accent-color: #3b82f6;
}

/* Visual 1 — componentes reais dos cadastros e formulários (etapa 1).
   Seletores restritos ao Visual 1; eventos e IDs originais preservados. */
body.pf-home-v1 :is(#modalGerenciarContas, #modalCategorias, #modalNovaConta, #modalLancamento) {
    --v1-form-surface: #f8fafc;
    --v1-form-card: #ffffff;
    --v1-form-text: #1e293b;
    --v1-form-muted: #64748b;
    --v1-form-border: #d5deeb;
    --v1-form-hover: #edf4ff;
    --v1-form-accent: #2563eb;
}
body.pf-home-v1.dark :is(#modalGerenciarContas, #modalCategorias, #modalNovaConta, #modalLancamento),
body.pf-home-v1.pro-mode :is(#modalGerenciarContas, #modalCategorias, #modalNovaConta, #modalLancamento) {
    --v1-form-surface: #12151b;
    --v1-form-card: #20252e;
    --v1-form-text: #f1f5f9;
    --v1-form-muted: #abb8ca;
    --v1-form-border: #384252;
    --v1-form-hover: #29374b;
    --v1-form-accent: #60a5fa;
}
body.pf-home-v1 :is(#modalGerenciarContas, #modalCategorias, #modalNovaConta, #modalLancamento) > div {
    background: var(--v1-form-surface) !important;
    color: var(--v1-form-text) !important;
    border: 1px solid var(--v1-form-border) !important;
    border-radius: 18px !important;
}
body.pf-home-v1
    :is(#modalGerenciarContas, #modalCategorias, #modalNovaConta, #modalLancamento)
    :is(.admin-standard-body, form#formLancamento, form[onsubmit="handleSaveAccount(event)"]) {
    color: var(--v1-form-text);
    background: var(--v1-form-surface);
}
body.pf-home-v1 #accountsManageList {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 4px;
    border: 0 !important;
    background: transparent;
    max-height: min(50vh, 450px);
}
body.pf-home-v1 #accountsManageList > .pf-v1-manage-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--v1-form-border);
    border-radius: 13px;
    background: var(--v1-form-card);
    color: var(--v1-form-text);
}
body.pf-home-v1 #accountsManageList > .pf-v1-manage-card:hover {
    background: var(--v1-form-hover);
}
body.pf-home-v1 #accountsManageList .pf-v1-manage-info {
    min-width: 0;
    flex: 1;
}
body.pf-home-v1 #accountsManageList .pf-v1-manage-info > div:first-child {
    font-size: 13px;
    line-height: 1.4;
}
body.pf-home-v1 #accountsManageList .pf-v1-manage-info > div:last-child {
    color: var(--v1-form-muted);
    opacity: 1;
    font-size: 11px;
    line-height: 1.55;
}
body.pf-home-v1 #accountsManageList .pf-v1-manage-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--v1-form-accent);
    background: var(--v1-form-hover);
}
body.pf-home-v1 #accountsManageList .pf-v1-manage-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}
body.pf-home-v1 #accountsManageList .pf-v1-manage-actions button,
body.pf-home-v1 :is(#listCategoriesReceita, #listCategoriesGasto) button {
    width: 31px;
    height: 31px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--v1-form-border);
    border-radius: 9px;
    color: var(--v1-form-text);
    background: var(--v1-form-surface);
}
body.pf-home-v1 #accountsManageList .pf-v1-manage-actions button:hover,
body.pf-home-v1 :is(#listCategoriesReceita, #listCategoriesGasto) button:hover {
    background: var(--v1-form-hover);
    border-color: var(--v1-form-accent);
}
body.pf-home-v1 #modalCategorias form[onsubmit="handleSaveCategory(event)"] {
    padding: 14px;
    background: var(--v1-form-card);
    border: 1px solid var(--v1-form-border);
    border-radius: 14px;
    margin-bottom: 12px;
}
body.pf-home-v1 #modalCategorias :is(#listCategoriesReceita, #listCategoriesGasto) {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
body.pf-home-v1 #modalCategorias :is(#listCategoriesReceita, #listCategoriesGasto) > li {
    background: var(--v1-form-card);
    color: var(--v1-form-text);
    border: 1px solid var(--v1-form-border);
    border-radius: 11px;
    padding: 9px 10px;
    min-height: 43px;
    gap: 8px;
}
body.pf-home-v1 #modalCategorias :is(#listCategoriesReceita, #listCategoriesGasto) > li:hover {
    background: var(--v1-form-hover);
}
body.pf-home-v1
    :is(#modalNovaConta, #modalLancamento, #modalCategorias)
    :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    background: var(--v1-form-card) !important;
    color: var(--v1-form-text) !important;
    border: 1px solid var(--v1-form-border) !important;
    border-radius: 9px;
    min-height: 35px;
}
body.pf-home-v1 :is(#modalNovaConta, #modalLancamento, #modalCategorias) :is(input, select, textarea):focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
}
body.pf-home-v1 :is(#modalNovaConta, #modalLancamento, #modalCategorias) label {
    color: var(--v1-form-text) !important;
}
@media (max-width: 640px) {
    body.pf-home-v1 #accountsManageList > .pf-v1-manage-card {
        flex-wrap: wrap;
    }
    body.pf-home-v1 #accountsManageList .pf-v1-manage-actions {
        margin-left: auto;
    }
}

/* Visual 1 — segunda etapa: formulários de lançamentos, contas e categorias.
   Estilos limitados aos modais existentes; mantém seus eventos e redimensionamento. */
body.pf-home-v1 :is(#modalLancamento, #modalNovaConta, #modalCategorias) {
    --v1-input-height: 39px;
}
body.pf-home-v1 :is(#modalLancamento, #modalNovaConta, #modalCategorias) > .admin-standard-panel,
body.pf-home-v1 #modalLancamento > div {
    box-shadow: 0 24px 72px rgb(0 0 0 / 38%);
    border-radius: 17px;
}
body.pf-home-v1
    :is(#modalLancamento, #modalNovaConta, #modalCategorias)
    :is(#formLancamento, form[onsubmit="handleSaveAccount(event)"], .admin-standard-body) {
    padding: 18px;
}
body.pf-home-v1 :is(#modalLancamento, #modalNovaConta) form > .grid,
body.pf-home-v1 #modalCategorias form > .flex {
    gap: 12px;
}
body.pf-home-v1
    :is(#modalLancamento, #modalNovaConta, #modalCategorias)
    :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    min-height: var(--v1-input-height);
    padding: 8px 11px;
    font-size: 13px;
    box-sizing: border-box;
}
body.pf-home-v1 :is(#modalLancamento, #modalNovaConta, #modalCategorias) textarea {
    min-height: 72px;
    resize: vertical;
}
body.pf-home-v1 :is(#modalLancamento, #modalNovaConta, #modalCategorias) label {
    display: block;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.01em;
    margin-bottom: 6px;
}
body.pf-home-v1 :is(#modalLancamento, #modalNovaConta, #modalCategorias) :is(input, select, textarea):disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
body.pf-home-v1 :is(#modalLancamento, #modalNovaConta, #modalCategorias) button {
    border-radius: 10px;
}
body.pf-home-v1 :is(#modalHeaderLancamento, #modalHeaderNovaConta) {
    min-height: 59px;
    padding: 12px 18px;
    font-size: 16px;
    letter-spacing: 0.01em;
}
body.pf-home-v1 :is(#modalHeaderLancamento, #modalHeaderNovaConta) > button {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 24%);
    background: rgb(255 255 255 / 10%);
}
body.pf-home-v1 #modalCategorias form[onsubmit="handleSaveCategory(event)"] {
    padding: 16px;
    margin-bottom: 15px;
}
body.pf-home-v1 #modalCategorias :is(#listCategoriesReceita, #listCategoriesGasto) > li {
    min-height: 50px;
    padding: 11px 13px;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}
body.pf-home-v1 #modalCategorias :is(#listCategoriesReceita, #listCategoriesGasto) > li:hover {
    border-color: var(--v1-form-accent);
    background: var(--v1-form-hover);
}
@media (max-width: 650px) {
    body.pf-home-v1
        :is(#modalLancamento, #modalNovaConta, #modalCategorias)
        :is(#formLancamento, form[onsubmit="handleSaveAccount(event)"], .admin-standard-body) {
        padding: 12px;
    }
    body.pf-home-v1 #modalCategorias form > .flex {
        flex-wrap: wrap;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1 #modalCategorias :is(#listCategoriesReceita, #listCategoriesGasto) > li {
        transition: none;
    }
}

/* Visual 1 — gerenciamentos de apoio: backup, menu, colunas e importação.
   Estilos visuais isolados; mantém handlers, drag, resize e persistência. */
body.pf-home-v1 :is(#modalGestaoBackup, #modalOcultarBotoesMenu, #modalGerenciarColunas, #modalImportarLegado) {
    --pf-v1-dialog-bg: #f5f7fb;
    --pf-v1-dialog-card: #ffffff;
    --pf-v1-dialog-text: #1e293b;
    --pf-v1-dialog-muted: #526174;
    --pf-v1-dialog-border: #d6deea;
    --pf-v1-dialog-hover: #eaf1fb;
    --pf-v1-dialog-accent: #2563eb;
}
body.pf-home-v1:is(.dark, .pro-mode)
    :is(#modalGestaoBackup, #modalOcultarBotoesMenu, #modalGerenciarColunas, #modalImportarLegado) {
    --pf-v1-dialog-bg: #14171d;
    --pf-v1-dialog-card: #20252e;
    --pf-v1-dialog-text: #f1f5f9;
    --pf-v1-dialog-muted: #aeb9c9;
    --pf-v1-dialog-border: #3b4554;
    --pf-v1-dialog-hover: #29374b;
    --pf-v1-dialog-accent: #60a5fa;
}
body.pf-home-v1
    :is(#modalGestaoBackup, #modalOcultarBotoesMenu, #modalGerenciarColunas, #modalImportarLegado)
    > .admin-standard-panel {
    background: var(--pf-v1-dialog-bg);
    color: var(--pf-v1-dialog-text);
    border: 1px solid var(--pf-v1-dialog-border);
    border-radius: 17px;
    box-shadow: 0 22px 64px rgb(0 0 0 / 30%);
}
body.pf-home-v1
    :is(#modalGestaoBackup, #modalOcultarBotoesMenu, #modalGerenciarColunas, #modalImportarLegado)
    > .admin-standard-panel
    > div:first-child {
    background: linear-gradient(110deg, #1c3559, #263a54);
    color: #ffffff;
    border-bottom: 1px solid #4c6080;
    padding-block: 13px;
}
body.pf-home-v1
    :is(#modalGestaoBackup, #modalOcultarBotoesMenu, #modalGerenciarColunas, #modalImportarLegado)
    .admin-standard-body {
    color: var(--pf-v1-dialog-text);
}
body.pf-home-v1
    :is(#modalGestaoBackup, #modalOcultarBotoesMenu, #modalGerenciarColunas, #modalImportarLegado)
    :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    background: var(--pf-v1-dialog-card);
    color: var(--pf-v1-dialog-text);
    border: 1px solid var(--pf-v1-dialog-border);
    border-radius: 9px;
    min-height: 37px;
}
body.pf-home-v1
    :is(#modalGestaoBackup, #modalOcultarBotoesMenu, #modalGerenciarColunas, #modalImportarLegado)
    :is(input, select, textarea):focus-visible {
    outline: 2px solid var(--pf-v1-dialog-accent);
    outline-offset: 1px;
}
body.pf-home-v1
    :is(#modalGestaoBackup, #modalOcultarBotoesMenu, #modalGerenciarColunas, #modalImportarLegado)
    :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: #3b82f6;
}
body.pf-home-v1 :is(#modalGestaoBackup, #modalOcultarBotoesMenu, #modalGerenciarColunas, #modalImportarLegado) button {
    border-radius: 9px;
}
body.pf-home-v1
    :is(#modalGestaoBackup, #modalOcultarBotoesMenu, #modalGerenciarColunas, #modalImportarLegado)
    :is(button, input, select, textarea):focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
body.pf-home-v1
    :is(#modalGestaoBackup, #modalOcultarBotoesMenu, #modalGerenciarColunas, #modalImportarLegado)
    :is(label, p, span) {
    overflow-wrap: anywhere;
}

/* Visual 1 — centrais de Administração, Ferramentas, Configurações,
   Planejamento e Inteligência. Sem alterações de lógica ou dimensionamento. */
body.pf-home-v1
    :is(
        #administrationControl,
        #modalFerramentas,
        #modalSettingsCenter,
        #financialPlanningWindow,
        #financialIntelligenceWindow
    ) {
    --v1-center-surface: #f4f6fa;
    --v1-center-card: #ffffff;
    --v1-center-text: #1e293b;
    --v1-center-muted: #536477;
    --v1-center-line: #d8e0eb;
    --v1-center-hover: #eaf1fb;
}
body.pf-home-v1:is(.dark, .pro-mode)
    :is(
        #administrationControl,
        #modalFerramentas,
        #modalSettingsCenter,
        #financialPlanningWindow,
        #financialIntelligenceWindow
    ) {
    --v1-center-surface: #14171c;
    --v1-center-card: #20242c;
    --v1-center-text: #eaf0f8;
    --v1-center-muted: #b0bece;
    --v1-center-line: #394351;
    --v1-center-hover: #2a3443;
}
body.pf-home-v1 :is(#administrationControl, #modalFerramentas, #modalSettingsCenter) .admin-window,
body.pf-home-v1 :is(#financialPlanningWindow, #financialIntelligenceWindow) .fp-window {
    background: var(--v1-center-surface);
    color: var(--v1-center-text);
    border: 1px solid var(--v1-center-line);
    border-radius: 17px;
    box-shadow: 0 24px 64px rgb(0 0 0 / 25%);
    overflow: hidden;
}
body.pf-home-v1 :is(#administrationControl, #modalFerramentas, #modalSettingsCenter) .admin-header,
body.pf-home-v1 :is(#financialPlanningWindow, #financialIntelligenceWindow) .fp-header {
    background: linear-gradient(115deg, #1d2c44, #263b59);
    color: #f8fafc;
    border-bottom: 1px solid #405674;
}
body.pf-home-v1 :is(#administrationControl, #modalFerramentas, #modalSettingsCenter) .admin-content,
body.pf-home-v1 :is(#financialPlanningWindow, #financialIntelligenceWindow) .fp-content {
    background: var(--v1-center-surface);
    color: var(--v1-center-text);
}
body.pf-home-v1 :is(#administrationControl, #modalFerramentas, #modalSettingsCenter) .admin-module-card {
    background: var(--v1-center-card);
    color: var(--v1-center-text);
    border: 1px solid var(--v1-center-line);
    border-radius: 14px;
    box-shadow: 0 3px 10px rgb(0 0 0 / 8%);
    transition:
        border-color 140ms ease,
        background-color 140ms ease,
        transform 140ms ease;
}
body.pf-home-v1 :is(#administrationControl, #modalFerramentas, #modalSettingsCenter) .admin-module-card:hover {
    background: var(--v1-center-hover);
    border-color: #5b85c2;
    transform: translateY(-1px);
}
body.pf-home-v1 :is(#administrationControl, #modalFerramentas, #modalSettingsCenter) .admin-module-icon {
    color: #60a5fa;
    background: rgb(59 130 246 / 12%);
    border-radius: 11px;
}
body.pf-home-v1 :is(#administrationControl, #modalFerramentas, #modalSettingsCenter) .admin-module-description {
    color: var(--v1-center-muted);
}
body.pf-home-v1 :is(#financialPlanningWindow, #financialIntelligenceWindow) .fp-tabs {
    background: var(--v1-center-card);
    border-bottom: 1px solid var(--v1-center-line);
}
body.pf-home-v1
    :is(
        #administrationControl,
        #modalFerramentas,
        #modalSettingsCenter,
        #financialPlanningWindow,
        #financialIntelligenceWindow
    )
    :is(button, a):focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1 :is(#administrationControl, #modalFerramentas, #modalSettingsCenter) .admin-module-card {
        transition: none;
    }
    body.pf-home-v1 :is(#administrationControl, #modalFerramentas, #modalSettingsCenter) .admin-module-card:hover {
        transform: none;
    }
}

/* Visual 1 · Central de Ajuda: componentes internos e navegação modernizados.
   Escopo restrito ao Visual 1; não altera listeners ou persistência da janela. */
body.pf-home-v1 #ajudaDialog {
    --v1-help-surface: #f4f7fc;
    --v1-help-card: #fff;
    --v1-help-ink: #1c2a40;
    --v1-help-line: #d7e0ed;
    --v1-help-hover: #e7effb;
    border: 1px solid var(--v1-help-line);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgb(0 0 0 / 28%);
    background: var(--v1-help-surface);
    color: var(--v1-help-ink);
}
body.pf-home-v1:is(.dark, .pro-mode) #ajudaDialog {
    --v1-help-surface: #151a22;
    --v1-help-card: #202833;
    --v1-help-ink: #e9eff9;
    --v1-help-line: #374355;
    --v1-help-hover: #29394e;
}
body.pf-home-v1 #modalHeaderAjuda {
    background: linear-gradient(110deg, #172e4e, #294669) !important;
    border-bottom: 1px solid #49617f;
}
body.pf-home-v1 #ajudaMenu {
    background: var(--v1-help-card) !important;
    color: var(--v1-help-ink);
    border-right: 1px solid var(--v1-help-line);
}
body.pf-home-v1 #ajudaConteudo {
    background: var(--v1-help-surface) !important;
    color: var(--v1-help-ink);
}
body.pf-home-v1 #ajudaConteudo :is(section, article) {
    border-color: var(--v1-help-line);
}
body.pf-home-v1 #ajudaConteudo :is(section, article).rounded,
body.pf-home-v1 #ajudaConteudo :is(section, article).rounded-lg {
    background: var(--v1-help-card);
    border-radius: 12px;
}
body.pf-home-v1 #modalAjuda :is(input, select, textarea) {
    border: 1px solid var(--v1-help-line);
    border-radius: 9px;
    background: var(--v1-help-card);
    color: var(--v1-help-ink);
}
body.pf-home-v1 #modalAjuda :is(button, a):focus-visible,
body.pf-home-v1 #modalAjuda :is(input, select, textarea):focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
body.pf-home-v1 #ajudaMenu button:not(:disabled) {
    border-radius: 9px;
    transition: background-color 140ms ease;
}
body.pf-home-v1 #ajudaMenu button:not(:disabled):hover {
    background: var(--v1-help-hover);
}
@media (max-width: 700px) {
    body.pf-home-v1 #ajudaDialog {
        min-width: min(520px, 96vw) !important;
        max-width: 96vw !important;
    }
    body.pf-home-v1 #modalHeaderAjuda {
        padding-inline: 14px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1 #ajudaMenu button {
        transition: none;
    }
}

/* Visual 1 — modernização dos três editores internos de Configurações.
   Mantém os IDs, eventos, redimensionamento e o Visual Clássico. */
body.pf-home-v1 :is(#modalConfig, #modalFontSettings, #modalMenuIconSettings) {
    --v1-editor-surface: #f3f6fb;
    --v1-editor-card: #ffffff;
    --v1-editor-ink: #202d41;
    --v1-editor-muted: #57677e;
    --v1-editor-line: #d5deeb;
    --v1-editor-accent: #2563eb;
}
body.pf-home-v1:is(.dark, .pro-mode) :is(#modalConfig, #modalFontSettings, #modalMenuIconSettings) {
    --v1-editor-surface: #151b24;
    --v1-editor-card: #212b38;
    --v1-editor-ink: #f0f5fb;
    --v1-editor-muted: #b7c5d8;
    --v1-editor-line: #3b4a5e;
    --v1-editor-accent: #75afff;
}
body.pf-home-v1 :is(#modalConfig, #modalFontSettings, #modalMenuIconSettings) .settings-standard-panel {
    background: var(--v1-editor-surface);
    color: var(--v1-editor-ink);
    border: 1px solid var(--v1-editor-line);
    border-radius: 18px;
    box-shadow: 0 24px 65px rgb(0 0 0 / 28%);
}
body.pf-home-v1 :is(#modalConfig, #modalFontSettings, #modalMenuIconSettings) .settings-standard-body {
    color: var(--v1-editor-ink);
    padding: clamp(12px, 2vw, 22px);
}
body.pf-home-v1 :is(#modalConfig, #modalFontSettings, #modalMenuIconSettings) .settings-standard-header {
    background: linear-gradient(110deg, #172c49, #2a4769);
    border-bottom: 1px solid #506788;
    color: #fff;
    padding: 13px 18px;
}
body.pf-home-v1
    :is(#modalConfig, #modalFontSettings, #modalMenuIconSettings)
    .settings-standard-body
    > :is(div, section).border {
    background: var(--v1-editor-card) !important;
    border: 1px solid var(--v1-editor-line) !important;
    border-radius: 13px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 5%);
}
body.pf-home-v1
    :is(#modalConfig, #modalFontSettings, #modalMenuIconSettings)
    .settings-standard-body
    > :is(div, section).border
    > :is(h4, h5, label):first-child {
    color: var(--v1-editor-ink) !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 9px;
}
body.pf-home-v1
    :is(#modalConfig, #modalFontSettings, #modalMenuIconSettings)
    :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    background: var(--v1-editor-card);
    border: 1px solid var(--v1-editor-line);
    color: var(--v1-editor-ink);
    border-radius: 9px;
    min-height: 36px;
}
body.pf-home-v1
    :is(#modalConfig, #modalFontSettings, #modalMenuIconSettings)
    :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: #3b82f6;
}
body.pf-home-v1
    :is(#modalConfig, #modalFontSettings, #modalMenuIconSettings)
    :is(button, input, select, textarea):focus-visible {
    outline: 2px solid var(--v1-editor-accent);
    outline-offset: 2px;
}
body.pf-home-v1 :is(#modalConfig, #modalFontSettings, #modalMenuIconSettings) button {
    border-radius: 9px;
}
@media (max-width: 640px) {
    body.pf-home-v1 :is(#modalConfig, #modalFontSettings, #modalMenuIconSettings) .settings-standard-body {
        padding: 11px;
    }
}

/* Visual 1 — etapa 7: gerenciamento de contas, Dock e histórico de versões.
   Sem alteração dos eventos ou da persistência das janelas. */
body.pf-home-v1 {
    --v1-utility-surface: #f4f7fc;
    --v1-utility-card: #ffffff;
    --v1-utility-text: #203149;
    --v1-utility-border: #d8e1ed;
    --v1-utility-muted: #54667d;
}
body.pf-home-v1:is(.dark, .pro-mode) {
    --v1-utility-surface: #151b24;
    --v1-utility-card: #222c39;
    --v1-utility-text: #edf4ff;
    --v1-utility-border: #3c4a5d;
    --v1-utility-muted: #b7c5d8;
}
body.pf-home-v1 #modalGerenciarContas .pf-v1-manage-toolbar {
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid var(--v1-utility-border);
    background: var(--v1-utility-card);
    border-radius: 13px;
}
body.pf-home-v1 #modalGerenciarContas .pf-v1-manage-toolbar p {
    color: var(--v1-utility-muted) !important;
    font-size: 12px;
    flex: 1 1 190px;
}
body.pf-home-v1 #modalGerenciarContas .pf-v1-manage-toolbar button {
    background: #2563eb;
    border-radius: 10px;
    min-height: 38px;
    padding-inline: 14px;
    box-shadow: 0 3px 10px rgb(37 99 235 / 18%);
}
body.pf-home-v1 #modalGerenciarContas .pf-v1-manage-toolbar button:hover {
    background: #1d4ed8;
}
body.pf-home-v1 #modalGerenciarContas .pf-v1-manage-list {
    border: 0;
    border-radius: 13px;
    background: transparent;
    max-height: min(55vh, 480px);
    padding: 3px;
    scrollbar-gutter: stable;
}
body.pf-home-v1 :is(#modalDockSettings, #versionsHistoryWindow) .admin-window {
    background: var(--v1-utility-surface);
    color: var(--v1-utility-text);
    border: 1px solid var(--v1-utility-border);
    border-radius: 18px;
    overflow: hidden;
}
body.pf-home-v1 :is(#modalDockSettings, #versionsHistoryWindow) .admin-header {
    background: linear-gradient(110deg, #182d4a, #29486c);
    color: #fff;
    border-bottom: 1px solid #4a6588;
}
body.pf-home-v1 :is(#modalDockSettings, #versionsHistoryWindow) .admin-intro {
    background: var(--v1-utility-card);
    border: 1px solid var(--v1-utility-border);
    border-radius: 14px;
    padding: clamp(14px, 2vw, 22px);
}
body.pf-home-v1 :is(#modalDockSettings, #versionsHistoryWindow) .admin-intro p {
    color: var(--v1-utility-muted);
}
body.pf-home-v1 #modalDockSettings :is(.dock-toggle, .dock-options) {
    background: var(--v1-utility-card);
    border: 1px solid var(--v1-utility-border);
    border-radius: 14px;
    padding: 16px;
    color: var(--v1-utility-text);
}
body.pf-home-v1 #modalDockSettings .dock-options:disabled {
    opacity: 0.62;
}
body.pf-home-v1 #modalDockSettings :is(select, input:not([type="checkbox"]):not([type="range"])) {
    background: var(--v1-utility-card);
    color: var(--v1-utility-text);
    border: 1px solid var(--v1-utility-border);
    border-radius: 9px;
}
body.pf-home-v1 #modalDockSettings input[type="checkbox"] {
    accent-color: #3b82f6;
}
body.pf-home-v1 #versionsHistoryWindow .versions-history-content {
    background: var(--v1-utility-card);
    color: var(--v1-utility-text);
    border: 1px solid var(--v1-utility-border);
    border-radius: 14px;
    padding: clamp(12px, 2vw, 20px);
}
body.pf-home-v1 :is(#modalDockSettings, #versionsHistoryWindow) :is(button, input, select):focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
@media (max-width: 620px) {
    body.pf-home-v1 #modalGerenciarContas .pf-v1-manage-toolbar button {
        width: 100%;
        justify-content: center;
    }
    body.pf-home-v1 :is(#modalDockSettings, #versionsHistoryWindow) .admin-intro {
        padding: 12px;
    }
}

/* Visual 1 | Consolidação das centrais e formulários — etapa 8.
   Apenas apresentação: nenhuma classe funcional ou handler é substituído. */
body.pf-home-v1 {
    --pf-v1-surface-light: #ffffff;
    --pf-v1-surface-muted-light: #f1f5f9;
    --pf-v1-stroke-light: #d8e0eb;
    --pf-v1-ink-light: #253347;
    --pf-v1-secondary-light: #53647b;
}

/* Centrais: Administração, Cadastros, Ferramentas e Configurações. */
body.pf-home-v1 :is(#administrationControl, #modalCadastros, #modalFerramentas, #modalSettingsCenter) {
    --pf-v1-center-card: var(--pf-v1-surface-light);
    --pf-v1-center-border: var(--pf-v1-stroke-light);
    --pf-v1-center-text: var(--pf-v1-ink-light);
    --pf-v1-center-muted: var(--pf-v1-secondary-light);
}
body.pf-home-v1:is(.dark, .pro-mode)
    :is(#administrationControl, #modalCadastros, #modalFerramentas, #modalSettingsCenter) {
    --pf-v1-center-card: #202732;
    --pf-v1-center-border: #3b485b;
    --pf-v1-center-text: #edf3fb;
    --pf-v1-center-muted: #b2c0d1;
}
body.pf-home-v1
    :is(#administrationControl, #modalCadastros, #modalFerramentas, #modalSettingsCenter)
    :is(.admin-module-card, .admin-detail-panel) {
    border: 1px solid var(--pf-v1-center-border);
    border-radius: 16px;
    background: var(--pf-v1-center-card);
    color: var(--pf-v1-center-text);
    box-shadow: 0 4px 15px rgb(10 24 43 / 8%);
}
body.pf-home-v1
    :is(#administrationControl, #modalCadastros, #modalFerramentas, #modalSettingsCenter)
    .admin-module-card {
    transition:
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
body.pf-home-v1
    :is(#administrationControl, #modalCadastros, #modalFerramentas, #modalSettingsCenter)
    .admin-module-card:hover {
    border-color: #588cdb;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgb(12 29 54 / 16%);
}
body.pf-home-v1
    :is(#administrationControl, #modalCadastros, #modalFerramentas, #modalSettingsCenter)
    :is(.admin-module-description, .admin-intro p) {
    color: var(--pf-v1-center-muted);
}
body.pf-home-v1
    :is(#administrationControl, #modalCadastros, #modalFerramentas, #modalSettingsCenter)
    .admin-module-card:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
}

/* Planejamento e Inteligência Financeira: guias, painéis e tabelas. */
body.pf-home-v1 :is(#financialPlanningWindow, #financialIntelligenceWindow) {
    --pf-v1-plan-card: #ffffff;
    --pf-v1-plan-border: #d8e0eb;
    --pf-v1-plan-text: #253347;
    --pf-v1-plan-muted: #52637a;
}
body.pf-home-v1:is(.dark, .pro-mode) :is(#financialPlanningWindow, #financialIntelligenceWindow) {
    --pf-v1-plan-card: #202732;
    --pf-v1-plan-border: #3b485b;
    --pf-v1-plan-text: #edf3fb;
    --pf-v1-plan-muted: #b5c2d3;
}
body.pf-home-v1 :is(#financialPlanningWindow, #financialIntelligenceWindow) :is(.fp-panel, .fp-tab) {
    border-radius: 13px;
}
body.pf-home-v1 :is(#financialPlanningWindow, #financialIntelligenceWindow) .fp-tab {
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease;
}
body.pf-home-v1 :is(#financialPlanningWindow, #financialIntelligenceWindow) .fp-tab:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
body.pf-home-v1
    :is(#financialPlanningWindow, #financialIntelligenceWindow)
    :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    border-radius: 9px;
    border: 1px solid var(--pf-v1-plan-border);
    min-height: 35px;
}
body.pf-home-v1 :is(#financialPlanningWindow, #financialIntelligenceWindow) :is(input, select, textarea):focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 1px;
}
body.pf-home-v1
    :is(#financialPlanningWindow, #financialIntelligenceWindow)
    :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: #3b82f6;
}

/* Subtelas de configuração e gerenciamento: blocos de formulário. */
body.pf-home-v1
    :is(
        #modalConfig,
        #modalFontSettings,
        #modalMenuIconSettings,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado
    ) {
    --pf-v1-form-card: #ffffff;
    --pf-v1-form-border: #d8e0eb;
    --pf-v1-form-text: #253347;
    --pf-v1-form-muted: #53647b;
}
body.pf-home-v1:is(.dark, .pro-mode)
    :is(
        #modalConfig,
        #modalFontSettings,
        #modalMenuIconSettings,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado
    ) {
    --pf-v1-form-card: #202732;
    --pf-v1-form-border: #3b485b;
    --pf-v1-form-text: #edf3fb;
    --pf-v1-form-muted: #b2c0d1;
}
body.pf-home-v1
    :is(
        #modalConfig,
        #modalFontSettings,
        #modalMenuIconSettings,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado
    )
    .admin-standard-body
    > :is(section, fieldset) {
    border: 1px solid var(--pf-v1-form-border);
    border-radius: 13px;
    padding: 12px;
    margin-block: 10px;
}
body.pf-home-v1
    :is(
        #modalConfig,
        #modalFontSettings,
        #modalMenuIconSettings,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado
    )
    :is(button, input, select, textarea):focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
body.pf-home-v1
    :is(
        #modalConfig,
        #modalFontSettings,
        #modalMenuIconSettings,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado
    )
    :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: #3b82f6;
}
body.pf-home-v1
    :is(
        #modalConfig,
        #modalFontSettings,
        #modalMenuIconSettings,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado
    )
    :is(button, select) {
    border-radius: 9px;
}

/* Acessibilidade: respeitar preferência por movimento reduzido. */
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1
        :is(#administrationControl, #modalCadastros, #modalFerramentas, #modalSettingsCenter)
        .admin-module-card,
    body.pf-home-v1 :is(#financialPlanningWindow, #financialIntelligenceWindow) .fp-tab {
        transition: none;
    }
    body.pf-home-v1
        :is(#administrationControl, #modalCadastros, #modalFerramentas, #modalSettingsCenter)
        .admin-module-card:hover {
        transform: none;
    }
}

/* Visual 1 — lote consolidado: layout interno de dez subtelas.
   Escopo por classe de corpo evita afetar o modo Clássico. */
body.pf-home-v1 .pf-v1-modern-body {
    --pf-v1-surface: #fff;
    --pf-v1-surface-muted: #f4f7fc;
    --pf-v1-stroke: #d8e1ee;
    --pf-v1-ink: #1f2e42;
    --pf-v1-subtle: #52647b;
    --pf-v1-focus: #2563eb;
    color: var(--pf-v1-ink);
}
body.pf-home-v1.dark .pf-v1-modern-body,
body.pf-home-v1.pro-mode .pf-v1-modern-body,
body.pf-home-v1[class*="skin-visual-exclusivo"] .pf-v1-modern-body {
    --pf-v1-surface: #202630;
    --pf-v1-surface-muted: #171c25;
    --pf-v1-stroke: #3b4758;
    --pf-v1-ink: #edf3fb;
    --pf-v1-subtle: #b4c1d2;
    --pf-v1-focus: #60a5fa;
}
body.pf-home-v1 .pf-v1-modern-body > :is(div, section, form):not(:last-child):not(.pf-v1-manage-toolbar) {
    border-radius: 14px;
}
body.pf-home-v1 :is(#modalConfig, #modalGestaoBackup) .pf-v1-modern-body > div:not(:last-child),
body.pf-home-v1 #modalConfig .pf-v1-modern-body > section,
body.pf-home-v1 #modalFontSettings .pf-v1-modern-body > div:first-child,
body.pf-home-v1 #modalImportarLegado .pf-v1-modern-body > div:not(:last-child) {
    background: var(--pf-v1-surface);
    border: 1px solid var(--pf-v1-stroke);
    border-radius: 14px;
    padding: 15px;
    box-shadow: 0 3px 12px rgb(0 0 0 / 5%);
}
body.pf-home-v1 :is(#modalOcultarBotoesMenu, #modalGerenciarColunas) .pf-v1-modern-body > div[id$="Manager"] {
    background: var(--pf-v1-surface-muted);
    border: 1px solid var(--pf-v1-stroke);
    border-radius: 14px;
    padding: 12px;
}
body.pf-home-v1
    .pf-v1-modern-body
    :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    border-radius: 9px;
    border: 1px solid var(--pf-v1-stroke);
    background-color: var(--pf-v1-surface);
    color: var(--pf-v1-ink);
    min-height: 36px;
}
body.pf-home-v1 .pf-v1-modern-body :is(input, select, textarea, button):focus-visible {
    outline: 2px solid var(--pf-v1-focus);
    outline-offset: 2px;
}
body.pf-home-v1 .pf-v1-modern-body :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: #3b82f6;
}
body.pf-home-v1 .pf-v1-modern-body :is(button, [role="button"]) {
    border-radius: 9px;
    transition:
        filter 0.15s ease,
        box-shadow 0.15s ease;
}
body.pf-home-v1 .pf-v1-modern-body button:hover {
    filter: brightness(1.08);
}
body.pf-home-v1 .pf-v1-modern-body :is(label, p) {
    overflow-wrap: anywhere;
}
body.pf-home-v1 .pf-v1-modern-body > :is(div, form) {
    min-width: 0;
}
body.pf-home-v1 #modalNovaConta .pf-v1-modern-body form > div:not(:last-child) {
    min-width: 0;
}
body.pf-home-v1 #modalCategorias .pf-v1-modern-body form {
    background: var(--pf-v1-surface-muted);
    border: 1px solid var(--pf-v1-stroke);
    padding: 14px;
    border-radius: 14px;
}
body.pf-home-v1 #modalGerenciarContas .pf-v1-manage-toolbar {
    gap: 12px;
    flex-wrap: wrap;
}
body.pf-home-v1 #modalGerenciarContas .pf-v1-manage-list {
    background: var(--pf-v1-surface-muted);
    border-color: var(--pf-v1-stroke);
    border-radius: 14px;
}
@media (max-width: 640px) {
    body.pf-home-v1 .pf-v1-modern-body {
        padding: 12px;
    }
    body.pf-home-v1 .pf-v1-modern-body :is(input, select, textarea) {
        max-width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1 .pf-v1-modern-body :is(button, [role="button"]) {
        transition: none;
    }
}

/* Visual 1 — revisão consolidada dos conteúdos dinâmicos e formulários de apoio.
   Escopo deliberado: nenhuma regra se aplica ao Visual Clássico. */
body.pf-home-v1 :is(#financialPlanningWindow, #financialIntelligenceWindow) {
    --pf-v1-panel-border: #d5dfeb;
    --pf-v1-panel-surface: #fff;
    --pf-v1-panel-muted: #f3f6fb;
    --pf-v1-panel-ink: #203149;
    --pf-v1-panel-accent: #2563eb;
}
body.pf-home-v1:is(.dark, .pro-mode) :is(#financialPlanningWindow, #financialIntelligenceWindow),
body.pf-home-v1[class*="skin-visual-exclusivo"] :is(#financialPlanningWindow, #financialIntelligenceWindow) {
    --pf-v1-panel-border: #3b4657;
    --pf-v1-panel-surface: #202630;
    --pf-v1-panel-muted: #171d26;
    --pf-v1-panel-ink: #ecf2fb;
    --pf-v1-panel-accent: #60a5fa;
}
body.pf-home-v1 :is(#financialPlanningWindow, #financialIntelligenceWindow) :is(.fp-panel, .fp-toolbar) {
    border-radius: 14px;
}
body.pf-home-v1
    :is(#financialPlanningWindow, #financialIntelligenceWindow)
    .fp-panel
    > :is(div, section, article):not(.fp-toolbar) {
    min-width: 0;
}
body.pf-home-v1
    :is(#financialPlanningWindow, #financialIntelligenceWindow)
    :is(#fpProjectionContent, #fpAlertsContent, #fpReportsContent)
    :is(table) {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-variant-numeric: tabular-nums;
}
body.pf-home-v1
    :is(#financialPlanningWindow, #financialIntelligenceWindow)
    :is(#fpProjectionContent, #fpAlertsContent, #fpReportsContent)
    :is(th, td) {
    padding: 10px 12px;
    border-bottom: 1px solid var(--pf-v1-panel-border);
}
body.pf-home-v1
    :is(#financialPlanningWindow, #financialIntelligenceWindow)
    :is(#fpProjectionContent, #fpAlertsContent, #fpReportsContent)
    th {
    background: var(--pf-v1-panel-muted);
    color: var(--pf-v1-panel-ink);
    font-weight: 700;
}
body.pf-home-v1
    :is(#financialPlanningWindow, #financialIntelligenceWindow)
    :is(#fpProjectionContent, #fpAlertsContent, #fpReportsContent)
    :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    border: 1px solid var(--pf-v1-panel-border);
    border-radius: 9px;
    background: var(--pf-v1-panel-surface);
    color: var(--pf-v1-panel-ink);
    min-height: 35px;
}
body.pf-home-v1
    :is(#financialPlanningWindow, #financialIntelligenceWindow)
    :is(input, select, textarea, button, [tabindex]):focus-visible {
    outline: 2px solid var(--pf-v1-panel-accent);
    outline-offset: 2px;
}
/* Administração, Cadastros, Ferramentas e Configurações: alinhamento de cartões. */
body.pf-home-v1
    :is(#administrationControl, #modalCadastros, #modalFerramentas, #modalSettingsCenter, #modalDockSettings)
    .admin-module-card {
    min-width: 0;
    overflow-wrap: anywhere;
    border-radius: 14px;
}
body.pf-home-v1
    :is(#administrationControl, #modalCadastros, #modalFerramentas, #modalSettingsCenter, #modalDockSettings)
    :is(button, a, input, select):focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
/* Subtelas: legibilidade e foco, sem interferir no arrastar/redimensionar. */
body.pf-home-v1
    :is(
        #modalGerenciarContas,
        #modalCategorias,
        #modalLancamento,
        #modalNovaConta,
        #modalAjuda,
        #modalConfig,
        #modalFontSettings,
        #modalImportarLegado,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas
    )
    :is(button, a, input, select, textarea):focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
body.pf-home-v1
    :is(
        #modalGerenciarContas,
        #modalCategorias,
        #modalLancamento,
        #modalNovaConta,
        #modalAjuda,
        #modalConfig,
        #modalFontSettings,
        #modalImportarLegado,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas
    )
    :is(label, p, h2, h3) {
    overflow-wrap: break-word;
}
@media (max-width: 760px) {
    body.pf-home-v1 :is(#financialPlanningWindow, #financialIntelligenceWindow) .fp-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }
    body.pf-home-v1
        :is(#financialPlanningWindow, #financialIntelligenceWindow)
        :is(#fpProjectionContent, #fpAlertsContent, #fpReportsContent) {
        max-width: 100%;
        overflow-x: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1
        :is(#financialPlanningWindow, #financialIntelligenceWindow, #modalAjuda, #modalDockSettings)
        :is(button, a, .fp-tab) {
        transition: none;
    }
}

/* Visual 1 — consolidação dos componentes de trabalho (Etapa 12).
   Escopo exclusivo: não modifica o Visual Clássico nem o comportamento das janelas. */
body.pf-home-v1
    :is(
        #modalGerenciarContas,
        #modalCategorias,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado,
        #modalConfig,
        #modalFontSettings,
        #modalMenuIconSettings,
        #modalDockSettings
    )
    .admin-standard-panel {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgb(0 0 0 / 22%);
}
body.pf-home-v1
    :is(
        #modalGerenciarContas,
        #modalCategorias,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado,
        #modalConfig,
        #modalFontSettings,
        #modalMenuIconSettings,
        #modalDockSettings
    )
    .admin-standard-header {
    padding: 14px 18px;
    min-height: 66px;
    background: linear-gradient(115deg, #172a45 0%, #23466f 100%);
    border-bottom: 1px solid rgb(147 197 253 / 25%);
}
body.pf-home-v1
    :is(
        #modalGerenciarContas,
        #modalCategorias,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado,
        #modalConfig,
        #modalFontSettings,
        #modalMenuIconSettings,
        #modalDockSettings
    )
    .std-head-subtitle {
    line-height: 1.45;
    opacity: 0.88;
}
body.pf-home-v1
    :is(
        #modalGerenciarContas,
        #modalCategorias,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado,
        #modalConfig,
        #modalFontSettings,
        #modalMenuIconSettings,
        #modalDockSettings
    )
    :is(button, a, input, select, textarea):focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
body.pf-home-v1
    :is(
        #modalGerenciarContas,
        #modalCategorias,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado,
        #modalConfig,
        #modalFontSettings,
        #modalMenuIconSettings,
        #modalDockSettings
    )
    :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    border-radius: 10px;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
body.pf-home-v1
    :is(
        #modalGerenciarContas,
        #modalCategorias,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado,
        #modalConfig,
        #modalFontSettings,
        #modalMenuIconSettings,
        #modalDockSettings
    )
    :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgb(96 165 250 / 15%);
}
body.pf-home-v1
    :is(
        #modalGerenciarContas,
        #modalCategorias,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado,
        #modalConfig,
        #modalFontSettings,
        #modalMenuIconSettings,
        #modalDockSettings
    )
    :is(button, .admin-module-card) {
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}
body.pf-home-v1
    :is(
        #modalGerenciarContas,
        #modalCategorias,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado,
        #modalConfig,
        #modalFontSettings,
        #modalMenuIconSettings,
        #modalDockSettings
    )
    :is(button, .admin-module-card):hover {
    box-shadow: 0 3px 10px rgb(0 0 0 / 10%);
}
@media (max-width: 680px) {
    body.pf-home-v1
        :is(
            #modalGerenciarContas,
            #modalCategorias,
            #modalGestaoBackup,
            #modalOcultarBotoesMenu,
            #modalGerenciarColunas,
            #modalImportarLegado,
            #modalConfig,
            #modalFontSettings,
            #modalMenuIconSettings,
            #modalDockSettings
        )
        .admin-standard-header {
        padding: 10px 12px;
    }
    body.pf-home-v1
        :is(
            #modalGerenciarContas,
            #modalCategorias,
            #modalGestaoBackup,
            #modalOcultarBotoesMenu,
            #modalGerenciarColunas,
            #modalImportarLegado,
            #modalConfig,
            #modalFontSettings,
            #modalMenuIconSettings,
            #modalDockSettings
        )
        .std-head-subtitle {
        font-size: 11px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1
        :is(
            #modalGerenciarContas,
            #modalCategorias,
            #modalGestaoBackup,
            #modalOcultarBotoesMenu,
            #modalGerenciarColunas,
            #modalImportarLegado,
            #modalConfig,
            #modalFontSettings,
            #modalMenuIconSettings,
            #modalDockSettings
        )
        :is(button, .admin-module-card, input, select, textarea) {
        transition: none;
    }
}

/* Visual 1 — consolidação ampla de janelas e painéis, novembro 2026.
   Aplicação estritamente condicionada ao Visual 1, sem impacto no clássico. */
body.pf-home-v1 .pf-v1-consolidated-dialog {
    --pf-dialog-surface: var(--pf-home-card, #ffffff);
    --pf-dialog-canvas: var(--pf-home-panel, #f5f7fb);
    --pf-dialog-line: var(--pf-home-border, #dbe3ee);
    --pf-dialog-ink: var(--pf-home-text, #172033);
    --pf-dialog-accent: #3b82f6;
}
body.pf-home-v1 .pf-v1-consolidated-dialog .admin-standard-panel {
    border-radius: 18px;
    border: 1px solid var(--pf-dialog-line);
    box-shadow: 0 24px 70px rgb(0 0 0 / 24%);
}
body.pf-home-v1 .pf-v1-consolidated-dialog .admin-standard-body {
    scrollbar-width: thin;
    scrollbar-color: #64748b70 transparent;
}
body.pf-home-v1
    .pf-v1-consolidated-dialog
    :is(.admin-module-card, .admin-detail-panel, .fp-panel, .fp-card, .pf-v1-manage-list > div) {
    border-radius: 13px;
    border: 1px solid var(--pf-dialog-line);
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease,
        transform 140ms ease;
}
body.pf-home-v1 .pf-v1-consolidated-dialog :is(.admin-module-card, .fp-card, .pf-v1-manage-list > div):hover {
    border-color: #60a5fa;
    box-shadow: 0 5px 18px rgb(37 99 235 / 11%);
}
body.pf-home-v1
    .pf-v1-consolidated-dialog
    :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    min-width: 0;
    max-width: 100%;
    border-radius: 10px;
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease;
}
body.pf-home-v1 .pf-v1-consolidated-dialog :is(input, select, textarea, button, [tabindex]):focus-visible {
    outline: 2px solid var(--pf-dialog-accent);
    outline-offset: 2px;
}
body.pf-home-v1 .pf-v1-consolidated-dialog :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: #3b82f6;
}
body.pf-home-v1 .pf-v1-consolidated-dialog :is(button, .fp-tab) {
    border-radius: 9px;
    transition:
        filter 140ms ease,
        transform 140ms ease;
}
body.pf-home-v1 .pf-v1-consolidated-dialog :is(button, .fp-tab):not(:disabled):hover {
    filter: brightness(1.08);
}
body.pf-home-v1 .pf-v1-consolidated-dialog :is(.admin-standard-body, .fp-panel) :is(table, .overflow-x-auto) {
    max-width: 100%;
}
body.pf-home-v1 .pf-v1-consolidated-dialog :is(.admin-standard-body, .fp-panel) table {
    border-collapse: separate;
    border-spacing: 0;
}
body.pf-home-v1 .pf-v1-consolidated-dialog :is(.admin-standard-body, .fp-panel) th {
    position: sticky;
    top: 0;
    z-index: 1;
}
body.pf-home-v1 .pf-v1-consolidated-dialog :is(.admin-standard-body, .fp-panel) td,
body.pf-home-v1 .pf-v1-consolidated-dialog :is(.admin-standard-body, .fp-panel) th {
    padding-block: 9px;
}
body.pf-home-v1 .pf-v1-consolidated-dialog .pf-v1-manage-toolbar {
    gap: 12px;
    flex-wrap: wrap;
}
body.pf-home-v1 .pf-v1-consolidated-dialog .pf-v1-manage-toolbar > button {
    min-height: 36px;
}
body.pf-home-v1 .pf-v1-consolidated-dialog .pf-v1-manage-list {
    padding: 8px;
    border-radius: 13px;
}
body.pf-home-v1 .pf-v1-consolidated-dialog .pf-v1-manage-list > div + div {
    margin-top: 8px;
}
body.pf-home-v1 .pf-v1-consolidated-dialog .std-head-subtitle {
    line-height: 1.4;
}
@media (max-width: 700px) {
    body.pf-home-v1 .pf-v1-consolidated-dialog .admin-standard-body {
        padding: 12px;
    }
    body.pf-home-v1 .pf-v1-consolidated-dialog .pf-v1-manage-toolbar {
        align-items: stretch;
    }
    body.pf-home-v1 .pf-v1-consolidated-dialog .pf-v1-manage-toolbar > button {
        width: 100%;
        justify-content: center;
    }
    body.pf-home-v1 .pf-v1-consolidated-dialog :is(.admin-standard-body, .fp-panel) :is(table, .overflow-x-auto) {
        overflow-x: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1
        .pf-v1-consolidated-dialog
        :is(button, input, select, textarea, .admin-module-card, .fp-card, .fp-tab) {
        transition: none;
    }
}

/* Visual 1: cartões de contas com hierarquia real de informação e ações. */
body.pf-home-v1 #accountsManageList > .pf-v1-account-tile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
    padding: 15px;
    align-items: center;
}
body.pf-home-v1 .pf-v1-account-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}
body.pf-home-v1 .pf-v1-account-identity {
    min-width: 0;
    flex: 1;
}
body.pf-home-v1 .pf-v1-account-name {
    font-size: 14px;
    font-weight: 750;
    overflow-wrap: anywhere;
}
body.pf-home-v1 .pf-v1-account-group {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 3px;
}
body.pf-home-v1 .pf-v1-account-status {
    color: #ef6b72;
    border: 1px solid currentColor;
    border-radius: 99px;
    padding: 3px 7px;
    font-size: 10px;
}
body.pf-home-v1 .pf-v1-account-details {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
body.pf-home-v1 .pf-v1-account-details > div {
    border: 1px solid var(--v1-form-border, #445064);
    border-radius: 10px;
    padding: 8px 10px;
    min-width: 0;
}
body.pf-home-v1 .pf-v1-account-details span {
    display: block;
    opacity: 0.7;
    font-size: 10px;
    margin-bottom: 4px;
}
body.pf-home-v1 .pf-v1-account-details strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
body.pf-home-v1 .pf-v1-account-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
body.pf-home-v1 .pf-v1-account-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px;
    border: 1px solid var(--v1-form-border, #445064);
    border-radius: 9px;
    font-size: 11px;
    min-height: 34px;
}
body.pf-home-v1 .pf-v1-account-actions button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
body.pf-home-v1 .pf-v1-account-actions .pf-v1-action-danger {
    color: #ef6b72;
}
body.pf-home-v1 .pf-v1-account-actions button:not(:disabled):hover {
    background: var(--v1-form-hover, #344052);
}
@media (max-width: 650px) {
    body.pf-home-v1 #accountsManageList > .pf-v1-account-tile {
        grid-template-columns: minmax(0, 1fr);
    }
    body.pf-home-v1 .pf-v1-account-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.pf-home-v1 .pf-v1-account-actions {
        grid-column: 1;
        grid-row: auto;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    body.pf-home-v1 .pf-v1-account-actions button span {
        display: none;
    }
}

/* Visual 1: categorias com cartões reais e ações acessíveis. */
body.pf-home-v1 #modalCategorias .pf-v1-category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
    margin-block: 7px;
    border: 1px solid var(--pf-v1-dialog-border, #455064);
    border-radius: 13px;
    background: var(--pf-v1-dialog-card, #242c38);
    color: var(--pf-v1-dialog-text, inherit);
}
body.pf-home-v1 #modalCategorias .pf-v1-category-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 160px;
}
body.pf-home-v1 #modalCategorias .pf-v1-category-identity > i {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    border-radius: 11px;
    background: rgb(59 130 246 / 12%);
    color: #60a5fa;
}
body.pf-home-v1 #modalCategorias .pf-v1-category-name {
    font-weight: 650;
    overflow-wrap: anywhere;
}
body.pf-home-v1 #modalCategorias .pf-v1-category-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
body.pf-home-v1 #modalCategorias .pf-v1-category-actions button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--pf-v1-dialog-border, #455064);
    border-radius: 9px;
    background: var(--pf-v1-dialog-card, #242c38);
    color: var(--pf-v1-dialog-text, inherit);
}
body.pf-home-v1 #modalCategorias .pf-v1-category-actions .pf-v1-category-delete {
    color: #ef737b;
}
body.pf-home-v1 #modalCategorias .pf-v1-category-actions button:hover {
    background: var(--pf-v1-dialog-hover, #334155);
}
body.pf-home-v1 #modalCategorias .pf-v1-category-empty {
    padding: 18px;
    text-align: center;
    color: var(--pf-v1-dialog-muted, #94a3b8);
}
@media (max-width: 480px) {
    body.pf-home-v1 #modalCategorias .pf-v1-category-actions {
        width: 100%;
    }
    body.pf-home-v1 #modalCategorias .pf-v1-category-actions button {
        flex: 1;
        justify-content: center;
    }
}

/* Visual 1 — correção de sobreposição das ações (Contas e Categorias).
   Botões iconográficos com nome acessível via aria-label/title. */
body.pf-home-v1 #accountsManageList > .pf-v1-account-tile {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    min-width: 0;
}
body.pf-home-v1 #accountsManageList .pf-v1-account-heading,
body.pf-home-v1 #accountsManageList .pf-v1-account-details,
body.pf-home-v1 #accountsManageList .pf-v1-account-actions {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
}
body.pf-home-v1 #accountsManageList .pf-v1-account-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--v1-form-border, #445064);
}
body.pf-home-v1 #accountsManageList .pf-v1-account-actions button {
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    align-items: center;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
}
body.pf-home-v1 #accountsManageList .pf-v1-account-actions button span {
    display: none;
}
body.pf-home-v1 #modalCategorias .pf-v1-category-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
body.pf-home-v1 #modalCategorias .pf-v1-category-identity {
    min-width: 0;
    width: auto;
    flex: none;
}
body.pf-home-v1 #modalCategorias .pf-v1-category-actions {
    display: flex;
    flex: none;
    flex-wrap: nowrap;
    align-items: center;
    width: auto;
    gap: 8px;
    min-width: 0;
}
body.pf-home-v1 #modalCategorias .pf-v1-category-actions button,
body.pf-home-v1 #modalCategorias :is(#listCategoriesReceita, #listCategoriesGasto) .pf-v1-category-actions button {
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 0;
    line-height: 1;
    overflow: hidden;
}
body.pf-home-v1 #modalCategorias .pf-v1-category-actions button span {
    display: none;
}
@media (max-width: 430px) {
    body.pf-home-v1 #accountsManageList .pf-v1-account-details {
        grid-template-columns: minmax(0, 1fr);
    }
    body.pf-home-v1 #modalCategorias .pf-v1-category-card {
        grid-template-columns: minmax(0, 1fr);
    }
    body.pf-home-v1 #modalCategorias .pf-v1-category-actions {
        grid-column: 1;
        justify-content: flex-end;
        width: auto;
    }
}

/* Visual 1 — padrão único de ações iconográficas em Contas e Categorias.
   Ações neutras: grafite/azul; exclusão: vermelho discreto. */
body.pf-home-v1 #accountsManageList .pf-v1-account-actions button,
body.pf-home-v1 #modalCategorias .pf-v1-category-actions button {
    appearance: none;
    display: inline-flex;
    box-sizing: border-box;
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid var(--pf-v1-dialog-border, var(--v1-form-border, #445064));
    border-radius: 10px;
    background: var(--pf-v1-dialog-card, #202936);
    color: var(--pf-v1-dialog-text, #e2e8f0);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}
body.pf-home-v1 #accountsManageList .pf-v1-account-actions button span,
body.pf-home-v1 #modalCategorias .pf-v1-category-actions button span {
    display: none !important;
}
body.pf-home-v1 #accountsManageList .pf-v1-account-actions button:is(:hover, :focus-visible):not(:disabled),
body.pf-home-v1 #modalCategorias .pf-v1-category-actions button:is(:hover, :focus-visible):not(:disabled) {
    background: var(--pf-v1-dialog-hover, #2c3a50);
    border-color: var(--pf-v1-dialog-accent, #60a5fa);
    color: var(--pf-v1-dialog-accent, #60a5fa);
}
body.pf-home-v1 #accountsManageList .pf-v1-account-actions .pf-v1-action-danger,
body.pf-home-v1 #modalCategorias .pf-v1-category-actions .pf-v1-category-delete {
    color: #f87171;
}
body.pf-home-v1 #accountsManageList .pf-v1-account-actions .pf-v1-action-danger:is(:hover, :focus-visible),
body.pf-home-v1 #modalCategorias .pf-v1-category-actions .pf-v1-category-delete:is(:hover, :focus-visible) {
    color: #fca5a5;
    border-color: #ef4444;
    background: rgb(239 68 68 / 12%);
}
body.pf-home-v1 #accountsManageList .pf-v1-account-actions button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
body.pf-home-v1 #accountsManageList .pf-v1-account-actions,
body.pf-home-v1 #modalCategorias .pf-v1-category-actions {
    gap: 8px;
}

/* ============================================================
   VISUAL 1 · CONSOLIDADO 16 — SISTEMA DE FORMULÁRIOS E SUBTELAS
   Escopo limitado à opção Visual 1; não altera o Visual Clássico.
   Sem mudança em eventos, cálculo, persistência ou redimensionamento.
   ============================================================ */
body.pf-home-v1
    :is(
        #modalLancamento,
        #modalNovaConta,
        #modalGerenciarContas,
        #modalCategorias,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado,
        #modalConfig,
        #modalFontSettings,
        #modalIconSettings,
        #modalFerramentas,
        #modalCadastros,
        #modalSettingsCenter
    ) {
    --pf-v1-ui-radius: 12px;
    --pf-v1-ui-gap: 12px;
    --pf-v1-ui-accent: #3b82f6;
    --pf-v1-ui-border: var(--v1-form-border, #3b4555);
    --pf-v1-ui-card: var(--v1-form-bg, #202631);
    --pf-v1-ui-ink: var(--v1-form-text, #e5eaf2);
}
body.pf-home-v1
    :is(
        #modalLancamento,
        #modalNovaConta,
        #modalGerenciarContas,
        #modalCategorias,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado,
        #modalConfig,
        #modalFontSettings,
        #modalIconSettings
    )
    :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
body.pf-home-v1
    :is(
        #modalLancamento,
        #modalNovaConta,
        #modalGerenciarContas,
        #modalCategorias,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado,
        #modalConfig,
        #modalFontSettings,
        #modalIconSettings
    )
    :is(input, select, textarea, button):focus-visible {
    outline: 2px solid var(--pf-v1-ui-accent);
    outline-offset: 2px;
}
body.pf-home-v1
    :is(
        #modalLancamento,
        #modalNovaConta,
        #modalGerenciarContas,
        #modalCategorias,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado,
        #modalConfig,
        #modalFontSettings,
        #modalIconSettings
    )
    :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: var(--pf-v1-ui-accent);
}
body.pf-home-v1
    :is(
        #modalLancamento,
        #modalNovaConta,
        #modalGerenciarContas,
        #modalCategorias,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado,
        #modalConfig,
        #modalFontSettings,
        #modalIconSettings
    )
    .admin-standard-body {
    min-width: 0;
    overflow-wrap: break-word;
}
body.pf-home-v1
    :is(
        #modalLancamento,
        #modalNovaConta,
        #modalGerenciarContas,
        #modalCategorias,
        #modalGestaoBackup,
        #modalOcultarBotoesMenu,
        #modalGerenciarColunas,
        #modalImportarLegado,
        #modalConfig,
        #modalFontSettings,
        #modalIconSettings
    )
    :is(.admin-standard-body, .pf-v1-modern-body)
    > :is(form, section, fieldset) {
    min-width: 0;
}
body.pf-home-v1 #modalCategorias :is(#listCategoriesReceita, #listCategoriesGasto) {
    min-width: 0;
    overflow-x: hidden;
}
body.pf-home-v1 #modalCategorias .pf-v1-category-name {
    overflow-wrap: anywhere;
}
body.pf-home-v1 #modalCategorias .pf-v1-category-actions {
    flex-shrink: 0;
}
body.pf-home-v1 #accountsManageList .pf-v1-account-details {
    min-width: 0;
}
body.pf-home-v1 #accountsManageList .pf-v1-account-details > div {
    min-width: 0;
}
body.pf-home-v1 #accountsManageList .pf-v1-account-details strong {
    overflow-wrap: anywhere;
}
@media (max-width: 640px) {
    body.pf-home-v1 #modalCategorias .pf-v1-category-card {
        gap: 10px;
        padding: 12px;
    }
    body.pf-home-v1 #modalCategorias .pf-v1-category-actions button,
    body.pf-home-v1 #accountsManageList .pf-v1-account-actions button {
        flex: 0 0 36px;
        width: 36px;
        min-width: 36px;
        max-width: 36px;
        height: 36px;
        min-height: 36px;
    }
    body.pf-home-v1 #accountsManageList .pf-v1-account-actions {
        justify-content: flex-end;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1
        :is(
            #modalLancamento,
            #modalNovaConta,
            #modalGerenciarContas,
            #modalCategorias,
            #modalGestaoBackup,
            #modalOcultarBotoesMenu,
            #modalGerenciarColunas,
            #modalImportarLegado,
            #modalConfig,
            #modalFontSettings,
            #modalIconSettings
        )
        :is(button, input, select, textarea) {
        transition: none;
    }
}

/* Visual 1 — agrupamento independente por tipo e categoria */
body:not(.pf-home-v1) .pf-home-type-group-control {
    display: none !important;
}
body.pf-home-v1 .pf-home-type-group-control {
    display: flex;
    align-items: center;
    gap: 6px;
}
body.pf-home-v1 .pf-home-tx-type-section {
    border: 1px solid var(--pf-home-border);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}
body.pf-home-v1 .pf-home-tx-type-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
    font-weight: 750;
}
body.pf-home-v1 .pf-home-tx-type-heading small {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
}
body.pf-home-v1 .pf-home-tx-type-content {
    padding: 11px;
    display: grid;
    gap: 10px;
}
body.pf-home-v1 .pf-home-tx-type-section.income {
    background: rgb(22 163 74 / 8%);
    border-color: rgb(22 163 74 / 28%);
}
body.pf-home-v1 .pf-home-tx-type-section.income > .pf-home-tx-type-heading {
    background: rgb(22 163 74 / 16%);
    color: #16a34a;
}
body.pf-home-v1 .pf-home-tx-type-section.expense {
    background: rgb(220 38 38 / 8%);
    border-color: rgb(220 38 38 / 28%);
}
body.pf-home-v1 .pf-home-tx-type-section.expense > .pf-home-tx-type-heading {
    background: rgb(220 38 38 / 16%);
    color: #dc2626;
}
body.pf-home-v1 .pf-home-tx-type-section.transfer {
    background: rgb(37 99 235 / 8%);
    border-color: rgb(37 99 235 / 28%);
}
body.pf-home-v1 .pf-home-tx-type-section.transfer > .pf-home-tx-type-heading {
    background: rgb(37 99 235 / 16%);
    color: #2563eb;
}
body.dark.pf-home-v1 .pf-home-tx-type-section.income > .pf-home-tx-type-heading {
    color: #86efac;
}
body.dark.pf-home-v1 .pf-home-tx-type-section.expense > .pf-home-tx-type-heading {
    color: #fca5a5;
}
body.dark.pf-home-v1 .pf-home-tx-type-section.transfer > .pf-home-tx-type-heading {
    color: #93c5fd;
}
body.pf-home-v1 .pf-home-tx-type-content .pf-home-tx-group {
    margin: 0;
}

/* Correção: grupos por tipo preservam altura natural dentro da lista rolável. */
body.pf-home-v1 #pfModernTransactionCards > .pf-home-tx-type-section {
    flex: 0 0 auto;
    min-height: max-content;
}
body.pf-home-v1 #pfModernTransactionCards > .pf-home-tx-type-section > .pf-home-tx-type-content {
    min-height: max-content;
}
body.pf-home-v1 #pfModernTransactionCards:not([hidden]) {
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

/* Visual 1 — indicadores recolhíveis, liberando altura real para os lançamentos.
   O contador da barra superior continua disponível no Visual Clássico. */
body.pf-home-v1 #transactionCount {
    display: none !important;
}
body.pf-home-v1 #pfHomeIndicators[hidden] {
    display: none !important;
}
body.pf-home-v1 #pfModernOverview .pf-home-indicators-toggle {
    flex-shrink: 0;
}
@media (min-width: 1200px) {
    body.pf-home-v1 #viewLancamentos:not(.hidden):has(#pfHomeIndicators[hidden]) {
        grid-template-rows: 40px minmax(0, 1fr);
    }
    body.pf-home-v1 #viewLancamentos:has(#pfHomeIndicators[hidden]) #pfModernOverview > .pf-home-overview-toolbar {
        grid-row: 1;
    }
    body.pf-home-v1 #viewLancamentos:has(#pfHomeIndicators[hidden]) #pfModernOverview > .pf-home-list-title {
        grid-row: 1;
    }
    body.pf-home-v1 #viewLancamentos:has(#pfHomeIndicators[hidden]) #pfModernOverview > #pfHomeInsights:not([hidden]) {
        grid-row: 2;
    }
    body.pf-home-v1 #viewLancamentos:has(#pfHomeIndicators[hidden]) > #pfModernTransactionCards:not([hidden]) {
        grid-row: 2;
    }
}
@media (min-width: 1200px) {
    body.pf-home-v1 #pfModernOverview > .pf-home-overview-toolbar {
        flex-wrap: nowrap;
        gap: 5px;
    }
    body.pf-home-v1 #pfModernOverview .pf-home-overview-toolbar .pf-home-insights-toggle {
        padding: 6px 7px;
        font-size: 10px;
        gap: 4px;
    }
}

/* Visual 1: botões compactos, simétricos e com estado indicado pela seta. */
body.pf-home-v1 #pfModernOverview .pf-home-overview-toolbar .pf-home-insights-toggle {
    box-sizing: border-box;
    width: 104px;
    min-width: 104px;
    justify-content: center;
    padding: 5px 6px;
    font-size: 11px;
    line-height: 1.2;
    gap: 5px;
}

/* Destaque acessível da navegação por setas no Visual 1. */
body.pf-home-v1 .pf-home-keyboard-active {
    outline: 2px solid #60a5fa;
    outline-offset: -2px;
}

/* Visual 1 — acabamento dos controles existentes, sem alterar a estrutura do layout. */
body.pf-home-v1 #transactionContextMenu {
    min-width: 204px;
    padding: 7px;
    border: 1px solid #43526a;
    border-radius: 13px;
    background: #1b202a;
    color: #edf3fb;
    box-shadow:
        0 16px 40px rgb(0 0 0 / 42%),
        0 0 0 1px rgb(96 165 250 / 8%);
}
body.pf-home-v1 #transactionContextMenu button {
    min-height: 39px;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition:
        background-color 130ms ease,
        color 130ms ease;
}
body.pf-home-v1 #transactionContextMenu button i {
    width: 17px;
    text-align: center;
    font-size: 13px;
}
body.pf-home-v1 #transactionContextMenu button:hover,
body.pf-home-v1 #transactionContextMenu button:focus-visible {
    background: #2a3b54;
    color: #fff;
    outline: none;
}
body.pf-home-v1 #transactionContextMenu button:last-child {
    margin-top: 5px;
    border-top: 1px solid #394353;
    border-radius: 0 0 8px 8px;
    color: #fca5a5;
}
body.pf-home-v1 #transactionContextMenu button:last-child:hover,
body.pf-home-v1 #transactionContextMenu button:last-child:focus-visible {
    background: #48252c;
    color: #fecaca;
}
body.pf-home-v1 #subBar {
    border-color: #374456;
    background: linear-gradient(180deg, #1c222c, #171c24);
}
body.pf-home-v1 #subBar select,
body.pf-home-v1 #navigatorGroup,
body.pf-home-v1 #customPeriodContainer {
    min-height: 36px;
    border: 1px solid #40516a;
    border-radius: 10px;
    background-color: #222b39;
    color: #eef4ff;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}
body.pf-home-v1 #subBar select {
    padding: 6px 27px 6px 11px;
    cursor: pointer;
    color-scheme: dark;
}
body.pf-home-v1 #subBar select:hover,
body.pf-home-v1 #navigatorGroup:hover {
    border-color: #6487bc;
}
body.pf-home-v1 #subBar :is(select, input, button):focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
body.pf-home-v1 #navigatorGroup button {
    display: inline-grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 7px;
    color: #93c5fd;
}
body.pf-home-v1 #navigatorGroup button:hover {
    background: #354660;
    color: #fff;
}
body.pf-home-v1 #subBar :is(#checkGroupCategory, #checkGroupType),
body.pf-home-v1 #accountsListTree input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0;
    border: 1px solid #65758d;
    border-radius: 5px;
    background: #1a2330;
    cursor: pointer;
    vertical-align: middle;
    transition:
        border-color 130ms ease,
        background-color 130ms ease;
}
body.pf-home-v1 #subBar :is(#checkGroupCategory, #checkGroupType)::before,
body.pf-home-v1 #accountsListTree input[type="checkbox"]::before {
    content: "";
    width: 9px;
    height: 9px;
    transform: scale(0);
    transition: transform 130ms ease;
    background: #fff;
    clip-path: polygon(14% 45%, 0 60%, 39% 100%, 100% 17%, 84% 4%, 37% 72%);
}
body.pf-home-v1 #subBar :is(#checkGroupCategory, #checkGroupType):checked,
body.pf-home-v1 #accountsListTree input[type="checkbox"]:checked {
    border-color: #60a5fa;
    background: #2563c9;
}
body.pf-home-v1 #subBar :is(#checkGroupCategory, #checkGroupType):checked::before,
body.pf-home-v1 #accountsListTree input[type="checkbox"]:checked::before {
    transform: scale(1);
}
body.pf-home-v1 #subBar :is(#checkGroupCategory, #checkGroupType):hover,
body.pf-home-v1 #accountsListTree input[type="checkbox"]:hover {
    border-color: #93c5fd;
}
body.pf-home-v1 #subBar :is(#checkGroupCategory, #checkGroupType):disabled,
body.pf-home-v1 #accountsListTree input[type="checkbox"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
    body.pf-home-v1 #transactionContextMenu button,
    body.pf-home-v1 #subBar :is(#checkGroupCategory, #checkGroupType),
    body.pf-home-v1 #accountsListTree input[type="checkbox"] {
        transition: none;
    }
}

/* Visual 1: data de lançamento com calendário e realce discreto (Opção B). */
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-description .pf-home-tx-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
    opacity: 1;
}
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-category-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.72;
}
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-date {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 5px;
    padding: 2px 7px;
    border-radius: 7px;
    background: rgba(80, 133, 201, 0.16);
    color: #d5e6ff;
    font-size: 0.95em;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}
body.pf-home-v1 #pfModernTransactionCards .pf-home-tx-date i {
    color: #7eb6ff;
    font-size: 0.95em;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernTransactionCards .pf-home-tx-date {
    background: rgba(43, 111, 190, 0.12);
    color: #24538c;
}
body.pf-home-v1:not(.dark):not(.pro-mode) #pfModernTransactionCards .pf-home-tx-date i {
    color: #286fc3;
}

/* Visuais 2 e 3: especializações da estrutura aprovada do Visual 1. */
body.pf-home-v2 #pfModernTransactionCards {
    position: relative;
    padding: 16px 18px 24px 34px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}
body.pf-home-v2 #pfModernTransactionCards::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 22px;
    left: 21px;
    width: 2px;
    background: linear-gradient(#3b82f6, #64748b55);
    pointer-events: none;
}
body.pf-home-v2 #pfModernTransactionCards .pf-home-tx-group {
    position: relative;
    margin: 0 0 18px;
    border-radius: 14px;
    background: transparent;
    border: 0;
    overflow: visible;
}
body.pf-home-v2 #pfModernTransactionCards .pf-home-tx-group::before {
    content: "";
    position: absolute;
    top: 13px;
    left: -20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #60a5fa;
    border: 3px solid #17253d;
    box-shadow: 0 0 0 2px #3b82f677;
}
body.pf-home-v2 #pfModernTransactionCards .pf-home-tx-group-title {
    margin-bottom: 8px;
    border-radius: 11px;
    background: linear-gradient(95deg, #1c3558, #1d2430);
    border: 1px solid #42618a;
    padding: 10px 14px;
}
body.pf-home-v2 #pfModernTransactionCards .pf-home-tx-card {
    margin: 0 0 7px 14px;
    border-left: 3px solid #60a5fa;
    border-radius: 10px;
    box-shadow: 0 4px 12px #00000018;
}
body.pf-home-v2 #pfModernTransactionCards .pf-home-tx-card.income {
    border-left-color: #22c55e;
}
body.pf-home-v2 #pfModernTransactionCards .pf-home-tx-card.expense {
    border-left-color: #ef4444;
}
body.pf-home-v2 #pfModernTransactionCards .pf-home-tx-card.transfer {
    border-left-color: #60a5fa;
}
body.pf-home-v2 .pf-timeline-mode-tags {
    display: inline-flex;
    gap: 7px;
    margin-left: 9px;
    color: #93c5fd;
    font-size: 11px;
}
body.pf-home-v2 #pfModernOverview .pf-home-list-title > span:first-child::after {
    content: " · Linha do Tempo";
    color: #93c5fd;
    font-size: 11px;
}
body.pf-home-v3 #pfModernTransactionCards {
    padding: 6px 12px 14px;
    overflow-y: auto;
}
body.pf-home-v3 #pfModernTransactionCards .pf-home-tx-type-section {
    margin-bottom: 10px;
}
body.pf-home-v3 #pfModernTransactionCards .pf-home-tx-group {
    margin: 0 0 5px;
    border-radius: 9px;
}
body.pf-home-v3 #pfModernTransactionCards .pf-home-tx-group-title {
    min-height: 33px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px;
}
body.pf-home-v3 #pfModernTransactionCards .pf-home-tx-card {
    min-height: 38px;
    margin: 2px 0;
    padding: 5px 10px;
    gap: 10px;
    border-radius: 7px;
    font-size: 12px;
    box-shadow: none;
}
body.pf-home-v3 #pfModernTransactionCards .pf-home-tx-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    border-radius: 7px;
    font-size: 12px;
}
body.pf-home-v3 #pfModernTransactionCards .pf-home-tx-description {
    gap: 0;
}
body.pf-home-v3 #pfModernTransactionCards .pf-home-tx-description strong {
    font-size: 12px;
}
body.pf-home-v3 #pfModernTransactionCards .pf-home-tx-description small {
    font-size: 10px;
}
body.pf-home-v3 #pfModernTransactionCards .pf-home-tx-amount {
    font-size: 12px;
}
body.pf-home-v3 #pfModernOverview .pf-home-list-title > span:first-child::after {
    content: " · Híbrido Premium";
    color: #93c5fd;
    font-size: 11px;
}
@media (max-width: 700px) {
    body.pf-home-v2 #pfModernTransactionCards {
        padding-left: 25px;
        padding-right: 8px;
    }
    body.pf-home-v2 #pfModernTransactionCards::before {
        left: 13px;
    }
    body.pf-home-v2 #pfModernTransactionCards .pf-home-tx-group::before {
        left: -16px;
    }
    body.pf-home-v2 #pfModernTransactionCards .pf-home-tx-card {
        margin-left: 4px;
    }
}
/* Sobrescreve apenas o espaçamento interno do painel de lançamentos na grade ampla. */
@media (min-width: 1200px) {
    body.pf-home-v2 #viewLancamentos > #pfModernTransactionCards:not([hidden]) {
        padding: 16px 18px 24px 34px;
    }
    body.pf-home-v3 #viewLancamentos > #pfModernTransactionCards:not([hidden]) {
        padding: 6px 12px 14px;
    }
}
body.pf-home-v2 #sidebarPanel #accountsListTree > div {
    border-left: 2px solid #3b82f6;
}
body.pf-home-v3 #sidebarPanel #accountsListTree > div {
    border-radius: 9px;
}

/* Visual 2: painel cronológico próprio, sem reaproveitar o layout dos cartões. */
body.pf-home-v2 #pfModernTransactionCards:not([hidden]) {
    padding: 12px 16px 22px !important;
    overflow: auto;
}
body.pf-home-v2 #pfModernTransactionCards::before {
    display: none;
}
body.pf-home-v2 .pf-timeline-header,
body.pf-home-v3 .pf-premium-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(105deg, #18263c, #171d29);
    color: #e5f1ff;
    border: 1px solid #334862;
    border-radius: 13px;
    padding: 13px 17px;
    margin-bottom: 14px;
}
body.pf-home-v2 .pf-timeline-header > div,
body.pf-home-v3 .pf-premium-header > div {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}
body.pf-home-v2 .pf-timeline-header i,
body.pf-home-v3 .pf-premium-header i {
    color: #83bdff;
    font-size: 19px;
}
body.pf-home-v2 .pf-timeline-header strong,
body.pf-home-v3 .pf-premium-header strong {
    font-size: 16px;
}
body.pf-home-v2 .pf-timeline-header small,
body.pf-home-v3 .pf-premium-header small {
    width: 100%;
    margin-left: 28px;
    color: #a4b3c8;
    font-size: 11px;
}
body.pf-home-v2 .pf-timeline-header > span,
body.pf-home-v3 .pf-premium-header > span {
    white-space: nowrap;
    color: #a4b3c8;
    font-size: 12px;
}
body.pf-home-v2 .pf-timeline-track {
    position: relative;
    padding: 0 0 10px;
}
body.pf-home-v2 .pf-timeline-track::before {
    content: "";
    position: absolute;
    left: 40px;
    top: 30px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(#60a5fa, #334155);
    pointer-events: none;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-day {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    margin: 0 0 18px;
    position: relative;
    border: 0;
    background: none;
    overflow: visible;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-day::before {
    display: none;
}
body.pf-home-v2 .pf-timeline-date-tile {
    z-index: 1;
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #56a9f8;
    border-radius: 12px;
    padding: 7px 4px;
    background: linear-gradient(#25466b, #172c49);
    color: #e8f2ff;
    box-shadow: 0 2px 9px #0004;
}
body.pf-home-v2 .pf-timeline-date-tile strong {
    font-size: 26px;
    line-height: 1;
}
body.pf-home-v2 .pf-timeline-date-tile span {
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
}
body.pf-home-v2 .pf-timeline-date-tile small {
    font-size: 11px;
}
body.pf-home-v2 .pf-timeline-day-body {
    min-width: 0;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-day-heading {
    background: linear-gradient(95deg, #234268, #1b283c);
    border: 1px solid #426ca1;
    border-radius: 11px;
    margin: 0 0 8px;
    min-height: 40px;
    padding: 8px 13px;
}
body.pf-home-v2 .pf-timeline-day-totals {
    display: flex;
    gap: 18px;
    font-size: 12px;
}
body.pf-home-v2 .pf-timeline-day-totals .income {
    color: #4ade80;
}
body.pf-home-v2 .pf-timeline-day-totals .expense {
    color: #fb7185;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry {
    display: grid;
    grid-template-columns: 34px minmax(150px, 1.7fr) minmax(100px, 0.7fr) minmax(105px, 0.7fr) 24px auto;
    gap: 10px;
    align-items: center;
    position: relative;
    margin: 5px 0 5px 18px;
    min-height: 54px;
    padding: 7px 10px;
    border-radius: 11px;
    background: #1d2430;
    border: 1px solid #38465a;
    border-left: 3px solid #64748b;
}
body.pf-home-v2 .pf-timeline-entry.income {
    border-left-color: #22c55e !important;
}
body.pf-home-v2 .pf-timeline-entry.expense {
    border-left-color: #fb7185 !important;
}
body.pf-home-v2 .pf-timeline-entry.transfer {
    border-left-color: #60a5fa !important;
}
body.pf-home-v2 .pf-timeline-node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    background: #60a5fa;
    border: 2px solid #142034;
    box-shadow: 0 0 0 2px #60a5fa77;
}
body.pf-home-v2 .pf-timeline-entry.income .pf-timeline-node {
    background: #4ade80;
    box-shadow: 0 0 0 2px #4ade8077;
}
body.pf-home-v2 .pf-timeline-entry.expense .pf-timeline-node {
    background: #fb7185;
    box-shadow: 0 0 0 2px #fb718577;
}
body.pf-home-v2 .pf-timeline-entry-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
body.pf-home-v2 .pf-timeline-entry-main strong {
    font-size: 12px;
    color: #eaf2ff;
}
body.pf-home-v2 .pf-timeline-entry-main small {
    font-size: 10px;
    color: #9cacc1;
}
body.pf-home-v2 .pf-timeline-category {
    font-size: 10px;
    color: #cbd5e1;
    padding: 5px 8px;
    background: #303c4e;
    border-radius: 7px;
}
body.pf-home-v2 .pf-timeline-entry .pf-home-tx-icon {
    width: 31px;
    height: 31px;
}
body.pf-home-v2 .pf-timeline-entry .pf-home-tx-amount {
    white-space: nowrap;
    text-align: right;
}
body.pf-home-v2 .pf-timeline-entry.selected {
    background: #18375b;
    border-color: #60a5fa;
}

/* Visual 3: grade profissional com colunas alinhadas e linhas compactas. */
body.pf-home-v3 #pfModernTransactionCards:not([hidden]) {
    padding: 10px 12px 20px !important;
    overflow: auto;
}
body.pf-home-v3 .pf-premium-table-head,
body.pf-home-v3 #pfModernTransactionCards .pf-premium-row {
    display: grid;
    grid-template-columns: minmax(140px, 2fr) 100px minmax(100px, 1.2fr) 83px minmax(90px, 1fr) 42px 104px;
    gap: 10px;
    align-items: center;
}
body.pf-home-v3 .pf-premium-table-head {
    min-width: 780px;
    padding: 9px 12px;
    border-radius: 9px;
    background: #1a2838;
    border: 1px solid #304258;
    color: #b9cbe0;
    font-size: 11px;
    font-weight: 700;
}
body.pf-home-v3 .pf-premium-table-head span:nth-child(5) {
    text-align: right;
}
body.pf-home-v3 .pf-premium-section {
    min-width: 780px;
    border: 1px solid #344357;
    border-radius: 12px;
    margin: 10px 0;
    overflow: hidden;
}
body.pf-home-v3 .pf-premium-type-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    font-weight: 700;
    background: #183c2b;
    color: #b7f7d3;
    border-bottom: 1px solid #2a5a40;
}
body.pf-home-v3 .pf-premium-type-heading.expense {
    background: #49252c;
    color: #ffd0d5;
    border-bottom-color: #69333c;
}
body.pf-home-v3 .pf-premium-type-heading.transfer {
    background: #18365a;
    color: #c4dcff;
    border-bottom-color: #315b8a;
}
body.pf-home-v3 .pf-premium-type-heading small {
    opacity: 0.7;
}
body.pf-home-v3 #pfModernTransactionCards .pf-premium-group {
    margin: 0;
    border: 0;
    border-radius: 0;
}
body.pf-home-v3 #pfModernTransactionCards .pf-premium-group-heading {
    margin: 0;
    border-radius: 0;
    min-height: 36px;
    padding: 6px 12px;
    border: 0;
    border-bottom: 1px solid #3d526a;
    background: #253346;
    font-size: 12px;
}
body.pf-home-v3 #pfModernTransactionCards .pf-premium-row {
    min-height: 35px;
    margin: 0;
    padding: 4px 12px;
    border: 0;
    border-bottom: 1px solid #344052;
    border-radius: 0;
    box-shadow: none;
    background: #1b2430;
    font-size: 11px;
}
body.pf-home-v3 #pfModernTransactionCards .pf-premium-row:nth-child(odd) {
    background: #202b38;
}
body.pf-home-v3 #pfModernTransactionCards .pf-premium-row:hover {
    background: #283f5b;
}
body.pf-home-v3 #pfModernTransactionCards .pf-premium-row.selected {
    background: #183e69;
    outline: 1px solid #60a5fa;
}
body.pf-home-v3 .pf-premium-description {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}
body.pf-home-v3 .pf-premium-description strong,
body.pf-home-v3 .pf-premium-account {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.pf-home-v3 .pf-premium-description i,
body.pf-home-v3 .pf-premium-date i {
    color: #83b8fa;
}
body.pf-home-v3 .pf-premium-date {
    white-space: nowrap;
    display: flex;
    gap: 5px;
    align-items: center;
}
body.pf-home-v3 .pf-premium-kind {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 7px;
    background: #264a38;
    color: #baf5ce;
}
body.pf-home-v3 .pf-premium-kind.expense {
    background: #542b33;
    color: #ffd0d5;
}
body.pf-home-v3 .pf-premium-kind.transfer {
    background: #234368;
    color: #c1ddff;
}
body.pf-home-v3 .pf-premium-row .pf-home-tx-amount {
    text-align: right;
    white-space: nowrap;
    font-size: 11px;
}
body.pf-home-v3 .pf-premium-row .pf-home-tx-consider {
    justify-self: center;
}
body.pf-home-v2 .pf-visual-row-actions,
body.pf-home-v3 .pf-visual-row-actions {
    display: inline-flex;
    gap: 3px;
    align-items: center;
    justify-content: flex-end;
}
body.pf-home-v2 .pf-visual-row-actions button,
body.pf-home-v3 .pf-visual-row-actions button {
    background: #263448;
    border: 1px solid #3b516a;
    border-radius: 6px;
    color: #a9d0ff;
    width: 29px;
    height: 28px;
    cursor: pointer;
}
body.pf-home-v2 .pf-visual-row-actions button:hover,
body.pf-home-v3 .pf-visual-row-actions button:hover {
    background: #34547b;
}
body.pf-home-v2 .pf-visual-row-actions button.danger,
body.pf-home-v3 .pf-visual-row-actions button.danger {
    color: #fb7185;
}
@media (max-width: 900px) {
    body.pf-home-v2 .pf-timeline-entry {
        grid-template-columns: 30px minmax(120px, 1fr) minmax(85px, 0.5fr) auto;
    }
    body.pf-home-v2 .pf-timeline-entry .pf-timeline-category,
    body.pf-home-v2 .pf-timeline-entry .pf-home-tx-consider {
        display: none;
    }
}

/* Visuais 2 e 3 — composição própria, independente da grade do Visual 1.
   A área dos lançamentos ocupa a largura disponível; sem rolagem horizontal artificial. */
@media (min-width: 901px) {
    body:is(.pf-home-v2, .pf-home-v3) #viewLancamentos:not(.hidden) {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        padding: 0 14px 12px;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }
    body:is(.pf-home-v2, .pf-home-v3) #viewLancamentos > #pfModernOverview:not([hidden]) {
        display: contents !important;
    }
    body:is(.pf-home-v2, .pf-home-v3) #viewLancamentos > #pfModernTransactionCards:not([hidden]) {
        display: block !important;
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        min-height: 0;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        margin: 0;
        grid-column: auto !important;
        grid-row: auto !important;
    }
    body:is(.pf-home-v2, .pf-home-v3) #viewLancamentos > .pf-modern-transactions-scroll {
        display: none !important;
    }
    body:is(.pf-home-v2, .pf-home-v3) #pfModernOverview > .pf-home-list-title,
    body:is(.pf-home-v2, .pf-home-v3) #pfModernOverview > .pf-home-overview-toolbar {
        display: none !important;
    }
    body.pf-home-v2 #pfModernOverview > .pf-home-kpis,
    body.pf-home-v2 #pfModernOverview > #pfHomeInsights {
        display: none !important;
    }
    body.pf-home-v3 #pfModernOverview > #pfHomeInsights,
    body.pf-home-v3 #pfModernOverview > .pf-home-overview-toolbar {
        display: none !important;
    }
    body.pf-home-v3 #pfModernOverview > .pf-home-kpis:not([hidden]) {
        display: grid !important;
        grid-column: auto !important;
        grid-row: auto !important;
        grid-template-columns: minmax(0, 1.65fr) repeat(3, minmax(0, 1fr));
        width: 100%;
        flex: 0 0 auto;
        margin: 10px 0 12px;
        gap: 10px;
    }
    body.pf-home-v3 #pfModernOverview .pf-home-kpi {
        height: 84px;
        min-width: 0;
    }
    body:is(.pf-home-v2, .pf-home-v3) #rightSidebar {
        display: none !important;
    }
}

/* Visual 2: painel esquerdo de contas + resumo; eixo cronológico na área principal. */
body.pf-home-v2 #sidebarPanel {
    overflow: hidden;
}
body.pf-home-v2 #sidebarPanel #accountsListTree {
    flex: 1 1 auto;
    min-height: 120px;
    overflow-y: auto;
}
body.pf-home-v2 #pfTimelineSidebarSummary {
    flex: 0 1 44%;
    min-height: 140px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    border-top: 1px solid #3c506c;
    background: #141d2b;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
body.pf-home-v2 #pfTimelineSidebarSummary h3 {
    font-size: 12px;
    font-weight: 750;
    color: #b8d5ff;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-home-kpi,
body.pf-home-v2 #pfTimelineSidebarSummary .pf-home-insight {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #3b4e69;
    border-radius: 12px;
    background: #1d2838;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-home-balance {
    background: linear-gradient(115deg, #193a79, #2054bc);
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-home-kpi strong {
    font-size: clamp(15px, 1.5vw, 23px);
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-home-kpi small {
    font-size: 10px;
    color: #c2cbd8;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-home-insight svg {
    width: 100%;
    height: 40px;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    margin: 0 0 16px;
    padding: 14px 20px;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-track {
    padding-left: 0;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-track::before {
    left: 42px;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-day {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin: 0 0 20px;
    min-width: 0;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-date-tile {
    width: 84px;
    min-width: 0;
    position: relative;
    z-index: 1;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-day-body {
    min-width: 0;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-day-heading {
    min-width: 0;
    margin: 0 0 9px;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(82px, 120px) minmax(85px, 110px) 24px 104px;
    gap: clamp(5px, 0.75vw, 12px);
    width: calc(100% - 22px);
    min-width: 0;
    margin: 6px 0 6px 22px;
    padding: 8px 10px;
    box-sizing: border-box;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry-main strong {
    overflow-wrap: anywhere;
    line-height: 1.3;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-category {
    overflow-wrap: anywhere;
}
body.pf-home-v2 #pfModernTransactionCards .pf-visual-row-actions {
    min-width: 0;
}

/* Visual 3: tabela compacta em largura fluida, grupos integrados às linhas. */
body.pf-home-v3 #pfModernTransactionCards .pf-premium-header {
    min-height: 58px;
    margin: 0 0 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
body.pf-home-v3 #pfModernTransactionCards .pf-premium-table-head,
body.pf-home-v3 #pfModernTransactionCards .pf-premium-row {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(110px, 2fr) 100px minmax(90px, 1.2fr) 76px minmax(95px, 1fr) 38px 96px;
    gap: clamp(3px, 0.55vw, 10px);
    box-sizing: border-box;
}
body.pf-home-v3 #pfModernTransactionCards .pf-premium-section {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
body.pf-home-v3 #pfModernTransactionCards .pf-premium-row {
    min-height: 37px;
}
body.pf-home-v3 #pfModernTransactionCards .pf-premium-description {
    overflow: hidden;
}
body.pf-home-v3 #pfModernTransactionCards .pf-premium-description strong {
    text-overflow: ellipsis;
}
body.pf-home-v3 #pfModernTransactionCards .pf-premium-row .pf-home-tx-amount {
    font-size: 11px;
}
body.pf-home-v3 #pfModernTransactionCards .pf-premium-table-head span:nth-child(7) {
    text-align: center;
}
@media (max-width: 1380px) {
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry {
        grid-template-columns: 30px minmax(0, 1fr) minmax(70px, 95px) 24px 100px;
    }
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry .pf-timeline-category {
        display: none;
    }
    body.pf-home-v3 #pfModernTransactionCards .pf-premium-table-head,
    body.pf-home-v3 #pfModernTransactionCards .pf-premium-row {
        grid-template-columns: minmax(105px, 2fr) 94px minmax(80px, 1fr) 70px 92px 28px 92px;
    }
}
@media (max-width: 1080px) {
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry {
        grid-template-columns: 30px minmax(0, 1fr) minmax(82px, 100px) 22px 90px;
    }
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry .pf-home-tx-consider {
        display: flex;
    }
    body.pf-home-v3 #pfModernTransactionCards .pf-premium-table-head,
    body.pf-home-v3 #pfModernTransactionCards .pf-premium-row {
        grid-template-columns: minmax(95px, 2fr) 80px minmax(75px, 1fr) 65px 80px 24px 86px;
    }
    body.pf-home-v3 #pfModernTransactionCards .pf-premium-kind {
        padding: 3px;
        font-size: 10px;
    }
}

/* Visual 2 — ações e gráficos acessíveis, sem faixa solta acima da cronologia. */
body.pf-home-v2 #viewLancamentos > #pfModernOverview:not([hidden]) {
    display: none !important;
}
body.pf-home-v2 #viewLancamentos > #pfModernTransactionCards:not([hidden]) {
    flex: 1 1 auto;
    min-height: 0;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 82px;
}
body.pf-home-v2 .pf-timeline-heading {
    min-width: 200px;
    flex: 1 1 240px;
}
body.pf-home-v2 .pf-timeline-header-right {
    display: flex;
    flex: 1 1 420px;
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
body.pf-home-v2 .pf-timeline-count {
    color: #a4b3c8;
    font-size: 11px;
}
body.pf-home-v2 .pf-timeline-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
body.pf-home-v2 .pf-timeline-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 8px;
    border: 1px solid #435571;
    background: #26364c;
    color: #e4eeff;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
body.pf-home-v2 .pf-timeline-toolbar button:hover,
body.pf-home-v2 .pf-timeline-toolbar button:focus-visible {
    background: #34567f;
    border-color: #70adfa;
}
body.pf-home-v2 .pf-timeline-toolbar .pf-timeline-add {
    background: #1c4b9b;
    border-color: #438af0;
}
body.pf-home-v2 .pf-timeline-toolbar .pf-timeline-delete {
    color: #ff9ca8;
}
body.pf-home-v2 #pfTimelineSidebarSummary {
    flex: 0 1 46%;
    min-height: 130px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-kpis {
    display: grid;
    gap: 7px;
    flex: 0 0 auto;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-charts {
    border: 1px solid #3b4e69;
    border-radius: 10px;
    flex: 0 0 auto;
    min-width: 0;
    overflow: hidden;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-charts summary {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 11px;
    background: #24364c;
    color: #d8e9ff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    list-style: none;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-charts summary::-webkit-details-marker {
    display: none;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-charts summary .fa-chevron-down {
    margin-left: auto;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-charts[open] summary .fa-chevron-down {
    transform: rotate(180deg);
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-charts-body {
    display: grid;
    gap: 8px;
    padding: 8px;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-charts-body .pf-home-insight {
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 1250px) {
    body.pf-home-v2 .pf-timeline-toolbar button span {
        display: none;
    }
    body.pf-home-v2 .pf-timeline-toolbar button {
        min-width: 36px;
        padding: 6px 9px;
    }
}

/* Visual 2: resumo acima das contas, blocos independentes sem altura reservada. */
body.pf-home-v2 #sidebarPanel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.pf-home-v2 #sidebarPanel #pfTimelineSidebarSummary {
    order: -1;
    flex: 0 1 auto;
    min-height: 0;
    max-height: 52%;
    overflow: auto;
    padding: 9px;
    margin: 0;
    border-top: 0;
    border-bottom: 1px solid #3c506c;
    background: #141d2b;
    gap: 6px;
}
body.pf-home-v2 #sidebarPanel #accountsListTree {
    order: 1;
    flex: 1 1 0;
    min-height: 100px;
    overflow-y: auto;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-kpis,
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-charts {
    display: grid;
    gap: 5px;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-item {
    display: block;
    min-width: 0;
    border: 1px solid #344b67;
    border-radius: 9px;
    overflow: hidden;
    background: #1b2737;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    cursor: pointer;
    list-style: none;
    color: #d7e9ff;
    font-size: 12px;
    font-weight: 700;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-item > summary::-webkit-details-marker {
    display: none;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-item > summary .fa-chevron-down {
    transition: transform 0.15s ease;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-item[open] > summary .fa-chevron-down {
    transform: rotate(180deg);
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-content {
    padding: 0 5px 5px;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-content .pf-home-kpi,
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-content .pf-home-insight {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-item:not([open]) .pf-timeline-summary-content {
    display: none;
}

/* Visual 2: títulos únicos, indicadores compactos e altura ajustável. */
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-heading h3 {
    margin: 0;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-heading label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #a9bfdc;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-heading input {
    width: 74px;
    accent-color: #4c9aff;
    cursor: ew-resize;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-kpis {
    gap: 4px;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-kpis .pf-timeline-summary-item > summary {
    padding: 5px 9px;
    min-height: 22px;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-kpis .pf-timeline-summary-content {
    padding: 0 5px 4px;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-kpis .pf-home-kpi {
    height: var(--pf-v2-card-height, 58px);
    min-height: 0;
    overflow: auto;
    padding: 5px 9px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
/* O título já está no controle expansível: não repeti-lo dentro do cartão. */
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-kpis .pf-home-kpi > span:first-child {
    display: none;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-kpis .pf-home-kpi strong {
    font-size: 18px;
    line-height: 1.15;
    margin: 0;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-kpis .pf-home-kpi small {
    font-size: 10px;
    line-height: 1.2;
    margin: 0;
}

/* Visual 2 — composição aprovada: contas e gráficos na lateral,
   KPIs horizontais acima da linha do tempo; sem coluna central de gráficos. */
@media (min-width: 901px) {
    body.pf-home-v2 #viewLancamentos > #pfModernOverview:not([hidden]) {
        display: block !important;
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        overflow: visible;
    }
    body.pf-home-v2 #pfModernOverview > .pf-home-kpis:not([hidden]) {
        display: grid !important;
        grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        margin: 10px 0 12px;
    }
    body.pf-home-v2 #pfModernOverview > .pf-home-kpis[hidden] {
        display: none !important;
    }
    body.pf-home-v2 #pfModernOverview .pf-home-kpi {
        min-width: 0;
        height: 84px;
        box-sizing: border-box;
        padding: 12px 14px;
        overflow: hidden;
    }
    body.pf-home-v2 #pfModernOverview .pf-home-kpi strong {
        font-size: clamp(17px, 1.65vw, 25px);
    }
    body.pf-home-v2 #pfModernOverview > #pfHomeInsights {
        display: none !important;
    }
    body.pf-home-v2 #viewLancamentos > #pfModernTransactionCards:not([hidden]) {
        flex: 1 1 auto;
    }
}
body.pf-home-v2 #sidebarPanel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.pf-home-v2 #sidebarPanel #accountsListTree {
    order: 0;
    flex: 1 1 54%;
    min-height: 130px;
    overflow-y: auto;
}
body.pf-home-v2 #sidebarPanel #pfTimelineSidebarSummary {
    order: 1;
    flex: 1 1 40%;
    min-height: 105px;
    max-height: 48%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    background: #141d2b;
    border-top: 1px solid #344b67;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-charts {
    display: grid;
    gap: 8px;
}
body.pf-home-v2 #pfTimelineSidebarSummary .pf-timeline-summary-content .pf-home-insight {
    width: 100%;
    box-sizing: border-box;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-date-preference {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px 10px;
    color: #b8cce7;
    font-size: 12px;
}
body.pf-home-v2 #pfTimelineDateInitial {
    background: #202c3e;
    border: 1px solid #496488;
    color: #edf5ff;
    border-radius: 7px;
    padding: 5px 26px 5px 9px;
    cursor: pointer;
}
@media (max-width: 900px) {
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-date-preference {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px;
    }
}

/* Visual 2: grade definitiva. Contas ficam sozinhas na lateral esquerda;
   KPIs no topo, gráficos recolhíveis ao lado da linha do tempo. */
@media (min-width: 901px) {
    body.pf-home-v2 #sidebarPanel #pfTimelineSidebarSummary {
        display: none !important;
    }
    body.pf-home-v2 #viewLancamentos:not(.hidden) {
        display: flex !important;
        flex-direction: column !important;
        min-width: 0;
        min-height: 0;
        overflow: hidden !important;
        padding: 0 14px 12px !important;
        gap: 0 !important;
    }
    body.pf-home-v2 #viewLancamentos > #pfModernOverview:not([hidden]) {
        display: block !important;
        flex: 0 0 auto !important;
        min-height: 0 !important;
        height: auto !important;
        width: 100% !important;
        overflow: visible !important;
    }
    body.pf-home-v2 #pfModernOverview > .pf-home-overview-toolbar,
    body.pf-home-v2 #pfModernOverview > .pf-home-list-title {
        display: none !important;
    }
    body.pf-home-v2 #pfModernOverview > .pf-home-kpis:not([hidden]) {
        display: grid !important;
        grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 10px 0 12px !important;
        height: auto !important;
    }
    body.pf-home-v2 #pfModernOverview > .pf-home-kpis[hidden] {
        display: none !important;
    }
    body.pf-home-v2 #pfModernOverview .pf-home-kpi {
        min-width: 0 !important;
        min-height: 0 !important;
        height: 84px !important;
        padding: 12px 14px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    body.pf-home-v2 #viewLancamentos > #pfTimelineContentLayout {
        display: flex !important;
        flex: 1 1 0 !important;
        min-height: 0 !important;
        min-width: 0 !important;
        gap: 12px !important;
        overflow: hidden !important;
        width: 100% !important;
        margin: 0 !important;
    }
    body.pf-home-v2 #pfTimelineContentLayout > #pfModernTransactionCards:not([hidden]) {
        display: block !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        min-height: 0 !important;
        width: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        margin: 0 !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }
    body.pf-home-v2 #pfTimelineContentLayout > #pfTimelineInsightsPanel {
        display: flex !important;
        flex: 0 0 clamp(225px, 23%, 315px) !important;
        min-width: 0 !important;
        min-height: 0 !important;
        flex-direction: column;
        border: 1px solid #34465d;
        border-radius: 13px;
        background: #121b29;
        overflow: hidden !important;
        transition: flex-basis 0.18s ease;
    }
    body.pf-home-v2 #pfTimelineContentLayout.pf-timeline-insights-hidden > #pfTimelineInsightsPanel {
        flex-basis: 42px !important;
    }
    body.pf-home-v2 #pfTimelineContentLayout.pf-timeline-insights-hidden .pf-timeline-insights-body,
    body.pf-home-v2 #pfTimelineContentLayout.pf-timeline-insights-hidden .pf-timeline-insights-heading > strong {
        display: none !important;
    }
    body.pf-home-v2 #pfTimelineContentLayout.pf-timeline-insights-hidden .pf-timeline-insights-heading {
        padding: 8px 3px;
    }
    body.pf-home-v2 #pfTimelineContentLayout.pf-timeline-insights-hidden #pfTimelineInsightsToggle {
        writing-mode: vertical-rl;
        width: 34px;
        padding: 8px 4px;
    }
}
body.pf-home-v2 .pf-timeline-insights-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 9px;
    color: #dcecff;
    font-size: 12px;
    border-bottom: 1px solid #34465d;
}
body.pf-home-v2 #pfTimelineInsightsToggle {
    border: 1px solid #425a79;
    border-radius: 7px;
    background: #26374e;
    color: #dbeaff;
    padding: 5px 7px;
    cursor: pointer;
    font-size: 11px;
}
body.pf-home-v2 #pfTimelineInsightsToggle i {
    margin-right: 4px;
}
body.pf-home-v2 .pf-timeline-insights-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 9px;
}
body.pf-home-v2 #pfTimelineInsightsPanel #pfHomeInsights {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    width: 100% !important;
    height: auto !important;
    position: static !important;
    overflow: visible !important;
}
body.pf-home-v2 #pfTimelineInsightsPanel .pf-home-insight {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 104px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
body.pf-home-v2 #pfTimelineInsightsPanel .pf-home-insight svg {
    max-width: 100% !important;
}
@media (max-width: 900px) {
    body.pf-home-v2 #viewLancamentos > #pfTimelineContentLayout {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }
    body.pf-home-v2 #pfTimelineInsightsPanel {
        flex: 0 0 auto;
        max-height: 200px;
        overflow-y: auto;
    }
    body.pf-home-v2 #pfTimelineContentLayout.pf-timeline-insights-hidden #pfTimelineInsightsPanel {
        max-height: 40px;
    }
    body.pf-home-v2 #pfTimelineContentLayout.pf-timeline-insights-hidden .pf-timeline-insights-body {
        display: none;
    }
    body.pf-home-v2 #pfTimelineContentLayout > #pfModernTransactionCards {
        flex: 1 1 auto;
        min-height: 0;
    }
}

/* Visual 2 — densidade vertical e controle exclusivo dos quatro KPIs.
   Os seletores e gráficos continuam independentes; nenhuma regra atinge os demais visuais. */
body.pf-home-v2 #pfModernOverview {
    position: relative;
}
body.pf-home-v2 #pfModernOverview > .pf-timeline-kpi-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 2px 0 0;
    border: 1px solid #334965;
    border-radius: 6px;
    background: #202d40;
    color: #c4d9f6;
    font-size: 10px;
    padding: 3px 8px;
    cursor: pointer;
}
body.pf-home-v2 #pfModernOverview > .pf-timeline-kpi-toggle:hover {
    border-color: #66a5f5;
}
body:not(.pf-home-v2) #pfModernOverview > .pf-timeline-kpi-toggle {
    display: none !important;
}
@media (min-width: 901px) {
    body.pf-home-v2 #viewLancamentos > #pfModernOverview:not([hidden]) {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch;
    }
    body.pf-home-v2 #pfModernOverview > .pf-timeline-kpi-toggle {
        align-self: flex-end;
        margin: 0 0 2px;
        line-height: 1;
    }
    body.pf-home-v2 #pfModernOverview > .pf-home-kpis:not([hidden]) {
        margin: 0 0 5px !important;
        gap: 8px !important;
    }
    body.pf-home-v2 #pfModernOverview > .pf-home-kpis[hidden] {
        display: none !important;
    }
    body.pf-home-v2 #pfModernOverview .pf-home-kpi {
        height: 73px !important;
        padding: 8px 12px !important;
    }
    body.pf-home-v2 #pfModernOverview .pf-home-kpi strong {
        font-size: clamp(16px, 1.55vw, 23px) !important;
    }
    body.pf-home-v2 #viewLancamentos > #pfTimelineContentLayout {
        gap: 8px !important;
    }
    body.pf-home-v2 #pfTimelineContentLayout > #pfTimelineInsightsPanel {
        border-radius: 10px;
    }
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header {
        min-height: 53px !important;
        padding: 7px 12px !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }
    body.pf-home-v2 .pf-timeline-heading {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
    body.pf-home-v2 .pf-timeline-header-right {
        flex: 0 0 auto !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }
    body.pf-home-v2 .pf-timeline-toolbar {
        flex-wrap: nowrap !important;
    }
    body.pf-home-v2 .pf-timeline-toolbar .pf-timeline-add {
        margin-left: auto;
    }
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-date-preference {
        padding: 3px 8px !important;
        min-height: 29px !important;
        margin: 0 0 3px !important;
    }
}

/* Visual 2: categoria é a informação principal; conta fica em segundo plano.
   A coluna estreita de categoria foi eliminada para evitar quebras de texto. */
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry {
    grid-template-columns: 34px minmax(180px, 1fr) minmax(100px, 120px) 24px 104px;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry-main strong {
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
    font-size: 12px;
    line-height: 1.3;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 1380px) {
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry {
        grid-template-columns: 30px minmax(130px, 1fr) minmax(85px, 100px) 24px 100px;
    }
}
@media (max-width: 1080px) {
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry {
        grid-template-columns: 30px minmax(105px, 1fr) minmax(80px, 95px) 22px 90px;
    }
}

/* Visual 2: controle lateral, sem faixa vazia acima dos indicadores. */
@media (min-width: 901px) {
    body.pf-home-v2 #viewLancamentos > #pfModernOverview:not([hidden]) {
        display: grid !important;
        grid-template-columns: 32px minmax(0, 1fr) !important;
        grid-template-rows: auto !important;
        align-items: stretch !important;
        column-gap: 6px !important;
        margin: 2px 0 6px !important;
        padding: 0 !important;
        min-height: 0 !important;
    }
    body.pf-home-v2 #pfModernOverview > .pf-timeline-kpi-toggle {
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-self: stretch !important;
        justify-self: stretch !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 4px !important;
        width: 32px !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 30px !important;
        margin: 0 !important;
        padding: 5px 3px !important;
        writing-mode: vertical-rl !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        border-radius: 7px !important;
    }
    body.pf-home-v2 #pfModernOverview > .pf-home-kpis:not([hidden]) {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin: 0 !important;
        align-self: stretch !important;
        gap: 8px !important;
    }
    body.pf-home-v2 #pfModernOverview > .pf-home-kpis[hidden] {
        display: none !important;
    }
    body.pf-home-v2 #pfModernOverview .pf-home-kpi {
        height: 73px !important;
    }
    body.pf-home-v2 #pfModernOverview:has(> .pf-home-kpis[hidden]) {
        grid-template-rows: 30px !important;
        margin: 2px 0 5px !important;
    }
    body.pf-home-v2 #pfModernOverview:has(> .pf-home-kpis[hidden]) > .pf-timeline-kpi-toggle {
        writing-mode: horizontal-tb !important;
        width: 32px !important;
        min-height: 30px !important;
        overflow: visible !important;
    }
    body.pf-home-v2 #pfModernOverview:has(> .pf-home-kpis[hidden]) > .pf-timeline-kpi-toggle span {
        display: none !important;
    }
    body.pf-home-v2 #viewLancamentos > #pfTimelineContentLayout {
        margin-top: 0 !important;
    }
}

/* Visual 2: controles de indicadores e gráficos na barra superior,
   no mesmo padrão de agrupamento por tipo/categoria. */
body:not(.pf-home-v2) .pf-v2-toolbar-flag {
    display: none !important;
}
body.pf-home-v2 .pf-v2-toolbar-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding-left: 12px;
    border-left: 1px solid #354052;
    white-space: nowrap;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}
body.pf-home-v2 .pf-v2-toolbar-flag input {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
}
body.pf-home-v2 #pfModernOverview > .pf-timeline-kpi-toggle,
body.pf-home-v2 #pfTimelineInsightsToggle {
    display: none !important;
}
body.pf-home-v2 #pfModernOverview:not([hidden]) {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 0 5px !important;
}
body.pf-home-v2 #pfModernOverview > .pf-home-kpis:not([hidden]) {
    display: grid !important;
    margin: 0 !important;
}
body.pf-home-v2 #pfModernOverview > .pf-home-kpis[hidden] {
    display: none !important;
}
body.pf-home-v2 #pfModernOverview:has(> .pf-home-kpis[hidden]) {
    display: none !important;
}
body.pf-home-v2 #pfTimelineContentLayout.pf-timeline-insights-hidden > #pfTimelineInsightsPanel {
    display: none !important;
    flex-basis: 0 !important;
    width: 0 !important;
}
body.pf-home-v2 #pfTimelineContentLayout.pf-timeline-insights-hidden > #pfModernTransactionCards {
    flex: 1 1 100% !important;
}
body.pf-home-v2 #pfTimelineInsightsPanel .pf-timeline-insights-heading {
    justify-content: flex-start !important;
}

/* Visual 2 — painel financeiro sem repetição: os dois indicadores
   de fluxo contêm seus próprios minigráficos; coluna lateral só ranking. */
body.pf-home-v2 #pfModernOverview {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.pf-home-v2 #pfModernOverview .pf-home-kpis {
    grid-template-columns: 1.55fr 1fr 1fr 1fr !important;
    gap: 8px !important;
}
body.pf-home-v2 #pfModernOverview .pf-home-kpi {
    min-height: 94px !important;
    height: 94px !important;
    padding: 9px 12px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}
body.pf-home-v2 #pfModernOverview .pf-home-kpi > span {
    font-size: 12px !important;
}
body.pf-home-v2 #pfModernOverview .pf-home-kpi > strong {
    font-size: clamp(16px, 1.45vw, 25px) !important;
    line-height: 1.2 !important;
}
body.pf-home-v2 #pfModernOverview .pf-home-kpi > small {
    font-size: 10px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.pf-home-v2 .pf-v2-kpi-chart {
    height: 23px;
    flex: 0 0 23px;
    margin-top: auto;
    overflow: hidden;
}
body.pf-home-v2 .pf-v2-kpi-chart svg {
    display: block;
    width: 100%;
    height: 23px;
}
body.pf-home-v2 #pfTimelineInsightsPanel .pf-timeline-insights-heading {
    padding: 9px 11px;
}
body.pf-home-v2 #pfTimelineInsightsPanel .pf-home-insight:not(.pf-v2-top-expenses) {
    display: none !important;
}
body.pf-home-v2 #pfTimelineInsightsPanel .pf-v2-top-expenses {
    min-height: 0 !important;
    height: auto !important;
    background: transparent !important;
    border: 0 !important;
    padding: 2px !important;
}
body.pf-home-v2 .pf-v2-expenses-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
}
body.pf-home-v2 .pf-v2-expenses-heading > span {
    display: none;
}
body.pf-home-v2 .pf-v2-expenses-heading label {
    font-size: 11px;
    color: #c9d9ec;
    white-space: nowrap;
}
body.pf-home-v2 .pf-v2-expenses-heading select {
    color: #e6f1ff;
    background: #243449;
    border: 1px solid #465b76;
    border-radius: 6px;
    padding: 3px 5px;
    margin-left: 5px;
}
body.pf-home-v2 .pf-v2-toolbar-flag {
    margin-left: 0 !important;
    padding-left: 12px !important;
    gap: 8px !important;
}
body.pf-home-v2 .pf-v2-toolbar-flag input {
    width: 16px;
    height: 16px;
    margin: 0;
}
body.pf-home-v2 #pfTimelineContentLayout {
    margin-top: 4px !important;
}
body.pf-home-v2 #pfTimelineInsightsPanel .pf-home-category {
    margin-bottom: 9px;
}
@media (max-width: 1100px) {
    body.pf-home-v2 #pfModernOverview .pf-home-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
    body.pf-home-v2 #pfModernOverview .pf-home-kpi {
        padding: 7px !important;
    }
}

/* Visual 2: retirar a coluna fantasma do antigo botão vertical dos KPIs. */
@media (min-width: 901px) {
    body.pf-home-v2 #viewLancamentos > #pfModernOverview:not([hidden]) {
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        width: 100% !important;
        margin: 0 0 6px !important;
        padding: 0 !important;
    }
    body.pf-home-v2 #pfModernOverview > .pf-home-kpis:not([hidden]) {
        display: grid !important;
        width: 100% !important;
        grid-column: auto !important;
        grid-row: auto !important;
        grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr)) !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
}
/* Os novos controles usam a mesma estrutura dos agrupamentos existentes. */
body:not(.pf-home-v2) .pf-v2-toolbar-flag {
    display: none !important;
}
body.pf-home-v2 .pf-v2-toolbar-flag {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: 8px !important;
    padding-left: 12px !important;
    border-left: 1px solid #465063 !important;
    white-space: nowrap;
    font-size: inherit !important;
}
body.pf-home-v2 .pf-v2-toolbar-flag input {
    appearance: auto;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    accent-color: #3b82f6;
}
body.pf-home-v2 .pf-v2-toolbar-flag label {
    font-size: inherit;
    font-weight: 600;
    margin: 0;
    cursor: pointer;
}

/* Visual 2: flags de Indicadores e Principais gastos seguem as mesmas
   classes de layout e controles dos agrupamentos Categoria/Tipo. */
body.pf-home-v2 .pf-v2-toolbar-flag {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin-left: 0.5rem !important;
    padding-left: 0.75rem !important;
    border-left: 1px solid !important;
    border-color: #475569 !important;
    font-size: inherit !important;
    white-space: nowrap;
}
body.pf-home-v2 .pf-v2-toolbar-flag input {
    appearance: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    accent-color: #3b82f6;
}
body.pf-home-v2 .pf-v2-toolbar-flag label {
    margin-left: 0.375rem !important;
    font-size: inherit !important;
    font-weight: 600 !important;
    line-height: inherit !important;
}

/* Visual 2: as quatro flags compartilham uma única regra visual, sem
   diferenças de aparência, recuo, dimensão ou espaçamento. */
body.pf-home-v2 #subBar .pf-v2-unified-flag {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    gap: 6px !important;
    margin: 0 0 0 8px !important;
    padding: 0 0 0 12px !important;
    border: 0 !important;
    border-left: 1px solid #475569 !important;
    font: inherit !important;
    white-space: nowrap !important;
}
body.pf-home-v2 #subBar .pf-v2-unified-flag input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    box-sizing: border-box !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #3b82f6 !important;
    flex: 0 0 16px !important;
    cursor: pointer;
}
body.pf-home-v2 #subBar .pf-v2-unified-flag label {
    margin: 0 !important;
    padding: 0 !important;
    font: inherit !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    cursor: pointer;
}
/* Visual 2: categoria e descrição à esquerda, conta destacada ao centro. */
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry {
    grid-template-columns: 34px minmax(125px, 1fr) minmax(100px, 155px) minmax(90px, 110px) 24px 104px !important;
    align-items: center !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry-main {
    min-width: 0 !important;
    overflow: hidden;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry-main small {
    display: block !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px !important;
    color: #9cacc1;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-account {
    display: block;
    justify-self: center;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 7px;
    background: #303f55;
    border: 1px solid #40536d;
    color: #dceaff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
@media (max-width: 1200px) {
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry {
        grid-template-columns: 30px minmax(100px, 1fr) minmax(80px, 110px) minmax(80px, 95px) 22px 94px !important;
        gap: 5px !important;
    }
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-account {
        padding: 5px 6px;
        font-size: 10px;
    }
}
@media (max-width: 850px) {
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry {
        grid-template-columns: 28px minmax(85px, 1fr) minmax(70px, 95px) minmax(75px, 90px) 20px 85px !important;
    }
}

/* Visual 2 — checkbox único, desenhado de forma idêntica nos quatro filtros.
   Evita a diferença entre o checkbox nativo e o checkbox do Tailwind. */
body.pf-home-v2 #subBar .pf-v2-unified-flag input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-grid !important;
    place-content: center !important;
    box-sizing: border-box !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    flex: 0 0 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #718096 !important;
    border-radius: 4px !important;
    background: #1b2635 !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    cursor: pointer !important;
}
body.pf-home-v2 #subBar .pf-v2-unified-flag input[type="checkbox"]:checked {
    border-color: #3b82f6 !important;
    background: #3b82f6 !important;
}
body.pf-home-v2 #subBar .pf-v2-unified-flag input[type="checkbox"]:checked::after {
    content: "";
    display: block;
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}
body.pf-home-v2 #subBar .pf-v2-unified-flag input[type="checkbox"]:focus-visible {
    outline: 2px solid #93c5fd !important;
    outline-offset: 2px !important;
}

/* Visual 2: etiquetas de conta compactas; transferências em dois nomes com seta. */
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-account {
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: fit-content !important;
    min-width: 0 !important;
    padding: 4px 7px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-account-transfer {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    overflow: hidden !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-account-transfer .pf-timeline-account-name {
    display: block !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-account-transfer > i {
    flex: 0 0 auto !important;
    color: #60a5fa !important;
    font-size: 9px !important;
}

/* Visual 2: contrastes completos por skin. O Visual Exclusivo Pro permanece escuro. */
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards {
    background: var(--skin-bg) !important;
    color: var(--skin-text) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineContentLayout,
#pfTimelineContentLayout .pf-timeline-track,
#pfTimelineContentLayout .pf-timeline-day-body {
    background: transparent !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel {
    background: var(--skin-surface) !important;
    color: var(--skin-text) !important;
    border-color: var(--skin-border) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel
    .pf-timeline-insights-heading {
    background: var(--skin-alt) !important;
    color: var(--skin-text) !important;
    border-color: var(--skin-border) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel
    .pf-home-category,
#pfTimelineInsightsPanel .pf-home-category span,
#pfTimelineInsightsPanel .pf-home-category strong,
#pfTimelineInsightsPanel .pf-v2-expenses-heading label {
    color: var(--skin-text) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel
    .pf-home-category
    small,
#pfTimelineInsightsPanel .pf-home-category .pf-home-progress {
    color: var(--skin-muted) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel
    .pf-v2-expenses-heading
    select {
    background: var(--skin-surface) !important;
    color: var(--skin-text) !important;
    border-color: var(--skin-border) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-header {
    background: var(--skin-surface) !important;
    color: var(--skin-text) !important;
    border-color: var(--skin-border) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-header
    h3,
#pfModernTransactionCards .pf-timeline-heading {
    color: var(--skin-text) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-header
    p,
#pfModernTransactionCards .pf-timeline-count {
    color: var(--skin-muted) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-date-preference {
    color: var(--skin-text) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-date-preference
    select {
    background: var(--skin-surface) !important;
    color: var(--skin-text) !important;
    border-color: var(--skin-border) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-day-heading {
    background: var(--skin-alt) !important;
    color: var(--skin-text) !important;
    border-color: var(--skin-border) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-day-heading
    button,
#pfModernTransactionCards .pf-timeline-day-heading span {
    color: var(--skin-text) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-entry {
    background: var(--skin-surface) !important;
    color: var(--skin-text) !important;
    border-top-color: var(--skin-border) !important;
    border-right-color: var(--skin-border) !important;
    border-bottom-color: var(--skin-border) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-entry-main,
#pfModernTransactionCards .pf-timeline-category {
    color: var(--skin-text) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-entry-main
    small {
    color: var(--skin-muted) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-account {
    background: var(--skin-alt) !important;
    color: var(--skin-text) !important;
    border-color: var(--skin-border) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernOverview
    .pf-home-kpi:not(:first-child) {
    background: var(--skin-surface) !important;
    color: var(--skin-text) !important;
    border-color: var(--skin-border) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernOverview
    .pf-home-kpi:not(:first-child)
    > span,
#pfModernOverview .pf-home-kpi:not(:first-child) > small {
    color: var(--skin-muted) !important;
}
body.pf-home-v2.pro-mode.dark #pfModernTransactionCards {
    background: #0c1017 !important;
    color: #eef5ff !important;
}
body.pf-home-v2.pro-mode.dark #pfTimelineContentLayout,
#pfTimelineContentLayout .pf-timeline-track,
#pfTimelineContentLayout .pf-timeline-day-body {
    background: transparent !important;
}
body.pf-home-v2.pro-mode.dark #pfTimelineInsightsPanel {
    background: #1d2634 !important;
    color: #eef5ff !important;
    border-color: #405773 !important;
}
body.pf-home-v2.pro-mode.dark #pfTimelineInsightsPanel .pf-timeline-insights-heading {
    background: #223b5b !important;
    color: #eef5ff !important;
    border-color: #405773 !important;
}
body.pf-home-v2.pro-mode.dark #pfTimelineInsightsPanel .pf-home-category,
#pfTimelineInsightsPanel .pf-home-category span,
#pfTimelineInsightsPanel .pf-home-category strong,
#pfTimelineInsightsPanel .pf-v2-expenses-heading label {
    color: #eef5ff !important;
}
body.pf-home-v2.pro-mode.dark #pfTimelineInsightsPanel .pf-home-category small,
#pfTimelineInsightsPanel .pf-home-category .pf-home-progress {
    color: #b4c4db !important;
}
body.pf-home-v2.pro-mode.dark #pfTimelineInsightsPanel .pf-v2-expenses-heading select {
    background: #1d2634 !important;
    color: #eef5ff !important;
    border-color: #405773 !important;
}
body.pf-home-v2.pro-mode.dark #pfModernTransactionCards .pf-timeline-header {
    background: #1d2634 !important;
    color: #eef5ff !important;
    border-color: #405773 !important;
}
body.pf-home-v2.pro-mode.dark #pfModernTransactionCards .pf-timeline-header h3,
#pfModernTransactionCards .pf-timeline-heading {
    color: #eef5ff !important;
}
body.pf-home-v2.pro-mode.dark #pfModernTransactionCards .pf-timeline-header p,
#pfModernTransactionCards .pf-timeline-count {
    color: #b4c4db !important;
}
body.pf-home-v2.pro-mode.dark #pfModernTransactionCards .pf-timeline-date-preference {
    color: #eef5ff !important;
}
body.pf-home-v2.pro-mode.dark #pfModernTransactionCards .pf-timeline-date-preference select {
    background: #1d2634 !important;
    color: #eef5ff !important;
    border-color: #405773 !important;
}
body.pf-home-v2.pro-mode.dark #pfModernTransactionCards .pf-timeline-day-heading {
    background: #223b5b !important;
    color: #eef5ff !important;
    border-color: #405773 !important;
}
body.pf-home-v2.pro-mode.dark #pfModernTransactionCards .pf-timeline-day-heading button,
#pfModernTransactionCards .pf-timeline-day-heading span {
    color: #eef5ff !important;
}
body.pf-home-v2.pro-mode.dark #pfModernTransactionCards .pf-timeline-entry {
    background: #1d2634 !important;
    color: #eef5ff !important;
    border-top-color: #405773 !important;
    border-right-color: #405773 !important;
    border-bottom-color: #405773 !important;
}
body.pf-home-v2.pro-mode.dark #pfModernTransactionCards .pf-timeline-entry-main,
#pfModernTransactionCards .pf-timeline-category {
    color: #eef5ff !important;
}
body.pf-home-v2.pro-mode.dark #pfModernTransactionCards .pf-timeline-entry-main small {
    color: #b4c4db !important;
}
body.pf-home-v2.pro-mode.dark #pfModernTransactionCards .pf-timeline-account {
    background: #223b5b !important;
    color: #eef5ff !important;
    border-color: #405773 !important;
}
body.pf-home-v2.pro-mode.dark #pfModernOverview .pf-home-kpi:not(:first-child) {
    background: #1d2634 !important;
    color: #eef5ff !important;
    border-color: #405773 !important;
}
body.pf-home-v2.pro-mode.dark #pfModernOverview .pf-home-kpi:not(:first-child) > span,
#pfModernOverview .pf-home-kpi:not(:first-child) > small {
    color: #b4c4db !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel
    .pf-v2-top-expenses {
    color: var(--skin-text) !important;
}
body.pf-home-v2.pro-mode.dark #pfModernTransactionCards .pf-timeline-date-tile {
    background: #224469 !important;
    color: #fff !important;
}
body.pf-home-v2.pro-mode.dark #pfModernTransactionCards .pf-timeline-date-tile * {
    color: #fff !important;
}

/* Visual 2: correção de contraste nas skins claras; escopo aplicado individualmente. */
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #subBar,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #subBar
    label,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #subBar
    .pf-v2-unified-flag,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #subBar
    .pf-v2-unified-flag
    span {
    color: var(--skin-text, #1e293b) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel
    .pf-home-insights,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel
    .pf-home-category,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel
    .pf-home-category
    span,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel
    .pf-home-category
    strong,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel
    .pf-v2-expenses-heading,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel
    .pf-v2-expenses-heading
    label {
    color: var(--skin-text, #1e293b) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel
    .pf-home-category
    small,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel
    .pf-home-category
    .pf-home-progress,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel
    .pf-home-category
    .pf-home-category-label {
    color: var(--skin-muted, #475569) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-header,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-header
    h3,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-heading,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-header
    strong,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-header
    span {
    color: var(--skin-text, #1e293b) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-header
    p,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-count {
    color: var(--skin-muted, #475569) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-day-heading,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-day-heading
    button,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-day-heading
    span,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-day-heading
    strong,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-day-heading
    small {
    color: var(--skin-text, #1e293b) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-entry,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-entry-main,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-category,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-entry-main
    strong,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-entry-main
    b {
    color: var(--skin-text, #1e293b) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-entry-main
    small,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-entry-main
    .pf-timeline-description {
    color: var(--skin-muted, #475569) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-account,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-account-name {
    color: var(--skin-text, #1e293b) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-date-preference,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-date-preference
    label {
    color: var(--skin-text, #1e293b) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernOverview
    .pf-home-kpi:not(:first-child)
    > small {
    color: var(--skin-muted, #475569) !important;
}

/* Visual 2: barra de filtros coerente com as skins claras. */
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #subBar {
    background: var(--skin-surface, #ffffff) !important;
    color: var(--skin-text, #1e293b) !important;
    border: 1px solid var(--skin-border, #cbd5e1) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #subBar
    label,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #subBar
    .pf-v2-unified-flag
    label,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #subBar
    .pf-v2-unified-flag,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #subBar
    #periodLabel,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #subBar
    #transactionCount {
    color: var(--skin-text, #1e293b) !important;
    opacity: 1 !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #subBar
    .pf-v2-unified-flag {
    border-left-color: var(--skin-border, #cbd5e1) !important;
}

/* Visual 2 — acabamento de contraste das skins claras; demais visuais preservados. */
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-add {
    background: #2055b4 !important;
    color: #ffffff !important;
    border-color: #184894 !important;
    font-weight: 700 !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-add
    i,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-add
    span {
    color: #ffffff !important;
    opacity: 1 !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-visual-row-actions
    button {
    background: #e5edf7 !important;
    color: #2563eb !important;
    border: 1px solid #c5d3e4 !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-visual-row-actions
    button
    i {
    color: #2563eb !important;
    opacity: 1 !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-visual-row-actions
    button.danger {
    background: #fff1f2 !important;
    color: #c92e43 !important;
    border-color: #fecdd3 !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-visual-row-actions
    button.danger
    i {
    color: #c92e43 !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-entry-main
    strong {
    color: #14243e !important;
    font-weight: 700 !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-entry-main
    small {
    color: #475569 !important;
    font-weight: 500 !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-header
    p,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-count {
    color: #475569 !important;
    font-weight: 500 !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-day-heading
    small {
    color: #475569 !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernOverview
    .pf-home-kpi:not(:first-child)
    > small {
    color: #475569 !important;
    opacity: 1 !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfTimelineInsightsPanel
    .pf-home-category
    small {
    color: #475569 !important;
    opacity: 1 !important;
}

/* Visual 2 — datas harmonizadas exclusivamente com as skins claras. */
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-date-tile {
    background: #e8f1fc !important;
    border: 1px solid #60a5fa !important;
    color: #173b68 !important;
    box-shadow: 0 2px 7px rgba(37, 99, 235, 0.12) !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-date-tile
    strong {
    color: #173b68 !important;
}
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-date-tile
    span,
body.pf-home-v2:not(.pro-mode):is(
        .skin-auto-1,
        .skin-auto-2,
        .skin-auto-3,
        .skin-auto-5,
        .skin-auto-6,
        .skin-auto-7,
        .skin-auto-9,
        .skin-auto-10
    )
    #pfModernTransactionCards
    .pf-timeline-date-tile
    small {
    color: #475569 !important;
}

/* Visual 1: gráficos sem repetição dos valores dos KPIs; seletor compacto de gastos. */
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfHomeInsights .pf-v1-chart-only {
    min-height: 82px;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfHomeInsights .pf-v1-chart-only svg {
    margin-top: 10px;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfHomeInsights .pf-v1-expenses-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 9px;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfHomeInsights .pf-v1-expenses-heading > span {
    font-weight: 700;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfHomeInsights .pf-v1-expenses-heading label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: inherit;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfHomeInsights .pf-v1-expenses-heading select {
    max-width: 78px;
    padding: 3px 5px;
    border-radius: 6px;
    border: 1px solid var(--border-color, #64748b);
    background: var(--bg-secondary, #1f2937);
    color: var(--text-color, inherit);
    font: inherit;
}

/* Visual 1: minigráficos nos indicadores superiores; painel lateral exclusivo de gastos. */
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-home-kpi {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-home-kpi .pf-v2-kpi-chart {
    height: 23px;
    flex: 0 0 23px;
    margin-top: auto;
    overflow: hidden;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-home-kpi .pf-v2-kpi-chart svg {
    display: block;
    width: 100%;
    height: 23px;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-home-kpi:has(.pf-v2-kpi-chart) small {
    display: none;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfHomeInsights > .pf-home-categories {
    flex: 1 1 auto;
    min-height: 0;
}

/* KPIs dos Visuais 1 e 2: uma única composição responsiva, fiel ao esboço.
   Cada gráfico tem coluna própria; o valor monetário nunca passa sobre o SVG.
   O Visual Clássico e o Visual 3 continuam com seus respectivos componentes. */
body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3) #pfModernOverview > .pf-home-kpis:not([hidden]) {
    display: grid !important;
    grid-template-columns: minmax(0, 1.16fr) repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-home-kpi.pf-kpi-ref {
    container-type: inline-size;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(36px, 21%) !important;
    column-gap: 6px !important;
    align-items: center !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 98px !important;
    min-height: 98px !important;
    padding: 10px 11px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 15px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-kpi-ref-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-kpi-ref-text > span {
    display: block !important;
    width: 100% !important;
    color: inherit;
    font-size: clamp(10px, 4.1cqw, 13px) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    opacity: 0.95 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-kpi-ref-text > strong {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(14px, 7.8cqw, 24px) !important;
    font-weight: 800 !important;
    line-height: 1.16 !important;
    letter-spacing: -0.48px !important;
    font-variant-numeric: tabular-nums !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
}

body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3)
    #pfModernOverview
    .pf-kpi-ref.pf-home-balance
    .pf-kpi-ref-text
    > strong {
    font-size: clamp(14px, 6.6cqw, 24px) !important;
}

body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-kpi-ref-text > small {
    display: block !important;
    margin: 0 !important;
    max-width: 100% !important;
    font-size: clamp(9px, 3.5cqw, 11px) !important;
    line-height: 1.2 !important;
    font-weight: 550 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    opacity: 0.9 !important;
}

body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-kpi-ref > .pf-kpi-mini-chart {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
    max-width: none !important;
    height: 51px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center !important;
    justify-self: end !important;
    overflow: hidden !important;
    pointer-events: none !important;
    opacity: 1 !important;
}

body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-kpi-ref > .pf-kpi-mini-chart svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

/* Cores dos cards escuros conforme a referência; skins claras não são alteradas. */
body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3):is(.dark, .pro-mode) #pfModernOverview .pf-kpi-ref.pf-home-balance {
    background: linear-gradient(110deg, #0753c3 0%, #114fa7 58%, #093b79 100%) !important;
    border: 1px solid #197ef2 !important;
    color: #fff !important;
}
body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3):is(.dark, .pro-mode) #pfModernOverview .pf-kpi-ref.pf-kpi-income {
    background: linear-gradient(115deg, #06452f, #082d24) !important;
    border: 1px solid #0b7845 !important;
    color: #f8fafc !important;
}
body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3):is(.dark, .pro-mode) #pfModernOverview .pf-kpi-ref.pf-kpi-expense {
    background: linear-gradient(110deg, #1d2130, #171c2b) !important;
    border: 1px solid #423747 !important;
    color: #f8fafc !important;
}
body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3):is(.dark, .pro-mode) #pfModernOverview .pf-kpi-ref.pf-kpi-result {
    background: linear-gradient(110deg, #152d47, #172637) !important;
    border: 1px solid #325b7c !important;
    color: #f8fafc !important;
}
body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3)
    #pfModernOverview
    .pf-kpi-ref.pf-kpi-income
    .pf-kpi-ref-text
    > strong,
body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3)
    #pfModernOverview
    .pf-kpi-ref.pf-kpi-income
    .pf-kpi-ref-text
    > span
    i {
    color: #22c55e !important;
}
body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3)
    #pfModernOverview
    .pf-kpi-ref.pf-kpi-expense
    .pf-kpi-ref-text
    > strong,
body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3)
    #pfModernOverview
    .pf-kpi-ref.pf-kpi-expense
    .pf-kpi-ref-text
    > span
    i {
    color: #f65c65 !important;
}
body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3):not(.dark):not(.pro-mode)
    #pfModernOverview
    .pf-kpi-ref:not(.pf-home-balance) {
    background: var(--skin-surface, #fff) !important;
    color: var(--skin-text, #1e293b) !important;
    border-color: var(--skin-border, #cbd5e1) !important;
}

/* Redução progressiva preserva os números antes de reduzir os gráficos. */
@media (max-width: 1100px) {
    body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3) #pfModernOverview > .pf-home-kpis:not([hidden]) {
        gap: 7px !important;
    }
    body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-home-kpi.pf-kpi-ref {
        grid-template-columns: minmax(0, 1fr) minmax(30px, 19%) !important;
        column-gap: 4px !important;
        padding: 8px !important;
    }
}
@media (max-width: 1100px) {
    body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3) #pfModernOverview > .pf-home-kpis:not([hidden]) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 520px) {
    body:is(.pf-home-v1, .pf-home-v2):not(.pf-home-v3) #pfModernOverview > .pf-home-kpis:not([hidden]) {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (min-width: 1200px) {
    body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #viewLancamentos:not(.hidden) {
        grid-template-rows: 98px 44px minmax(0, 1fr) !important;
    }
}

/* Visual 1 — escala compacta dos indicadores, sem afetar o Visual 2.
   Valores têm prioridade: a coluna do gráfico cede largura ao texto,
   e os números são levemente menores para não sofrer truncamento. */
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-home-kpi.pf-kpi-ref {
    grid-template-columns: minmax(0, 1fr) clamp(32px, 16%, 48px) !important;
    column-gap: 4px !important;
    padding-inline: 8px !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-kpi-ref-text > span {
    font-size: clamp(11px, 4.2cqw, 13px) !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-kpi-ref-text > strong {
    font-size: clamp(18px, 6.25cqw, 21px) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.45px !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3)
    #pfModernOverview
    .pf-kpi-ref.pf-home-balance
    .pf-kpi-ref-text
    > strong {
    font-size: clamp(18px, 6cqw, 21px) !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-kpi-ref-text > small {
    font-size: 10px !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-kpi-ref > .pf-kpi-mini-chart {
    height: 39px !important;
}
@media (max-width: 1100px) {
    body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-home-kpi.pf-kpi-ref {
        grid-template-columns: minmax(0, 1fr) 32px !important;
        column-gap: 3px !important;
    }
}

/* Visual 1: ao ocultar os quatro indicadores, remover a primeira linha
   da grade e reposicionar cabeçalho, gastos e lançamentos sem espaços vazios. */
@media (min-width: 1200px) {
    body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #viewLancamentos:not(.hidden):has(#pfHomeIndicators[hidden]) {
        grid-template-rows: 40px minmax(0, 1fr) !important;
    }
    body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3)
        #viewLancamentos:has(#pfHomeIndicators[hidden])
        #pfModernOverview
        > .pf-home-overview-toolbar,
    body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3)
        #viewLancamentos:has(#pfHomeIndicators[hidden])
        #pfModernOverview
        > .pf-home-list-title {
        grid-row: 1 !important;
    }
    body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3)
        #viewLancamentos:has(#pfHomeIndicators[hidden])
        #pfModernOverview
        > #pfHomeInsights:not([hidden]),
    body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3)
        #viewLancamentos:has(#pfHomeIndicators[hidden])
        > #pfModernTransactionCards:not([hidden]) {
        grid-row: 2 !important;
    }
}

/* Visual 1: comandos verticais em ícones, sem alterar os demais visuais. */
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3):has(#viewLancamentos:not(.hidden)) #rightSidebar {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    padding: 10px 5px !important;
    gap: 9px !important;
    align-items: center;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3):has(#viewLancamentos:not(.hidden)) #rightSidebar > button {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 44px;
    min-height: 44px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3):has(#viewLancamentos:not(.hidden))
    #rightSidebar
    > button
    .pf-right-action-label {
    display: none !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3):has(#viewLancamentos:not(.hidden)) #rightSidebar > button i {
    width: auto !important;
    height: auto !important;
    font-size: 19px !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3):has(#viewLancamentos:not(.hidden)) #rightSidebarResizer {
    display: none !important;
}
/* Visual 1: flags unificadas e gastos à direita. */
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) .pf-v2-toolbar-flag {
    display: flex !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfModernOverview .pf-home-overview-toolbar .pf-home-insights-toggle {
    display: none !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #viewLancamentos > #pfV1ExpensesRightLayout {
    grid-column: 1/-1 !important;
    grid-row: 3 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 25%) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 12px !important;
    min-height: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfV1ExpensesRightLayout > #pfModernTransactionCards {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfV1ExpensesRightLayout > #pfHomeInsights {
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfV1ExpensesRightLayout.pf-v1-expenses-hidden {
    grid-template-columns: minmax(0, 1fr) !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfV1ExpensesRightLayout.pf-v1-expenses-hidden > #pfHomeInsights {
    display: none !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3)
    #viewLancamentos:has(#pfHomeIndicators[hidden])
    > #pfV1ExpensesRightLayout {
    grid-row: 2 !important;
}

/* Layout consistente: título acompanha a lista e gastos ficam à direita. */
@media (min-width: 1200px) {
    body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #viewLancamentos:not(.hidden) {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        gap: 8px !important;
    }
    body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfModernOverview > #pfHomeIndicators:not([hidden]) {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #viewLancamentos > #pfV1ExpensesRightLayout {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
    body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3)
        #viewLancamentos:has(#pfHomeIndicators[hidden])
        > #pfV1ExpensesRightLayout {
        grid-row: 1 / -1 !important;
    }
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #viewLancamentos > #pfV1ExpensesRightLayout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 25%) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 8px 12px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfV1ExpensesRightLayout > .pf-home-list-title {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 3px 6px !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfV1ExpensesRightLayout > #pfModernTransactionCards {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfV1ExpensesRightLayout > #pfHomeInsights {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
    display: block !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfV1ExpensesRightLayout.pf-v1-expenses-hidden {
    grid-template-columns: minmax(0, 1fr) !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfV1ExpensesRightLayout.pf-v1-expenses-hidden > #pfHomeInsights {
    display: none !important;
}
/* As quatro flags compartilham a mesma aparência no Visual 1. */
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #subBar .pf-v2-unified-flag {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    gap: 6px !important;
    margin: 0 0 0 8px !important;
    padding: 0 0 0 12px !important;
    border: 0 !important;
    border-left: 1px solid #475569 !important;
    white-space: nowrap !important;
    font: inherit !important;
}

body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #subBar .pf-v2-unified-flag label {
    margin: 0 !important;
    padding: 0 !important;
    font: inherit !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    cursor: pointer;
}
/* Visuais 2 e 3: gastos à direita, lançamentos à esquerda. */
body:is(.pf-home-v2, .pf-home-v3) #pfTimelineContentLayout:not(.pf-timeline-insights-hidden) {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 25%) !important;
}
body:is(.pf-home-v2, .pf-home-v3) #pfTimelineContentLayout > #pfModernTransactionCards {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}
body:is(.pf-home-v2, .pf-home-v3) #pfTimelineContentLayout > #pfTimelineInsightsPanel {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}
body:is(.pf-home-v2, .pf-home-v3) #pfTimelineContentLayout.pf-timeline-insights-hidden {
    grid-template-columns: minmax(0, 1fr) !important;
}
body:is(.pf-home-v2, .pf-home-v3) #pfTimelineContentLayout.pf-timeline-insights-hidden > #pfModernTransactionCards {
    grid-column: 1 / -1 !important;
}

/* Recuperação da grade: lista flexível + gastos na coluna direita. */
body.pf-home-v1 #pfV1ExpensesRightLayout.pf-v1-expenses-hidden {
    grid-template-columns: minmax(0, 1fr) !important;
}
body.pf-home-v1 #pfV1ExpensesRightLayout.pf-v1-expenses-hidden #pfModernTransactionCards {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}
body:is(.pf-home-v2, .pf-home-v3) #viewLancamentos #pfTimelineContentLayout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 25%) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    gap: 12px !important;
    overflow: hidden !important;
}
body:is(.pf-home-v2, .pf-home-v3) #viewLancamentos #pfTimelineContentLayout.pf-timeline-insights-hidden {
    grid-template-columns: minmax(0, 1fr) !important;
}
body:is(.pf-home-v2, .pf-home-v3) #viewLancamentos #pfTimelineContentLayout #pfModernTransactionCards {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
}
body:is(.pf-home-v2, .pf-home-v3) #viewLancamentos #pfTimelineContentLayout #pfTimelineInsightsPanel {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
}
body:is(.pf-home-v2, .pf-home-v3)
    #viewLancamentos
    #pfTimelineContentLayout.pf-timeline-insights-hidden
    #pfTimelineInsightsPanel {
    display: none !important;
}

/* Visual 1 e 3: mesma marca branca do Visual 2, sem alterar o Visual 2. */
body:is(.pf-home-v1, .pf-home-v3):not(.pf-home-v2) #subBar .pf-v2-unified-flag input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-grid !important;
    place-content: center !important;
    box-sizing: border-box !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    flex: 0 0 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #718096 !important;
    border-radius: 4px !important;
    background: #1b2635 !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    cursor: pointer !important;
}
body:is(.pf-home-v1, .pf-home-v3):not(.pf-home-v2) #subBar .pf-v2-unified-flag input[type="checkbox"]:checked {
    border-color: #3b82f6 !important;
    background: #3b82f6 !important;
}
body:is(.pf-home-v1, .pf-home-v3):not(.pf-home-v2) #subBar .pf-v2-unified-flag input[type="checkbox"]:checked::after {
    content: "" !important;
    display: block !important;
    width: 9px !important;
    height: 5px !important;
    border-left: 2px solid #fff !important;
    border-bottom: 2px solid #fff !important;
    transform: rotate(-45deg) translateY(-1px) !important;
}
body:is(.pf-home-v1, .pf-home-v3):not(.pf-home-v2) #subBar .pf-v2-unified-flag input[type="checkbox"]:focus-visible {
    outline: 2px solid #93c5fd !important;
    outline-offset: 2px !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #viewLancamentos > #pfV1ExpensesRightLayout.pf-v1-expenses-hidden {
    grid-template-columns: minmax(0, 1fr) !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3)
    #pfV1ExpensesRightLayout.pf-v1-expenses-hidden
    > #pfModernTransactionCards {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

/* Uma única marca branca: remover o ícone de fundo injetado por estilos globais. */
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3) #subBar .pf-v2-unified-flag input[type="checkbox"] {
    background-image: none !important;
    background-size: 0 0 !important;
    background-repeat: no-repeat !important;
}
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3) #subBar .pf-v2-unified-flag input[type="checkbox"]::before {
    content: none !important;
    display: none !important;
}
/* O painel de gastos acompanha a borda direita da grade dos quatro indicadores. */
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #viewLancamentos > #pfV1ExpensesRightLayout,
body:is(.pf-home-v2, .pf-home-v3) #viewLancamentos #pfTimelineContentLayout {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}
body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3) #pfV1ExpensesRightLayout > #pfHomeInsights,
body:is(.pf-home-v2, .pf-home-v3) #pfTimelineContentLayout > #pfTimelineInsightsPanel {
    box-sizing: border-box !important;
    justify-self: stretch !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

/* Alinhar AMBAS as bordas de Principais gastos ao card Resultado.
   KPI V1/V2: colunas 1.16fr + 1fr + 1fr + 1fr; gaps de 10px.
   A última coluna ocupa (100% - 30px) / 4.16. */
@media (min-width: 1200px) {
    body.pf-home-v1:not(.pf-home-v2):not(.pf-home-v3)
        #viewLancamentos
        > #pfV1ExpensesRightLayout:not(.pf-v1-expenses-hidden),
    body.pf-home-v2 #viewLancamentos #pfTimelineContentLayout:not(.pf-timeline-insights-hidden) {
        grid-template-columns: minmax(0, 1fr) minmax(0, calc((100% - 30px) * 0.2403846154)) !important;
        column-gap: 10px !important;
    }
    body.pf-home-v3 #viewLancamentos #pfTimelineContentLayout:not(.pf-timeline-insights-hidden) {
        grid-template-columns: minmax(0, 1fr) minmax(0, calc((100% - 30px) * 0.2403846154)) !important;
        column-gap: 10px !important;
    }
}

/* Visual 2: ações compactas no lado direito do cabeçalho, como no Visual 3. */
body.pf-home-v2 #pfModernTransactionCards .pf-v2-compact-actions {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}
body.pf-home-v2 #pfModernTransactionCards .pf-v2-compact-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    padding: 0;
    border: 1px solid var(--border-color, rgba(140, 155, 180, 0.28));
    border-radius: 8px;
    background: var(--card-bg, rgba(120, 140, 160, 0.12));
    color: inherit;
    cursor: pointer;
}
body.pf-home-v2 #pfModernTransactionCards .pf-v2-compact-actions button.pf-v2-action-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
body.pf-home-v2 #pfModernTransactionCards .pf-v2-compact-actions button.danger {
    color: #ef4444;
}
body.pf-home-v2 #pfModernTransactionCards .pf-v2-compact-actions button:hover,
body.pf-home-v2 #pfModernTransactionCards .pf-v2-compact-actions button:focus-visible {
    filter: brightness(1.12);
    outline-offset: 2px;
}
@media (max-width: 850px) {
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header {
        flex-wrap: wrap;
    }
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header-right {
        margin-left: auto;
    }
}

/* Visual 2: garantir a exibição da barra de ações junto ao título,
   mesmo com regras legadas que ocultam os controles da linha do tempo. */
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header-right {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    gap: 10px !important;
    visibility: visible !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-toolbar.pf-v2-compact-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-v2-compact-actions button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    border: 1px solid #435571 !important;
    background: #26364c !important;
    color: #e4eeff !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-v2-compact-actions button.pf-v2-action-primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-v2-compact-actions button.danger {
    color: #f87171 !important;
}

/* Visual 2: ações no canto SUPERIOR DIREITO do cabeçalho, sem faixa central. */
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    justify-content: stretch !important;
    column-gap: 12px !important;
    min-height: 0 !important;
    padding: 12px 14px !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-heading {
    min-width: 0 !important;
    width: auto !important;
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 3px !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-heading > i {
    grid-column: 1 !important;
    grid-row: 1 !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-heading > strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-heading > small,
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-heading > .pf-timeline-count {
    grid-column: 2 !important;
    margin: 0 !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header-right {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-toolbar.pf-v2-compact-actions {
    margin: 0 !important;
    padding: 0 !important;
}
@media (max-width: 600px) {
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header {
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 10px !important;
    }
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header-right {
        grid-column: 1 !important;
        grid-row: 2 !important;
        justify-self: end !important;
    }
}

/* Visual 2: barra lateral direita separada do cabeçalho. */
body.pf-home-v2 #pfModernTransactionCards {
    position: relative !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-v2-actions-rail {
    position: absolute !important;
    top: 94px !important;
    right: 8px !important;
    z-index: 8 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 42px !important;
    padding: 5px 4px !important;
    border: 1px solid rgba(120, 150, 190, 0.25) !important;
    border-radius: 10px !important;
    background: #172334 !important;
    box-sizing: border-box !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-v2-actions-rail .pf-v2-compact-actions {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    margin: 0 !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header-right {
    display: none !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-track,
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-date-preference {
    margin-right: 48px !important;
}

/* Visual 2: usar a barra lateral GLOBAL #rightSidebar, igual ao Visual 3.
   Ações não devem ocupar espaço dentro da Linha do Tempo. */
body.pf-home-v2:has(#viewLancamentos:not(.hidden)) #rightSidebar {
    display: flex !important;
    flex: 0 0 58px !important;
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    box-sizing: border-box !important;
    padding: 8px 6px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 9px !important;
    background: #121e30 !important;
    border-left: 1px solid #34465e !important;
    overflow: visible !important;
}
body.pf-home-v2:has(#viewLancamentos:not(.hidden)) #rightSidebar > button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    background: #1d3047 !important;
    border: 1px solid #3a5571 !important;
    color: #a8d1ff !important;
}
body.pf-home-v2:has(#viewLancamentos:not(.hidden)) #rightSidebar > button:first-of-type {
    background: #195bbf !important;
    border-color: #3575d6 !important;
    color: #fff !important;
}
body.pf-home-v2:has(#viewLancamentos:not(.hidden)) #rightSidebar > button i {
    font-size: 21px !important;
    margin: 0 !important;
}
body.pf-home-v2:has(#viewLancamentos:not(.hidden)) #rightSidebar .pf-right-action-label,
body.pf-home-v2:has(#viewLancamentos:not(.hidden)) #rightSidebarResizer,
body.pf-home-v2 #pfModernTransactionCards .pf-v2-actions-rail {
    display: none !important;
}

/* Visual 2: restaurar cabeçalho baixo e manter Adicionar à direita. */
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    box-sizing: border-box !important;
    padding: 7px 14px !important;
    margin-bottom: 12px !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-heading {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 1px 7px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-heading > i {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-heading > strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-heading > small {
    grid-column: 2 !important;
    grid-row: 2 !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header-right {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin: 0 !important;
    width: auto !important;
    visibility: visible !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header-right .pf-timeline-count {
    white-space: nowrap !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header-right .pf-timeline-add {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    white-space: nowrap !important;
}
@media (max-width: 700px) {
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header-right .pf-timeline-count {
        display: none !important;
    }
}

/* Visual 2: restaurar o botão Adicionar azul original no cabeçalho compacto. */
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header-right .pf-timeline-add {
    background: #1c4b9b !important;
    border: 1px solid #438af0 !important;
    color: #fff !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header-right .pf-timeline-add i,
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header-right .pf-timeline-add span {
    color: #fff !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-header-right .pf-timeline-add:hover {
    background: #2563c4 !important;
    border-color: #70adfa !important;
}

/* 14/11/2026 — Retirar apenas a barra de título dos Visuais 1, 2 e 3.
   O Visual Clássico mantém o cabeçalho original. */
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3) #topTitleBar {
    display: none !important;
}

/* Comandos de backup reutilizam a barra lateral direita já existente,
   posicionados no rodapé e sem criar outra barra. */
#rightSidebar > .pf-modern-backup-actions {
    display: none;
}
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3) #rightSidebar > .pf-modern-backup-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 9px !important;
    margin-top: auto !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
}
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3) #rightSidebar > .pf-modern-backup-actions > button {
    box-sizing: border-box !important;
    display: flex !important;
    flex: 0 0 44px !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(100%, 46px) !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 1px solid #3a5571 !important;
    border-radius: 12px !important;
    background: #1d3047 !important;
    color: #a8d1ff !important;
    cursor: pointer !important;
    box-shadow: none !important;
}
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3) #rightSidebar > .pf-modern-backup-actions > button i {
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1 !important;
}
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3) #rightSidebar > .pf-modern-backup-actions > button:hover {
    background: #294465 !important;
    border-color: #6da4ed !important;
}
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3) #rightSidebar > .pf-modern-backup-actions > button:focus-visible {
    outline: 2px solid #60a5fa !important;
    outline-offset: 2px !important;
}

/* Visual 2 — responsividade pela largura REAL da linha do tempo.
   Zoom do navegador e painel Principais gastos alteram o espaço disponível
   sem necessariamente disparar os breakpoints baseados na janela. */
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-day-body {
    container-type: inline-size;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry {
    max-width: calc(100% - 22px);
    min-width: 0 !important;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry .pf-visual-row-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-self: end;
    min-width: 0;
    white-space: nowrap;
}
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry .pf-home-tx-amount {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
@container (max-width: 740px) {
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry {
        grid-template-columns: 32px minmax(0, 1fr) minmax(88px, auto) 22px 100px !important;
        column-gap: 7px !important;
    }
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry .pf-timeline-account {
        display: none !important;
    }
}
@container (max-width: 510px) {
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry {
        grid-template-columns: 30px minmax(0, 1fr) minmax(76px, auto) 20px 94px !important;
        column-gap: 4px !important;
        padding-inline: 6px !important;
    }
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry .pf-home-tx-amount {
        font-size: 11px !important;
    }
    body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry .pf-visual-row-actions button {
        width: 28px;
        height: 28px;
        padding: 0;
    }
}

/* Evita a ancoragem automática concorrendo com a restauração de data do Visual 2. */
body.pf-home-v2 #pfModernTransactionCards,
body.pf-home-v2 #pfTimelineContentLayout { overflow-anchor: none; }

body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3) #accountsListTree .pf-quick-filter-target { min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;padding:2px 4px;border:1px solid transparent;border-radius:6px;background:transparent;color:inherit;cursor:pointer; }
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3) #accountsListTree .pf-quick-filter-target:hover { color:#93c5fd;background:rgba(59,130,246,.12); }
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3) #accountsListTree .pf-quick-filter-selected { color:#bfdbfe!important;border-color:#3b82f6!important;background:rgba(37,99,235,.3)!important; }
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3) #accountsListTree .pf-quick-filter-status { position:sticky;bottom:0;display:flex;align-items:center;gap:8px;padding:6px 8px;background:#17365d;color:#dbeafe;border:1px solid #3b82f6;border-radius:8px;font-size:11px;z-index:2; }
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3) #accountsListTree .pf-quick-filter-status span {flex:1;min-width:0;}
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3) #accountsListTree .pf-quick-filter-status button {flex:none;padding:0 5px;font-size:18px;line-height:1;}
/* Central de notificações compacta, compartilhada pelos três visuais. */
#pfNotificationsButton, #pfNotificationsPanel { display: none; }
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3) #pfNotificationsButton { display: flex; position: relative; }
#pfNotificationsBadge:not([hidden]) { position: absolute; top: -7px; right: -9px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 99px; background: #e43e52; color: #fff; font: 700 10px Arial,sans-serif; }
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3) #pfNotificationsPanel:not([hidden]) { display: flex; }
#pfNotificationsPanel { position: fixed; right: 72px; bottom: 80px; width: min(390px,calc(100vw - 92px)); max-height: min(570px,calc(100vh - 100px)); flex-direction: column; z-index: 10050; border: 1px solid #385575; border-radius: 14px; background: #162335; color: #edf4ff; box-shadow: 0 14px 48px #0008; overflow: hidden; font-size: 13px; }
.pf-notifications-header { display: flex; justify-content: space-between; align-items: center; padding: 14px; border-bottom: 1px solid #334963; }
.pf-notifications-header button { padding: 5px 9px; border-radius: 6px; }
.pf-notifications-controls { display: flex; gap: 5px; flex-wrap: wrap; padding: 10px; border-bottom: 1px solid #334963; }
.pf-notifications-controls button { border: 1px solid #3a5571; border-radius: 7px; padding: 5px 8px; font-size: 11px; }
.pf-notifications-controls button.active { background: #25599b; border-color: #61a4ff; }
.pf-notifications-list { overflow-y: auto; min-height: 65px; }
.pf-notification-item { width: 100%; display: flex; gap: 11px; align-items: flex-start; text-align: left; padding: 13px; border-bottom: 1px solid #304159; }
.pf-notification-item:hover { background: #263b55; }
.pf-notification-item.read { opacity: .62; }
.pf-notification-item > i { font-size: 17px; color: #eab65b; margin-top: 3px; }
.pf-notification-item.danger > i { color: #fa7185; }
.pf-notification-item > span:nth-child(2) { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.pf-notification-item small { font-size: 11px; color: #b9c9db; line-height: 1.5; }
.pf-notification-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #60a5fa; margin-top: 5px; }
.pf-notification-item.read .pf-notification-dot { visibility: hidden; }
.pf-notifications-empty { padding: 22px 14px; text-align: center; color: #b9c9db; }
#pfNotificationsPanel footer { padding: 9px; text-align: center; color: #9fb2cb; font-size: 10px; border-top: 1px solid #334963; }
@media (max-width: 600px) { #pfNotificationsPanel { right: 55px; bottom: 60px; } }

#pfNotificationsSettings:not([hidden]) { display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;border-bottom:1px solid #334963; }
#pfNotificationsSettings label { display:flex;align-items:center;gap:6px;font-size:11px;cursor:pointer; }
#pfNotificationsSettings input { accent-color:#3b82f6; }

/* Estado da pasta: somente borda, sem alterar o tamanho do botão compacto. */
#pfModernBackupFolder {
    position: relative;
}
#pfModernBackupFolder .pf-backup-permission-dot {
    display: none;
}
#pfModernBackupFolder::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--pf-backup-border, #ef4444);
    border-radius: inherit;
    box-sizing: border-box;
    pointer-events: none;
    animation: pf-backup-border-pulse 2.5s ease-in-out infinite;
}
/* Após autorização, a pasta volta ao visual original e o botão Backup indica prontidão. */
#pfModernBackupFolder[data-backup-permission="granted"]::after {
    display: none;
}
#pfModernBackupNow[data-backup-permission="granted"] {
    position: relative;
}
#pfModernBackupNow[data-backup-permission="granted"]::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #22c55e;
    border-radius: inherit;
    box-sizing: border-box;
    pointer-events: none;
    --pf-backup-border: #22c55e;
    animation: pf-backup-border-pulse 2.5s ease-in-out infinite;
}
#pfModernBackupFolder[data-backup-permission="prompt"] {
    --pf-backup-border: #f59e0b;
}
#pfModernBackupFolder[data-backup-permission="denied"] {
    --pf-backup-border: #ef4444;
}
@keyframes pf-backup-border-pulse {
    0%, 100% {
        opacity: 0.65;
        box-shadow: 0 0 0 0 transparent;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 6px 1px var(--pf-backup-border, #ef4444);
    }
}
@media (prefers-reduced-motion: reduce) {
    #pfModernBackupFolder::after,
    #pfModernBackupNow::after {
        animation: none;
    }
}

/* Barra retrátil independente do Dock: ativa somente nos Visuais 1/2/3 em Lançamentos. */
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3):has(#viewLancamentos:not(.hidden)) #centralMainView { position: relative; }
#pfFilterHandle, #pfFilterPin { display: none; }
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3):has(#viewLancamentos:not(.hidden)) #pfFilterPin {
    display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px;
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    border: 1px solid rgba(128,160,205,.45); border-radius: 7px;
    color: inherit; background: rgba(40,90,155,.14); cursor: pointer; z-index: 2;
}
body.pf-filters-pinned #pfFilterPin { color: #60a5fa !important; background: rgba(59,130,246,.22) !important; }
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3):has(#viewLancamentos:not(.hidden)) #subBar {
    position: relative; padding-right: 42px !important;
}
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3):not(.pf-filters-pinned):has(#viewLancamentos:not(.hidden)) #subBar {
    position: absolute !important; top: 8px; left: 8px; right: 8px; width: auto;
    z-index: 80; opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3):not(.pf-filters-pinned):has(#viewLancamentos:not(.hidden)) #pfFilterHandle {
    display: grid; place-items: start center; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%); width: 76px; height: 18px; border: 0; padding: 0;
    background: transparent; cursor: pointer; z-index: 81;
}
#pfFilterHandle span { width: 48px; height: 4px; background: #3b82f6; border-radius: 0 0 6px 6px; box-shadow: 0 0 8px rgba(59,130,246,.35); }
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3).pf-filters-open:not(.pf-filters-pinned):has(#viewLancamentos:not(.hidden)) #subBar,
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3):not(.pf-filters-pinned):has(#viewLancamentos:not(.hidden)) #subBar:focus-within {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
body.pf-filters-open #pfFilterHandle { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
    body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3) #subBar { transition: none !important; }
}

/* Seletor múltiplo compacto da barra de filtros — Visuais 1, 2 e 3. */
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3) #subBar > div:first-of-type { flex-wrap: nowrap !important; min-width: 0; }
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3) #subBar { overflow: visible; }
.pf-grouping-dropdown { position: relative; flex: 0 0 auto; font-size: 12px; }
.pf-grouping-dropdown > summary { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid rgba(148,163,184,.4); border-radius: 9px; cursor: pointer; font-weight: 600; list-style: none; white-space: nowrap; }
.pf-grouping-dropdown > summary::-webkit-details-marker { display: none; }
.pf-grouping-dropdown > summary:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.pf-grouping-chevron { font-size: 10px; opacity: .75; }
.pf-grouping-dropdown[open] .pf-grouping-chevron { transform: rotate(180deg); }
.pf-grouping-menu { position: absolute; top: calc(100% + 7px); left: 0; min-width: 250px; padding: 12px; background: #171a22; color: #f1f5f9; border: 1px solid #475569; border-radius: 10px; box-shadow: 0 14px 30px rgba(0,0,0,.35); z-index: 1000; }
.pf-grouping-menu-heading { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; margin-bottom: 8px; }
.pf-grouping-menu .pf-v2-unified-flag { display: flex !important; align-items: center; gap: 9px; margin: 0 !important; padding: 8px 4px !important; border: 0 !important; white-space: nowrap; }
.pf-grouping-menu .pf-v2-unified-flag input { display: inline-block !important; width: 16px; height: 16px; }
.pf-grouping-menu .pf-v2-unified-flag label { display: inline-block !important; cursor: pointer; }
.pf-grouping-actions { display: flex; gap: 6px; border-top: 1px solid #475569; padding-top: 10px; margin-top: 8px; }
.pf-grouping-actions button { flex: 1; padding: 7px 5px; border: 1px solid #64748b; border-radius: 6px; font-size: 11px; cursor: pointer; }
.pf-grouping-actions button:last-child { background: #2563eb; color: white; border-color: #2563eb; }
body:not(.pf-home-v1):not(.pf-home-v2):not(.pf-home-v3) .pf-grouping-dropdown { display: none; }
@media (max-width: 760px) { .pf-grouping-menu { left: auto; right: 0; } }
/* No Visual Clássico, preservar os controles originais em linha. */
body:not(.pf-home-v1):not(.pf-home-v2):not(.pf-home-v3) .pf-grouping-dropdown { display: contents; }
body:not(.pf-home-v1):not(.pf-home-v2):not(.pf-home-v3) .pf-grouping-dropdown > summary,
body:not(.pf-home-v1):not(.pf-home-v2):not(.pf-home-v3) .pf-grouping-menu-heading,
body:not(.pf-home-v1):not(.pf-home-v2):not(.pf-home-v3) .pf-grouping-actions { display: none; }
body:not(.pf-home-v1):not(.pf-home-v2):not(.pf-home-v3) .pf-grouping-menu { display: contents; }

/* Refinamento da barra retrátil: fechamento ágil e moldura superior discreta. */
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3):has(#viewLancamentos:not(.hidden)) #centralMainView::before {
    content: ""; position: absolute; top: 0; left: 8px; right: 8px; height: 7px;
    background: rgba(100, 116, 139, .10); border-top: 1px solid rgba(148, 163, 184, .28);
    border-radius: 8px 8px 0 0; pointer-events: none; z-index: 1;
}
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3):not(.pf-filters-pinned):has(#viewLancamentos:not(.hidden)) #subBar {
    top: 11px; left: 12px; right: 12px;
    border: 1px solid rgba(148, 163, 184, .30); border-radius: 12px;
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3):not(.pf-filters-pinned):has(#viewLancamentos:not(.hidden)) #pfFilterHandle {
    top: 4px;
}

/* Ajuste fino: respiro real acima dos paineis, mesmo com filtros recolhidos. */
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3):has(#viewLancamentos:not(.hidden)) #centralMainView {
    padding-top: 10px;
    box-sizing: border-box;
}
/* A aba permanece na borda do painel, sem sobrepor os indicadores. */
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3):not(.pf-filters-pinned):has(#viewLancamentos:not(.hidden)) #pfFilterHandle {
    top: 4px;
}
/* Linhas do seletor multiplo com espaco e area de clique confortaveis. */
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3) .pf-grouping-menu .pf-v2-unified-flag {
    min-height: 37px;
    gap: 12px;
    padding: 9px 8px !important;
    margin: 2px 0 !important;
    border-left: 0 !important;
}
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3) .pf-grouping-menu .pf-v2-unified-flag input {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin: 0 !important;
}
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3) .pf-grouping-menu .pf-v2-unified-flag label {
    line-height: 1.4;
}

/* Ao desafixar, manter o espaço reservado até o fim da transição de saída. */
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3).pf-filters-unpinning:has(#viewLancamentos:not(.hidden)) #subBar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
@media (prefers-reduced-motion: reduce) {
    body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3).pf-filters-unpinning #subBar {
        transition: none !important;
    }
}

/* Refinamento: aba dos filtros alinhada verticalmente a aba do Dock e deslocada a direita. */
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3):not(.pf-filters-pinned):has(#viewLancamentos:not(.hidden)) #pfFilterHandle {
    top: 0;
    left: 70%;
    height: 18px;
}
/* Durante a desafixacao, conservar a barra opaca e o espaco ocupado.
   Os indicadores so assumem a area apos a remocao sincronizada das classes. */
body:is(.pf-home-v1, .pf-home-v2, .pf-home-v3).pf-filters-unpinning:has(#viewLancamentos:not(.hidden)) #subBar {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    transform: none !important;
    transition: none !important;
}

/* Desafixacao imediata: o recolhimento por clique nao usa transicao. */
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3):not(.pf-filters-pinned):not(.pf-filters-open):has(#viewLancamentos:not(.hidden)) #subBar:not(:focus-within) {
    transition: none !important;
}

/* Estabilidade do hover: a aba nao pode desaparecer antes da passagem do cursor
   para a barra, nem gerar alternancia entre estados de hover. */
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3).pf-filters-open:not(.pf-filters-pinned):has(#viewLancamentos:not(.hidden)) #pfFilterHandle {
    opacity: 0;
    pointer-events: none;
}
/* Ponte invisivel entre o topo da barra e a aba, sem alterar a aparencia. */
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3):not(.pf-filters-pinned):has(#viewLancamentos:not(.hidden)) #subBar::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
    pointer-events: auto;
}

/* Sincronia da barra retratil e do conteudo nos Visuais 1/2/3.
   O espaco e reservado ao abrir, sem sobrepor os indicadores; ao recolher,
   os paineis retornam juntos. Fixada, a barra permanece no fluxo normal. */
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3):has(#viewLancamentos:not(.hidden)) #centralMainView {
    transition: padding-top .2s ease;
}
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3).pf-filters-open:not(.pf-filters-pinned):has(#viewLancamentos:not(.hidden)) #centralMainView {
    padding-top: calc(21px + var(--pf-filter-expanded-height, 60px));
}
/* O clique em Desafixar continua imediato, inclusive no retorno dos paineis. */
body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3):not(.pf-filters-open):not(.pf-filters-pinned):has(#viewLancamentos:not(.hidden)) #centralMainView {
    transition: none;
}
@media (prefers-reduced-motion: reduce) {
    body:is(.pf-home-v1,.pf-home-v2,.pf-home-v3):has(#viewLancamentos:not(.hidden)) #centralMainView {
        transition: none !important;
    }
}


/* Correcao pontual: destaque de selecao na Linha do Tempo do Visual 2.
   Os temas posteriores usam !important nas bordas dos cartoes, anulando
   a regra .pf-timeline-entry.selected original. Mantem a cor de tipo
   na lateral esquerda e realca somente topo, direita e base. */
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry.selected {
    border-top-color: #60a5fa !important;
    border-right-color: #60a5fa !important;
    border-bottom-color: #60a5fa !important;
    box-shadow: 0 0 0 1px #60a5fa, 0 4px 12px rgba(0, 0, 0, 0.094) !important;
}

/* Visual 2: evita selecao nativa de texto durante Shift+clique nos lancamentos.
   Nao modifica a selecao financeira nem a rolagem da linha do tempo. */
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry,
body.pf-home-v2 #pfModernTransactionCards .pf-timeline-entry * {
    -webkit-user-select: none;
    user-select: none;
}
