/* Atualização aprovada em 17/11: seleção, contraste e edição direta. */
html:not(.is-dark) :is(.nph-change b,.nph-chart-events button,.nph-events button>i,.nph-composition-2,.nph-wealth-row.is-saved>i){background:#0a6b3d;color:#fff}
html:not(.is-dark) .nph-button.nph-dark{background:#0a6b3d;color:#fff}
html:not(.is-dark) .nph-chart-targets .is-last:before{background:#0a6b3d;border-color:#0a6b3d}
html:not(.is-dark) :is(.nph-ruler-days .is-today,.nps-ruler .is-today,.nps-calendar-day.is-today .nps-calendar-number>b){background:#ddfbea;color:#0a6b3d;border:1px solid #59eaa2}
html.is-dark :is(.nph-ruler-days .is-today,.nps-ruler .is-today,.nps-calendar-day.is-today .nps-calendar-number>b){background:#25352c;color:#6ee0bf;border:1px solid #3d8a61}
.nps-flow-row.is-out>i{background:var(--nps-out-soft);color:var(--nps-out)}
html.is-dark .nps-flow-row.is-out>i{background:#3f2927;color:#ff8e80}
.npd-record-context{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:var(--npd-surface-alt,#f8f5ef);display:flex;flex-direction:column;gap:6px;font-size:13px;line-height:1.45}
.npd-record-context b{font-weight:600}.npd-record-context p{margin:0;color:var(--muted)}
.npd-installment-fixed{display:flex;flex-direction:column;gap:8px}.npd-installment-fixed>span{font-size:12px;color:var(--muted)}.npd-installment-fixed>b{font-size:14px;font-weight:500;background:var(--npd-surface-alt,#f8f5ef);border:1px solid var(--line);border-radius:14px;min-height:48px;padding:14px 16px}.npd-installment-fixed>small,.npd-rec-scope small,.npv-filter-sheet small{font-size:12px;color:var(--muted);line-height:1.4}
.npd-transaction-sheet .npd-record-actions{border-top:1px solid var(--line);margin-top:8px}.npd-transaction-sheet .npd-record-actions button{display:flex;align-items:center;gap:10px;min-height:48px;width:100%;padding:10px 0;background:none;border:0;color:var(--text);text-align:left;font:500 13px 'Funnel Sans',sans-serif}.npd-transaction-sheet .npd-record-actions button>svg{width:18px;height:18px;flex-shrink:0}.npd-transaction-sheet .npd-record-actions button>:last-child{margin-left:auto}.npd-transaction-sheet .npd-record-actions .danger{color:var(--out,#bd2018)}
.npd-transaction-sheet .npd-chip-field .npd-chips{gap:6px}.npd-transaction-sheet .npd-chip-field .npd-chips button{font-size:12px;padding:8px 12px}.npd-transaction-sheet .npd-record-actions:empty{display:none}
.npv-filter-sheet .npd-body{display:flex;flex-direction:column;gap:20px}.npv-filter-sheet label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--muted)}.npv-filter-sheet .field{height:48px;border-radius:14px;font-size:14px;color:var(--text)}
.npd-history-month>div{width:40px!important}.npd-history-month>div>b{white-space:nowrap}.npd-history-month>div.is-short>b{position:absolute;bottom:calc(100% + 4px);left:50%;transform:translateX(-50%);color:var(--text)}
html.is-dark :is(.npd-record-context,.npd-installment-fixed>b){background:#29292d;border-color:#38383e}
body:is([data-page="contas"],[data-page="lancamentos"]) .drawer.np-import-v2{width:560px;max-width:100vw;border-radius:28px 0 0 28px;font-family:'Funnel Sans',sans-serif}
body:is([data-page="contas"],[data-page="lancamentos"]) .drawer.np-import-v2 header h2{font:600 22px 'Funnel Display',sans-serif;letter-spacing:-.5px}
body:is([data-page="contas"],[data-page="lancamentos"]) .drawer.np-import-v2 .field{border-radius:14px;min-height:48px}
body:is([data-page="contas"],[data-page="lancamentos"]) .drawer.np-import-v2 footer .btn{min-height:46px;border-radius:999px}
@media(max-width:899px){.npd-transaction-sheet .npd-record-context{padding:12px 14px;font-size:12px}.npd-transaction-sheet .npd-fields-stack{gap:18px}body:is([data-page="contas"],[data-page="lancamentos"]) .drawer.np-import-v2{left:0;right:0;top:auto;bottom:0;width:100%;max-height:94dvh;border-radius:28px 28px 0 0}.npd-history-chart{overflow:visible}.npd-history-month>div>b{font-size:10px}}
body #drawerSlot .npd-transaction-sheet .bigamt>.npd-money-input{font:600 36px/45px 'Funnel Display',sans-serif;letter-spacing:-1.2px}
body #drawerSlot .npd-transaction-sheet .bigamt .npd-money-input input{font:inherit}
body #drawerSlot .npd-sheet .npd-history-month>div:not(.is-short)>b{bottom:auto;top:6px;padding-bottom:0;font-size:10px;letter-spacing:-.5px;color:var(--ink)}
body:is([data-page="contas"],[data-page="lancamentos"]) .nph-navigation button.is-active{background:var(--npv-selected);color:var(--npv-green)}
.npv-page .npv-calendar h2{text-transform:capitalize}
.np-import-row.is-duplicate{opacity:.55}.np-import-row.is-duplicate:focus-within{opacity:1}
body #drawerSlot .npd-sheet .npd-record-context{background:var(--sunk);border:0;border-radius:18px}
body #drawerSlot .npd-sheet .npd-rec-scope{display:flex;flex-direction:column;gap:8px;border:0;padding:0;margin:0}
body #drawerSlot .npd-sheet .npd-rec-scope legend{font-size:12px;color:var(--muted);margin-bottom:8px;padding:0}
body #drawerSlot .npd-sheet .npd-rec-scope label{display:flex;flex-direction:row;align-items:center;gap:12px;border:1px solid var(--line);border-radius:14px;padding:14px;cursor:pointer}
body #drawerSlot .npd-sheet .npd-rec-scope label:has(input:checked){background:var(--in-soft);border-color:#59eaa2}
body #drawerSlot .npd-sheet .npd-rec-scope input{accent-color:var(--in);width:18px;height:18px;flex:0 0 18px;margin:0}
body #drawerSlot .npd-sheet .npd-rec-scope span{display:flex;flex-direction:column;gap:4px}
body #drawerSlot .npd-sheet .npd-rec-scope b{font-size:13px;font-weight:600;color:var(--ink)}
body #drawerSlot .npd-sheet .npd-status-chips .npd-chips{background:var(--ground);border-radius:999px;padding:4px;display:flex;gap:4px}
body #drawerSlot .npd-sheet .npd-status-chips button{flex:1;justify-content:center}
.npv-description{min-width:0}.npv-description>.npv-record-main{width:100%}
@media(max-width:899px){.npv-journal-row .npv-description{grid-column:2;grid-row:1}}
/* Fundação: selections share one semantic palette across the three pages. */
body:is([data-page="painel"],[data-page="resumo"],[data-page="contas"],[data-page="lancamentos"]){--np-selected-bg:#ddfbea;--np-selected-line:#7de8b0;--np-selected-ink:#0a6b3d;--npv-out:#ae2a20;--nps-out:#ae2a20}
html.is-dark body:is([data-page="painel"],[data-page="resumo"],[data-page="contas"],[data-page="lancamentos"]){--np-selected-bg:#25352c;--np-selected-line:#3d8a61;--np-selected-ink:#5ff0a2;--npv-green:#5ff0a2;--npv-out:#ff8e80;--nps-out:#ff8e80}
body:is([data-page="painel"],[data-page="resumo"],[data-page="contas"],[data-page="lancamentos"]) :is(.nph-navigation button.is-active,.nph-horizon-mobile .is-active,.nph-horizon-desktop button[aria-pressed="true"],.nps-category-tabs .is-active,.nps-overview-tabs .is-active,.npv-bill-tabs [aria-pressed="true"],.npv-filter-chip[aria-pressed="true"]){background:var(--np-selected-bg);color:var(--np-selected-ink);box-shadow:inset 0 0 0 1px var(--np-selected-line)}
body #drawerSlot .npd-sheet :is(.kindseg button[aria-pressed="true"],.npd-chips button[aria-pressed="true"]){background:var(--np-selected-bg,#ddfbea);border-color:var(--np-selected-line,#7de8b0);color:var(--np-selected-ink,#0a6b3d)}
html.is-dark .npv-page mark{background:linear-gradient(transparent 53%,#00ff7c4d 53%)}
.npv-page mark{background:linear-gradient(transparent 53%,#f4ff00 53%)}
.npv-stack .paid,.npv-legend .paid{background:#5ff0a2}
.npc-choices{display:flex;align-items:center;gap:8px;overflow:auto;scrollbar-width:none;max-width:100%;padding:2px 1px;flex-shrink:0}
.npc-choices::-webkit-scrollbar{display:none}.npc-choices button{flex:0 0 auto;white-space:nowrap;background:var(--sunk,#f1ede3);border:1px solid transparent;border-radius:999px;min-height:36px;padding:8px 14px;color:var(--ink,#111113);font:500 12px/1.35 'Funnel Sans',sans-serif;cursor:pointer}
.npc-choices button[aria-pressed="true"]{background:var(--np-selected-bg,#ddfbea);border-color:var(--np-selected-line,#7de8b0);color:var(--np-selected-ink,#0a6b3d)}
.npc-choices button:focus-visible{outline:2px solid var(--np-selected-ink,#0a6b3d);outline-offset:2px}.npc-choices button:disabled{opacity:.45;cursor:default}
html.is-dark .npc-choices button{background:#29292d;color:#f4f4f2}html.is-dark .npc-choices button[aria-pressed="true"]{background:#25352c;border-color:#3d8a61;color:#5ff0a2}
body #drawerSlot .npv-filter-sheet .npc-choices{margin-top:4px}
.nph-horizon-desktop>div{position:static;display:flex;gap:4px;padding:4px;background:#ffffff4d;border-radius:999px;box-shadow:none;min-width:0}
.nph-horizon-desktop .nph-button{min-height:30px;padding:0 9px;font-size:11px}
.nph-projection-title{height:auto;min-height:38px;flex-wrap:wrap}
.nph-projection-values{flex-wrap:wrap;row-gap:10px}
@media(max-width:899px){.nps-calendar-mobile-value{font-size:9px;letter-spacing:-.3px}}
