:root{--brand:#513d2c;--ink:#3b2d21;--muted:#71675e;--line:#e9e4df;--surface:#fff;--canvas:#f7f4f1}body{background:var(--canvas);color:var(--ink)}.sidebar{background:#faf7f5;border-color:#e8e2dd}.brand{color:#483627}.mark{background:#513d2c!important;color:white!important}.app-nav{gap:5px}.app-nav a{color:#72665b;border-radius:10px;transition:background .15s,color .15s}.app-nav a:hover{background:#f4efea;color:#513d2c}.app-nav a[aria-current=page]{background:#eee8e2;color:#4f3b2a}.button{border-radius:10px;box-shadow:0 2px 5px #392b1e0d}.panel,.stat,.month-block{box-shadow:0 3px 14px #3b2d2008}.stat{border-radius:16px}.topbar{border-color:#e9e3de}h1{color:#3d2e21;letter-spacing:-.8px}.graph-section{background:#fff;border:1px solid var(--line);border-radius:17px;margin:22px 0;box-shadow:0 3px 14px #3b2d2008;overflow:hidden}.graph-section>summary{padding:20px 22px;cursor:pointer;font-size:16px;font-weight:600;color:#483627}.graph-body{padding:0 22px 22px;border-top:1px solid #f2eeeb}.graph-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:20px 0}.graph-options{display:flex;gap:10px;flex-wrap:wrap}.graph-options label{display:grid;gap:6px;color:#716961;font-size:11px}.graph-options select{background:#faf8f7;border:1px solid #e6e0da;border-radius:9px;padding:9px;color:#483729}.graph-period{display:flex;align-items:center;gap:7px;color:#6c5d4f;font-size:12px;font-variant-numeric:tabular-nums}.graph-period button{width:34px;height:34px;border:1px solid #e7e0da;background:#fff;border-radius:9px;color:#55402e;font-size:18px;cursor:pointer}.graph-period button:hover{background:#f3eee9}.graph-period button:disabled{opacity:.45;cursor:default}.graph-target svg{width:100%;max-height:300px;display:block}.chart-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:15px;font-size:11px;color:#776b60}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{display:inline-block;width:9px;height:9px;border-radius:3px}.graph-caption{font-size:11px;color:#6f6760;line-height:1.6}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.tax-mode{display:inline-flex;gap:4px;background:#f1ece8;border-radius:11px;padding:4px;margin-top:18px}.tax-mode button{border:0;background:transparent;padding:10px 18px;border-radius:8px;color:#73675d;cursor:pointer;font-weight:600}.tax-mode button[aria-pressed=true]{background:white;color:#513d2c;box-shadow:0 2px 8px #3b2d2015}.tax-list{display:grid;gap:12px}.tax-month{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}.tax-month>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:18px 20px;cursor:pointer}.tax-month>summary strong{text-transform:capitalize;color:#4d3a29;font-size:16px}.tax-month>summary span{font-size:13px;color:#75685d}.tax-details{border-top:1px solid #f2eeeb;padding:8px 20px 20px}.tax-details dl{margin:0}.tax-details dl>div{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid #f2efed;font-size:13px}.tax-details dt{color:#71675d}.tax-details dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.tax-details .tax-total{font-weight:700;color:#533e2c}.tax-note{font-size:11px;color:#706861;line-height:1.6}.tax-toolbar{display:flex;gap:14px;flex-wrap:wrap;align-items:end;margin:20px 0}.tax-toolbar label{display:grid;gap:7px;font-size:11px;color:#74685d}.tax-toolbar select,.tax-toolbar input{padding:10px;border:1px solid #e5dfda;border-radius:9px;background:white;color:#4a3828}.fiscal-subtitle{font-size:13px;color:#70665e;margin:8px 0 0}.fiscal-warning{font-size:12px;line-height:1.6;color:#76683f;background:#f9f6e9;padding:12px 15px;border-radius:10px;margin:12px 0}.fiscal-warning[hidden]{display:none}.tax-year-nav{display:flex;gap:5px;align-items:center}.tax-year-nav button{height:37px;width:35px;background:white;border:1px solid #e5dfda;border-radius:9px;color:#55402e;cursor:pointer}@media(max-width:950px){.sidebar{flex-wrap:wrap;justify-content:flex-start}.app-nav{display:flex;flex-wrap:wrap;gap:3px}.app-nav a{padding:8px 9px;font-size:12px}.brand{margin-right:auto}.graph-body{padding:0 15px 18px}.graph-section>summary{padding:17px}.graph-toolbar{align-items:start}.graph-target svg{min-height:180px}}@media(max-width:520px){.app-nav{width:100%;overflow-x:auto;flex-wrap:nowrap}.app-nav a{white-space:nowrap}.graph-period{width:100%;justify-content:flex-end}.tax-month>summary{padding:15px}.tax-month>summary strong{font-size:14px}.tax-details{padding:6px 15px 16px}}


/* Paleta do consultório: verdes, dourado discreto e fundo claro. */
:root{--brand:#8B5E34;--ink:#372c23;--muted:#72675d;--line:#e4e6d9;--canvas:#F7F1EA;--surface:#fffefa}
body{background:var(--canvas);color:var(--ink)}.sidebar{background:#fbf9f0;border-color:#e7e4d7}.brand{color:#8B5E34}.mark{background:#8B5E34!important}.app-nav a{color:#6b5e52}.app-nav a:hover{background:#f2ede8;color:#8B5E34}.app-nav a[aria-current=page]{background:#efe9e3;color:#8B5E34;box-shadow:inset 3px 0 #D6C2AE}.topbar{border-color:#e9e5d6}h1{color:#372a1e}.button:not(.secondary){background:#8B5E34;border-color:#8B5E34;color:#fff}.button:not(.secondary):hover{background:#413123}.graph-section,.month-block,.stat,.panel{background:#fffefa;border-color:#e8e6da}.graph-section>summary,.month-block h2{color:#403022}.graph-period button:hover{background:#f5f0ec}.chart-bar{cursor:pointer;transition:opacity .15s}.chart-bar:hover,.chart-bar:focus{opacity:.72;outline:none;stroke:#1F1410;stroke-width:2}.chart-insight{width:max-content;max-width:100%;margin:2px auto 8px;padding:7px 12px;border-radius:9px;background:#f2ede8;color:#433224;font-size:12px;font-weight:600}.chart-insight[hidden]{display:none}
.month-block{border-radius:18px;box-shadow:0 5px 18px #4c3d3010}.month-block>summary{padding:20px 22px;background:linear-gradient(110deg,#f7f3ef,#fffefa);border-bottom:1px solid transparent}.month-block[open]>summary{border-bottom-color:#ede7e2}.month-values{gap:10px}.month-values span{padding:12px 15px;border-radius:11px;background:#fffefa;border:1px solid #ece7e2}.month-values strong{font-weight:650;color:#8B5E34}.monthly-report{padding:12px 18px 18px}.monthly-report .rpt-table{border-collapse:separate;border-spacing:0 4px}.monthly-report .rpt-table th{color:#73685e;font-weight:600;font-size:11px;letter-spacing:.02em;padding:10px 12px}.monthly-report .rpt-table td{border:0;background:#faf7f5;padding:12px;font-size:13px;color:#4d4035}.monthly-report .rpt-table tbody tr:hover td{background:#f5f0eb}.monthly-report .rpt-table td:first-child{border-radius:9px 0 0 9px;color:#706861}.monthly-report .rpt-table td:nth-child(2){font-weight:600;color:#463526}.monthly-report .rpt-table td:last-child{border-radius:0 9px 9px 0;font-weight:700;color:#8B5E34}.monthly-report .rpt-table tfoot td{background:#f1ebe6;border:0;color:#403123;font-weight:700}.monthly-report .rpt-table tfoot td:last-child{background:#ebe3dc;color:#8B5E34}@media(max-width:600px){.monthly-report{padding:8px 10px 14px}.month-block>summary{padding:16px}.month-values span{padding:10px}}


/* Temas do consultório: verde profundo, verde, dourado, creme e grafite. */
.theme-toggle{margin-top:auto;display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;border:1px solid #e2dbd4;border-radius:10px;background:#fffefa;color:#8B5E34;font:inherit;font-size:13px;font-weight:600;cursor:pointer;text-align:left}.theme-toggle:hover{background:#f5f0eb}.theme-toggle+.dev{margin-top:-30px}html[data-theme=light] .stat.active{border-color:#D6C2AE}html[data-theme=light] .theme-toggle:focus-visible{outline:2px solid #D6C2AE;outline-offset:2px}
html[data-theme=dark]{color-scheme:dark;--brand:#D6C2AE;--ink:#F7F1EA;--muted:#d6d3cf;--line:#705444;--surface:#37251e;--canvas:#1F1410}
html[data-theme=dark] body{background:#1F1410!important;color:#F7F1EA!important}
html[data-theme=dark] .sidebar{background:#1F1410!important;border-color:#705444!important}
html[data-theme=dark] .brand,html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3,html[data-theme=dark] .graph-section>summary,html[data-theme=dark] .month-block h2{color:#F7F1EA!important}
html[data-theme=dark] .app-nav a{color:#e5e1da!important}html[data-theme=dark] .app-nav a:hover{background:#4B2E24!important}html[data-theme=dark] .app-nav a[aria-current=page]{background:#8B5E34!important;color:#fff!important;box-shadow:inset 3px 0 #D6C2AE}
html[data-theme=dark] .theme-toggle{background:#4B2E24;color:#F7F1EA;border-color:#9a7e6c}html[data-theme=dark] .theme-toggle:hover{background:#674637}html[data-theme=dark] .dev,html[data-theme=dark] .email{color:#d6d3cf}
html[data-theme=dark] .topbar{border-color:#705444!important}html[data-theme=dark] .gate,html[data-theme=dark] .panel,html[data-theme=dark] .stat,html[data-theme=dark] .month-block,html[data-theme=dark] .graph-section,html[data-theme=dark] .tax-card,html[data-theme=dark] .tax-month,html[data-theme=dark] .settings,html[data-theme=dark] .ads-month,html[data-theme=dark] dialog{background:#37251e!important;border-color:#705444!important;color:#F7F1EA!important}
html[data-theme=dark] .month-block>summary{background:#4B2E24!important;border-color:#705444!important}html[data-theme=dark] .month-values span,html[data-theme=dark] .ads-metric,html[data-theme=dark] .ads-month-chart,html[data-theme=dark] .rpt-filters,html[data-theme=dark] .tax-toolbar,html[data-theme=dark] .tax-side,html[data-theme=dark] .package-list{background:#4B2E24!important;border-color:#826858!important;color:#F7F1EA!important}
html[data-theme=dark] .tax-side.tax-better{background:#5a4326!important;border-color:#D6C2AE!important}html[data-theme=dark] .tax-better-label{background:#D6C2AE!important;color:#1F1410!important}
html[data-theme=dark] .ads-group,html[data-theme=dark] .ads-result>div,html[data-theme=dark] .graph-body{border-color:#826858!important}
html[data-theme=dark] .ads-result strong,html[data-theme=dark] .ads-metric strong,html[data-theme=dark] .ads-expense-value,html[data-theme=dark] .ads-bar-label strong,html[data-theme=dark] .stat strong,html[data-theme=dark] .month-values strong,html[data-theme=dark] .tax-total{color:#F7F1EA!important}
html[data-theme=dark] .ads-group h3,html[data-theme=dark] .ads-month-chart h3,html[data-theme=dark] .ads-result small,html[data-theme=dark] .ads-metric small,html[data-theme=dark] .ads-expense-label,html[data-theme=dark] .ads-bar-label,html[data-theme=dark] .stat p,html[data-theme=dark] .month-values small,html[data-theme=dark] .status,html[data-theme=dark] .status-line,html[data-theme=dark] .tax-common,html[data-theme=dark] .tax-card details,html[data-theme=dark] label,html[data-theme=dark] .graph-period,html[data-theme=dark] .graph-caption{color:#e0ddd8!important}
html[data-theme=dark] input:not([type=checkbox]),html[data-theme=dark] select,html[data-theme=dark] textarea{background:#1F1410!important;color:#F7F1EA!important;border-color:#9a7e6c!important}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#bdb8b3!important}html[data-theme=dark] input[type=checkbox]{accent-color:#D6C2AE}
html[data-theme=dark] .secondary,html[data-theme=dark] .pencil,html[data-theme=dark] .annual-nav button,html[data-theme=dark] .graph-period button,html[data-theme=dark] .tax-year-nav button,html[data-theme=dark] .note-actions button{background:#4B2E24!important;color:#F7F1EA!important;border-color:#9a7e6c!important}html[data-theme=dark] .button:not(.secondary){background:#8B5E34!important;border-color:#D6C2AE!important;color:#fff!important}
html[data-theme=dark] .session-table td,html[data-theme=dark] .rpt-table td,html[data-theme=dark] .session-table th,html[data-theme=dark] .rpt-table th{color:#eeeae5;border-color:#705444!important}html[data-theme=dark] .monthly-report .rpt-table tbody td{background:#4B2E24!important}html[data-theme=dark] .monthly-report .rpt-table tbody tr:hover td{background:#674637!important}html[data-theme=dark] .monthly-report .rpt-table tfoot td{background:#8B5E34!important;color:#fff!important}html[data-theme=dark] .paid,html[data-theme=dark] .is-paid,html[data-theme=dark] .chart-insight{color:#F7F1EA!important;background:#684832!important}
html[data-theme=dark] .chart-insight{border:1px solid #D6C2AE}html[data-theme=dark] .ads-bar-track{background:#705444!important}html[data-theme=dark] .error{color:#ffb4a8!important}html[data-theme=dark] .tax-note{color:#e0ddd8!important}html[data-theme=dark] body.consultorio-navigating:before{background:#1F1410!important;color:#F7F1EA!important}
@media(max-width:950px){.theme-toggle{margin:0;width:auto;min-height:36px}.theme-toggle+.dev{margin:0}}
html[data-theme=dark] .patient-table td,html[data-theme=dark] .patient-table th{color:#eeeae5!important;border-color:#705444!important}html[data-theme=dark] .sort,html[data-theme=dark] .filters button{background:#4B2E24!important;color:#F7F1EA!important;border-color:#9a7e6c!important}html[data-theme=dark] .filters button[aria-pressed=true]{background:#8B5E34!important;color:#fff!important}html[data-theme=dark] .graph-target svg text,html[data-theme=dark] .chart-panel svg text{fill:#ddd9d4!important}html[data-theme=dark] .graph-target svg line,html[data-theme=dark] .chart-panel svg line{stroke:#9a7e6c!important}html[data-theme=dark] .chart-legend,html[data-theme=dark] .graph-options label{color:#e0ddd8!important}html[data-theme=dark] .package-item.is-paid{background:#684832!important;color:#F7F1EA!important}


/* Variações de laranja e grafite. */
html[data-theme=light]{--brand:#8B5E34;--ink:#1F1410;--muted:#66615b;--line:#e8e0d7;--surface:#fff;--canvas:#F7F1EA}
html[data-theme=light] body{background:#F7F1EA;color:#1F1410}.sidebar{background:#F7F1EA;border-color:#eadfd1}.brand,h1,.month-block h2,.graph-section>summary{color:#1F1410}.mark{background:#8B5E34!important;color:#1F1410!important}.app-nav a{color:#4B2E24}.app-nav a:hover{background:#f0e6dc;color:#1F1410}.app-nav a[aria-current=page]{background:#f0e6dc;color:#1F1410;box-shadow:inset 3px 0 #D6C2AE}.button:not(.secondary){background:#D6C2AE!important;border-color:#8B5E34!important;color:#1F1410!important}.button:not(.secondary):hover{background:#D6C2AE!important}.theme-toggle{background:#F7F1EA;color:#4B2E24;border-color:#ebdac2}.theme-toggle:hover{background:#f0e6dc}.stat.active{border-color:#D6C2AE!important}.month-block>summary{background:linear-gradient(110deg,#f0e6dc,#ffffff)}.month-values strong{color:#8B5E34}.monthly-report .rpt-table td:last-child{color:#8B5E34}.monthly-report .rpt-table tbody td{background:#faf6f1}.monthly-report .rpt-table tbody tr:hover td{background:#f0e6dc}.monthly-report .rpt-table tfoot td{background:#f0e6dc;color:#4B2E24}.monthly-report .rpt-table tfoot td:last-child{background:#D6C2AE;color:#1F1410}.chart-insight{background:#f0e6dc;color:#1F1410}
html[data-theme=dark] body{background:#1F1410!important;color:#F7F1EA!important}html[data-theme=dark] .sidebar{background:#1F1410!important;border-color:#4B2E24!important}html[data-theme=dark] .app-nav a[aria-current=page]{background:#4B2E24!important;color:#fff!important;box-shadow:inset 3px 0 #D6C2AE}html[data-theme=dark] .button:not(.secondary){background:#D6C2AE!important;border-color:#8B5E34!important;color:#1F1410!important}html[data-theme=dark] .button:not(.secondary):hover{background:#D6C2AE!important}html[data-theme=dark] .theme-toggle{background:#4B2E24!important;border-color:#676767!important;color:#fff!important}html[data-theme=dark] .month-block>summary{background:#4B2E24!important}html[data-theme=dark] .monthly-report .rpt-table tfoot td{background:#674637!important;color:#fff!important}html[data-theme=dark] .tax-side.tax-better{background:#684832!important;border-color:#D6C2AE!important}html[data-theme=dark] .tax-better-label{background:#D6C2AE!important;color:#1F1410!important}html[data-theme=dark] input[type=checkbox]{accent-color:#D6C2AE}html[data-theme=dark] .chart-insight{background:#4B2E24!important;border-color:#D6C2AE!important;color:#fff!important}html[data-theme=dark] .paid{color:#ffe0ad!important;background:transparent!important}html[data-theme=dark] .package-item.is-paid{background:#684832!important;color:#fff!important}
.ads-month-chart .ads-bar-line:nth-of-type(1) .ads-bar{background:#8B5E34!important}.ads-month-chart .ads-bar-line:nth-of-type(2) .ads-bar{background:#D6C2AE!important}.ads-month-chart .ads-bar-line:nth-of-type(3) .ads-bar{background:#D6C2AE!important}


/* Paleta azul-petróleo, verde e azul-claro. */
html[data-theme=light]{--brand:#8B5E34;--ink:#1F1410;--canvas:#F7F1EA;--surface:#fff;--line:#e5d8ca}
html[data-theme=light] body{background:#F7F1EA!important;color:#1F1410!important}html[data-theme=light] .sidebar{background:#fff!important;border-color:#e5d8ca!important}html[data-theme=light] .brand,html[data-theme=light] h1,html[data-theme=light] h2,html[data-theme=light] h3{color:#1F1410!important}html[data-theme=light] .mark{background:#8B5E34!important;color:white!important}html[data-theme=light] .app-nav a{color:#8B5E34!important}html[data-theme=light] .app-nav a[aria-current=page]{background:#D6C2AE!important;color:#1F1410!important;box-shadow:inset 3px 0 #D6C2AE}.button:not(.secondary){background:#8B5E34!important;border-color:#8B5E34!important;color:#fff!important}.button:not(.secondary):hover{background:#1F1410!important}html[data-theme=light] .month-block>summary{background:linear-gradient(110deg,#f0e6dc,#fff)!important}html[data-theme=light] .month-values strong{color:#8B5E34!important}html[data-theme=light] .monthly-report .rpt-table tbody td{background:#faf6f1!important;color:#1F1410!important}html[data-theme=light] .monthly-report .rpt-table tbody tr:hover td{background:#f0e6dc!important}html[data-theme=light] .monthly-report .rpt-table tfoot td{background:#D6C2AE!important;color:#1F1410!important}html[data-theme=light] .theme-toggle{color:#1F1410!important;background:#F7F1EA!important;border-color:#D6C2AE!important}
html[data-theme=dark]{--brand:#8B5E34;--ink:#F7F1EA;--canvas:#1F1410;--surface:#37251e;--line:#705444}html[data-theme=dark] body{background:#1F1410!important;color:#F7F1EA!important}html[data-theme=dark] .sidebar{background:#1F1410!important;border-color:#705444!important}html[data-theme=dark] .app-nav a[aria-current=page]{background:#8B5E34!important;color:#fff!important;box-shadow:inset 3px 0 #D6C2AE}html[data-theme=dark] .button:not(.secondary){background:#8B5E34!important;color:#fff!important;border-color:#8B5E34!important}html[data-theme=dark] .button:not(.secondary):hover{background:#6f472c!important}html[data-theme=dark] .theme-toggle{background:#4B2E24!important;color:#F7F1EA!important}html[data-theme=dark] .month-block>summary{background:#4B2E24!important}html[data-theme=dark] .monthly-report .rpt-table tfoot td{background:#8B5E34!important;color:#fff!important}html[data-theme=dark] .tax-side.tax-better{background:#684832!important;border-color:#D6C2AE!important}html[data-theme=dark] .tax-better-label{background:#D6C2AE!important;color:#1F1410!important}html[data-theme=dark] input[type=checkbox]{accent-color:#D6C2AE}
.ads-month-chart .ads-bar-line:nth-of-type(1) .ads-bar{background:#8B5E34!important}.ads-month-chart .ads-bar-line:nth-of-type(2) .ads-bar{background:#D6C2AE!important}.ads-month-chart .ads-bar-line:nth-of-type(3) .ads-bar{background:#D6C2AE!important}


/* Paleta terrosa: café, marrom, caramelo e creme. */
html[data-theme=light]{--brand:#8B5E34;--ink:#1F1410;--canvas:#F7F1EA;--surface:#fff;--line:#e7d9cd}html[data-theme=light] body{background:#F7F1EA!important;color:#1F1410!important}html[data-theme=light] .sidebar{background:#fffaf5!important;border-color:#e7d9cd!important}html[data-theme=light] .brand,html[data-theme=light] h1,html[data-theme=light] h2,html[data-theme=light] h3{color:#1F1410!important}html[data-theme=light] .app-nav a{color:#4B2E24!important}html[data-theme=light] .app-nav a[aria-current=page]{background:#D6C2AE!important;color:#1F1410!important;box-shadow:inset 3px 0 #8B5E34}html[data-theme=light] .button:not(.secondary){background:#4B2E24!important;color:#fff!important;border-color:#4B2E24!important}html[data-theme=light] .button:not(.secondary):hover{background:#8B5E34!important}html[data-theme=light] .mark{background:#8B5E34!important;color:#fff!important}html[data-theme=light] .month-block>summary{background:linear-gradient(110deg,#efe3d7,#fff)!important}html[data-theme=light] .monthly-report .rpt-table tbody td{background:#faf6f1!important;color:#1F1410!important}html[data-theme=light] .monthly-report .rpt-table tfoot td{background:#D6C2AE!important;color:#1F1410!important}
html[data-theme=dark]{--brand:#8B5E34;--ink:#F7F1EA;--canvas:#1F1410;--surface:#37251e;--line:#705444}html[data-theme=dark] body,html[data-theme=dark] .sidebar{background:#1F1410!important;color:#F7F1EA!important}html[data-theme=dark] .app-nav a[aria-current=page]{background:#4B2E24!important;color:#F7F1EA!important;box-shadow:inset 3px 0 #D6C2AE}html[data-theme=dark] .button:not(.secondary){background:#8B5E34!important;color:#fff!important;border-color:#8B5E34!important}html[data-theme=dark] .button:not(.secondary):hover{background:#a17046!important}html[data-theme=dark] .theme-toggle,html[data-theme=dark] .month-block>summary{background:#4B2E24!important;color:#F7F1EA!important}html[data-theme=dark] .monthly-report .rpt-table tfoot td{background:#674637!important;color:#F7F1EA!important}html[data-theme=dark] .tax-side.tax-better{background:#684832!important;border-color:#D6C2AE!important}html[data-theme=dark] .tax-better-label{background:#D6C2AE!important;color:#1F1410!important}
.ads-month-chart .ads-bar-line:nth-of-type(1) .ads-bar{background:#4B2E24!important}.ads-month-chart .ads-bar-line:nth-of-type(2) .ads-bar{background:#8B5E34!important}.ads-month-chart .ads-bar-line:nth-of-type(3) .ads-bar{background:#D6C2AE!important}html[data-theme=dark] .ads-month-chart .ads-bar-line:nth-of-type(1) .ads-bar{background:#F7F1EA!important}


/* Modo escuro terroso com superfícies mais leves e leitura consistente. */
html[data-theme=dark]{--canvas:#30231e;--surface:#49362d;--ink:#fff8ef;--muted:#e2d3c5;--line:#816758}
html[data-theme=dark] body{background:#30231e!important;color:#fff8ef!important}html[data-theme=dark] .sidebar{background:#382922!important;border-color:#816758!important}html[data-theme=dark] .gate,html[data-theme=dark] .panel,html[data-theme=dark] .stat,html[data-theme=dark] .month-block,html[data-theme=dark] .graph-section,html[data-theme=dark] .tax-card,html[data-theme=dark] .tax-month,html[data-theme=dark] .settings,html[data-theme=dark] .ads-month,html[data-theme=dark] dialog{background:#49362d!important;border-color:#816758!important;color:#fff8ef!important}
html[data-theme=dark] .month-block>summary,html[data-theme=dark] .month-values span,html[data-theme=dark] .rpt-filters,html[data-theme=dark] .tax-toolbar,html[data-theme=dark] .tax-side,html[data-theme=dark] .ads-metric,html[data-theme=dark] .ads-month-chart{background:#574138!important;border-color:#947766!important;color:#fff8ef!important}
html[data-theme=dark] .monthly-report .rpt-table tbody td,html[data-theme=dark] .monthly-report .rpt-table tbody td:nth-child(2),html[data-theme=dark] .monthly-report .rpt-table tbody td:last-child{background:#60483c!important;color:#fff8ef!important}
html[data-theme=dark] .monthly-report .rpt-table tbody tr:hover td,html[data-theme=dark] .monthly-report .rpt-table tbody tr:hover td:nth-child(2),html[data-theme=dark] .monthly-report .rpt-table tbody tr:hover td:last-child{background:#735849!important;color:#fff8ef!important}
html[data-theme=dark] .monthly-report .rpt-table thead th,html[data-theme=dark] .monthly-report .rpt-table tfoot td,html[data-theme=dark] .monthly-report .rpt-table tfoot td:nth-child(2),html[data-theme=dark] .monthly-report .rpt-table tfoot td:last-child{color:#fff8ef!important}html[data-theme=dark] .monthly-report .rpt-table tfoot td{background:#7b583e!important}html[data-theme=dark] .annual-nav,html[data-theme=dark] .annual-nav strong{color:#eadbcd!important}
html[data-theme=dark] .patient-table td,html[data-theme=dark] .session-table td,html[data-theme=dark] .rpt-table td,html[data-theme=dark] .patient-table th,html[data-theme=dark] .session-table th,html[data-theme=dark] .rpt-table th{color:#fff8ef!important}html[data-theme=dark] .ads-result small,html[data-theme=dark] .ads-metric small,html[data-theme=dark] .tax-common,html[data-theme=dark] .status,html[data-theme=dark] .status-line{color:#eadbcd!important}
html[data-theme=dark] input:not([type=checkbox]),html[data-theme=dark] select,html[data-theme=dark] textarea{background:#382922!important;border-color:#947766!important;color:#fff8ef!important}html[data-theme=dark] body.consultorio-navigating:before{background:#30231e!important;color:#fff8ef!important}


/* Ajustes de toque e áreas seguras no celular. */
@media(max-width:700px){input:not([type=checkbox]),select,textarea{font-size:16px!important}.content{padding-bottom:max(24px,env(safe-area-inset-bottom))}.header-actions .button,.dialog-actions .button,.graph-period button,.annual-nav button,.pencil{min-height:44px;min-width:44px}.app-nav a{min-height:44px;display:flex;align-items:center}.sidebar{padding-top:max(16px,env(safe-area-inset-top))}.topbar{flex-wrap:wrap}.email{min-width:0;max-width:100%;overflow-wrap:anywhere}.dialog-actions{flex-wrap:wrap}.dialog-actions .button{flex:1;min-width:110px}dialog{max-height:calc(100dvh - 24px);overscroll-behavior:contain}.session-scroll,.patient-scroll,.rpt-scroll{overscroll-behavior-x:contain}.graph-period{max-width:100%}.graph-period span{min-width:0;text-align:center}.theme-toggle{min-height:44px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}


/* 3.3.7 — Revisão de contraste e celular (02/11/2026). Mínimo WCAG AA: 4,5:1 texto, 3:1 texto grande. */
:root{--texto-secundario:#6B5446}
html[data-theme=dark]{--texto-secundario:#E0D3C5}
/* Texto só para leitor de tela não pode alargar a página (causava rolagem lateral em Impostos no celular). */
.sr-only{position:absolute!important;top:0;left:0;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.method-list a{overflow-wrap:anywhere}
/* Marca "MC": texto claro sobre caramelo (5,6:1) nos dois temas. */
.mark,html[data-theme=light] .mark,html[data-theme=dark] .mark{color:#fff!important}
/* Textos secundários herdados das paletas antigas. */
html[data-theme=light] :is(.dev,.email,#gateText,.since,#shown,.empty,.muted,.tax-note,.fiscal-subtitle,.stat p,.month-values small,.ads-metric small,.ads-expense-label,.ads-bar-label span,.graph-options label,.tax-toolbar label,.package-item small,#settingsStatus,.session-table th,.rpt-table th,.patient-table th){color:var(--texto-secundario)!important}
html[data-theme=dark] :is(.dev,.email,#gateText,.since,#shown,.empty,.muted,.tax-note,.fiscal-subtitle,.package-item small,#settingsStatus,.method-list,.method-list p,.method-list strong,.settings>summary,.income-panel>summary,.income-edit,.annual-nav,.filters button:not([aria-pressed=true])){color:var(--texto-secundario)!important}
html[data-theme=dark] .method-list a{color:#F2C79B!important;text-decoration:underline}
/* Alvos de toque: cabeçalhos recolhíveis com pelo menos 44 px de altura, sem mudar o marcador nem o alinhamento. */
details>summary{min-height:44px;box-sizing:border-box}
details:not(.month-block):not(.graph-section):not(.tax-month)>summary:not([class]){padding-block:12px}
html[data-theme=light] #updated{color:var(--texto-secundario)!important}
html[data-theme=dark] #updated{color:var(--texto-secundario)!important}
html[data-theme=dark] #taxIntro:not(:empty){background:#4B2E24!important;border-color:#826858!important}html[data-theme=dark] #taxIntro strong{color:#F7F1EA!important}
/* Fundo uniforme também fora do corpo (tela de entrada no celular mostrava faixas de outra cor). */
html[data-theme=light]{background:#F7F1EA}html[data-theme=dark]{background:#30231E}body{min-height:100dvh}
html[data-theme=light] input[type=checkbox]{accent-color:#8B5E34}
/* "Novembro de 2026": só a primeira letra maiúscula. */
.tax-card h2{text-transform:none!important}.tax-card h2::first-letter{text-transform:uppercase}
/* Celular: as cinco abas cabem na largura, sem aba cortada; gráficos legíveis com rolagem lateral própria. */
@media(max-width:520px){
 .app-nav{display:grid!important;grid-template-columns:repeat(5,1fr);gap:2px!important;overflow:visible!important;width:100%}
 .app-nav a{white-space:normal!important;text-align:center;padding:9px 2px!important;font-size:11.5px!important;line-height:1.2;min-height:44px;display:flex!important;align-items:center;justify-content:center;box-sizing:border-box}
 .graph-target,.chart-panel .graph-target{overflow-x:auto;-webkit-overflow-scrolling:touch}
 .graph-target svg{min-width:620px}
}
.gate .button{margin:6px 8px 0 0}
