#paperBudget[hidden], #homeSections[hidden], #homeOrderBtn[hidden] { display:none !important; }
.home-view-switch { display:flex; gap:4px; margin-right:auto; padding:3px; border:1px solid #b3bdb4; border-radius:12px; background:#fffdf3; }
.home-view-switch button { border:0; border-radius:8px; padding:8px 14px; min-height:40px; font:inherit; color:#203b53; background:transparent; cursor:pointer; }
.home-view-switch button[aria-pressed="true"] { background:#235948; color:#fff; }
.budget-paper { --paper-ink:#203b53; --paper-rule:#ccd3cb; color:var(--paper-ink); background:#fffdf3; border:1px solid #d4cebb; border-radius:5px 5px 13px 5px; box-shadow:0 6px 22px #0002; padding:20px 24px 14px; max-width:1000px; margin:0 auto 20px; font-variant-numeric:tabular-nums; }
.budget-paper *, .paper-dialog * { box-sizing:border-box; }
.budget-paper button { font-family:inherit; color:inherit; cursor:pointer; }
.budget-paper button:focus-visible { outline:3px solid #2a6eaa; outline-offset:2px; }
.paper-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.paper-heading h2 { color:var(--paper-ink); font-size:22px; margin:2px 0 0; letter-spacing:-.5px; }
.paper-eyebrow { letter-spacing:2px; font-size:10px; font-weight:800; margin:0; }
.paper-period { font-size:12px; margin:6px 0 12px; color:#52616c; }
.paper-date-button { border:1px solid #b8c0b8; background:transparent; border-radius:6px; min-height:44px; padding:6px 12px; }
.paper-cash { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; border-top:2px solid var(--paper-ink); border-bottom:1px solid var(--paper-rule); }
.paper-cash span { font-size:14px; font-weight:600; }
.paper-cash strong { font-size:25px; white-space:nowrap; }
.paper-cash small { display:block; font-size:10px; color:#52616c; font-weight:400; }
.paper-accounts { display:flex; flex-wrap:wrap; gap:8px 18px; padding:8px 0; }
.paper-accounts button { background:transparent; border:0; padding:3px 0; text-align:left; font-size:12px; min-height:44px; }
.paper-accounts small { display:block; font-size:10px; color:#596873; }
.paper-legend { display:flex; flex-wrap:wrap; gap:5px 12px; padding:5px 0 10px; border-bottom:2px solid var(--paper-ink); font-size:10px; }
.paper-chase { color:#12623d !important; }
.paper-discover { color:#a44606 !important; }
.paper-bills,.paper-section { padding:8px 0; border-bottom:1px solid var(--paper-rule); min-width:0; }
.paper-section-head { display:flex; justify-content:space-between; align-items:center; gap:6px; min-height:36px; }
.paper-section-head > button { border:0; background:transparent; font-size:15px; font-weight:800; text-align:left; padding:5px 0; min-height:44px; }
.paper-section-head strong { font-size:18px; white-space:nowrap; }
.paper-section-head small { font-size:10px; font-weight:400; }
.paper-bill-list { display:flex; flex-wrap:wrap; gap:5px 14px; }
.paper-bill { border:0; background:transparent; text-align:left; font-size:12px; min-height:44px; padding:2px 0; max-width:100%; }
.paper-bill small { display:block; font-size:10px; }
.paper-bill.is-paid span,.paper-bill.is-paid b { text-decoration:line-through; }
.paper-footnote,.paper-explanation p { font-size:11px; line-height:1.5; margin:6px 0 0; color:#53626c; }
.paper-split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.paper-split > :first-child { padding-right:13px; border-right:1px solid #8d9b9c; }
.paper-split > :nth-child(2) { padding-left:13px; }
.paper-split > :only-child { grid-column:1/-1; border-right:0; padding-right:0; }
.paper-carry { font-size:11px; margin-bottom:5px; color:#53626c; }
.paper-marks { display:flex; flex-wrap:wrap; gap:3px 12px; min-height:48px; align-content:flex-start; background:repeating-linear-gradient(transparent 0 47px,#8b9daa25 47px 48px); }
.paper-mark { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; background:transparent; border:0; padding:3px 2px 5px; min-height:48px; font-size:13px; max-width:100%; }
.paper-mark-date { font-size:9px; opacity:.85; }
.paper-mark b { font-weight:650; }
.paper-arrow { font-size:10px; opacity:.6; }
.paper-mark:hover { background:#cad7e63b; border-radius:4px; }
.paper-mark.is-undone > span:last-child { text-decoration:line-through; opacity:.7; }
.paper-no-entries { font-size:11px; color:#66747a; padding:12px 0; }
.paper-section summary,.paper-explanation summary { cursor:pointer; font-size:11px; padding:8px 0; min-height:36px; }
.paper-check { margin-top:14px; padding:12px 14px; background:#eaf0e7; border:1px solid #b8c8b9; border-radius:5px; }
.paper-check h3 { font-size:14px; margin:0 0 8px; color:var(--paper-ink); }
.paper-check > div { display:flex; justify-content:space-between; gap:14px; font-size:12px; margin:5px 0; }
.paper-check b,.paper-check strong { white-space:nowrap; }
.paper-check-result { padding-top:7px; border-top:1px solid #abb9ad; }
.paper-check p { font-size:11px; line-height:1.5; margin:8px 0 0; }
.paper-check button,.paper-tools button,.paper-attention button { border:0; text-decoration:underline; background:transparent; min-height:44px; padding:5px 0; font-size:12px; text-align:left; }
.paper-attention { background:#fff0ca; color:#634212; padding:5px 10px; border-radius:5px; display:flex; gap:8px 16px; flex-wrap:wrap; align-items:center; font-size:12px; }
.paper-tools { display:flex; flex-wrap:wrap; gap:2px 18px; border-top:1px solid var(--paper-rule); margin-top:8px; }
.paper-dialog { margin:auto; width:min(540px,calc(100vw - 28px)); max-height:85dvh; overflow:auto; background:var(--bg-elevated,#fff); color:var(--text-primary,#203b53); border:1px solid var(--border,#aeb9ae); border-radius:14px; padding:22px; }
.paper-dialog::backdrop { background:#10221bb3; }
.paper-dialog h2 { font-size:20px; margin:0 0 12px; }
.paper-dialog p { font-size:13px; line-height:1.6; }
.paper-dialog input { display:block; width:100%; padding:10px; margin:8px 0 14px; font:inherit; min-height:44px; }
.paper-dialog button { min-height:44px; margin:6px 6px 0 0; }
.paper-dialog-actions { display:flex; flex-wrap:wrap; }
.paper-entry-effects > div { display:grid; grid-template-columns:1fr auto; gap:4px 10px; border-bottom:1px solid var(--border-color,#ccd3cb); padding:10px 0; font-size:14px; }
.paper-entry-effects small { grid-column:1/-1; }
@media(max-width:600px){
 .budget-paper { padding:14px 12px 10px; }
 .paper-heading h2 { font-size:20px; }
 .paper-cash strong { font-size:22px; }
 .paper-split > :first-child { padding-right:8px; }
 .paper-split > :nth-child(2) { padding-left:8px; }
 .paper-split .paper-section-head { flex-wrap:wrap; gap:0; align-content:center; }
 .paper-split .paper-section-head strong { font-size:17px; width:100%; margin-bottom:5px; }
 .paper-split .paper-section-head > button { padding-bottom:0; }
 .paper-marks { column-gap:9px; }
 .paper-mark { font-size:12px; }
 .home-view-switch button { padding:7px 11px; }
}
