:root{font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif;color:#25392f;background:#f6f7f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{height:88px;border-bottom:1px solid #e0e5dd;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,20px);background:#fff}.brand{text-decoration:none;color:#245746;font-size:29px;font-weight:800;letter-spacing:-1px}.brand span{font-size:12px;font-weight:500;letter-spacing:1px;margin-left:14px;color:#7b887f}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #dbe2d8;border-radius:10px;background:white;padding:10px 14px;color:#345544}button:hover{background:#edf3eb}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9abca9;outline-offset:2px}main{max-width:1200px;margin:auto;padding:44px 24px}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#6c8875}h1{font-size:30px;letter-spacing:-1.2px;margin:14px 0}h2{font-size:18px;letter-spacing:-.5px}.muted{color:#7e887e;font-size:14px;line-height:1.6}.month{min-width:170px}.summary{margin:30px 0 32px;background:#245746;color:#fff;border-radius:22px;padding:32px 36px;display:flex;justify-content:space-between;align-items:center;gap:20px}.summary p{font-size:14px;color:#c6dacb;margin:0 0 12px}.summary h2{font-size:46px;letter-spacing:-2px;margin:12px 0}.summary span{font-size:13px;color:#d2e6d6}.summarySmall{display:flex;gap:44px}.summarySmall strong{display:block;font-size:22px;color:#fff;margin-top:12px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:28px}.sectionHead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.sectionHead h2{margin:0}.sectionHead button,.sectionHead select{font-size:12px}.cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}.card{background:white;border:1px solid #e1e6dd;border-radius:17px;padding:22px}.cardTop{display:flex;justify-content:space-between;align-items:center;gap:8px}.cardTop b{overflow-wrap:anywhere}.cardTop button{font-size:12px;padding:5px 8px}.card h3{font-size:26px;margin:22px 0 8px;letter-spacing:-1px}.card small{color:#899187;font-size:12px}.bar{height:7px;background:#edf0e9;border-radius:20px;overflow:hidden;margin:19px 0 12px}.bar div{height:100%;background:#72a283}.details{display:flex;justify-content:space-between;font-size:12px;color:#7b877b;gap:10px}.over{color:#b64f40}.over .bar div{background:#c56d5d}.entry{background:#fff;border:1px solid #e1e6dd;border-radius:18px;padding:24px}.entry h2{margin:12px 0 26px}label{display:block;font-size:13px;font-weight:600;margin:0 0 18px}input,select{display:block;width:100%;padding:12px;border:1px solid #dce2d9;background:#fff;border-radius:9px;color:#25392f;margin-top:8px;min-width:0}.primary{background:#245746;color:white;border-color:#245746}.primary:hover{background:#193f33}form>.primary{width:100%;padding:14px}.amountInput{position:relative}.amountInput input{padding-right:38px}.amountInput span{position:absolute;right:14px;top:13px}.hint,.storage p{font-size:12px;line-height:1.8;color:#81907f}.storage{padding:24px 6px;font-size:12px}.restore{font-size:12px;cursor:pointer;text-decoration:underline}.restore input{font-size:11px}.history{margin-top:32px}.row{padding:18px 0;border-bottom:1px solid #e0e5dd;display:flex;align-items:center;gap:12px}.row .desc{flex:1;min-width:0;overflow-wrap:anywhere}.row small{display:block;color:#8b9387;font-size:12px;margin-top:7px}.row button{padding:6px;font-size:11px}.row strong{white-space:nowrap;font-size:14px}.empty{padding:38px 22px;text-align:center;border:1px dashed #ccd8c9;border-radius:15px;color:#7d8b78;font-size:14px;line-height:1.9;grid-column:1/-1}.sectionHead select{max-width:130px;margin:0}dialog{border:0;border-radius:20px;padding:28px;width:min(420px,90vw);box-shadow:0 20px 80px #0003}dialog::backdrop{background:#17251c77}.actions{display:flex;justify-content:flex-end;gap:10px}#status{font-size:13px;color:#245746;min-height:20px}#cancelEdit{width:100%;margin-top:8px} @media(max-width:850px){.layout{grid-template-columns:1fr}.entry{margin-top:4px}aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.summarySmall{gap:22px}}@media(max-width:560px){header{height:72px}.brand span{display:none}main{padding:28px 18px}.intro{display:block}h1{font-size:25px}.month{max-width:180px;margin-top:22px}.summary{padding:25px;display:block}.summary h2{font-size:38px}.summarySmall{margin-top:28px;justify-content:space-between}.summarySmall strong{font-size:18px}.cards{grid-template-columns:1fr}.card h3{font-size:28px}aside{display:block}.row{flex-wrap:wrap}.row .desc{min-width:40%}.sectionHead h2{font-size:16px}}
/* Mobile-first home */
[hidden]{display:none!important}body{background:#f5f7f5}header{max-width:540px;margin:auto;padding:0 24px;height:76px;background:transparent;border:0}.header-note{font-size:12px;color:#819087}.brand{font-size:26px}.brand span{display:none}main{max-width:540px;padding:12px 22px 160px}.intro{display:block}.intro .eyebrow{display:none}h1{font-size:26px;margin:12px 0}.intro .muted{font-size:13px;margin-bottom:20px}.month{max-width:170px;font-size:12px}.month input{background:transparent;border:0;padding:0;font-size:17px;margin-top:8px}.summary{display:block;margin:24px 0 30px;padding:26px 24px;border-radius:24px;background:#234f40;box-shadow:0 12px 30px #234f4010}.summary>p{font-size:12px;color:#c7d9cf}.hero-amount{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin:20px 0 25px;overflow-wrap:anywhere}.hero-amount strong{font-size:36px;letter-spacing:-1.6px}.hero-amount>span{font-size:18px;color:#bed3c5;letter-spacing:-.4px}.hero-amount b{font-weight:500}.hero-progress{height:8px;background:#ffffff24;border-radius:8px;overflow:hidden}.hero-progress>div{height:100%;background:#b7e1aa}.hero-progress .exceeded{background:#f3a38f}.hero-bottom{display:flex;justify-content:space-between;gap:12px;margin-top:14px}.hero-bottom span{font-size:12px}.hero-bottom b{color:#fff}#summaryNote{font-size:11px;line-height:1.7;margin:22px 0 0;color:#b9cfc2}.layout{display:block}.cards{grid-template-columns:1fr;gap:12px}.sectionHead h2{font-size:16px}.sectionHead button{font-size:11px;padding:8px}.card{padding:21px;border-radius:19px}.cardTop b{font-size:15px}.cardTop button{border:0;color:#8c978e;background:transparent}.category-amounts{display:flex;justify-content:space-between;gap:10px;margin-top:22px}.category-amounts h3{font-size:23px;margin:7px 0 0;color:#283e33;letter-spacing:-.7px}.category-amounts .available{text-align:right}.available h3{color:#398465}.over .available h3,.over .available small{color:#ba5846}.bar{margin:20px 0 11px;height:6px}.history{margin:0 0 28px}.entry{margin-top:20px}aside{display:block}.storage{background:#fff;border-radius:18px;padding:24px}.storage>b{display:block;margin-top:24px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,540px);display:grid;grid-template-columns:repeat(3,1fr);padding:9px 12px calc(10px + env(safe-area-inset-bottom));background:#ffffffed;border-top:1px solid #e4eae3;backdrop-filter:blur(16px);z-index:5}.bottom-nav button{border:0;background:transparent;font-size:11px;color:#98a19a;padding:5px}.bottom-nav span{display:block;font-size:24px;height:32px}.bottom-nav [aria-current]{color:#245746;font-weight:800}.quick-add{position:fixed;bottom:calc(90px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#245746;color:white;border:0;border-radius:30px;padding:14px 24px;box-shadow:0 6px 20px #193f3330;z-index:4;font-size:14px}.quick-add:hover{background:#193f33}@media(max-width:360px){main{padding-left:16px;padding-right:16px}.hero-amount strong{font-size:30px}.hero-amount>span{font-size:16px}.category-amounts h3{font-size:20px}}
.expense-group{background:white;border:1px solid #e1e6dd;border-radius:20px;overflow:hidden}.expense-group summary{list-style:none;cursor:pointer;padding:23px 20px}.expense-group summary::-webkit-details-marker{display:none}.expense-group summary:focus-visible{outline:3px solid #72a283;outline-offset:-3px}.group-heading{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.group-heading b{font-size:18px}.group-heading span{font-size:11px;color:#87958a}.group-heading .when-open{display:none}.expense-group[open] .group-heading .when-closed{display:none}.expense-group[open] .group-heading .when-open{display:inline}.group-totals{display:flex;justify-content:space-between;gap:8px;margin-top:24px}.group-totals small{display:block;font-size:11px;color:#8a958a;margin-bottom:9px}.group-totals strong{display:block;font-size:20px;letter-spacing:-.5px}.group-totals em{font-style:normal;font-size:12px;font-weight:400;color:#889488}.group-left{text-align:right;color:#398465}.group-left.over{color:#b64f40}.group-children{background:#f7f9f5;border-top:1px solid #e7ece4;padding:12px;display:grid;gap:10px}.group-children .card{padding:18px;border-radius:12px}.group-children h3{font-size:20px}.expense-group .bar{margin-bottom:0}
.month-setup{margin:22px 0;padding:22px;border:1px solid #d8e6dc;border-radius:20px;background:#eef5ee}.month-setup h2{margin:0 0 8px}.month-setup p{font-size:13px;color:#516b5c;line-height:1.6}.setup-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.setup-actions button{font-size:13px}.entry[open]{box-sizing:border-box;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto}.close-entry{float:right;font-size:12px}.day-group{margin-top:22px}.day-group h3{display:flex;justify-content:space-between;gap:10px;margin:0;padding:9px 0;border-bottom:1px solid #e0e5df;font-size:13px;color:#345646}
.entry-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:14px 0}.entry-methods button{font-size:12px;padding:9px 4px;min-height:42px}.entry-methods [aria-pressed=true]{background:#245746;color:white;border-color:#245746}.entry-assist{padding:12px;background:#eef5ee;border-radius:12px;margin-bottom:10px}.entry-assist p{font-size:12px;line-height:1.6;margin:0 0 10px}.entry-assist label{margin-bottom:10px}

.amount-shortcuts{display:flex;gap:8px;margin:-9px 0 18px}.amount-shortcuts button{flex:1;min-height:42px;font-size:13px;color:#245746;background:#f1f6f2;border:1px solid #d8e6dc}

.card-expense{margin-top:12px;width:100%;min-height:44px;background:#eaf3ed;color:#245746;border-color:#d2e3d7}
.card-controls,.move-buttons{display:flex;align-items:center;gap:6px}
.card-controls{flex-wrap:wrap;justify-content:flex-end}
.move-buttons button{min-width:44px;min-height:44px;padding:4px;font-size:24px;font-weight:800;line-height:1;color:#123b2c;background:#e6f1e9;border:1px solid #bad3c1}
.move-buttons button:not(:disabled):hover{background:#cde5d4}
.move-buttons button:disabled{opacity:.3}
.fixed-block{border:1px solid #e1e6dd;border-radius:20px;background:white;overflow:hidden}
.fixed-block>.expense-group{border:0;border-radius:0}
.fixed-block>.move-buttons{justify-content:flex-end;padding:12px 20px 0}
.fixed-block>.move-buttons+.expense-group summary{padding-top:12px}
.category-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}#categorySection .sectionHead{flex-wrap:wrap}.category-actions #reorderCards[aria-pressed="true"]{background:#245746;color:white;border-color:#245746}
.month{display:flex;align-items:center;gap:5px;max-width:none;width:max-content;margin-top:16px}
.month input{width:100px;margin:0;padding:8px 4px;text-align:center;font-size:16px;font-variant-numeric:tabular-nums;letter-spacing:.2px;border:1px solid #dce2d9;border-radius:9px;background:#fff}
.month button{width:36px;height:36px;padding:0;font-size:24px;line-height:1}
.expense-calendar{background:#fff;border:1px solid #e1e6dd;border-radius:19px;padding:16px 10px;overflow:hidden}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid #e7ece4;border-top:1px solid #e7ece4}
.calendar-weekday{text-align:center;color:#829184;font-size:11px;font-weight:700;padding:6px 0;border-right:1px solid #e7ece4;border-bottom:1px solid #e7ece4;background:#f7f9f5}
.calendar-weekday:first-child{color:#bd5a52}.calendar-weekday:nth-child(7){color:#547eb0}
.calendar-day{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;min-height:56px;padding:6px 3px;border:0;border-right:1px solid #e7ece4;border-bottom:1px solid #e7ece4;border-radius:0;background:#fff;color:#294336;font-size:12px;font-weight:700;text-align:left}
.calendar-day.sunday{color:#bd5a52}.calendar-day.saturday{color:#547eb0}
.calendar-day.outside{opacity:.38}.calendar-day.today{box-shadow:inset 0 0 0 2px #72a283}
.calendar-day small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-weight:500;color:#39765a}
.calendar-day[aria-pressed="true"],.calendar-day[aria-pressed="true"]:hover{background:#245746;color:#fff}
.calendar-day[aria-pressed="true"] small{color:#e2f4e5}
.calendar-empty{font-size:13px;color:#81907f;padding:14px 2px}
.pager{display:flex;align-items:center;justify-content:center;gap:14px;min-height:32px;margin-top:5px;font-size:12px;color:#65786b}
.pager button{width:34px;height:30px;padding:0;font-size:22px;line-height:1}
@media(max-width:560px){
  body.home-view,body.expenses-view,body.settings-view{height:100dvh;overflow:hidden}
  body.home-view main,body.expenses-view main,body.settings-view main{height:100dvh;display:flex;flex-direction:column;overflow:auto;padding:10px 16px calc(78px + env(safe-area-inset-bottom))}
  body.home-view .intro,body.expenses-view .intro,body.settings-view .intro{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}
  body.home-view h1,body.expenses-view h1,body.settings-view h1{font-size:21px;margin:0}
  body.home-view .month,body.expenses-view .month,body.settings-view .month{min-width:0;margin:0;gap:3px}
  body.home-view .month input,body.expenses-view .month input,body.settings-view .month input{width:88px;padding:6px 2px;font-size:14px}
  body.home-view .month button,body.expenses-view .month button,body.settings-view .month button{width:32px;height:32px}
  body.home-view .layout,body.expenses-view .layout,body.settings-view .layout{display:flex;flex-direction:column;flex:1;min-height:0}
  body.home-view #status,body.expenses-view #status,body.settings-view #status{flex:none;min-height:14px;margin:2px 0 0;font-size:11px}
  body.home-view .summary{flex:none;margin:8px 0 10px;padding:13px 16px;border-radius:17px}
  body.home-view .summary>p{font-size:11px;margin:0}
  body.home-view .hero-amount{margin:6px 0 9px;gap:5px}
  body.home-view .hero-amount strong{font-size:27px}
  body.home-view .hero-amount>span{font-size:14px}
  body.home-view .hero-progress{height:5px}
  body.home-view .hero-bottom{margin-top:7px}
  body.home-view .hero-bottom span{font-size:11px}
  body.home-view #summaryNote{display:none}
  body.home-view .month-setup{flex:none;margin:6px 0;padding:10px 12px}
  body.home-view .month-setup h2{font-size:15px;margin:0 0 3px}
  body.home-view .month-setup p{font-size:11px;margin:0}
  body.home-view .setup-actions{margin-top:7px}
  body.home-view .setup-actions button{padding:7px 9px;font-size:11px}
  body.home-view #categorySection{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
  body.home-view #categorySection .sectionHead{flex:none;margin-bottom:7px;gap:5px}
  body.home-view #categorySection .sectionHead h2{font-size:14px}
  body.home-view .category-actions button{padding:5px 7px;font-size:10px}
  body.home-view #cards{display:block;flex:1;min-height:0;overflow:auto}
  body.home-view .card{padding:13px;border-radius:14px}
  body.home-view .cardTop b{font-size:14px}
  body.home-view .cardTop button{padding:4px 5px}
  body.home-view .category-amounts{margin-top:10px}
  body.home-view .category-amounts h3{font-size:19px;margin:4px 0 0}
  body.home-view .bar{margin:10px 0 7px;height:5px}
  body.home-view .card-expense{margin-top:8px;min-height:36px;padding:7px}
  body.home-view .empty{padding:16px 12px}
  body.home-view #loadDemo{flex:none;margin-top:6px!important;padding:7px;min-height:34px}
  body.home-view.reordering-view .card-expense{display:none}
  body.home-view .fixed-block>.move-buttons{padding:5px 12px 0}
  body.home-view .expense-group summary{padding:12px}
  body.home-view .group-heading b{font-size:16px}
  body.home-view .group-totals{margin-top:10px}
  body.home-view .group-totals strong{font-size:16px}
  body.home-view .group-totals small{margin-bottom:3px}
  body.home-view .group-children{padding:8px;gap:4px}
  body.home-view .group-children .card{padding:10px}
  body.home-view .group-children h3{font-size:18px}
  body.home-view .fixed-pager{margin:0;min-height:28px}
  body.expenses-view .history{display:flex;flex-direction:column;flex:1;min-height:0;margin:0;overflow:hidden}
  body.expenses-view .history .sectionHead{justify-content:flex-end;flex:none;gap:8px;margin:4px 0 8px}
  body.expenses-view .history .sectionHead h2{display:none}
  body.expenses-view .history .sectionHead button{min-height:36px;padding:6px 10px}
  body.expenses-view .history .sectionHead select{max-width:140px;min-height:36px;padding:6px 8px}
  body.expenses-view .expense-calendar{flex:none;padding:6px 4px}
  body.expenses-view .calendar-weekday{padding:4px 0}
  body.expenses-view .calendar-day{height:clamp(34px,calc(16.666dvh - 60px),56px);min-height:0;gap:1px;padding:3px 2px;font-size:11px}
  body.expenses-view .calendar-day small{font-size:8px}
  body.expenses-view #history{flex:1;min-height:0;overflow:auto}
  body.expenses-view .day-group{margin:8px 0 0}
  body.expenses-view .day-group h3{padding:6px 0}
  body.expenses-view .row{padding:9px 0;gap:7px}
  body.settings-view .storage{padding:14px 16px}
  body.settings-view .storage h2{margin:0 0 12px}
  body.settings-view .storage>b{margin-top:12px}
  body.settings-view .storage p{margin:6px 0 12px}
  body.settings-view .restore{margin:0}
  .entry[open],#budgetDialog{width:min(440px,calc(100% - 12px));max-height:calc(100dvh - 12px);padding:12px 14px}
  .entry h2,#budgetDialog h2{font-size:17px;margin:2px 0 8px}
  .entry-methods{gap:4px;margin:5px 0}
  .entry-methods button{min-height:32px;padding:5px 2px;font-size:11px}
  .entry-assist{padding:7px;margin-bottom:5px}
  .entry-assist p{font-size:10px;margin:0 0 5px}
  .entry form label,#budgetDialog form label{font-size:11px;margin-bottom:6px}
  .entry form input,.entry form select,#budgetDialog form input,#budgetDialog form select{font-size:13px;padding:7px;margin-top:3px}
  .entry .amount-shortcuts,#budgetDialog .amount-shortcuts{margin:0 0 6px}
  .entry .amount-shortcuts button,#budgetDialog .amount-shortcuts button{min-height:30px;padding:4px;font-size:11px}
  .entry form>.primary{padding:9px}
  .entry .hint,#budgetDialog .hint{font-size:10px;margin:5px 0}
  #budgetDialog .muted{font-size:11px;margin:3px 0 8px}
  #budgetDialog .actions button{padding:7px 10px;font-size:12px}
}
@media(max-width:560px) and (max-height:650px){
  body.home-view #categorySection .sectionHead h2{display:none}
  body.home-view .expense-group[open] .group-totals,body.home-view .expense-group[open] summary .bar{display:none}
}
@media(max-width:560px) and (max-height:520px){
  body.home-view .summary{padding:9px 13px;margin:5px 0 6px}
  body.home-view .summary>p{display:none}
  body.home-view .hero-amount{margin:3px 0 5px}
  body.home-view .hero-amount strong{font-size:23px}
  body.home-view .hero-bottom{margin-top:4px}
  body.home-view .card{padding:10px}
  body.home-view .category-amounts{margin-top:6px}
  body.home-view .bar{margin:6px 0 5px}
  body.home-view .card-expense{min-height:32px;margin-top:5px}
  body.home-view .group-children .card{padding:8px}
  body.expenses-view .calendar-day{height:28px}
}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.date-field{margin-bottom:18px}
.date-field label{margin-bottom:0}
.date-input-row{display:flex;gap:8px;align-items:stretch}
.date-input-row input{flex:1}
.date-input-row button{flex:none;width:46px;margin-top:8px;padding:0;font-size:21px;line-height:1}
.date-picker{width:min(360px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:16px;overflow:auto}
.date-picker-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.date-picker-head strong{font-size:17px;color:#245746}
.date-picker-head button{width:38px;height:38px;padding:0;font-size:25px;line-height:1}
.date-picker .calendar-day{height:43px;min-height:0;align-items:center;justify-content:center;padding:0;font-size:13px}
.date-picker-actions{display:flex;justify-content:space-between;gap:8px;margin-top:12px}
.date-picker-actions button{flex:1;min-height:38px}
@media(max-width:560px){.date-field{margin-bottom:6px}.date-input-row button{height:34px;margin-top:3px}.date-picker .calendar-day{height:clamp(31px,6dvh,43px)}}
.spend-warning{--spend-amount:#946300;--spend-bar:#e4ad28;--spend-hero:#ffdc74}
.spend-danger{--spend-amount:#b83f35;--spend-bar:#d95448;--spend-hero:#ffa69c}
#spent.spend-warning,#spent.spend-danger,#totalPercent.spend-warning,#totalPercent.spend-danger,#remaining.spend-warning,#remaining.spend-danger{color:var(--spend-hero)}
#totalProgress.spend-warning,#totalProgress.spend-danger{background:var(--spend-bar)}
.card.spend-warning .category-amounts>div:first-child h3,.card.spend-danger .category-amounts>div:first-child h3,.card.spend-warning .details>span:first-child,.card.spend-danger .details>span:first-child{color:var(--spend-amount)}
.card.spend-warning>.bar>div,.card.spend-danger>.bar>div{background:var(--spend-bar)}
.fixed-block.spend-warning .expense-group>summary>.group-totals>div:first-child strong,.fixed-block.spend-danger .expense-group>summary>.group-totals>div:first-child strong{color:var(--spend-amount)}
.fixed-block.spend-warning .expense-group>summary>.bar>div,.fixed-block.spend-danger .expense-group>summary>.bar>div{background:var(--spend-bar)}
.card.spend-warning .available h3,.card.spend-danger .available h3,.card.spend-warning .available small,.card.spend-danger .available small{color:var(--spend-amount)}
.fixed-block.spend-warning .expense-group>summary>.group-totals .group-left strong,.fixed-block.spend-danger .expense-group>summary>.group-totals .group-left strong,.fixed-block.spend-warning .expense-group>summary>.group-totals .group-left small,.fixed-block.spend-danger .expense-group>summary>.group-totals .group-left small{color:var(--spend-amount)}
.bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
.bottom-nav button{min-width:0;white-space:nowrap}
.fridge-expense-option{display:flex;align-items:center;gap:8px;margin:8px 0 4px}
.fridge-expense-option input{width:18px;height:18px;flex:none;margin:0;accent-color:#245746}
#fridgeEntryHint{margin:0 0 8px}
[data-import-expense]{color:#245746;background:#eaf3ed;margin-top:6px;font-size:11px}
.fridge-view .month{display:none}
.fridge-inventory{margin-top:24px}
.fridge-empty{display:flex;min-height:240px;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;border:1px dashed #ccd8c9;border-radius:20px;background:#fff;text-align:center}
.fridge-empty-icon{font-size:36px;line-height:1}
.fridge-empty h2{margin:8px 0 0;font-size:18px;color:#245746}
.fridge-empty p{margin:0;color:#65786b;font-size:13px;line-height:1.5}
@media(max-width:560px){
  body.fridge-view{height:100dvh;overflow:hidden}
  body.fridge-view main{height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding:10px 16px calc(78px + env(safe-area-inset-bottom))}
  body.fridge-view .intro{flex:none}
  body.fridge-view h1{font-size:21px;margin:0}
  body.fridge-view .layout{display:flex;flex:1;min-height:0;flex-direction:column}
  body.fridge-view .fridge-inventory{display:flex;flex:1;min-height:0;margin-top:10px}
  body.fridge-view .fridge-empty{flex:1;min-height:0;padding:16px}
  body.fridge-view #status{flex:none;min-height:14px;margin:2px 0 0;font-size:11px}
  .bottom-nav button{font-size:10px;padding:5px 1px}
}
body.fridge-view{height:100dvh;overflow:hidden}
body.fridge-view main{height:100dvh;display:flex;flex-direction:column;padding:0 0 calc(76px + env(safe-area-inset-bottom));overflow:hidden}
body.fridge-view .intro{display:none}
body.fridge-view .layout{display:flex;flex:1;min-height:0;flex-direction:column}
body.fridge-view .fridge-inventory{position:relative;display:flex;flex:1;min-height:0;margin:0}
#fridgeFrame{width:100%;height:100%;flex:1;min-height:0;border:0;background:#fff}
#fridgeLoading{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#f5f7f5;font-size:13px}
body.fridge-view #status{margin:0;padding:4px 12px;font-size:11px}
body.fridge-view #status:empty{display:none}
.bottom-nav{height:calc(76px + env(safe-area-inset-bottom))}
.storage{padding:8px 0 12px}
.storage h2{margin:0 0 14px}
.settings-group{margin-bottom:12px;padding:16px;background:#fff;border:1px solid #e1e6dd;border-radius:16px}
body.settings-view .intro .month{display:none}
.sync-status{font-size:11px;line-height:1.4;color:#526a59;margin:4px 0 8px}
body.fridge-view .sync-status{display:none}
#importLocalBudget,#backupLocalBudget{width:100%;margin:8px 0;background:#edf5ed;color:#245746}
#importLocalHint{font-size:11px}
.settings-group h3{margin:0 0 10px;font-size:15px;color:#245746}
.settings-group p{margin:8px 0;color:#63756a}
.settings-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;font-size:13px}
.settings-toggle span{min-width:0}
.settings-toggle small{display:block;margin-top:5px;font-size:11px;font-weight:400;line-height:1.5;color:#718075}
.settings-toggle input{width:20px;height:20px;flex:none;margin:0;accent-color:#245746}
.settings-data-actions{display:flex;align-items:center;gap:10px;margin:12px 0}
.settings-data-actions button,.settings-data-actions .restore{flex:1;margin:0;padding:10px;border:1px solid #dbe2d8;border-radius:10px;background:#fff;color:#245746;text-align:center;font-size:12px;font-weight:600;text-decoration:none;cursor:pointer}
.settings-data-actions .restore input{display:none}
@media(max-width:560px){body.settings-view{height:100dvh;overflow:hidden}body.settings-view main{height:100dvh;overflow:hidden;padding-bottom:calc(76px + env(safe-area-inset-bottom))}body.settings-view .layout{height:calc(100% - 50px);overflow:auto}body.settings-view .storage{padding:0 0 12px}}
