@font-face{font-family:App;src:local("Avenir Next"),local("Segoe UI"),local("Arial")}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:#faf8f2;color:#263c32;font-family:App,system-ui,sans-serif;font-size:15px;line-height:1.55}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c99453;outline-offset:4px}button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}body [hidden]{display:none!important}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip:focus{position:fixed;top:8px;left:12px;z-index:20;background:white;padding:10px}.topbar{height:104px;max-width:1240px;margin:auto;padding:0 42px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #dddeda}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:23px;font-weight:700;letter-spacing:-.8px}.brand-mark{background:#204f42;color:#faf8f2;display:grid;place-items:center;width:45px;height:45px;border-radius:14px;font:bold italic 36px Georgia,serif;padding-bottom:4px}.brand small{display:block;font-size:8px;letter-spacing:1.6px;font-weight:500;margin-top:1px;color:#778077}nav{display:flex;gap:30px;align-items:center}nav a{text-decoration:none;font-size:13px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;border-radius:10px;padding:15px 22px;font-weight:600;font-size:14px;min-height:48px;text-decoration:none}.primary{background:#204f42;color:white}.primary:hover{background:#163c31}.outline{background:transparent;color:#204f42;border-color:#b7c0b2}.outline:hover{background:#edf1e9}.small{padding:9px 16px;min-height:40px}.text-button{background:none;border:0;color:#204f42;padding:8px 0;text-decoration:underline;text-underline-offset:4px;font-size:13px;font-weight:600}.icon-button{font-size:27px;line-height:1;background:none;border:0;color:#526155;width:42px;height:42px;border-radius:50%}.icon-button:hover{background:#eef0ea}.quiet{color:#7a8176;font-size:12px;line-height:1.7}.eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:10px;letter-spacing:1.7px;font-weight:700;color:#637760}.eyebrow i{width:6px;height:6px;border-radius:50%;background:#668359}.hero{max-width:1240px;margin:auto;display:grid;grid-template-columns:1.16fr 1fr;align-items:center;gap:36px;padding:75px 42px 67px;min-height:530px}.hero h1{font-size:clamp(40px,4.4vw,59px);font-weight:500;line-height:1.13;letter-spacing:-2.2px;margin:20px 0}.hero h1 em{font-family:Georgia,serif;color:#315d48;font-weight:400}.hero p:not(.quiet){font-size:16px;line-height:1.8;max-width:460px;color:#737c70;margin:0 0 26px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero-note{margin-top:17px!important}.hero-art{position:relative;min-height:355px;display:flex;align-items:center;justify-content:center}.orbit{position:absolute;width:335px;height:335px;background:#e8ece0;border-radius:50%;opacity:.7}.orbit.two{width:350px;height:210px;transform:rotate(-38deg);background:none;border:1px solid #d5decd}.receipt-paper{z-index:2;width:235px;min-height:305px;background:#fffef9;box-shadow:0 18px 50px #25402c14;border:1px solid #e7e8de;border-radius:5px;padding:25px 24px;transform:rotate(-5deg);position:relative}.receipt-paper.back{position:absolute;transform:rotate(8deg);background:#edeedb;left:calc(50% - 103px);top:14px;border:1px solid #d4dac9}.receipt-label{font-size:7px;letter-spacing:1.1px;color:#a7ac9c}.receipt-title{font:italic 24px/1.2 Georgia,serif;margin:16px 0 19px;color:#34523e}.paper-line{height:3px;background:#e9ebdf;width:95%;margin:9px 0}.paper-line.short{width:63%;margin-bottom:22px}.paper-row{display:flex;justify-content:space-between;border-bottom:1px dashed #dde1d3;padding:7px 0;font-size:11px;color:#7d8374}.paper-row b{color:#51735a}.paper-bottom{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#808572;margin-top:17px}.paper-bottom span{font:bold italic 28px Georgia,serif;color:#2b6048}.floating-label{position:absolute;z-index:3;right:0;bottom:38px;display:flex;align-items:center;gap:11px;padding:14px 18px;background:#fffef9;border:1px solid #e1e5d6;border-radius:12px;font-size:11px;box-shadow:0 6px 20px #25402c0a;transform:rotate(3deg)}.floating-label span{display:grid;place-items:center;border-radius:50%;background:#e5eee0;color:#527657;width:23px;height:23px}.sparkle{position:absolute;right:26px;top:9px;font-size:36px;color:#b58b4b;transform:rotate(10deg)}h2{font-size:31px;line-height:1.2;letter-spacing:-.8px;font-weight:500;margin:9px 0 0}h3{font-size:19px;font-weight:600;letter-spacing:-.4px;margin:10px 0}.workspace{max-width:1156px;margin:0 auto;padding:38px 0 52px;border-top:1px solid #dde1d4}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}.period-controls{display:flex;gap:9px}select,input,textarea{background:#fffef9;border:1px solid #d9ddd0;border-radius:7px;padding:11px 12px;min-height:44px;color:#324838;max-width:100%}select{padding-right:26px}input,textarea{width:100%}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 26px}.stat{padding:22px 25px;background:#f0f2e9;border:1px solid #e2e5d8;border-radius:13px}.stat:nth-child(2){background:#e7ede1}.stat span{display:block;font-size:12px;color:#6c7966}.stat strong{display:block;font-size:30px;line-height:1.5;letter-spacing:-1px;font-weight:500}.stat small{font-size:10px;color:#8a8f81}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}.filters{display:flex;gap:4px;background:#ecefe4;border-radius:9px;padding:4px;flex-wrap:wrap}.filter{background:none;color:#7b8475;border:0;border-radius:6px;padding:8px 13px;font-size:12px}.filter.active{background:#fffef9;color:#2b523a;box-shadow:0 2px 4px #25382509}.scan-note{display:flex;align-items:flex-start;gap:10px;padding:13px 16px;background:#f3efe5;border:1px solid #e8e1d3;border-radius:9px;margin-bottom:18px;color:#82785f}.scan-note p{margin:0;font-size:11px;line-height:1.6}.scan-note b{font-weight:600}.note-icon{width:17px;height:17px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;font:italic 12px Georgia,serif;flex-shrink:0;margin-top:1px}.invoice-list{display:grid;gap:10px;max-height:700px;overflow:auto}.invoice-row{display:flex;align-items:center;gap:15px;background:#fffef9;border:1px solid #e1e5da;padding:12px 17px;border-radius:10px}.thumb{width:50px;height:59px;border-radius:5px;object-fit:cover;background:#eaf0e2;flex-shrink:0}.thumb-placeholder{display:grid;place-items:center;color:#7c926f;font-size:24px}.invoice-details{min-width:0;flex:1}.invoice-details b{display:block;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.invoice-details small{display:block;color:#8c9284;font-size:11px;margin-top:2px}.invoice-money{font-size:17px;font-weight:600;letter-spacing:-.4px;white-space:nowrap}.badge{font-size:9px;display:inline-block;padding:4px 8px;border-radius:5px;white-space:nowrap}.badge.ready{background:#e5eee0;color:#56724e}.badge.draft{background:#f4ecd9;color:#8a7846}.badge.duplicate{background:#f9e5dc;color:#9b644e}.row-actions{display:flex;gap:10px;align-items:center}.row-actions .button{padding:7px 12px;min-height:36px;font-size:11px}.empty{border:1px dashed #cbd3be;border-radius:13px;min-height:225px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;padding:35px;background:#f8f9f1}.empty-icon{width:47px;height:55px;border:1px solid #b8c8a6;border-radius:4px;display:grid;place-items:center;color:#729359;font-size:24px;transform:rotate(-7deg);margin-bottom:10px}.empty h3{margin:0;font-size:18px;font-weight:500}.empty p{max-width:340px;font-size:12px;color:#89927e;margin:0}.ledger-footer{margin-top:17px;display:flex;justify-content:space-between;gap:16px;align-items:center;color:#979c8f;font-size:10px}.report-panel{background:#204f42;color:#f7f8ec;max-width:1156px;margin:0 auto 0;display:grid;grid-template-columns:1fr 1.05fr;gap:70px;padding:42px 48px;border-radius:19px;align-items:center}.report-panel h2{font:400 36px/1.15 Georgia,serif;margin:16px 0}.report-panel>div>p{font-size:13px;line-height:1.9;color:#c1d1bb;max-width:330px}.eyebrow.light{color:#becfb6;font-size:9px}.report-panel a{font-size:11px;color:#c2d1b9;text-underline-offset:4px}.report-card{color:#324434;background:#fffef7;padding:25px;border-radius:12px}.report-top{display:flex;align-items:center;justify-content:space-between;padding-bottom:15px;font-size:9px;border-bottom:1px solid #e0e4d7;gap:15px;color:#909784;letter-spacing:1px}.report-top b{font-size:10px;color:#68785e;letter-spacing:0}.report-line{display:flex;justify-content:space-between;gap:12px;padding:12px 0;font-size:12px;border-bottom:1px solid #e6e7dd}.report-line strong{font-weight:600}.report-line.grand{font-size:16px;border-bottom:0;padding-top:17px}.grand strong{font-size:23px;font-weight:500}.report-state{margin:9px 0;color:#8a826e;font-size:11px;white-space:pre-line}.report-actions{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:17px}.report-actions .button{font-size:11px;padding:12px 14px;min-height:44px}.report-card .quiet{margin-bottom:0;font-size:10px}.how{max-width:1156px;margin:70px auto}.how>h2{font:400 34px Georgia,serif;margin:12px 0 28px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:50px}.step-number{font:italic 26px Georgia,serif;color:#b5bda6}.steps h3{font-size:17px;font-weight:500}.steps p{color:#808977;font-size:12px;line-height:1.8;max-width:265px}.backup-section{max-width:1156px;margin:0 auto 35px;display:flex;justify-content:space-between;align-items:center;gap:35px;padding:26px 0;border-top:1px solid #dfe4d5}.backup-section h3{font-size:19px;font-family:Georgia,serif;font-weight:400}.backup-section p{font-size:11px;color:#858e7a;max-width:620px}.backup-actions{display:flex;flex-direction:column;align-items:center;flex-shrink:0}.backup-actions .button{font-size:11px;padding:11px 16px}footer{max-width:1240px;margin:auto;border-top:1px solid #dfe4d5;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 42px 35px;color:#959c8b;font-size:10px}footer .brand{font-size:18px;color:#36503b}footer .brand-mark{width:34px;height:34px;font-size:28px;border-radius:10px}footer a:last-child{text-decoration:none}dialog{border:1px solid #dfe3d5;border-radius:17px;max-width:min(700px,calc(100% - 28px));width:100%;padding:27px;background:#faf9f2;color:#30442f;box-shadow:0 25px 100px #152d3645;max-height:92dvh;overflow:auto}dialog::backdrop{background:#142c2499;backdrop-filter:blur(3px)}.editor-dialog{max-width:min(940px,calc(100% - 28px))}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.dialog-heading h2{font:400 28px Georgia,serif}.editor-body{display:grid;grid-template-columns:1fr 1fr;gap:26px}.photo-pane{background:#eceee3;border:1px solid #e1e4d7;padding:12px;border-radius:10px;display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;justify-content:flex-start}.photo-pane img{width:100%;max-height:600px;object-fit:contain;border-radius:5px}.no-photo{min-height:320px;display:grid;place-items:center;color:#929c81;font-size:13px}.editor-fields{display:grid;gap:11px}.editor-fields>.quiet{margin:0 0 4px}.editor-fields label,.profile-fields label{display:grid;gap:5px;font-size:11px;font-weight:600;color:#778269}.editor-fields input,.editor-fields select,.editor-fields textarea,.profile-fields input{font-size:14px;color:#334830;font-weight:400}.dialog-actions{border-top:1px solid #e1e4d8;margin-top:23px;padding-top:20px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.dialog-actions>div{display:flex;gap:9px}.dialog-actions .button{font-size:12px;padding:12px 17px}.danger{color:#9c6b5a}.form-error{font-size:12px;color:#9c5d4d;background:#f6e9e0;padding:10px;border-radius:7px;white-space:pre-line;margin:4px 0}.profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.wide{grid-column:1/-1}.checkbox{display:flex!important;align-items:flex-start;gap:9px!important;font-weight:400!important}.checkbox input{width:17px;height:17px;min-height:0;margin-top:0;flex-shrink:0}.toast{position:fixed;z-index:40;bottom:25px;left:50%;transform:translateX(-50%);max-width:min(550px,calc(100% - 32px));padding:15px 22px;border-radius:12px;border:1px solid #abbc99;background:#f4f8ec;box-shadow:0 8px 25px #1831241c;font-size:12px;text-align:center}.toast.error{background:#f9ece4;border-color:#d6b4a2;color:#90543e}.example-paper{display:grid;grid-template-columns:1fr auto;gap:13px;background:#f0f2e7;padding:25px;border-radius:9px;margin:24px 0;font-size:13px}.example-total{padding-top:16px;border-top:1px solid #d2d8c4}.example-paper b{font-weight:500}#export-errors{font-size:13px;line-height:1.8;padding-left:20px}#export-errors li{margin-bottom:9px}
@media(max-width:1240px){.workspace,.report-panel,.how,.backup-section{margin-left:42px;margin-right:42px}.hero{gap:20px}.floating-label{right:-5px}}
@media(max-width:800px){.topbar{padding:0 24px;height:85px}.brand small{display:none}.brand{font-size:20px}nav{gap:17px}nav a{font-size:12px}.hero{grid-template-columns:1fr;padding:42px 24px 30px;gap:22px;min-height:0}.hero-art{display:none}.hero h1{font-size:48px}.hero p:not(.quiet){font-size:14px;max-width:100%}.workspace,.report-panel,.how,.backup-section{margin-left:24px;margin-right:24px}.workspace{padding-top:28px}.stats{gap:9px}.stat{padding:15px}.stat strong{font-size:24px}.stat small{font-size:9px}.stat span{font-size:10px}.report-panel{gap:25px;padding:28px;grid-template-columns:1fr}.report-panel h2 br{display:none}.report-panel h2{font-size:30px}.report-panel>div>p{max-width:100%}.report-panel .report-card{padding:22px}.steps{gap:25px}.backup-section{align-items:flex-start;flex-direction:column;gap:10px}.backup-actions{flex-direction:row;gap:20px}footer{padding:20px 24px}footer>span{display:none}.invoice-row{gap:10px;padding:11px}.invoice-money{font-size:14px}.badge{font-size:8px}.editor-body{grid-template-columns:1fr 1fr;gap:18px}.photo-pane img{max-height:450px}}
@media(max-width:520px){nav a{display:none}.hero h1{font-size:41px;letter-spacing:-1.7px}.hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.hero-actions .button{font-size:11px;padding:12px 9px;gap:6px}.hero-actions svg{width:16px}.hero-note{font-size:10px}.section-heading{align-items:flex-start}.section-heading h2{font-size:25px}.eyebrow{font-size:8px;letter-spacing:1.4px}.period-controls{gap:5px}.period-controls select{font-size:11px;min-height:38px;padding:8px 23px 8px 8px}.stats{grid-template-columns:1fr 1fr}.stat:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:2px;padding:12px 16px}.stat:last-child strong{grid-column:2;grid-row:1/3;font-size:25px}.stat strong{font-size:25px}.stat small{font-size:8px}.toolbar{align-items:flex-start}.filters{width:100%;justify-content:space-between}.filter{padding:8px 9px;font-size:10px}.invoice-row{flex-wrap:wrap}.invoice-details{flex-basis:calc(100% - 90px)}.invoice-details b{font-size:12px}.thumb{width:40px;height:48px}.invoice-money{margin-left:50px;flex:1}.row-actions{justify-content:flex-end}.badge{font-size:8px}.ledger-footer{align-items:flex-start;flex-direction:column;gap:4px}.report-panel{padding:24px 19px;border-radius:13px}.report-actions{grid-template-columns:1fr}.report-actions .button{font-size:12px}.how{margin-top:45px;margin-bottom:36px}.how>h2{font-size:28px}.steps{grid-template-columns:1fr;gap:18px}.steps article{display:grid;grid-template-columns:45px 1fr;gap:0 12px}.step-number{grid-row:1/3}.steps h3{margin:0 0 5px;font-size:17px}.steps p{margin:0;max-width:100%}.backup-actions{align-items:flex-start;flex-direction:column;gap:4px}.backup-section{margin-bottom:20px}dialog{padding:20px;max-height:94dvh}.editor-body{grid-template-columns:1fr}.photo-pane{max-height:290px;overflow:auto}.photo-pane img{max-height:230px}.no-photo{min-height:110px}.photo-pane .text-button{font-size:10px}.dialog-actions{align-items:stretch}.dialog-actions>div{width:100%;display:grid;grid-template-columns:1fr 1fr}.profile-fields{grid-template-columns:1fr}.profile-fields .wide{grid-column:auto}.dialog-heading h2{font-size:24px}footer{font-size:9px}.report-panel h2{font-size:29px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.reader-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px}.scan-note>div{flex:1;min-width:0}.scan-note p{margin:0 0 6px}.reader-editor{margin-bottom:14px}.reader-editor .button{width:100%}.reader-editor p{margin:8px 0;font-size:11px}#reader-progress,#reader-editor-progress{font-size:12px;white-space:pre-line}.button:disabled,.text-button:disabled{opacity:.5;cursor:default}

.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dialog-actions>div:has(>button:only-child){display:block}.dialog-actions>div:has(>button:only-child) .button{width:100%}@media(max-width:520px){.stats .stat:last-child{grid-column:auto;display:block;padding:15px}.stats .stat:last-child strong{display:block;font-size:25px}.stats .stat:last-child small{display:block}}

/* Keep invoice forms within narrow Safari dialogs. */
dialog{min-width:0;overflow-x:hidden}
dialog form{width:100%;min-width:0;max-width:100%}
.dialog-heading{min-width:0}
.dialog-heading>div{flex:1;min-width:0}
.dialog-heading h2{min-width:0;overflow-wrap:anywhere;line-height:1.2}
.dialog-heading>h2{flex:1}
.dialog-heading .icon-button{flex-shrink:0}
.editor-body,.profile-fields{min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.editor-body{align-items:start}
.editor-fields{min-width:0;grid-template-columns:minmax(0,1fr)}
.editor-fields label,.profile-fields label,.reader-editor,.dialog-actions,.dialog-actions>div{min-width:0;max-width:100%}
.reader-editor p,.form-error{overflow-wrap:anywhere}
dialog input:not([type=checkbox]):not([type=radio]),dialog select,dialog textarea{min-width:0;min-inline-size:0;width:100%;max-width:100%}
dialog input[type=date]{display:block}
.photo-pane{width:100%;max-width:100%;overflow:hidden}
.photo-pane img{display:block;flex-shrink:0;min-width:0;width:100%;max-width:100%;height:min(55dvh,480px);max-height:480px;object-fit:contain}
.photo-pane .text-button{max-width:100%;overflow-wrap:anywhere;text-align:center}
@media(max-width:520px){
  .editor-body,.profile-fields{grid-template-columns:minmax(0,1fr)}
  .photo-pane{max-height:none;overflow:hidden}
  .photo-pane img{height:min(28dvh,230px);max-height:230px}
  .editor-fields input,.editor-fields select,.editor-fields textarea,.profile-fields input,dialog select,dialog textarea{font-size:16px}
}

/* Keep the invoice save action visible while its fields scroll. */
.editor-dialog{padding:0;overflow:hidden}
.editor-dialog #editor-form{display:flex;flex-direction:column;max-height:calc(92dvh - 2px);overflow:hidden}
.editor-dialog .dialog-heading{flex-shrink:0;padding:24px 27px 18px;margin:0;max-height:30dvh;overflow-y:auto}
.editor-dialog .editor-body{flex:1 1 auto;min-height:0;grid-auto-rows:max-content;align-content:start;overflow-y:auto;overscroll-behavior:contain;padding:0 27px 20px}
.editor-dialog .dialog-actions{flex-shrink:0;margin:0;padding:14px 27px;background:#faf9f2;justify-content:flex-end}
.editor-dialog .dialog-actions>div{width:min(100%,240px)}
.editor-dialog #save-invoice{width:100%;min-height:48px;font-size:16px}
.editor-dialog #archive-invoice{justify-self:start;margin-top:5px}
@media(max-width:520px){
  .editor-dialog #editor-form{max-height:calc(94dvh - 2px)}
  .editor-dialog .dialog-heading{padding:18px 20px 14px}
  .editor-dialog .editor-body{padding:0 20px 16px}
  .editor-dialog .dialog-actions{padding:12px 20px max(12px,env(safe-area-inset-bottom))}
  .editor-dialog .dialog-actions>div{width:100%}
}

.ledger-export{margin-top:20px;padding-top:18px;border-top:1px solid #dfe4d5}.ledger-export .report-actions{margin-top:10px}.ledger-export .report-state{margin:0;color:#6b7768}

.demo-banner{max-width:1156px;margin:24px auto 0;padding:18px 22px;border:1px solid #c5d1ba;border-radius:12px;background:#edf2e7;display:flex;align-items:center;justify-content:space-between;gap:18px}.demo-banner b{font-size:14px}.demo-banner p{margin:5px 0 0;font-size:12px;color:#64715e}.demo-banner strong{white-space:nowrap;font-size:13px}.demo-limit-note{max-width:1156px;margin:12px auto;padding:12px 22px;font-size:13px;background:#f5eadb;border-radius:10px}@media(max-width:1240px){.demo-banner,.demo-limit-note{margin-left:42px;margin-right:42px}}@media(max-width:800px){.demo-banner,.demo-limit-note{margin-left:24px;margin-right:24px}.demo-banner{flex-direction:column;align-items:flex-start;gap:10px}}
