:root{--finance-bg:#061325;--finance-line:#57c9ec30;--finance-text:#e7f3fc}body{background:radial-gradient(ellipse at 80% 0,#242753 0,#08172b 40%,#030b18 90%)!important;color:var(--finance-text)!important}.sidebar{background:#061224f5!important;border-right:1px solid var(--finance-line);display:flex;flex-direction:column;height:100dvh;overflow:hidden!important}.sidebar nav{overflow-y:auto;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#2edab4 #071527;overscroll-behavior:contain}.sidebar-bottom{position:static!important;margin-top:12px;flex:none}.sidebar a{color:#bed2e6!important}.sidebar a:hover{background:#23c7d11a!important}.sidebar .brand img{object-fit:contain}.main{background:transparent!important}.topbar{background:transparent!important}.topbar h1{color:#f0faff!important}.panel,.cards article,.kpi,.access-strip,.cycle-hero,.board-hero,.editor-hero,.planning-window{background:linear-gradient(140deg,#132c45ef,#0a142bec)!important;border:1px solid var(--finance-line)!important;color:var(--finance-text)!important;box-shadow:0 14px 38px #0004}.panel h2,.panel h3,h1,h2,h3{color:#eef8ff}.panel p,.muted,.topbar p{color:#a6bcd2}.btn{border-color:#3cc6df45!important;color:#e7f3fc!important;background:#0e2941!important}.btn.primary{background:linear-gradient(120deg,#14c998,#098c98)!important;color:#fff!important}.form-grid input,.form-grid select,.form-grid textarea,input,select,textarea{background:#091a2e!important;border:1px solid #6eb8dd45!important;color:#edf7ff!important}dialog{background:#0d2038!important;color:#e7f3fc;border:1px solid #6de2ff55}dialog::backdrop{background:#010714bd;backdrop-filter:blur(4px)}table{color:#e4f1fa}th{background:#15354d!important;color:#8fe8ee!important}td{border-color:#88c8e91a!important}.board-month{box-shadow:0 8px 30px #0005}.board-month p,.board-month strong{color:inherit}.finance-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 0}.finance-kicker{color:#4ce8d5;letter-spacing:.15em;font-size:11px;font-weight:900}.finance-hero h2{font-size:32px;margin:10px 0}.finance-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}.finance-kpis article{background:linear-gradient(145deg,#132e49,#0b1930);border:1px solid var(--finance-line);border-radius:17px;padding:22px}.finance-kpis small{display:block;color:#b3cadd;margin-bottom:8px}.finance-kpis b{display:block;font-size:24px}.finance-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.finance-chart{height:320px}.market-spark svg{width:100%;height:90px}.market-grid a{font-size:11px}.market-grid [data-market-date]{min-height:36px}output{display:block;font-size:23px;padding:20px 0;color:#68edbd}[data-market-mini]{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-bottom:15px}[data-market-mini] small{display:block;color:#a5bdd0}.quick-month{width:min(1100px,96vw);height:90dvh;padding:12px;border-radius:18px}.quick-month iframe{width:100%;height:calc(100% - 50px);border:0;border-radius:12px}.quick-month>button{padding:10px 15px;margin-bottom:9px;border-radius:9px;background:#174461;color:#fff;border:0}.auth .login-card{background:#10243c!important;color:#fff}.auth{background:radial-gradient(circle at 50% 0,#24326b,#041021)!important}.auth a{color:#67e9d3!important}.pwa-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.pwa-help{padding:16px 24px;border:1px solid #3cdaef55;border-radius:14px;background:#0a203d;color:#c8e2f7;max-width:650px}.pwa-help p{font-size:16px}.green{color:#61e5ba!important}.red{color:#ff92ad!important}@media(max-width:1100px){.finance-kpis{grid-template-columns:1fr 1fr}}@media(max-width:700px){.finance-columns{grid-template-columns:1fr}.finance-hero{display:block}.finance-kpis article{padding:14px}.finance-kpis b{font-size:19px}.main{padding:14px!important}.sidebar{z-index:80}.finance-chart{height:260px}}@media(max-width:400px){.finance-kpis{grid-template-columns:1fr}}@media print{body,.panel{background:#fff!important;color:#000!important;box-shadow:none!important}.sidebar,.topbar,.filters,.actions{display:none!important}.main{margin:0!important}.panel p,h1,h2,h3,table{color:#000!important}th{background:#eee!important;color:#000!important}td{border-color:#ddd!important}}

.month-embed .sidebar,.month-embed .topbar{display:none!important}.month-embed .main{margin:0!important;width:100%!important;padding:18px!important}.goal{background:linear-gradient(135deg,#15304a,#0b1930)!important;color:#e7f3fc!important;border:1px solid #57c9ec30!important}.goal-update{margin-top:18px;display:flex;align-items:end;gap:10px;flex-wrap:wrap}.goal-update label{flex:1;min-width:120px}.goal-update input{width:100%;padding:9px}.panel{min-width:0}.panel:has(>table){overflow-x:auto}a{color:#7ce9e6}.form-grid{min-width:0}.form-grid label{min-width:0}.form-grid input,.form-grid select,.form-grid textarea{max-width:100%}

.menu{background:#15324b!important;color:#87f5eb!important;border:1px solid #49d9df66!important;border-radius:10px;padding:9px 12px}.month-embed .editor-hero>a{display:none!important}

/* V9.1 — leitura do mapa financeiro e dos formulários de cadastro. */
.finance-sheet{color:#17324d!important;background:#fff!important;border-color:#c2d5e6!important}
.finance-sheet .sheet-row,.planner-items .sheet-row{color:#17324d!important}
.finance-sheet .sheet-row>* ,.planner-items .sheet-row>*{border-bottom-color:#c5d5e2!important;min-width:0}
.finance-sheet .sheet-row.header,.planner-items .sheet-row.header{color:#17324d!important}
.finance-sheet .sheet-row.header>:first-child,.planner-items .sheet-row.header>:first-child{color:#17324d!important;background:#e4edf5!important}
.finance-sheet .sheet-row.header>:nth-child(2),.planner-items .sheet-row.header>:nth-child(2){color:#123f7a!important;background:#dbeafe!important}
.finance-sheet .sheet-row.header>:nth-child(3),.planner-items .sheet-row.header>:nth-child(3){color:#582587!important;background:#efe0ff!important}
.finance-sheet .sheet-row.header>:nth-child(4),.planner-items .sheet-row.header>:nth-child(4){color:#075d47!important;background:#cef5e2!important}
.finance-sheet .sheet-row.income{color:#075d47!important;background:#d2f7e5!important}
.finance-sheet .sheet-row.available{color:#123f7a!important;background:#dbeafe!important}
.finance-sheet .sheet-row.expenses{color:#74400a!important;background:#fff0c2!important}
.finance-sheet .sheet-row.objective{color:#582587!important;background:#ecddff!important}
.finance-sheet .sheet-row span,.finance-sheet .sheet-row strong{color:inherit!important}
.finance-sheet .sheet-row output,.planner-items .sheet-row output{color:#075d47!important;background:#e8fbf2!important;font-size:clamp(14px,1.5vw,19px);font-weight:800;line-height:1.4;padding:12px 14px!important;overflow-wrap:anywhere}
.finance-sheet input:not([type=checkbox]):not([type=hidden]),.planner-items input:not([type=hidden]),.finance-sheet textarea{color:#17324d!important;background:#fff!important;border:2px solid #91abc5!important;border-radius:9px!important;font:inherit;min-height:46px}
.finance-sheet .sheet-row input[name=saldo_inicial_visao],.finance-sheet .sheet-row input[name=objetivo_final_visao],.planner-items input[name=visao]{background:#eff6ff!important;border-color:#6997dc!important;color:#123f7a!important;font-weight:700}
.finance-sheet .sheet-row input[name=saldo_inicial_realidade],.planner-items input[name=realidade]{background:#f7efff!important;border-color:#a982d8!important;color:#582587!important;font-weight:700}
.finance-sheet textarea{display:block;width:100%;min-height:100px;margin:18px 0 12px;padding:12px;resize:vertical}
.finance-sheet textarea::placeholder,.planner-items input::placeholder{color:#526579!important;opacity:1}
.finance-sheet .auto-reality{color:#075d47!important;background:#d2f7e5!important;line-height:1.6}
.finance-sheet input[type=checkbox]{accent-color:#0f766e;flex:none}
.planner-items{color:#17324d!important;background:#fff!important;border-color:#c2d5e6!important}
.planner-items h2,.planner-items .panel-head h2{color:#17324d!important}
.planner-items .panel-head p,.planner-items .empty{color:#435d77!important}
.planner-items .empty{background:#edf5ff!important;border-color:#abc3db!important}
.planner-items .sheet-row.item{margin-bottom:8px;background:#f4f8ff;border-radius:10px}
.planner-items .sheet-row.item>span{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px!important}
.planner-items .save-line,.planner-items .delete-line{color:#fff!important;border:0;border-radius:9px;min-width:36px;min-height:44px;font-size:21px;cursor:pointer}
.planner-items .save-line{background:#0f766e!important}.planner-items .delete-line{background:#be123c!important}
.finance-sheet .btn.primary,.planner-items .btn.primary,#novo-receita .btn.primary,#novo-despesa .btn.primary{background:linear-gradient(120deg,#096958,#087c75)!important;color:#fff!important;border-color:#075d47!important;min-height:46px}
#novo-receita,#novo-despesa{color:#17324d!important;background:#fff!important;border:2px solid #90aaca}
#novo-receita .form-grid,#novo-despesa .form-grid{color:#17324d!important;background:linear-gradient(145deg,#f0fbf7,#eef5ff);padding:24px}
#novo-receita .modal-head,#novo-despesa .modal-head{background:#d2f7e5;padding:16px;border-radius:12px}
#novo-despesa .modal-head{background:#fff0c2}
#novo-receita h2,#novo-despesa h2,#novo-receita label,#novo-despesa label,#novo-receita .modal-head button,#novo-despesa .modal-head button{color:#17324d!important}
#novo-receita input:not([type=hidden]),#novo-despesa input:not([type=hidden]){color:#17324d!important;background:#fff!important;border:2px solid #91abc5!important;font-size:16px;min-height:48px}
#novo-receita input[name=visao],#novo-despesa input[name=visao]{background:#eff6ff!important;border-color:#6997dc!important;color:#123f7a!important}
#novo-receita input[name=realidade],#novo-despesa input[name=realidade]{background:#f7efff!important;border-color:#a982d8!important;color:#582587!important}
#novo-receita input::placeholder,#novo-despesa input::placeholder{color:#526579!important;opacity:1}
.finance-sheet :is(input,textarea,button):focus-visible,.planner-items :is(input,button):focus-visible,#novo-receita :is(input,button):focus-visible,#novo-despesa :is(input,button):focus-visible{outline:3px solid #2563eb!important;outline-offset:3px}
.guidance-grid>div,.guidance-grid b{color:#17324d!important}.guidance-grid span,.guidance-grid small{color:#435d77!important}
@media(max-width:700px){
 .finance-sheet .sheet-row,.planner-items .sheet-row{min-width:0!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .finance-sheet .sheet-row:not(.header)>:first-child,.planner-items .sheet-row.item>input[name=descricao]{grid-column:1/-1}
 .finance-sheet .sheet-row.header>:first-child,.planner-items .sheet-row.header>:first-child,.planner-items .sheet-row.header>:last-child{display:none!important}
 .finance-sheet .sheet-row>* ,.planner-items .sheet-row>*{padding:10px 6px!important;font-size:13px}
 .finance-sheet .sheet-row.header>* ,.planner-items .sheet-row.header>*{font-size:10px;letter-spacing:0;justify-content:center;text-align:center}
 .finance-sheet .sheet-row input,.planner-items .sheet-row input{font-size:16px!important}
 .finance-sheet .sheet-row output,.planner-items .sheet-row output{font-size:13px;justify-content:center;padding:10px 6px!important}
 .planner-items{padding:16px!important}.planner-items .panel-head{align-items:flex-start;gap:12px;flex-wrap:wrap}
 .planner-items .sheet-row.item>span{grid-column:1/-1;justify-content:flex-end}
 .planner-items .save-line,.planner-items .delete-line{min-width:48px}
 .finance-sheet .auto-reality{align-items:flex-start!important}
 #novo-receita .form-grid,#novo-despesa .form-grid{padding:18px}
}

/* V9.2 — interface interna clara e colorida, inclusive editor do ciclo. */
:root{--finance-text:#16324f;--finance-line:#afc9e0;--route-muted:#49647d}
body{background:radial-gradient(ellipse at 85% 0,#e0d7ff,#e3f6ff 45%,#f4f9ff 90%)!important;color:#16324f!important}
.sidebar{background:linear-gradient(160deg,#f5fbff,#e2edff)!important;border-color:#a5c2df!important}
.sidebar a,.sidebar .brand strong,.sidebar-bottom{color:#173a58!important}.sidebar a:hover{color:#123f7a!important;background:#cceafa!important}.sidebar-bottom{border-color:#acc8dc!important}
.topbar h1,.panel h2,.panel h3,h1,h2,h3{color:#16324f!important}.topbar p,.panel p,.muted,.cards span{color:#466078!important}
.panel,.cards article,.kpi,.goal,.video-card,.budget-card,.mini-goal,.activity-row{background:linear-gradient(140deg,#fff,#f0f7ff)!important;color:#16324f!important;border-color:#afc9e0!important;box-shadow:0 8px 24px #456d9720!important}
.finance-kpis article{background:linear-gradient(140deg,#fff,#e4f2ff)!important;color:#16324f!important;border-color:#9dbedc!important}
.finance-kpis article:nth-child(4n+2){background:linear-gradient(140deg,#fff,#ffe9c7)!important}.finance-kpis article:nth-child(4n+3){background:linear-gradient(140deg,#fff,#d6f8e6)!important}.finance-kpis article:nth-child(4n+4){background:linear-gradient(140deg,#fff,#eedfff)!important}
.finance-kpis small,[data-market-mini] small,.goal p,.goal-values{color:#405b74!important}
.finance-hero h2,.finance-kicker{color:#173a58!important}.cycle-hero,.board-hero,.editor-hero,.access-strip,.planning-window{background:linear-gradient(120deg,#d7f7eb,#dceeff 60%,#eee0ff)!important;color:#16324f!important;border-color:#afc9e0!important}
.cycle-hero p,.cycle-hero span,.board-hero p,.board-kicker,.editor-hero p,.editor-hero span,.access-strip span,.access-strip small{color:#244b64!important}
.planning-window{background:linear-gradient(120deg,#fff0bd,#ffe0c9)!important}.planning-window span{color:#65451b!important}
input,select,textarea,.form-grid input,.form-grid select,.form-grid textarea{background:#fff!important;color:#16324f!important;border:2px solid #9cb6d0!important;font-size:16px}
input::placeholder,textarea::placeholder{color:#526b83!important;opacity:1}input:disabled{background:#e9edf4!important;color:#576c81!important;opacity:1}
.form-grid label,.form-grid small,.month-editor .form-grid label,.month-editor small{color:#24465f!important}
.money-form .vision-field{background:#dbeafe!important;color:#173f7a!important}.money-form .reality-field{background:#e8dbff!important;color:#582587!important}
.form-grid .vision-field input{background:#f4f8ff!important;color:#173f7a!important;border-color:#6997dc!important}.form-grid .reality-field input{background:#f8f1ff!important;color:#582587!important;border-color:#a982d8!important}
.btn{background:#e1eefb!important;color:#123f7a!important;border-color:#91b2d3!important}.btn.primary{background:linear-gradient(120deg,#076852,#08796f)!important;color:#fff!important;border-color:#075d47!important}
.green{color:#07644a!important}.red{color:#a81037!important}output{color:#075d47!important}
.dialog,dialog,.quick-month{background:#f7fbff!important;color:#16324f!important;border-color:#7fa9cf!important}dialog .modal-head,dialog .modal-head h2,dialog .modal-head button{color:#16324f!important}.quick-month>button{background:#d8ebfc;color:#173f7a;font-weight:800}
.native-month-dialog .modal-head,.quick-entry-form .modal-head,.month-plan-form .modal-head{background:linear-gradient(120deg,#d5f7e9,#e5ddff)!important;color:#16324f!important}.native-month-dialog .modal-head p,.native-month-dialog .modal-head small,.quick-entry-form .modal-head p{color:#405b74!important}
.editor-note{background:#fff0bd!important;color:#674416!important}.editor-note span{color:#674416!important}
.finance-chart canvas{background:transparent}table{color:#16324f!important}th{background:#dcecff!important;color:#123f7a!important}td{border-color:#c7d8e7!important}td small{color:#405b74!important}
.month-access-alert{color:#173a58!important}.month-access-alert span{color:#36546b!important}
.board-month{color:#162f49!important;--month-a:#c1e1ff;--month-b:#aeeefa}.month-color-1{--month-a:#c1e1ff;--month-b:#aeeefa}.month-color-2{--month-a:#c1f0ff;--month-b:#bad7ff}.month-color-3{--month-a:#bbf3df;--month-b:#a1e2d5}.month-color-4{--month-a:#dfc8ff;--month-b:#f0c5fa}.month-color-5{--month-a:#ffc5db;--month-b:#ffdbd8}.month-color-6{--month-a:#d8cdff;--month-b:#e5caff}.month-color-7{--month-a:#e0c8f9;--month-b:#f4c9f7}.month-color-8{--month-a:#c4f2e2;--month-b:#a6ddd7}.month-color-9{--month-a:#ffc3ce;--month-b:#ffdeca}.month-color-10{--month-a:#ffdab8;--month-b:#ffebcf}.month-color-11{--month-a:#ffe7ae;--month-b:#fff0c7}.month-color-12{--month-a:#fff0aa;--month-b:#fff6d2}
.board-month header,.month-locked header{background:#ffffff66!important;color:#162f49!important}.board-month footer,.month-color-8 footer,.month-color-8 footer a,.month-color-8 .month-edit{color:#162f49!important}.month-locked{filter:none!important;opacity:1!important}
.month-block{background:#ffffff88!important}.month-block.planned{background:#ffffff6b!important}.month-status{color:#24465f!important}.month-status i{background:#087d59;box-shadow:none}
.month-value-button{border:0;background:#ffffff80;color:#123f7a;padding:3px 6px;border-radius:6px;font:inherit;font-weight:800;cursor:pointer;text-align:right;text-decoration:underline;text-underline-offset:3px}.month-value-button:hover{background:#fff;outline:2px solid #3c76bf}.month-value-button:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.money-control{display:flex;align-items:center;min-width:0;width:100%;gap:7px}.money-symbol{font-size:13px;font-weight:800;flex:none;color:#335675}.money-control input{min-width:0;flex:1;width:100%!important}
.item-edit-form{display:grid;gap:12px;grid-template-columns:minmax(160px,2fr) 1fr 1fr auto;padding:16px;background:#e9f3ff;border:1px solid #adc6df;border-radius:12px;margin:12px 0}.item-edit-form.receita{background:#e2f8ec}.item-edit-form label{display:grid;gap:5px;font-weight:700}.item-edit-form input{padding:10px;border-radius:9px}.item-edit-form .actions{margin:0;align-self:end;gap:7px}.item-edit-form small{grid-column:1/-1;color:#405b74}.editor-totals{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.editor-totals span{background:#d7efff;border-radius:9px;padding:10px 14px;color:#16324f}
.auth,.auth .login-card{background:linear-gradient(135deg,#def5ff,#ecddff)!important;color:#16324f!important}.auth .login-card{background:#fff!important}.auth a{color:#174f89!important}.auth .login-card p{color:#405b74!important}
@media(max-width:750px){.item-edit-form{grid-template-columns:1fr 1fr}.item-edit-form label:first-of-type,.item-edit-form .actions{grid-column:1/-1}.item-edit-form .actions{justify-content:flex-end}.quick-month{width:98vw;height:94dvh;padding:8px}.quick-month iframe{height:calc(100% - 46px)}}
@media print{body,.panel,.finance-kpis article{background:#fff!important;color:#000!important}}
.cdb-scenario{border:2px solid #b0c8df;border-radius:14px;padding:16px;display:grid;gap:14px;background:#e1f3ff;min-width:0}.cdb-scenario:nth-of-type(2){background:#e4f8e9}.cdb-scenario:nth-of-type(3){background:#f0e3ff}.cdb-scenario legend{font-weight:800;color:#173f7a}.cdb-result{background:#d4f5e4;border:1px solid #75b79e;border-radius:12px;padding:18px;color:#075d47;font-weight:700}.cdb-comparator .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cdb-comparator .table-wrap{margin:16px 0}.market-note{color:#7b3618;line-height:1.5}.market-grid [data-market-source]{color:#174f89;font-weight:700}.market-grid .market-spark polyline{stroke:#137994}.cdb-comparator label small{color:#405b74;font-weight:400}.money-control:focus-within{outline:2px solid #2563eb;outline-offset:2px;border-radius:9px}@media(max-width:700px){.cdb-comparator .form-grid{grid-template-columns:1fr}.cdb-scenario{grid-column:1/-1}}
a{color:#17548e}.map-year-overview,.sheet-title{background:linear-gradient(120deg,#c5f4e4,#d4e9ff,#e9d7ff)!important;color:#16324f!important}.map-year-overview p,.map-year-overview>div>span,.sheet-title span{color:#24465f!important}.map-year-select a,.map-year-select select{color:#173f7a!important}.sheet-legend{color:#16324f}.editor-hero .btn{background:#dcecff!important;color:#123f7a!important}.panel .empty,.tabs a,.list-card{color:#16324f!important}.quick-month>button{color:#123f7a!important;background:#d9ebfc!important}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
