.ledger-page{--ledger-ink:#584d44;--ledger-muted:#978878;--ledger-line:#b5a08730;max-width:1260px;margin:0 auto;padding:32px 34px 24px;color:var(--ledger-ink)}
.ledger-page button,.ledger-entry-form button{transition:background .18s,transform .18s}.ledger-page button:active{transform:translateY(1px)}.ledger-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}.ledger-hero{display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:216px;margin-bottom:27px;padding:25px 34px;background:linear-gradient(118deg,#f9f5ece8,#e5e6d9be 70%,#dfebea9e);border:1px solid #fff9;border-radius:22px;box-shadow:0 5px 18px #73584406;overflow:hidden}.ledger-eyebrow{font-size:9px;letter-spacing:2px;color:var(--ledger-muted);line-height:1.6}.ledger-hero h1{font-size:29px;letter-spacing:1px;font-weight:500;margin:10px 0 9px;color:#715740}.ledger-hero p{font-size:12px;color:#958472;margin:0;line-height:1.8}.ledger-hero-actions{display:flex;gap:10px;margin-top:22px}.ledger-primary,.ledger-soft{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:11px;padding:11px 17px;font-size:12px}.ledger-primary{background:var(--accent,#85634a);color:#fff;box-shadow:0 3px 8px #85634a20}.ledger-primary:hover{background:#75553f!important}.ledger-soft{background:#fff9;border:1px solid #c9b59a55;color:#80654f}.ledger-photo{margin:0 3px 0 0;padding:8px 8px 5px;background:#fffdf4;box-shadow:0 4px 10px #69544416;transform:rotate(4deg);width:147px;flex:none}.ledger-photo img{display:block;width:131px;height:132px;object-fit:contain;background:#ede4d6}.ledger-photo figcaption{font:italic 13px/1.9 Georgia,serif;color:#8c7963;text-align:center;letter-spacing:.3px}.ledger-monthbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 17px}.ledger-month-picker{display:flex;align-items:center;gap:7px;min-width:0}.ledger-icon-button{display:inline-grid;place-items:center;width:31px;height:32px;color:#9a8876;flex:none}.ledger-next .ledger-icon{transform:rotate(180deg)}.ledger-month-label{position:relative;font-size:17px;color:#6e5b48;min-width:135px;text-align:center;cursor:pointer}.ledger-month-label input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.ledger-month-label input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:auto;height:auto;opacity:0;cursor:pointer}.ledger-month-label:focus-within{outline:2px solid var(--accent,#85634a);outline-offset:3px;border-radius:5px}.ledger-this-month{padding:5px 9px;font-size:10px;border:1px solid var(--ledger-line);color:#958472;background:#ffffff45}.ledger-month-count{font-size:11px;color:#a08e7c;white-space:nowrap}.ledger-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:24px}.ledger-stat{padding:20px 22px 15px;border-radius:18px;border:1px solid #fffa;background:#fffdf6b8;min-width:0;box-shadow:0 3px 10px #7a5e4405}.ledger-stat>span{font-size:11px;display:flex;align-items:center;gap:8px;color:#93816e}.ledger-stat>span .ledger-icon{width:17px;height:17px}.ledger-stat strong{display:block;font:30px/1.4 var(--mono,monospace);letter-spacing:-1px;margin-top:12px;overflow-wrap:anywhere;font-weight:500}.ledger-stat strong small{font:14px Georgia,serif;margin-right:6px;letter-spacing:0}.ledger-stat p{font-size:10px;margin:8px 0 0;color:#a29586;line-height:1.6}.ledger-stat.income strong{color:#71886d}.ledger-stat.expense strong{color:#ad8061}.ledger-stat.balance{background:#e9ede2b5}.ledger-stat.balance strong{color:#6b7775}.ledger-columns{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.5fr);gap:22px;align-items:start}.ledger-categories,.ledger-records{min-width:0;border-radius:20px;background:#fffdf6b0;border:1px solid #fff9;padding:23px}.ledger-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px}.ledger-section-title h2{font-size:16px;font-weight:500;margin:5px 0 0;color:#75614d}.ledger-section-title h2 small{font-size:11px;background:#e9e1d4;color:#998a7a;padding:2px 7px;border-radius:20px;margin-left:4px}.ledger-section-title>span{font-size:10px;color:#a39380;white-space:nowrap}.ledger-category-bar{display:flex;align-items:center;gap:10px;width:100%;padding:10px 0;border-radius:10px;text-align:left}.ledger-category-bar:hover,.ledger-category-bar.selected{background:#e9e4d8a8}.ledger-category-bar.selected{box-shadow:0 0 0 1px #b49e7f65;padding-left:5px;padding-right:5px}.ledger-category-icon{display:inline-grid;place-items:center;width:35px;height:35px;flex:none;border-radius:11px;color:var(--category);background:color-mix(in srgb,var(--category) 13%,transparent)}.ledger-category-icon .ledger-icon{width:19px;height:19px}.ledger-bar-copy{flex:1;min-width:0;display:block}.ledger-bar-copy>span{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:6px}.ledger-bar-copy b{font-size:11px;font-weight:400;color:#887764}.ledger-bar-copy small{font-size:9px;color:#ad9d89}.ledger-bar-copy>i{display:block;height:4px;width:100%;background:#c3baa426;border-radius:4px}.ledger-bar-copy em{display:block;height:100%;border-radius:4px;min-width:0}.ledger-category-bar>strong{font:11px var(--mono,monospace);min-width:58px;text-align:right;font-weight:400;color:#877c6f}.ledger-category-help{font-size:10px;color:#b2a18a;line-height:1.9;margin:20px 0 0}.ledger-export{font-size:10px;display:inline-flex;gap:5px;align-items:center;white-space:nowrap;color:#8c7d6b;padding:7px 8px;border:1px solid #cbb99d50;border-radius:9px}.ledger-export .ledger-icon{width:14px;height:14px}.ledger-filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 12px}.ledger-type-filter{display:flex;gap:2px;padding:3px;background:#c4b4981c;border-radius:9px}.ledger-type-filter button{font-size:11px;padding:6px 11px;color:#9a8b78;border-radius:7px}.ledger-type-filter button.selected{background:#fffdf8;color:#75614a;box-shadow:0 1px 4px #84684712}.ledger-filter-category select{font-size:11px;border:1px solid #cbb99d4d;background:#fffbf566;border-radius:8px;padding:8px 7px;max-width:124px;color:#8b7a67}.ledger-search{display:flex;align-items:center;gap:5px;padding:0 7px;border:1px solid #cbb99d4d;border-radius:8px;background:#fffbf566;flex:1;min-width:125px}.ledger-search .ledger-icon{width:14px;height:14px;color:#b09c84}.ledger-search input{font-size:11px;width:100%;min-width:0;padding:8px 0;background:none;border:0;color:#746552}.ledger-search input::placeholder{color:#b3a18c}.ledger-search button{padding:3px 4px;font-size:11px;color:#b39f88}.ledger-filter-hint{font-size:10px;color:#9c8975;padding:4px 0 12px}.ledger-filter-hint button{font-size:10px;color:#96714f;margin-left:8px;text-decoration:underline;text-underline-offset:3px}.ledger-day{margin:0 0 12px}.ledger-day>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0 7px;border-bottom:1px solid var(--ledger-line)}.ledger-day h3{font-size:10px;font-weight:500;letter-spacing:.3px;color:#a69682;margin:0}.ledger-day>header>span{font-size:9px;color:#b4a691;text-align:right}.ledger-entry{display:flex;align-items:center;gap:11px;padding:15px 0;border-bottom:1px dashed #cdbda430;min-width:0}.ledger-entry-copy{flex:1;min-width:0}.ledger-entry-copy strong{display:block;font-size:12px;font-weight:500;color:#7c6955;margin-bottom:5px;overflow-wrap:anywhere}.ledger-entry-copy>span{display:block;font-size:10px;color:#b09c87;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap;max-height:3em;overflow:hidden}.ledger-entry-amount{font:14px var(--mono,monospace);font-weight:500;white-space:nowrap;color:#927b64;letter-spacing:-.4px}.ledger-entry-amount.income{color:#7f9278}.ledger-entry-amount small{font:9px "Segoe UI","Microsoft YaHei",sans-serif;margin-left:3px;color:#b2a18a}.ledger-entry-actions{display:flex;gap:0}.ledger-entry-actions .ledger-icon-button{width:24px;height:30px}.ledger-entry-actions .ledger-icon{width:14px;height:14px;color:#b6a68f}.ledger-empty{text-align:center;padding:50px 16px;color:#ad9c85}.ledger-empty>.ledger-icon{width:42px;height:42px;stroke-width:1;color:#bcb096}.ledger-empty h3{font-size:14px;font-weight:400;color:#917b60;margin:18px 0 12px}.ledger-empty p{font-size:11px;line-height:1.8;max-width:260px;margin:0 auto 19px}.ledger-footer{text-align:center;color:#b4a18a;font-size:9px;padding:23px 0 2px;letter-spacing:.4px}.ledger-entry-type{display:flex;padding:4px;gap:5px;background:#c9bba71c;border-radius:12px;margin:3px 0 22px}.ledger-entry-type label{flex:1;position:relative;cursor:pointer}.ledger-entry-type input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;margin:0}.ledger-entry-type span{display:block;text-align:center;padding:10px;border-radius:9px;color:#9c8974}.ledger-entry-type input:checked+span{background:#fffaf0;color:var(--accent,#85634a);box-shadow:0 2px 6px #80634912}.ledger-entry-type input:focus-visible+span{outline:2px solid var(--accent,#85634a);outline-offset:2px}.ledger-amount-field{margin-bottom:4px!important}.ledger-amount-field>div{display:flex;align-items:center;border-bottom:1px solid #b6a08960;gap:8px;padding:4px 0 8px}.ledger-amount-field>div>span{font:22px Georgia,serif;color:#b3987a}.ledger-amount-field input{border:0!important;background:transparent!important;font:36px var(--mono,monospace)!important;padding:4px!important;min-width:0;width:100%;color:#846548}.ledger-form-help{font-size:10px;line-height:1.7;color:#ad9980;margin:4px 0 19px}.ledger-category-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:3px 0 20px}.ledger-category-choices button{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 4px;font-size:10px;border:1px solid #c7b59a35;border-radius:10px;color:#9d896f;min-width:0;white-space:nowrap}.ledger-category-choices button>span{color:var(--category)}.ledger-category-choices .ledger-icon{width:16px;height:16px}.ledger-category-choices button.selected{background:#e9e5d4;border-color:#aa95704a;color:#7e664d}.ledger-delete-copy{line-height:1.9;color:#8b765e}.ledger-delete-copy strong{overflow-wrap:anywhere}.ledger-delete-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:140px;overflow:auto;background:#cbbda316;padding:12px;border-radius:10px;color:#a18b72}.ledger-entry-form .form-error,.ledger-page .form-error{font-size:12px;color:#b55b48;line-height:1.7}.ledger-entry-form [hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px){.ledger-page{padding:25px 24px}.ledger-columns{grid-template-columns:minmax(235px,.8fr) minmax(0,1.4fr);gap:16px}.ledger-categories,.ledger-records{padding:19px}.ledger-summary{gap:12px}.ledger-stat{padding:18px}.ledger-stat strong{font-size:26px}.ledger-entry-actions{flex-direction:column}.ledger-entry-actions .ledger-icon-button{height:23px}.ledger-entry{gap:8px}.ledger-search{flex-basis:100%}}
@media(max-width:760px){.ledger-page{padding:18px 14px 24px}.ledger-hero{padding:23px;min-height:200px;margin-bottom:24px;gap:18px}.ledger-hero h1{font-size:25px}.ledger-hero-copy{min-width:0}.ledger-photo{width:118px;padding:6px 6px 3px}.ledger-photo img{width:106px;height:115px}.ledger-photo figcaption{font-size:11px}.ledger-summary{gap:9px;margin-bottom:18px}.ledger-stat{padding:15px 12px;border-radius:16px}.ledger-stat strong{font-size:23px;letter-spacing:-.9px}.ledger-stat strong small{font-size:11px;margin-right:4px}.ledger-stat p{font-size:9px;line-height:1.6;min-height:29px}.ledger-columns{grid-template-columns:1fr;gap:17px}.ledger-categories,.ledger-records{padding:20px;border-radius:18px}.ledger-category-bars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 21px}.ledger-category-bar{gap:8px}.ledger-category-bar>strong{min-width:48px;font-size:10px}.ledger-category-icon{width:31px;height:31px;border-radius:9px}.ledger-category-help{margin-top:13px}.ledger-category-help br{display:none}.ledger-search{flex-basis:initial}.ledger-entry-actions{flex-direction:row}.ledger-entry-actions .ledger-icon-button{height:30px;width:27px}.ledger-entry{gap:12px}.ledger-filter-category select,.ledger-search input,.ledger-month-label input,.ledger-entry-form input:not([type=radio]),.ledger-entry-form select,.ledger-entry-form textarea{font-size:16px}.ledger-filter-category select{max-width:145px}.ledger-search{min-width:140px}.ledger-search input{padding:8px 0}.ledger-filters{row-gap:10px}.ledger-entry-form .ledger-amount-field input{font-size:34px!important}.ledger-entry-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.ledger-hero{padding:23px 20px;min-height:220px;position:relative;align-items:start;gap:0}.ledger-hero-copy{position:relative;z-index:1;padding-right:43px;width:100%}.ledger-hero h1{font-size:23px;line-height:1.45;max-width:175px;margin-top:9px}.ledger-eyebrow{font-size:8px;letter-spacing:1.6px}.ledger-hero p{font-size:10px;max-width:175px;line-height:1.8}.ledger-hero-actions{gap:7px;margin-top:20px;margin-right:-43px}.ledger-primary,.ledger-soft{padding:10px 11px;font-size:11px;gap:5px}.ledger-primary .ledger-icon,.ledger-soft .ledger-icon{width:16px;height:16px}.ledger-photo{position:absolute;right:19px;top:31px;width:95px;padding:5px 5px 2px;transform:rotate(5deg)}.ledger-photo img{width:85px;height:103px}.ledger-photo figcaption{font-size:9px}.ledger-month-picker{gap:2px}.ledger-month-label{min-width:124px;font-size:15px}.ledger-month-count{font-size:9px}.ledger-this-month{padding:4px 7px;font-size:9px}.ledger-summary{gap:6px}.ledger-stat{padding:14px 9px}.ledger-stat>span{font-size:10px;gap:5px}.ledger-stat>span .ledger-icon{width:14px;height:14px}.ledger-stat strong{font-size:20px;letter-spacing:-.7px;line-height:1.5}.ledger-stat strong small{font-size:9px;margin-right:2px}.ledger-stat p{font-size:8px}.ledger-categories,.ledger-records{padding:18px 14px}.ledger-section-title{gap:8px;margin-bottom:16px}.ledger-section-title h2{font-size:15px}.ledger-section-title>span{font-size:9px}.ledger-category-bars{gap:0 14px}.ledger-category-bar{gap:6px;padding:10px 0}.ledger-category-bar .ledger-category-icon{width:25px;height:29px;background:transparent;border-radius:5px}.ledger-category-bar>strong{font-size:9px;min-width:42px}.ledger-bar-copy b{font-size:10px}.ledger-bar-copy small{font-size:8px}.ledger-bar-copy>i{height:3px}.ledger-type-filter{padding:3px;gap:0}.ledger-type-filter button{padding:7px 10px;font-size:10px}.ledger-filter-category{flex:1}.ledger-filter-category select{width:100%;max-width:100%;padding:7px 4px}.ledger-search{flex-basis:100%}.ledger-entry{gap:8px;padding:14px 0}.ledger-entry .ledger-category-icon{width:30px;height:33px}.ledger-entry-copy strong{font-size:11px}.ledger-entry-copy>span{font-size:9px}.ledger-entry-amount{font-size:12px}.ledger-entry-amount small{display:none}.ledger-entry-actions{flex-direction:column}.ledger-entry-actions .ledger-icon-button{width:23px;height:23px}.ledger-export{padding:6px;font-size:9px}.ledger-export .ledger-icon{width:12px;height:12px}.ledger-category-choices{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.ledger-category-choices button{flex-direction:column;gap:4px;font-size:9px;padding:8px 1px;white-space:normal;line-height:1.4}.ledger-entry-form .form-grid{grid-template-columns:1fr}.ledger-empty{padding:36px 10px}.ledger-day>header>span{font-size:8px}}
@media(max-width:360px){.ledger-page{padding:15px 10px 24px}.ledger-hero{padding:21px 17px}.ledger-hero h1{font-size:21px;max-width:155px}.ledger-hero p{max-width:155px}.ledger-photo{right:13px;top:35px;width:83px}.ledger-photo img{width:73px;height:94px}.ledger-photo figcaption{font-size:8px}.ledger-month-label{min-width:110px;font-size:14px}.ledger-icon-button{width:27px}.ledger-month-count{max-width:70px;white-space:normal;text-align:right;line-height:1.6}.ledger-stat strong{font-size:17px}.ledger-stat>span{font-size:9px;gap:4px}.ledger-stat p{font-size:8px}.ledger-categories,.ledger-records{padding:17px 11px}.ledger-category-bars{gap:0 9px}.ledger-category-bar{gap:3px}.ledger-category-bar>strong{min-width:38px;font-size:8px}.ledger-bar-copy b{font-size:9px}.ledger-category-bar .ledger-category-icon{width:23px}.ledger-entry-copy{min-width:60px}.ledger-entry-amount{font-size:11px}.ledger-entry-actions .ledger-icon-button{width:21px}.ledger-entry{gap:6px}.ledger-footer{font-size:8px;letter-spacing:0}}
@media(prefers-reduced-motion:reduce){.ledger-page button,.ledger-entry-form button{transition:none}}
/* A full monetary value must remain on one line even at the 320px minimum. */
.ledger-stat strong{white-space:nowrap;overflow-wrap:normal}
@media(min-width:481px) and (max-width:900px){.ledger-summary{grid-template-columns:1fr;gap:9px}.ledger-stat{display:grid;grid-template-columns:95px minmax(0,1fr);align-items:center;gap:3px 12px;padding:14px 19px}.ledger-stat strong{font-size:25px;line-height:1.3;margin:0;text-align:right}.ledger-stat p{grid-column:1/-1;min-height:0;margin:3px 0 0;font-size:10px}}
@media(max-width:480px){.ledger-summary{grid-template-columns:1fr;gap:8px}.ledger-stat{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:3px 8px;padding:12px 15px}.ledger-stat>span{font-size:11px;gap:6px}.ledger-stat>span .ledger-icon{width:16px;height:16px}.ledger-stat strong{font-size:23px;line-height:1.3;letter-spacing:-.8px;margin:0;text-align:right;white-space:nowrap;overflow-wrap:normal}.ledger-stat strong small{font-size:11px;margin-right:4px}.ledger-stat p{grid-column:1/-1;min-height:0;margin:2px 0 0;font-size:9px}.ledger-stat:has(strong[data-long-amount]) strong{grid-column:1/-1;text-align:left;font-size:21px;margin-top:4px}}
@media(max-width:360px){.ledger-stat{padding:11px 13px;grid-template-columns:68px minmax(0,1fr);gap:3px 6px}.ledger-stat>span{font-size:10px;gap:5px}.ledger-stat strong{font-size:21px}.ledger-stat p{font-size:8px}}
@media(max-width:480px){.ledger-hero h1 span{display:block}.ledger-category-bar{display:grid;grid-template-columns:25px minmax(0,1fr);gap:4px 6px}.ledger-category-bar>.ledger-category-icon{grid-column:1;grid-row:1/3}.ledger-bar-copy{grid-column:2;grid-row:1}.ledger-bar-copy b{font-size:10px;white-space:nowrap}.ledger-category-bar>strong{grid-column:2;grid-row:2;text-align:left;font-size:10px;min-width:0;white-space:nowrap}}
@media(max-width:360px){.ledger-category-bar{grid-template-columns:22px minmax(0,1fr);gap:4px 4px}.ledger-category-bar>strong{font-size:9px}}
