/* 125: os ajustes visuais internos nao alteram a apresentacao publica. */
/* 122: cores, superficies e luz. Mantem a estrutura e as acoes existentes. */
:root {--co-depth-radius:12px;--co-light-blue:#268bff;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] {
 --bg:#070e18;--navy:#081321;--navy-2:#0e1d30;--blue:#1685ff;--blue-2:#0067eb;
 --green:#14d69a;--red:#ff455d;--text:#edf5ff;--muted:#acc0d8;--border:#2a405b;
 --shadow:0 5px 0 #030912,0 12px 24px #0007,inset 0 1px 0 #82baff20;
 --shadow-soft:0 3px 0 #030912,0 8px 18px #0005,inset 0 1px 0 #82baff18;
}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] body,
html:not(:has(body > #app > .co-landing))[data-theme="dark"] body #app,
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app > .layout,
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app > .layout > .main {
 background:#070e18 !important;color:#edf5ff;
}
/* 127: menu lateral conserva a identidade original nos dois temas. */
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content {
 --dash-surface:#0d1929;--dash-subtle:#091422;--dash-text:#edf5ff;--dash-muted:#b2c5dd;
 --dash-border:#2c4562;--dash-green:#10d59c;--dash-red:#ff455d;
 --co-panel-surface:linear-gradient(155deg,#142339 0%,#0c1727 76%,#091320 100%);
 --co-panel-border:#2c4562;--co-panel-depth:var(--shadow);
 --co-table-surface:#091320;--co-table-heading:#12243a;--co-table-border:#253b55;
 --admin-surface:linear-gradient(155deg,#142339,#0c1727);--admin-border:#2c4562;--admin-depth:var(--shadow);
}
/* Cantos discretos em cards; botoes e campos mantem sua geometria validada. */
html:not(:has(body > #app > .co-landing)) #app#app #content#content :is(.card:not(.co-chart-controls),.dashboard-kpi,.dashboard-account-card,.dashboard-cashflow,.dashboard-line-card,.dashboard-category-hero,.dashboard-category-mini,.co-planning-category-card,.co-planning-kpi,.co-standard-summary,.co-server-metric,.co-mobile-accounts,.co-mobile-record-table > tbody > tr) {
 border-radius:var(--co-depth-radius) !important;
}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content :is(.card:not(.co-chart-controls),.dashboard-kpi,.dashboard-account-card,.dashboard-cashflow,.dashboard-line-card,.dashboard-category-hero,.dashboard-category-mini,.co-planning-category-card,.co-planning-kpi,.co-standard-summary,.co-server-metric,.co-mobile-accounts,.co-mobile-record-table > tbody > tr) {
 background:linear-gradient(155deg,#142339 0%,#0c1727 76%,#091320 100%) !important;
 border-color:#2c4562 !important;
 box-shadow:0 5px 0 #030912,0 12px 24px #0007,inset 0 1px 0 #82baff20 !important;
}
html:not(:has(body > #app > .co-landing))[data-theme="light"] #app#app #content#content :is(.card:not(.co-chart-controls),.dashboard-kpi,.dashboard-account-card,.dashboard-cashflow,.co-planning-category-card) {
 box-shadow:0 4px 0 #c8d6e7,0 10px 20px #1429431a,inset 0 1px 0 #fff !important;
}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] body :is(dialog,.modal,.co-recurring-delete-dialog,.co-visual-select-list,.co-chart-selection-panel,.co-chart-period-panel) {
 background:#0c1727 !important;color:#edf5ff !important;border-color:#2c4562 !important;
 border-radius:12px !important;box-shadow:0 6px 0 #030912,0 18px 42px #0009,inset 0 1px 0 #82baff22 !important;
}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app :is(.input,select,textarea,.finance-header-month,.co-chart-control-button) {
 background:#0b192b !important;color:#edf5ff !important;border-color:#334e70 !important;
}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content :is(.table,.dashboard-table) {background:#091320 !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content :is(.table,.dashboard-table) th {background:#12243a !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content :is(.table,.dashboard-table) td {border-bottom-color:#253b55 !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content .muted {color:#b2c5dd !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content :is(.dashboard-kpi-income strong,.co-kpi-evolution-good,.co-invoice-timeline-status.is-paid) {color:#10e0a1 !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content :is(.dashboard-kpi-expense strong,.dashboard-kpi-pending strong,.co-kpi-evolution-bad,.co-invoice-timeline-status.is-pending) {color:#ff455d !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app :is(.btn:not(.secondary):not(.danger),.co-dashboard-privacy-visible) {background:linear-gradient(145deg,#238fff,#0065f2);}
/* Luz estatica apenas nos tracos/barras dos dados; rotulos continuam nitidos. */
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app #content :is(.dashboard-line-svg,.co-planning-chart) :is(path[stroke]:not([stroke="none"]),.co-plan-series,.co-combo-line) {
 filter:drop-shadow(0 0 2px #3ea6ff66) drop-shadow(0 0 4px #1685ff44);
}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app #content .co-result-bar {filter:drop-shadow(0 0 3px #0ee2a15c);}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app #content .co-result-bar[data-value^="-"] {filter:drop-shadow(0 0 3px #ff455d66);}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app #content :is(.co-account-timeline-line,.co-invoice-timeline-line) {filter:drop-shadow(0 0 2px #16e6aa88) drop-shadow(0 0 5px #16e6aa44);}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app #content :is(.dashboard-line-svg,.co-planning-chart) path[stroke="#ef4444"] {filter:drop-shadow(0 0 2px #ff455d88) drop-shadow(0 0 4px #ff455d44);}
/* Mini grafico: historico continuo, projecao tracejada e area azul em degrade. */
html:not(:has(body > #app > .co-landing)) #app#app > .layout.co-mobile-ready #content#content .co-mobile-balance-spark path.co-mobile-spark-line {
 stroke:#268fff !important;fill:none !important;stroke-width:2.1px !important;
 filter:drop-shadow(0 0 2px #37aaff99) drop-shadow(0 0 4px #1685ff55);
}
html:not(:has(body > #app > .co-landing)) #app#app > .layout.co-mobile-ready #content#content .co-mobile-balance-spark path.co-mobile-spark-area {
 stroke:none !important;filter:none !important;
}
@media(max-width:700px) {
 html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app > .layout.co-mobile-ready {--co-mobile-surface:#0c1727;--co-mobile-border:#2c4562;--co-mobile-ink:#edf5ff;--co-mobile-muted:#b2c5dd;}
 html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app > .layout.co-mobile-ready .co-mobile-bottom-nav {background:#0b1727 !important;border-top-color:#2c4562 !important;}
 html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content :is(.card:not(.co-chart-controls),.dashboard-kpi,.dashboard-account-card,.dashboard-cashflow) {box-shadow:0 4px 0 #030912,0 7px 14px #0006,inset 0 1px 0 #82baff20 !important;}
}
@media print {
 html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app #content :is(.dashboard-line-svg,.co-planning-chart,.co-account-timeline-line,.co-invoice-timeline-line,.co-result-bar) {filter:none !important;}
}
/* Acesso, ajuda e assinatura acompanham o mesmo tema escuro. */
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app :is(.co-login,.co-auth-shell,.co-auth-panel,.co-billing-page,.co-landing) {background:#070e18 !important;color:#edf5ff !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app :is(.co-auth-story,.co-billing-panel,.co-auth-signup-panel) {background:#0d1a2b !important;color:#edf5ff !important;border-color:#2c4562 !important;border-radius:12px !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app .co-login :is(h1,h2,h3,p,label,.co-auth-home,.co-auth-forgot) {color:#dcecff !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app .co-landing :is(.co-landing-section,.co-resource-mobile,.co-landing-footer) {background:#091320 !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app .co-landing :is(.co-resource-card,.co-plan-card,.co-resource-launch,.co-resource-email,.co-resource-extras,.co-landing-steps article) {
 background:linear-gradient(155deg,#142339,#0c1727) !important;color:#edf5ff !important;border-color:#2c4562 !important;
 border-radius:12px !important;box-shadow:var(--shadow) !important;
}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app .co-landing :is(.co-landing-heading,.co-resource-card,.co-plan-card,.co-resource-launch,.co-resource-email,.co-resource-extras,.co-resource-mobile-copy,.co-landing-steps article) :is(h2,h3,strong,p,li,small) {color:#dcecff !important;}
/* Tons financeiros seguem a semantica existente, inclusive valores negativos. */
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content [data-summary-tone="green"] :is(.money,strong),
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content :is([style*="color:#16794c"],[style*="color: #16794c"]) {color:#10e0a1 !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content [data-summary-tone="red"] :is(.money,strong),
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content :is([style*="color:#b42318"],[style*="color: #b42318"]) {color:#ff455d !important;}
html:not(:has(body > #app > .co-landing)) #app#app #content#content :is(.credit-card-widget,.co-mobile-wallet-strip) {border-radius:12px !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content .credit-card-widget {box-shadow:0 5px 0 #030912,0 12px 24px #0008,inset 0 1px 0 #ffffff24 !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app #content .co-combo-bar[fill="#2563eb"] {filter:drop-shadow(0 0 3px #268fff77);}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app #content .co-combo-bar[fill="#ef4444"] {filter:drop-shadow(0 0 3px #ff455d66);}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app .co-login :is(small,.co-auth-signup-panel small) {color:#b2c5dd !important;}

/* 122: fundo mais suave, com degrade discreto em todas as telas escuras. */
html:not(:has(body > #app > .co-landing))[data-theme="dark"] body {
 background:radial-gradient(ellipse at 92% 0%,#23436345,transparent 58%),linear-gradient(145deg,#162438 0%,#111e2f 55%,#0d1827 100%) #101b2a !important;
}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] body #app,
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app > .layout,
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app > .layout > .main,
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app :is(.co-login,.co-auth-shell,.co-auth-panel,.co-billing-page,.co-landing) {background:transparent !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app .co-landing :is(.co-landing-section,.co-resource-mobile,.co-landing-footer) {background:linear-gradient(145deg,#162438,#111e2f) !important;}
/* Cor do icone reaparece no fundo dos paineis de receita e despesa. */
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content#content :is(.dashboard-cashflow-receipts,.co-planning-category-income,[data-summary-tone="green"]) {
 background:linear-gradient(115deg,#0ed59d35 0%,#0ed59d13 42%,transparent 78%),linear-gradient(155deg,#15273a,#0c1928) !important;
}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content#content :is(.dashboard-cashflow-payments,.co-planning-category-expense,[data-summary-tone="red"]) {
 background:linear-gradient(115deg,#ff455d30 0%,#ff455d12 42%,transparent 78%),linear-gradient(155deg,#182638,#0d1827) !important;
}
/* Graficos ficam mais escuros que os demais cards, com tracos luminosos. */
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content#content :is(#co-dashboard-charts > .card,.co-planning-chart-card,.co-account-timeline,.co-invoice-timeline,.dashboard-line-card,.co-expense-distribution) {
 background:linear-gradient(155deg,#0d1928,#08121e) !important;
}
/* Personalizar graficos: mesmas cores, sombra, cantos e controles da base 119. */
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .co-chart-controls {
 background:linear-gradient(145deg,#398afa,#1769e0 60%,#1056bd) !important;
 border:1px solid #4794ff !important;border-radius:16px !important;
 box-shadow:0 3px 0 #10458c,0 6px 13px rgba(13,79,172,.25),inset 0 1px 0 rgba(255,255,255,.32) !important;color:#fff !important;
}
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .co-chart-controls :is(h3,.muted) {color:#fff !important;}
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .co-chart-controls .co-chart-control-button {
 background:linear-gradient(145deg,#f8fafc,#e2e8f0) !important;border-color:#cbd5e1 !important;color:#17233f !important;
 box-shadow:0 2px 0 #b8c4d3,inset 0 1px 0 #fff !important;
}
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .co-chart-controls .co-chart-control-button:hover {background:#e2e8f0 !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content#content .co-chart-controls .co-chart-control-button {
 background:linear-gradient(145deg,#2c3c50,#1c2a3d) !important;border-color:#53657c !important;color:#f3f6fb !important;
 box-shadow:0 2px 0 #152131,inset 0 1px 0 rgba(255,255,255,.15) !important;
}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content#content .co-chart-controls .co-chart-control-button:hover {background:#32445b !important;}
/* Logos: dimensoes maiores, proporcao original e sem ampliacao por transform. */
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content :is(img.co-account-logo,img.co-card-bank-logo) {
 width:60px !important;height:60px !important;max-width:none !important;object-fit:contain !important;image-rendering:auto;
}
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .dashboard-account-card-main {grid-template-columns:64px minmax(0,1fr) 14px !important;}
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content :is(.dashboard-account-logo,.dashboard-account-logo-fallback) {
 width:64px !important;height:64px !important;min-width:64px !important;object-fit:contain !important;image-rendering:auto;
}
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .credit-card-widget .credit-card-brand {width:58px !important;height:58px !important;flex:0 0 58px !important;}
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .credit-card-widget .credit-card-brand img {width:56px !important;height:56px !important;max-width:none !important;max-height:none !important;object-fit:contain !important;image-rendering:auto;}
@media(max-width:700px) {
 html:not(:has(body > #app > .co-landing)) #app#app > .layout.co-mobile-ready #content#content#content .co-mobile-accounts .dashboard-account-card {flex-basis:172px !important;min-height:62px !important;}
 html:not(:has(body > #app > .co-landing)) #app#app > .layout.co-mobile-ready #content#content#content .dashboard-account-card-main {grid-template-columns:36px minmax(0,1fr) !important;}
 html:not(:has(body > #app > .co-landing)) #app#app > .layout.co-mobile-ready #content#content#content :is(.dashboard-account-logo,.dashboard-account-logo-fallback) {width:36px !important;height:36px !important;min-width:36px !important;}
 html:not(:has(body > #app > .co-landing)) #app#app > .layout.co-mobile-ready #content#content#content .credit-card-widget .credit-card-brand {width:40px !important;height:40px !important;flex-basis:40px !important;}
 html:not(:has(body > #app > .co-landing)) #app#app > .layout.co-mobile-ready #content#content#content .credit-card-widget .credit-card-brand img {width:38px !important;height:38px !important;}
 html:not(:has(body > #app > .co-landing)) #app#app > .layout.co-mobile-ready #content#content#content .co-mobile-wallet-strip {padding-top:7px !important;}
 html:not(:has(body > #app > .co-landing)) #app#app > .layout.co-mobile-ready #content#content#content .co-mobile-wallet-strip > img {width:36px !important;height:36px !important;object-fit:contain !important;}
}
@media(min-width:701px) {
 html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .dashboard-account-cards {grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),270px)) !important;}
 html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .dashboard-account-card {max-width:270px !important;}
}
@media(max-width:700px) {
 html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .co-chart-controls {border-radius:13px !important;}
}

/* 123: cor e direcao acompanham o icone, nos dois temas. */
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content :is(.dashboard-kpi-accounts,[data-summary-tone="blue"]) {--co-card-tint:22 133 255;}
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content :is(.dashboard-kpi-income,.dashboard-cashflow-receipts,.co-planning-category-income,[data-summary-tone="green"]) {--co-card-tint:14 213 157;}
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content :is(.dashboard-kpi-expense,.dashboard-cashflow-payments,.co-planning-category-expense,[data-summary-tone="red"]) {--co-card-tint:255 69 93;}
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content :is(.dashboard-kpi-result,[data-summary-tone="gold"]) {--co-card-tint:245 183 46;}
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content :is(.dashboard-kpi-pending,[data-summary-tone="slate"]) {--co-card-tint:127 164 205;}
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content :is(.dashboard-kpi,.dashboard-cashflow,.co-planning-category-card) {--co-card-angle:90deg;}
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .co-standard-summary {--co-card-angle:270deg;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content#content :is(.dashboard-kpi,.dashboard-cashflow,.co-planning-category-card,.co-standard-summary) {
 background:linear-gradient(var(--co-card-angle,90deg),rgb(var(--co-card-tint,22 133 255)/.23),rgb(var(--co-card-tint,22 133 255)/.07) 44%,transparent 80%),linear-gradient(155deg,#14263a,#0c1827) !important;
}
html:not(:has(body > #app > .co-landing)):not([data-theme="dark"]) #app#app #content#content#content :is(.dashboard-kpi,.dashboard-cashflow,.co-planning-category-card,.co-standard-summary) {
 background:linear-gradient(var(--co-card-angle,90deg),rgb(var(--co-card-tint,22 133 255)/.20),rgb(var(--co-card-tint,22 133 255)/.045) 48%,transparent 82%),linear-gradient(155deg,#fff,#f1f5fa) !important;
}
/* Valores principais: mesmo incremento nominal de 1 px nas demais telas. */
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .co-standard-summary .money,
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .co-standard-summary > div > strong {
 font-size:clamp(21px,calc(2vw + 1px),29px) !important;
}
/* O apelido permanece; nomes bancarios continuam disponiveis nas listagens. */
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .dashboard-account-bank {display:none !important;}
/* Fundo claro um pouco mais encorpado em todas as telas. */
html:not(:has(body > #app > .co-landing)):not([data-theme="dark"]) body {
 background:radial-gradient(ellipse at 90% 0%,#c3d5ec77,transparent 60%),linear-gradient(145deg,#dce5ef 0%,#cbd7e5 62%,#c1cede 100%) #ced9e7 !important;
}
html:not(:has(body > #app > .co-landing)):not([data-theme="dark"]) body #app,
html:not(:has(body > #app > .co-landing)):not([data-theme="dark"]) #app > .layout,
html:not(:has(body > #app > .co-landing)):not([data-theme="dark"]) #app > .layout > .main,
html:not(:has(body > #app > .co-landing)):not([data-theme="dark"]) #app :is(.co-login,.co-billing-page,.co-landing) {background:transparent !important;}
/* Janela de login nitida, separada do fundo nos dois temas. */
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app .co-login .co-auth-shell {
 background:#0c1727 !important;border:1px solid #456384 !important;
 box-shadow:0 22px 60px #02071180,0 0 0 1px #7aafff12 !important;
}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app .co-login .co-auth-panel {background:linear-gradient(150deg,#101f32,#091321) !important;}
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app .co-login .co-auth-story {background:linear-gradient(145deg,#16314b,#0f2338) !important;}
html:not(:has(body > #app > .co-landing)):not([data-theme="dark"]) #app#app .co-login .co-auth-shell {background:#fff !important;border-color:#a6bad3 !important;box-shadow:0 22px 54px #18395730,0 2px 8px #18395714 !important;}
html:not(:has(body > #app > .co-landing)):not([data-theme="dark"]) #app#app .co-login .co-auth-panel {background:linear-gradient(150deg,#fff,#f5f8fc) !important;}
html:not(:has(body > #app > .co-landing)):not([data-theme="dark"]) #app .co-landing :is(.co-landing-section,.co-resource-mobile,.co-landing-footer) {
 background:linear-gradient(145deg,#e1e9f2,#d2ddeb) !important;
}

/* 124: resumos principais neutros; degrades por cor ficam nos expansiveis. */
html:not(:has(body > #app > .co-landing))[data-theme="dark"] #app#app #content#content#content :is(.dashboard-kpi,.co-standard-summary) {
 background:linear-gradient(155deg,#142339 0%,#0c1727 76%,#091320 100%) !important;
}
html:not(:has(body > #app > .co-landing)):not([data-theme="dark"]) #app#app #content#content#content :is(.dashboard-kpi,.co-standard-summary) {
 background:linear-gradient(155deg,#fff,#f1f5fa) !important;
}
/* Mais/menos comunica a expansao; botoes e comportamento permanecem iguais. */
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .dashboard-cashflow-chevron {
 width:24px !important;height:24px !important;padding:3px;box-sizing:border-box;
 border:1px solid currentColor;border-radius:7px;opacity:.85;
 transform:none !important;stroke-width:1.8;stroke-linecap:round;
}
html:not(:has(body > #app > .co-landing)) #app#app #content#content#content .dashboard-cashflow-toggle[aria-expanded="true"] .co-cashflow-toggle-vertical {opacity:0;}
@media(max-width:700px) {
 html:not(:has(body > #app > .co-landing)) #app#app > .layout.co-mobile-ready #content#content#content .dashboard-modern .dashboard-kpi:not(.dashboard-kpi-outlook) {
 height:105px !important;min-height:105px !important;
 }
 html:not(:has(body > #app > .co-landing)) #app#app > .layout.co-mobile-ready #content#content#content .co-mobile-balance-spark {top:calc(50% - 29px) !important;}
}

/* 125: atalho integrado ao centro da barra, sem icone solto sobre o conteudo. */
@media(max-width:700px) {
 html #app#app > .layout.co-mobile-ready .co-mobile-bottom-nav {align-items:center;overflow:visible;}
 html #app#app > .layout.co-mobile-ready .co-mobile-bottom-nav .co-mobile-entry {
  display:flex;position:relative;inset:auto;width:100%;height:auto;min-width:0;min-height:57px;
  flex-direction:column;justify-content:center;align-items:center;gap:1px;z-index:auto;
 }
 html #app#app > .layout.co-mobile-ready .co-mobile-bottom-nav .co-mobile-entry-toggle {
  display:grid;place-items:center;width:50px;min-width:50px;height:46px;min-height:46px;padding:8px;
  border:1px solid #69b7ff;border-radius:15px;background:linear-gradient(145deg,#2ca1ff,#0874f5 65%,#0758cd);
  color:#fff;box-shadow:inset 0 1px 0 #ffffff55,0 3px 0 #034baf,0 5px 14px #0874f540;
  transform:translateY(-5px);touch-action:manipulation;cursor:pointer;
 }
 html #app#app > .layout.co-mobile-ready .co-mobile-entry-toggle svg {width:28px;height:28px;transition:transform .16s ease;}
 html #app#app > .layout.co-mobile-ready .co-mobile-entry-toggle[aria-expanded="true"] svg {transform:rotate(45deg);}
 html #app#app > .layout.co-mobile-ready .co-mobile-entry-label {font-family:inherit;font-size:10px;font-weight:600;line-height:1.2;color:var(--co-mobile-ink);margin-top:-2px;}
 html #app#app > .layout.co-mobile-ready .co-mobile-entry-options {
  position:fixed;width:224px;max-width:calc(100vw - 16px);padding:12px;gap:8px;
  border-radius:16px;border:1px solid var(--co-mobile-border);background:var(--co-mobile-surface);
  box-shadow:0 6px 0 #03152b18,0 16px 36px #03152b40;z-index:920;
 }
 html #app#app > .layout.co-mobile-ready .co-mobile-entry-heading {margin:0 0 4px;font-size:13px;font-weight:750;color:var(--co-mobile-ink);}
 html #app#app > .layout.co-mobile-ready .co-mobile-entry-options button {align-items:flex-start;justify-content:center;padding:12px;min-height:46px;border:1px solid var(--co-mobile-border);border-radius:10px;font-size:14px;}
 html #app#app > .layout.co-mobile-ready[data-co-mobile-menu="open"] .co-mobile-entry {display:none;}
}
@media(prefers-reduced-motion:reduce) {html #app .co-mobile-entry-toggle svg {transition:none;}}
@media(max-width:700px) {
 html #app#app#app .co-mobile-entry-options [data-type="RECEITA"] {color:#087e5c !important;}
 html #app#app#app .co-mobile-entry-options [data-type="DESPESA"] {color:#bf283c !important;}
 html #app#app#app .co-mobile-entry-options [data-type="CARTAO"] {color:#1769e0 !important;}
 html[data-theme="dark"] #app#app#app .co-mobile-entry-options [data-type="RECEITA"] {color:#16dda5 !important;}
 html[data-theme="dark"] #app#app#app .co-mobile-entry-options [data-type="DESPESA"] {color:#ff6478 !important;}
 html[data-theme="dark"] #app#app#app .co-mobile-entry-options [data-type="CARTAO"] {color:#70b8ff !important;}
}

/* 126: cabecalhos expansiveis legiveis no celular e contas sem moldura externa. */
@media(max-width:700px) {
 html #app#app#app > .layout.co-mobile-ready #content#content#content#content .co-mobile-accounts {
  background:none !important;border:0 !important;outline:0 !important;
  box-shadow:none !important;border-radius:0 !important;padding:0 !important;overflow:visible !important;
 }
 html #app#app#app > .layout.co-mobile-ready #content#content#content#content .dashboard-modern .dashboard-cashflow {
  display:block !important;padding:15px !important;min-height:0 !important;
 }
 html #app#app#app > .layout.co-mobile-ready #content#content#content#content .dashboard-cashflow-heading {margin:0 !important;padding:0 !important;}
 html #app#app#app > .layout.co-mobile-ready #content#content#content#content .dashboard-cashflow-toggle {
  display:grid !important;grid-template-columns:34px minmax(0,1fr) !important;
  grid-template-rows:auto auto !important;column-gap:12px !important;row-gap:14px !important;
  padding:0 !important;min-height:0 !important;height:auto !important;align-items:center !important;
 }
 html #app#app#app > .layout.co-mobile-ready #content#content#content#content .dashboard-cashflow-icon {
  grid-column:1 !important;grid-row:1 !important;position:static !important;
  width:34px !important;height:34px !important;transform:none !important;margin:0 !important;
 }
 html #app#app#app > .layout.co-mobile-ready #content#content#content#content .dashboard-cashflow-icon svg {width:34px !important;height:34px !important;}
 html #app#app#app > .layout.co-mobile-ready #content#content#content#content .dashboard-cashflow-title {
  grid-column:2 !important;grid-row:1 !important;min-width:0 !important;text-align:left !important;
 }
 html #app#app#app > .layout.co-mobile-ready #content#content#content#content .dashboard-cashflow-title strong {font-size:15px !important;line-height:1.35 !important;}
 html #app#app#app > .layout.co-mobile-ready #content#content#content#content .dashboard-cashflow-indicators {
  grid-column:1/-1 !important;grid-row:2 !important;display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:7px !important;
  position:static !important;inset:auto !important;transform:none !important;
  margin:0 !important;padding:0 !important;width:100% !important;
 }
 html #app#app#app > .layout.co-mobile-ready #content#content#content#content .dashboard-cashflow-count {
  display:flex !important;align-items:center !important;justify-content:center !important;
  position:static !important;inset:auto !important;transform:none !important;grid-area:auto !important;
  width:100% !important;min-width:0 !important;max-width:none !important;min-height:44px !important;
  padding:7px 4px !important;margin:0 !important;white-space:normal !important;
  font-size:10.5px !important;line-height:1.35 !important;text-align:center !important;border-radius:8px !important;
 }
}

/* 127: o botao transparente deixa o degrade do card visivel em todos os estados. */
html #app#app#app #content#content#content#content .dashboard-cashflow-toggle,
html #app#app#app #content#content#content#content .dashboard-cashflow-toggle:is(:hover,:active,:focus,:focus-visible) {
 background:transparent !important;box-shadow:none !important;outline:0 !important;
 -webkit-tap-highlight-color:transparent;
}
/* O foco de teclado continua indicado pelo contorno externo do card. */
@media(min-width:1001px) {
 html #app#app#app #content#content#content#content .dashboard-cashflow-status-only .dashboard-cashflow-toggle {min-height:132px !important;padding:16px 20px !important;}
 html #app#app#app #content#content#content#content .dashboard-cashflow-status-only .dashboard-cashflow-indicators {padding-bottom:42px !important;}
}
@media(max-width:700px) {
 html #app#app#app > .layout.co-mobile-ready #content#content#content#content .dashboard-modern .dashboard-cashflow {padding:12px !important;}
 html #app#app#app > .layout.co-mobile-ready #content#content#content#content .dashboard-cashflow-toggle {grid-template-columns:30px minmax(0,1fr) !important;column-gap:10px !important;row-gap:10px !important;}
 html #app#app#app > .layout.co-mobile-ready #content#content#content#content .dashboard-cashflow-icon,
 html #app#app#app > .layout.co-mobile-ready #content#content#content#content .dashboard-cashflow-icon svg {width:30px !important;height:30px !important;}
 html #app#app#app > .layout.co-mobile-ready #content#content#content#content .dashboard-cashflow-count {min-height:34px !important;padding:5px 3px !important;font-size:10px !important;line-height:1.25 !important;}
}

/* 128: orientacoes extensas recolhidas, sem esconder campos ou validacoes. */
:where(#app,dialog) .co-form-guidance {
 margin:8px 0;border:1px solid color-mix(in srgb,currentColor 18%,transparent);
 border-radius:9px;color:inherit;font-size:13px;min-width:0;
}
:where(#app,dialog) .co-form-guidance > summary {
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:10px 12px;list-style:none;cursor:pointer;font-weight:650;line-height:1.4;
}
:where(#app,dialog) .co-form-guidance > summary::-webkit-details-marker {display:none;}
:where(#app,dialog) .co-form-guidance > summary::after {content:'⌄';font-size:17px;line-height:1;transition:transform .15s;}
:where(#app,dialog) .co-form-guidance[open] > summary::after {transform:rotate(180deg);}
:where(#app,dialog) .co-form-guidance > summary:focus-visible {outline:2px solid #1685ff;outline-offset:2px;border-radius:8px;}
:where(#app,dialog) .co-form-guidance-body {padding:0 12px 12px;line-height:1.55;overflow-wrap:anywhere;}
:where(#app,dialog) .co-form-guidance-body > :first-child {margin-top:0;}
:where(#app,dialog) .co-form-guidance-body > :last-child {margin-bottom:0;}
@media(prefers-reduced-motion:reduce) {:where(#app,dialog) .co-form-guidance > summary::after {transition:none;}}

/* 129: mesmo tom para os quatro controles superiores, sem alterar o olho azul. */
html #app#app#app .finance-header {
 --co-header-control-bg:rgba(255,255,255,.78);
 --co-header-control-border:rgba(148,163,184,.20);
 --co-header-control-hover:#fff;
}
html[data-theme="dark"] #app#app#app .finance-header {
 --co-header-control-bg:#0b192b;--co-header-control-border:#334e70;
 --co-header-control-hover:#14283e;
}
html #app#app#app .finance-header :is(.finance-header-month,.finance-header-notifications,.finance-header-user,.finance-header-logout) {
 background:var(--co-header-control-bg) !important;border-color:var(--co-header-control-border) !important;
}
html #app#app#app .finance-header :is(.finance-header-month,.finance-header-notifications,.finance-header-user,.finance-header-logout):hover {
 background:var(--co-header-control-hover) !important;
}
html #app#app#app .finance-header :is(.finance-header-month,.finance-header-notifications,.finance-header-user,.finance-header-logout):hover {
 border-color:#1685ff !important;
}
