.variables-summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--line);font-size:12px}.variables-summary strong{font-size:24px;font-weight:600}.layout-link{display:block;color:var(--brand);padding:12px 0;font-size:13px;text-decoration:none;border-bottom:1px solid var(--line)}
body.force-mobile #application{max-width:390px}body.force-mobile nav{width:min(100%,390px)}body.force-mobile .app-header{padding:24px 16px 10px}body.force-mobile main{padding-left:16px;padding-right:16px}body.force-mobile .panel{padding:17px;border-radius:18px}body.force-mobile .balance{font-size:33px}body.force-mobile #stage-note{margin-left:16px;margin-right:16px}
body.desktop-shell #application{max-width:1600px;display:flex;flex-direction:column;margin:auto}
body.desktop-shell .app-header{padding:18px 24px 12px;order:0}body.desktop-shell .app-header h1{font-size:25px}body.desktop-shell .app-header .brand{font-size:10px;margin-bottom:5px}
body.desktop-shell nav{position:sticky;top:0;left:auto;transform:none;order:1;width:100%;max-width:none;border-radius:0;background:var(--surface);display:flex;gap:12px;padding:4px 24px;box-shadow:none;border-top:0;border-bottom:1px solid var(--line)}body.desktop-shell nav button{flex-direction:row;gap:8px;font-size:12px;min-height:42px;padding:6px 12px}body.desktop-shell nav .new-action{margin-top:0;margin-left:auto}body.desktop-shell nav .new-action span{width:27px;height:27px;border-radius:8px}body.desktop-shell nav .new-action svg{width:18px;height:18px}body.desktop-shell nav .icon{width:19px;height:19px}body.desktop-shell nav button[aria-current]{background:var(--soft)}
body.desktop-shell #stage-note{order:2;margin:12px 24px 8px;font-size:11px}body.desktop-shell #status{order:3;margin:0 24px 10px}body.desktop-shell #main{order:4;width:100%;max-width:900px;margin:auto;padding:8px 24px 32px}body.desktop-shell #main.desktop-planning{max-width:none;display:grid;gap:12px;padding:8px 24px 28px}
.desktop-title{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.desktop-title h2{display:none}.desktop-title p{margin:0}.desktop-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.desktop-actions button{font-size:12px;min-height:38px;padding:7px 12px}.desktop-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.desktop-stat{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:grid;gap:2px;min-width:0}.desktop-stat.emphasis{background:var(--soft)}.desktop-stat>span,.desktop-stat small{font-size:11px;color:var(--muted)}.desktop-stat>strong{font-size:22px;font-weight:600;letter-spacing:-.7px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.desktop-month-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.desktop-month-bar h2{font-size:21px;text-transform:capitalize;font-weight:600}.desktop-month-bar>.muted{font-size:11px}
.desktop-overdue{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;font-size:12px;color:var(--danger)}.desktop-overdue button{min-height:32px;flex-shrink:0;font-size:12px}
.desktop-board-scroll{overflow-x:auto;padding-bottom:8px;min-width:0}.desktop-board-scroll:focus-visible{outline:2px solid var(--brand);outline-offset:3px}.desktop-board{display:grid;grid-template-columns:repeat(var(--week-count),minmax(152px,1fr));min-width:calc(var(--week-count)*152px + (var(--week-count) - 1)*10px);gap:10px;align-items:stretch}.desktop-week{display:flex;flex-direction:column;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:13px;overflow:clip}.desktop-week-head{padding:8px 10px;height:54px;flex:none;display:grid;align-content:center;gap:5px;border-bottom:1px solid var(--line)}.desktop-week-head h3{font-size:12px;font-weight:600;white-space:nowrap}.desktop-week.current-week .desktop-week-head{background:var(--soft)}.desktop-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.desktop-days span{font-size:11px;line-height:16px;text-align:center;padding:1px 0;border-radius:4px;font-variant-numeric:tabular-nums}.desktop-days .outside{color:var(--muted);background:var(--bg);opacity:.6}.desktop-days .current-day{background:var(--brand);color:var(--brand-text)}
.desktop-budget{padding:8px 10px;display:grid;grid-template-rows:24px 22px 20px 4px 22px 30px;gap:4px;align-content:start;height:159px;flex:none;border-bottom:1px solid var(--line)}.desktop-budget-title{display:flex;align-items:center;justify-content:space-between;gap:4px;color:var(--muted);font-size:11px}.desktop-budget-title .text-button{font-size:11px;padding:0;min-height:24px}.desktop-pair{display:flex;justify-content:space-between;align-items:center;gap:4px;font-size:11px}.desktop-pair strong{font-size:12px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}.desktop-track{height:4px;overflow:hidden;background:var(--line);border-radius:4px}.desktop-track>div{height:100%;background:var(--brand);border-radius:inherit}.desktop-variables-button{width:100%;font-size:11px;min-height:30px;padding:4px 6px;background:var(--soft);border-color:transparent;color:var(--brand)}
.desktop-week-entries{padding:8px 10px;flex:1;min-width:0}.desktop-group+.desktop-group{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}.desktop-group-title{display:flex;justify-content:space-between;align-items:baseline;gap:4px;flex-wrap:wrap;margin-bottom:3px}.desktop-group-title h3{font-size:11px;font-weight:600;color:var(--muted)}.desktop-group-title strong{font-size:11px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}.desktop-group.income .desktop-group-title{color:var(--brand)}.desktop-group.income .desktop-group-title h3{color:inherit}.desktop-empty{font-size:11px;color:var(--muted);margin:5px 0 7px}.desktop-entry{display:block;width:100%;min-height:0;padding:6px 0;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;font-weight:400}.desktop-entry:last-child{border-bottom:0}.desktop-entry:hover{background:var(--bg)}.desktop-entry>strong{display:block;font-size:12px;font-weight:500;line-height:1.35;overflow-wrap:anywhere}.desktop-entry-meta{display:flex;justify-content:space-between;gap:4px;flex-wrap:wrap;font-size:11px;line-height:1.3;margin:2px 0;color:var(--muted)}.desktop-entry-amount{display:block;font-size:12px;line-height:1.3;font-weight:500;font-variant-numeric:tabular-nums}.desktop-group.income .desktop-entry-amount{color:var(--brand)}.desktop-entry.outside{opacity:.55}.desktop-group.investments h3{font-size:11px;font-weight:500;color:var(--muted)}
.desktop-week-foot{padding:8px 10px;height:98px;flex:none;display:grid;grid-template-rows:16px 23px 32px;gap:4px;align-content:start;border-top:1px solid var(--line);background:var(--bg)}.desktop-week-foot>small{font-size:11px;color:var(--muted);white-space:nowrap}.desktop-week-foot>strong{font-size:16px;line-height:1.35;font-weight:600;font-variant-numeric:tabular-nums}.desktop-month-cut{display:flex;justify-content:space-between;gap:4px;flex-wrap:wrap;align-content:start;align-items:baseline;padding-top:4px;border-top:1px solid var(--line);font-size:11px;line-height:1.3}.desktop-month-cut strong{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}.desktop-footnote{font-size:11px;color:var(--muted);margin:0}
@media(max-width:1100px){body.desktop-shell .app-header{padding-left:16px;padding-right:16px}body.desktop-shell #main.desktop-planning{padding-left:16px;padding-right:16px}.desktop-stat>strong{font-size:20px}.desktop-title .muted{font-size:11px}}

/* Desktop: uma faixa de navegação e semanas com rolagem independente. */
body.desktop-shell .app-header{position:sticky;top:0;z-index:20;min-height:58px;padding:6px 20px;background:var(--surface);border-bottom:1px solid var(--line);gap:18px}
body.desktop-shell .app-header h1{display:none}
body.desktop-shell .app-header .brand{font-size:16px;font-weight:600;letter-spacing:-.3px;white-space:nowrap;margin:0;text-transform:none;color:var(--text)}
body.desktop-shell nav{position:static;order:0;flex:1;width:auto;padding:0;border:0;gap:4px;background:transparent}
body.desktop-shell nav button{min-height:36px;padding:5px 10px}
body.desktop-shell .header-actions{order:1;flex-direction:row;align-items:center;gap:8px}
body.desktop-shell .header-actions .app-version{font-size:9px;max-width:85px}
body.desktop-shell #refresh{width:34px;height:34px;min-height:34px;padding:7px}
body.desktop-shell #stage-note{display:none}
body.desktop-shell #status:empty{display:none}
body.desktop-shell #status:not(:empty){margin:6px 20px 0;padding:6px 10px}
body.desktop-shell #main.desktop-planning{padding-top:12px;gap:10px}
.desktop-stat{padding:8px 12px}.desktop-stat>strong{font-size:21px}
.desktop-month-bar h2{font-size:19px}.desktop-month-bar button{min-height:32px;padding:5px 10px}
.desktop-board{height:max(380px,calc(100dvh - 320px))}
.desktop-week-entries{overflow-y:auto;min-height:0;scrollbar-width:thin;overscroll-behavior:contain}
.desktop-week-foot{height:74px;grid-template-rows:14px 21px 19px;gap:2px;padding:6px 10px}
.desktop-month-cut{padding-top:2px}
@media(max-width:1100px){body.desktop-shell .app-header{gap:10px;padding:6px 16px}body.desktop-shell nav button{padding:5px 7px;gap:5px}body.desktop-shell .header-actions .app-version{display:none}}

.desktop-entry-amount{text-align:right}

.desktop-board{grid-template-rows:minmax(0,1fr)}.desktop-week{min-height:0}

.desktop-nav-option{display:none}
body.desktop-shell{--muted:light-dark(#4f6157,#bdcec3);--line:light-dark(#d0dad2,#4c6053)}
body.desktop-shell .desktop-nav-option{display:flex}
body.desktop-shell .app-header{gap:12px;padding:5px 16px}
body.desktop-shell nav{gap:2px;flex-wrap:wrap}
body.desktop-shell nav button{font-size:13px;padding:5px 8px;gap:5px;white-space:nowrap}
body.desktop-shell nav .new-action{margin-left:0}
body.desktop-shell nav button[aria-disabled=true]{color:var(--muted);font-weight:400;border-bottom:1px dashed var(--line);border-radius:0}
body.desktop-shell nav .icon{width:16px;height:16px}
body.desktop-shell .header-actions .app-version{display:none}
body.desktop-shell #main.desktop-planning{padding-top:5px;gap:8px}
body.desktop-shell #status:not(:empty){position:fixed;right:18px;bottom:18px;z-index:50;max-width:min(480px,calc(100vw - 36px));margin:0;padding:10px 14px;border:1px solid var(--line);box-shadow:0 3px 14px #0002}
.desktop-stat>span,.desktop-stat small{font-size:12px}.desktop-stat>strong{font-size:23px}
.desktop-week-head h3,.desktop-entry>strong,.desktop-entry-amount{font-size:13px}
.desktop-days span,.desktop-budget-title,.desktop-budget-title .text-button,.desktop-pair,.desktop-group-title h3,.desktop-group-title strong,.desktop-empty,.desktop-entry-meta,.desktop-week-foot>small,.desktop-month-cut{font-size:12px}
.desktop-pair strong,.desktop-variables-button{font-size:12px}
.desktop-entry.outside{opacity:1;color:var(--muted)}
.desktop-entry.outside .desktop-entry-amount{color:var(--muted)}
@media(max-width:1200px){body.desktop-shell .app-header{align-items:center;flex-wrap:wrap;gap:4px 12px}body.desktop-shell .app-header>div:first-child{flex:1}body.desktop-shell .header-actions{order:0}body.desktop-shell nav{order:1;flex-basis:100%;justify-content:space-between}}

/* Resumo e ações compartilham a mesma faixa; menu contém navegação. */
body.desktop-shell nav #new-entry{display:none}
.desktop-overview{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(355px,1fr);gap:14px;align-items:stretch}
.desktop-balances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.desktop-balances .desktop-stat{border:0;border-radius:0;padding:10px 12px;gap:3px}
.desktop-balances .desktop-stat+.desktop-stat{border-left:1px solid var(--line)}
.desktop-balances .desktop-stat.emphasis{background:transparent}
.desktop-balances .desktop-stat>strong{font-size:22px}
.desktop-minimum{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;margin:0;padding:5px 12px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;background:var(--bg)}
.desktop-minimum strong{font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.desktop-overview .desktop-month-bar{flex-direction:column;justify-content:center;align-items:stretch;gap:10px}
.desktop-overview .desktop-month-bar>.desktop-actions{justify-content:flex-end;flex-wrap:nowrap}
.desktop-overview .desktop-month-bar h2{font-size:19px;white-space:nowrap}
.desktop-overview .desktop-actions button{white-space:nowrap}
.desktop-page-actions{display:flex;justify-content:flex-end;margin-bottom:12px}
.desktop-board{height:max(380px,calc(100dvh - 260px))}
@media(max-width:1100px){.desktop-overview{grid-template-columns:minmax(0,1.25fr) minmax(350px,1fr);gap:10px}.desktop-balances .desktop-stat{padding:8px}.desktop-balances .desktop-stat>strong{font-size:20px}.desktop-overview .desktop-month-bar h2{font-size:17px}}

/* Hierarquia de leitura: conta, projeções, orçamento e movimentos. */
body.desktop-shell{--bg:light-dark(#edf1f5,#121b24);--surface:light-dark(#ffffff,#1c2833);--fg:light-dark(#1c2d3e,#edf2f7);--muted:light-dark(#526273,#b5c2ce);--line:light-dark(#d4dce5,#405164);--soft:light-dark(#eaf1f8,#273c50);--brand:light-dark(#245b90,#a6cef4);--brand-text:light-dark(#ffffff,#102a42);--income:light-dark(#176247,#a2dfc4);--expense:light-dark(#865016,#f2c18a)}
.desktop-balances .desktop-stat:first-child{background:light-dark(#20394f,#28445e);color:#fff}
.desktop-balances .desktop-stat:first-child>span,.desktop-balances .desktop-stat:first-child small{color:#dce7f0}
.desktop-balances .desktop-stat:nth-child(2){background:light-dark(#eaf2fb,#233b52)}
.desktop-balances .desktop-stat>span{font-size:13px;font-weight:500;line-height:1.35}
.desktop-balances .desktop-stat>strong{font-size:25px;letter-spacing:-.5px;line-height:1.5}
.desktop-balances .desktop-stat small{font-size:12px;line-height:1.4}
.desktop-minimum{font-size:12px;padding:5px 12px}
body.desktop-shell nav button{font-size:14px}
.desktop-week{border-color:var(--line);box-shadow:0 1px 3px #162e4510}
.desktop-week-head{height:58px;background:light-dark(#e8edf3,#263747);padding:8px 10px}
.desktop-week-head h3{font-size:14px;font-weight:650;color:var(--fg)}
.desktop-week.current-week{border-color:var(--brand)}
.desktop-week.current-week .desktop-week-head{background:var(--brand);color:var(--brand-text)}
.desktop-week.current-week .desktop-week-head h3{color:inherit}
.desktop-week.current-week .desktop-days .outside{background:transparent;color:inherit;opacity:.8}
.desktop-week.current-week .desktop-days .current-day{background:var(--surface);color:var(--brand);font-weight:700}
.desktop-days span{font-size:12px;font-weight:500}
.desktop-budget{background:light-dark(#f8fafc,#1a2631)}
.desktop-budget-title{font-size:13px;color:var(--fg);font-weight:600}
.desktop-budget-title .text-button{font-size:12px}
.desktop-pair{font-size:13px;color:var(--muted)}
.desktop-pair strong{font-size:13px;color:var(--fg)}
.desktop-available{color:var(--fg)}.desktop-available strong{font-size:15px;font-weight:700}
.desktop-track{background:light-dark(#dbe3ec,#455768)}
.desktop-variables-button{background:var(--surface);border:1px solid var(--line);font-size:12px;font-weight:600}
.desktop-group-title{padding:4px 0;margin-bottom:2px}
.desktop-group-title h3,.desktop-group-title strong{font-size:13px;font-weight:650}
.desktop-group.income .desktop-group-title,.desktop-group.income .desktop-entry-amount{color:var(--income)}
.desktop-group.expense .desktop-group-title,.desktop-group.expense .desktop-group-title h3{color:var(--expense)}
.desktop-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:7px;row-gap:4px;padding:9px 0;align-items:baseline}
.desktop-entry>strong{grid-column:1;grid-row:1;font-size:14px;line-height:1.35;font-weight:550;min-width:0}
.desktop-entry-amount{grid-column:2;grid-row:1;font-size:14px;font-weight:650;white-space:nowrap;line-height:1.35;color:var(--fg)}
.desktop-entry-meta{grid-column:1/-1;grid-row:2;margin:0;font-size:12px;line-height:1.4}
.desktop-entry.overdue-entry .desktop-entry-meta{color:var(--danger)}
.desktop-entry:hover{background:var(--soft)}
.desktop-empty{font-size:12px;color:var(--muted)}
.desktop-week-foot{background:light-dark(#e8edf3,#263747);border-top:1px solid var(--line)}
.desktop-week-foot>small{font-size:12px;color:var(--fg);font-weight:500}
.desktop-week-foot>strong{font-size:19px;font-weight:700}
.desktop-overdue{background:light-dark(#fff5e8,#392c20);border-color:light-dark(#e4be8b,#8d6a3e);color:light-dark(#7b4614,#ffce95);font-size:13px}
.desktop-footnote{font-size:12px}
@media(max-width:1100px){.desktop-balances .desktop-stat>strong{font-size:23px}.desktop-entry>strong,.desktop-entry-amount{font-size:13px}}

.desktop-pair strong.risk,.desktop-stat>strong.risk,.desktop-week-foot>strong.risk{color:var(--danger)}

/* Seções sanfona: identificação e total permanecem visíveis. */
.desktop-group+.desktop-group{margin-top:7px;padding-top:0;border-top:0}
.desktop-group-title{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:baseline;gap:5px;padding:7px 6px;margin:0;border-radius:5px;background:light-dark(#edf1f5,#293a49);cursor:pointer;list-style:none;user-select:none}
.desktop-group-title::-webkit-details-marker{display:none}
.desktop-group-title::before{content:'›';font-size:16px;font-weight:600;line-height:1;transform-origin:center;transition:transform .12s}
.desktop-group[open]>.desktop-group-title::before{transform:rotate(90deg)}
.desktop-group-title h3{min-width:0;font-size:12px;line-height:1.4}
.desktop-group-title strong{font-size:12px;white-space:nowrap}
.desktop-group.income>.desktop-group-title{background:light-dark(#eaf3ee,#233c33)}
.desktop-group.expense>.desktop-group-title{background:light-dark(#f7efe5,#3c3023)}
.desktop-group.investments>.desktop-group-title{color:var(--brand);background:var(--soft)}
.desktop-group.investments .desktop-group-title h3{font-size:12px;font-weight:650;color:inherit}
.desktop-group-title:hover{filter:brightness(.97)}
.desktop-group-title:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.desktop-group-content{padding:2px 2px 3px}
@media(prefers-reduced-motion:reduce){.desktop-group-title::before{transition:none}}

/* Variações de aparência: estrutura e significado financeiro permanecem iguais. */
#theme-toggle{display:none}
body.desktop-shell #theme-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:5px 9px;white-space:nowrap;font-size:12px}
:root[data-desktop-theme=light]{color-scheme:light;background:#f4f3f0}
:root[data-desktop-theme=dark]{color-scheme:dark;background:#17191b}
:root[data-desktop-theme] body.desktop-shell{--bg:light-dark(#f4f3f0,#17191b);--surface:light-dark(#ffffff,#24272b);--fg:light-dark(#242827,#edf0f2);--muted:light-dark(#59615f,#bec5ca);--line:light-dark(#dcded9,#44494e);--soft:light-dark(#fbece5,#3e302a);--brand:light-dark(#b74420,#f0a37d);--brand-text:light-dark(#ffffff,#2c1b12);--income:light-dark(#216347,#9bd4b6);--expense:light-dark(#84501e,#e6bd88)}
:root[data-desktop-theme] .desktop-balances .desktop-stat:first-child{background:light-dark(#2b302e,#30353a);color:#fff}
:root[data-desktop-theme] .desktop-balances .desktop-stat:first-child>span,:root[data-desktop-theme] .desktop-balances .desktop-stat:first-child small{color:#e0e5e2}
:root[data-desktop-theme] .desktop-balances .desktop-stat:nth-child(2){background:light-dark(#fceee6,#38302b)}
:root[data-desktop-theme] .desktop-week-head{background:light-dark(#eaece7,#303439)}
:root[data-desktop-theme] .desktop-week.current-week .desktop-week-head{background:var(--brand)}
:root[data-desktop-theme] .desktop-budget{background:light-dark(#fafaf7,#212428)}
:root[data-desktop-theme] .desktop-track{background:light-dark(#e0e3dc,#4a5055)}
:root[data-desktop-theme] .desktop-week-foot{background:light-dark(#eceee9,#303439)}
:root[data-desktop-theme] .desktop-group-title{background:light-dark(#edf0eb,#32373c)}
:root[data-desktop-theme] .desktop-group.income>.desktop-group-title{background:light-dark(#eaf3ec,#293b31)}
:root[data-desktop-theme] .desktop-group.expense>.desktop-group-title{background:light-dark(#f8efe5,#403426)}
:root[data-desktop-theme] .desktop-group.investments>.desktop-group-title{background:var(--soft)}
:root[data-desktop-theme] .desktop-entry.outside .desktop-entry-amount{color:var(--muted)}
:root[data-desktop-theme] .desktop-overdue{background:light-dark(#fff5e8,#3a3023);border-color:light-dark(#dfbc91,#7a6240);color:light-dark(#7b4614,#f3cd9e)}
:root[data-desktop-theme] .desktop-week{box-shadow:0 1px 3px #0000000b}

/* A cor de destaque identifica o momento atual; ações usam tom neutro. */
:root[data-desktop-theme] .desktop-balances .desktop-stat:first-child{background:var(--brand);color:var(--brand-text)}
:root[data-desktop-theme] .desktop-balances .desktop-stat:first-child>span,:root[data-desktop-theme] .desktop-balances .desktop-stat:first-child small{color:var(--brand-text)}
:root[data-desktop-theme] .desktop-overview .desktop-actions .primary,:root[data-desktop-theme] .desktop-page-actions .primary{background:light-dark(#414946,#d3dad6);color:light-dark(#ffffff,#1d2722);border-color:light-dark(#414946,#d3dad6)}
:root[data-desktop-theme] .desktop-overview .desktop-actions .primary:hover,:root[data-desktop-theme] .desktop-page-actions .primary:hover{background:light-dark(#303a35,#e4e9e6)}

:root[data-desktop-theme] .desktop-week:not(.current-week) .desktop-week-head{background:light-dark(#f5ddc5,#55402f);border-bottom-color:light-dark(#dfb68e,#826243)}
:root[data-desktop-theme] .desktop-week:not(.current-week) .desktop-days .outside{background:transparent;color:var(--fg);opacity:.65}

.recurrence-notice{padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
.income-text{color:var(--income,var(--brand))}
.desktop-balances{grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr)}
.desktop-balances>.desktop-stat{display:flex;flex-direction:column;justify-content:center}
.desktop-forecast{min-width:0;padding:8px 12px;background:light-dark(#fceee6,#38302b);border-left:1px solid var(--line)}
.desktop-forecast>h2{font-size:13px;color:var(--muted);font-weight:600;margin-bottom:4px}
.desktop-balances .desktop-forecast .desktop-stat{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:3px 0;gap:0 8px;border:0;background:transparent}
.desktop-balances .desktop-forecast .desktop-stat>span{font-size:12px;grid-column:1;grid-row:1}
.desktop-balances .desktop-forecast .desktop-stat>strong{font-size:18px;line-height:1.3;grid-column:2;grid-row:1/3;align-self:center;letter-spacing:-.3px}
.desktop-balances .desktop-forecast .desktop-stat small{grid-column:1;grid-row:2;font-size:11px}
.desktop-forecast .desktop-minimum{padding:5px 0 0;margin-top:5px;background:transparent;font-size:11px;align-items:baseline}
.desktop-forecast .desktop-minimum strong{font-size:13px}

body.desktop-shell #main{margin:0 auto}

/* Previsões com largura próxima à do saldo atual. */
.desktop-balances{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}

/* Versão sempre visível, inclusive no cabeçalho compacto. */
body.desktop-shell .header-actions .app-version{display:block;font-size:11px;line-height:1.3;max-width:none;white-space:nowrap}

/* Resumos compactos à esquerda, espaço central reservado à futura fatura. */
.desktop-overview{grid-template-columns:minmax(0,450px) minmax(0,1fr) 340px;gap:12px}
.desktop-overview>.desktop-balances{grid-column:1;grid-row:1;grid-template-columns:minmax(0,180px) minmax(0,270px)}
.desktop-overview>.desktop-month-bar{grid-column:3;grid-row:1}
.desktop-balances>.desktop-stat{padding:10px}
.desktop-balances>.desktop-stat>span{font-size:13px}
.desktop-balances>.desktop-stat>strong{font-size:24px;overflow-wrap:anywhere}
.desktop-forecast{padding:8px 10px}
.desktop-balances .desktop-forecast .desktop-stat>strong{font-size:17px;white-space:nowrap}
.desktop-forecast .desktop-minimum{gap:6px;flex-wrap:wrap}
@media(max-width:1100px){.desktop-overview{grid-template-columns:minmax(0,430px) minmax(0,1fr) 330px;gap:10px}.desktop-overview>.desktop-balances{grid-template-columns:minmax(0,170px) minmax(0,260px)}}

.desktop-view-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.desktop-view-modes{display:flex;padding:3px;background:var(--surface);border:1px solid var(--line);border-radius:9px;gap:3px}
.desktop-view-modes button{min-height:30px;font-size:13px;padding:4px 12px;border:0;border-radius:6px;background:transparent;color:var(--muted)}
.desktop-view-modes button[aria-pressed=true]{background:var(--soft);color:var(--brand);font-weight:650}
.desktop-view-bar .muted{font-size:12px}
.desktop-overview .desktop-month-bar h2.desktop-range-title{font-size:16px}

.desktop-board{height:max(380px,calc(100dvh - 325px))}

/* Colunas livres e resumos compactos. */
body.desktop-shell #main.desktop-planning{padding-top:18px}
.desktop-overview{grid-template-columns:minmax(0,420px) minmax(180px,1fr) 340px;gap:14px;align-items:stretch}
.desktop-overview>.desktop-balances{grid-template-columns:minmax(0,155px) minmax(0,265px)}
.desktop-balances>.desktop-stat{padding:9px 10px}
.desktop-balances>.desktop-stat>strong{font-size:25px;line-height:1.35}
.desktop-forecast{padding:6px 10px}
.desktop-forecast>h2{margin-bottom:0}
.desktop-balances .desktop-forecast .desktop-stat{padding:2px 0}
.desktop-balances .desktop-forecast .desktop-stat small{font-size:10px}
.desktop-card-preview{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:9px 12px;min-width:0;display:grid;align-content:center;gap:2px}
.desktop-card-preview h2{font-size:13px;font-weight:600}.desktop-card-preview>strong{font-size:23px;line-height:1.2}
.desktop-card-preview p{font-size:11px;margin:0;line-height:1.3}.desktop-card-preview small{font-size:10px;color:var(--muted);line-height:1.3}
.desktop-overview>.desktop-month-bar{gap:7px;align-items:flex-end}
.desktop-overview .desktop-view-modes button{min-height:26px;padding:3px 10px;font-size:12px}
.desktop-overview .desktop-actions button{min-height:30px;padding:4px 8px}
.desktop-board{height:auto;grid-template-rows:auto;align-items:start}
.desktop-week{height:auto;overflow:visible}
.desktop-week-entries{overflow:visible;flex:none;min-height:0}
.desktop-week-head{height:auto;min-height:76px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 6px;align-items:center;border-radius:12px 12px 0 0;padding:8px}
.desktop-week-head h3{font-size:12px;line-height:1.35;white-space:normal}
.desktop-week-closing{text-align:right;min-width:0;font-variant-numeric:tabular-nums}
.desktop-week-closing small{font-size:10px;display:block;line-height:1.3}
.desktop-week-closing strong{font-size:14px;display:block;line-height:1.4;white-space:nowrap;font-weight:700}
.desktop-week-closing strong.risk{color:var(--danger)}
.desktop-days{grid-column:1/-1}
.desktop-view-bar{justify-content:flex-end}
@media(max-width:1100px){.desktop-overview{grid-template-columns:minmax(0,400px) minmax(170px,1fr) 310px;gap:10px}.desktop-overview>.desktop-balances{grid-template-columns:minmax(0,145px) minmax(0,255px)}.desktop-card-preview{padding:7px 8px}.desktop-week-closing strong{font-size:13px}.desktop-overview .desktop-month-bar h2.desktop-range-title{font-size:14px}}

.desktop-overview{grid-template-columns:minmax(0,420px) minmax(180px,250px) minmax(310px,1fr)}
.desktop-balances>.desktop-stat>strong{font-size:22px;white-space:nowrap;overflow-wrap:normal}
.desktop-period-line{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap}
.desktop-period-line .desktop-view-modes{flex-shrink:0}
@media(max-width:1100px){.desktop-overview{grid-template-columns:minmax(0,400px) minmax(170px,180px) minmax(310px,1fr)}.desktop-balances>.desktop-stat>strong{font-size:21px}}

.desktop-card-preview{grid-template-columns:minmax(0,1fr) auto;padding:7px 10px;gap:2px 6px}
.desktop-card-preview h2{grid-column:1;grid-row:1;align-self:center}
.desktop-card-preview>strong{grid-column:2;grid-row:1;align-self:center}
.desktop-card-preview p,.desktop-card-preview small{grid-column:1/-1}

button.desktop-card-preview{text-align:left;font-weight:400}
.desktop-card-preview>strong{font-size:19px;white-space:nowrap;font-variant-numeric:tabular-nums}
.desktop-card-preview .risk{color:var(--danger)}
