:root{--app-header-height:82px;--app-header-offset:calc(var(--app-header-height) + env(safe-area-inset-top,0px));color:#253c36;font-synthesis:none;background:#f6f7f4;font-family:DM Sans,system-ui,sans-serif;font-size:15px;font-weight:400;line-height:1.55}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:#245e50;text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.04em;font-family:Manrope,system-ui,sans-serif;line-height:1.2}h1{margin-bottom:12px;font-size:34px;font-weight:700}h2{letter-spacing:-.025em;font-size:19px}h3{font-size:17px}p{margin-bottom:16px}small{font-size:12px}svg{vertical-align:middle;flex-shrink:0}button:focus-visible,a:focus-visible,summary:focus-visible{outline-offset:4px;outline:3px solid #96b8ab}input:focus,select:focus,textarea:focus{outline-offset:1px;outline:2px solid #719e8f}.muted{color:#738079}.eyebrow{letter-spacing:.18em;color:#6b8077;margin-bottom:12px;font-size:10px;font-weight:700;display:block}.topbar{height:var(--app-header-offset);z-index:20;padding:env(safe-area-inset-top,0px) 6% 0;background:#fff;border-bottom:1px solid #e0e5df;align-items:center;gap:40px;display:flex;position:sticky;top:0}.brand{letter-spacing:-.7px;color:#21463b;align-items:center;gap:10px;font-size:19px;font-weight:700;display:flex}.brand:hover{text-decoration:none}.brand-mark{color:#fff;background:#174d43;border-radius:10px;justify-content:center;align-items:center;width:37px;height:40px;display:flex}.topbar nav{gap:10px;margin-left:auto;display:flex}.topbar nav a{border-radius:8px;align-items:center;gap:8px;padding:10px 15px;font-size:13px;font-weight:500;display:flex}.topbar nav a:hover{background:#f0f4ef;text-decoration:none}.user-avatar{color:#54704e;text-align:center;background:#e8efe4;border:1px solid #dae3d7;border-radius:50%;width:34px;height:34px;font-size:13px;line-height:32px}.demo-strip{text-align:center;color:#61745a;background:#eaf0e5;padding:7px 15px;font-size:11px}main{max-width:1250px;margin:0 auto;padding:48px 44px 70px}.page-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px;display:flex}.page-heading p{margin:0}.actions{align-items:center;gap:10px;display:flex}.primary,.secondary{border-radius:7px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:11px 17px;font-size:13px;font-weight:600;line-height:1.4;display:inline-flex}.primary{color:#fff;background:#1d5748;border:1px solid #1d5748}.primary:hover{background:#103e32;text-decoration:none}.secondary{color:#3b5147;background:#fff;border:1px solid #d9e0da}.secondary:hover{background:#f5f7f2;text-decoration:none}.full{width:100%}.text-button{color:#245e50;background:0 0;border:0;align-items:center;gap:6px;padding:0;font-size:13px;display:inline-flex}.icon-button{color:#6e8075;background:0 0;border:0;border-radius:5px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.icon-button:hover{background:#eef2eb}.danger{color:#a15148}.panel{background:#fff;border:1px solid #dfe5dd;border-radius:11px;padding:28px;box-shadow:0 2px 3px #12342203}.library{padding:0;overflow:hidden}.library-tabs{border-bottom:1px solid #dee3da;gap:27px;margin-bottom:22px;display:flex}.library-tabs button{color:#7b857e;background:0 0;border:0;padding:4px 0 15px;font-size:13px;font-weight:500;position:relative}.library-tabs button.selected{color:#215440}.library-tabs button.selected:after{content:"";background:#2c6250;height:2px;position:absolute;bottom:-1px;left:0;right:0}.library-tabs span{background:#e9ede5;border-radius:4px;margin-left:5px;padding:2px 6px;font-size:11px}.library-tabs .count-amber{color:#996f24;background:#fbedd2}.filters{flex-wrap:wrap;align-items:center;gap:10px;padding:20px;display:flex}.filters input,.filters select{min-height:39px;margin:0;font-size:12px}.filters select{width:auto;max-width:175px}.search{flex:1;min-width:160px;position:relative}.search svg{color:#88948b;position:absolute;top:12px;left:12px}.search input{padding-left:38px}.date-filter{color:#708276;align-items:center;gap:6px;font-size:10px;display:flex}.date-filter input{width:130px}.filter-summary{color:#69786d;gap:10px;padding:0 20px 15px;font-size:12px;display:flex}.table-head,.transaction-row{grid-template-columns:minmax(210px,2.2fr) 1fr 1fr 1.2fr 1fr 20px;align-items:center;gap:15px;display:grid}.table-head{color:#788578;background:#f8f9f6;border-top:1px solid #e9ece5;border-bottom:1px solid #e9ece5;padding:12px 23px;font-size:11px}.transaction-row{color:#43554a;border-bottom:1px solid #edf0e9;padding:21px 23px;font-size:12px}.transaction-row:hover{background:#fafbf8;text-decoration:none}.merchant{align-items:center;gap:14px;display:flex}.merchant strong{color:#304a3d;font-size:14px;font-weight:600;display:block}.merchant small{color:#859086;margin-top:4px;font-size:11px;display:block}.receipt-tile{color:#7f9870;background:#f3f6ee;border:1px solid #e3e9df;border-radius:7px;justify-content:center;align-items:center;width:41px;height:47px;display:flex}.badge{white-space:nowrap;border-radius:5px;padding:4px 7px;font-size:10px;font-weight:500}.badge.green{color:#618344;background:#edf4e8}.badge.amber{color:#976a28;background:#fff2d9}.row-amount{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:13px}.row-arrow{color:#a1afa0}.align-right{text-align:right}.table-footer{color:#8c968c;align-items:center;gap:5px;padding:15px 23px;font-size:11px;display:flex}.table-footer svg{margin-left:auto}.quiet-note{text-align:center;color:#9aa497;justify-content:center;align-items:center;gap:7px;margin-top:30px;font-size:12px;display:flex}.notice{color:#536d47;background:#edf3ea;border:1px solid #dbe6d5;border-radius:8px;margin:18px 0;padding:16px 18px;font-size:13px}.notice p{margin-bottom:0}.notice.error{color:#99483d;overflow-wrap:anywhere;background:#fff0ee;border-color:#f2cfc7}.notice.review{color:#8a632d;background:#fff7e7;border-color:#efdeb6}.notice.subtle{color:#788374;background:#f5f7f2;border-color:#e6ebe1}.export-ready{align-items:center;gap:12px;display:flex}.export-ready>div{flex:1}.export-ready p{font-size:12px}.empty{text-align:center;color:#87927f;padding:65px 20px}.empty svg{color:#9cae8f;margin-bottom:15px}.empty h2{color:#425840}.empty .primary{margin-top:8px}.back{align-items:center;gap:7px;margin-bottom:25px;font-size:12px;display:inline-flex}.add-grid{grid-template-columns:repeat(3,1fr);gap:20px;display:grid}.add-card{text-align:left;color:#304c3c;background:#fff;border:1px solid #dce4d7;border-radius:12px;padding:30px 27px;display:block}.add-card:hover{background:#fcfdfb;border-color:#94ac84;text-decoration:none}.add-card h2{margin:22px 0 12px}.add-card p{color:#7b8876;min-height:50px;font-size:13px}.big-icon{color:#6b8855;background:#eef3e8;border-radius:12px;justify-content:center;align-items:center;width:50px;height:50px;display:flex}.card-action{align-items:center;gap:10px;font-size:12px;font-weight:600;display:flex}.preview-panel{margin-top:25px}.preview-grid{flex-wrap:wrap;gap:20px;display:flex}.preview-grid figure{width:140px;margin:0}.preview-grid img{object-fit:contain;background:#f6f6f0;border-radius:8px;width:140px;height:180px}.preview-grid figcaption{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.detail-grid{grid-template-columns:1fr 1fr;gap:24px;display:grid}.section-title{justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;display:flex}.section-title h2{margin:0}.section-title>svg{color:#a0b097}.no-receipt{text-align:center;color:#9aa991;background:#f6f7f2;border:1px dashed #d6dfcd;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;min-height:335px;padding:30px;display:flex}.no-receipt h3{color:#68815b;margin-top:22px;margin-bottom:10px}.no-receipt p{font-size:13px}.total-display{letter-spacing:-1px;margin:15px 0 25px;font-size:32px;font-weight:600}dl{grid-template-columns:1fr 1.4fr;gap:13px;margin:0;font-size:13px;display:grid}dt{color:#8b9685}dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.dl-row{display:contents}.items-panel{margin-top:24px}.item-row{border-top:1px solid #e8eddf;grid-template-columns:2.5fr 1fr 1fr 1fr;gap:15px;padding:14px 0;font-size:13px;display:grid}.item-row span:last-child{text-align:right}.item-heading{color:#93a087;font-size:11px}.detail-footer{justify-content:space-between;align-items:center;margin-top:28px;display:flex}.editor{max-width:850px}.editor>.panel{margin-bottom:22px}.form-grid{grid-template-columns:1fr 1fr;gap:22px;display:grid}.wide{grid-column:1/-1}label{color:#536a48;font-size:12px;font-weight:500;display:block}input,textarea,select{color:#314f2e;background:#fff;border:1px solid #d5dfce;border-radius:6px;width:100%;min-height:43px;margin-top:7px;padding:10px 12px}textarea{resize:vertical}label small{color:#9aa58f;margin-top:5px;font-size:10px;font-weight:400;display:block}.item-editor{grid-template-columns:2.2fr .7fr .8fr .9fr;align-items:end;gap:10px;margin-bottom:15px;display:grid}.item-tools{padding-bottom:5px;display:flex}.form-footer{justify-content:flex-end;gap:10px;margin-top:20px;display:flex}summary{cursor:pointer;justify-content:space-between;align-items:center;font-weight:600;display:flex}details[open]>summary{margin-bottom:24px}.checkbox{align-items:center;gap:10px;font-weight:400;line-height:1.5;display:flex}.checkbox input{accent-color:#1d5748;width:18px;height:18px;min-height:18px;margin:0}.account-grid{grid-template-columns:1fr 1fr;gap:24px;display:grid}.account-grid p{font-size:14px}.auth-page{grid-template-columns:1fr 1fr;min-height:100vh;display:grid}.auth-story{background:#e8efdf;flex-direction:column;justify-content:space-between;min-height:100vh;padding:50px 12%;display:flex}.auth-story h1{color:#2b5032;font-size:56px;font-weight:600;line-height:1.13}.auth-story p{color:#7c8f6e;font-size:16px}.auth-story>div{margin:55px 0}.auth-story small{color:#80956e}.story-receipt{background:#f9fbf4;border:1px solid #d5e2c9;border-radius:10px;max-width:330px;margin-top:40px;padding:25px;transform:rotate(-2deg);box-shadow:0 18px 35px #526d2520}.story-receipt>span{letter-spacing:.15em;color:#9cae86;font-size:9px}.story-receipt>div{color:#6f8757;gap:10px;padding-top:15px;font-size:12px;display:flex}.auth-form{width:100%;max-width:420px;margin:auto;padding:50px 35px}.auth-form h2{font-size:30px}.auth-form>.muted{margin-bottom:25px;font-size:13px}.auth-form label{margin-bottom:20px}.auth-form>a{margin-top:20px;font-size:12px;display:inline-block}.auth-form>p{margin-top:15px;font-size:12px}.demo-entry{border-top:1px solid #e1e8db;margin-top:30px;padding-top:23px}.demo-entry strong{font-size:13px}.demo-entry p{color:#8c9b81;margin-top:6px;font-size:12px}.small-page{max-width:460px;margin:90px auto;padding:35px}.small-page h1{font-size:28px}.small-page .primary{margin:20px 0}.center{place-items:center;min-height:100vh;display:grid}@media (width<=1050px){main{padding:35px 25px}.filters{gap:8px}.table-head,.transaction-row{grid-template-columns:1.7fr .9fr .9fr 1fr 1fr 15px;gap:8px}.auth-story h1{font-size:43px}.export-ready{flex-wrap:wrap}}@media (width<=760px){main{padding:28px 18px 100px}.topbar{height:var(--app-header-offset);padding:env(safe-area-inset-top,0px) 20px 0}.topbar .brand{font-size:17px}.topbar nav{z-index:10;padding:8px 0 max(8px, env(safe-area-inset-bottom));background:#fff;border-top:1px solid #d8e2cf;justify-content:space-around;gap:0;display:flex;position:fixed;bottom:0;left:0;right:0}.topbar nav a{flex-direction:column;gap:3px;padding:4px 20px;font-size:10px}.user-avatar{margin-left:auto}.demo-strip{font-size:10px}h1{font-size:28px}.page-heading{flex-direction:column;align-items:flex-start;margin-bottom:25px}.page-heading p{font-size:13px}.page-heading .actions{justify-content:flex-start;width:100%}.library-tabs{gap:25px;margin-bottom:17px}.filters{padding:15px}.filters .search{flex-basis:100%}.filters select{flex:1;max-width:100%}.date-filter{flex:1}.date-filter input{width:100%;min-width:100px}.table-head{display:none}.transaction-row{grid-template-columns:1fr auto;gap:9px;padding:18px 15px;display:grid}.merchant{grid-row:1}.merchant strong{font-size:13px}.receipt-tile{width:34px;height:40px}.row-amount{grid-area:1/2;font-size:12px}.row-date{grid-area:2/1;padding-left:48px;font-size:11px}.row-status{text-align:right;grid-area:2/2}.row-category,.row-arrow{display:none}.table-footer{padding:12px 15px;font-size:10px}.table-footer svg{display:none}.table-footer{justify-content:space-between}.add-grid,.detail-grid,.account-grid{grid-template-columns:1fr}.add-card{padding:24px}.add-card p{min-height:0}.add-card h2{margin-top:15px}.panel{padding:22px}.library{padding:0}.no-receipt{min-height:200px}.form-grid{gap:18px}.item-editor{border-bottom:1px solid #e5ebdd;grid-template-columns:1fr 1fr;gap:10px;padding-bottom:15px}.item-editor>label:first-child{grid-column:1/-1}.item-tools{justify-content:flex-end}.editor>.panel{padding:20px}.item-row{grid-template-columns:1.4fr .6fr .8fr .9fr;gap:7px;font-size:11px}.detail-footer{align-items:flex-start;gap:15px}.auth-page{display:block}.auth-story{min-height:0;padding:25px}.auth-story>div,.auth-story small{display:none}.auth-form{padding:40px 25px}.small-page{margin:35px 20px}.export-ready{align-items:stretch}.export-ready>div{flex-basis:100%}}@media (prefers-reduced-motion:no-preference){button,a{transition:background .15s,border-color .15s}}.upload-grid{gap:16px;margin:24px 0;display:grid}.upload-row{border:1px solid #e5e9e3;border-radius:12px;grid-template-columns:100px minmax(0,1fr) auto;align-items:center;gap:20px;padding:16px;display:grid}.upload-row small{color:#6e7d72;margin-top:5px;display:block}.upload-photo{background:#f4f5f1;border-radius:8px;justify-content:center;align-items:center;height:110px;display:flex;overflow:hidden}.upload-photo img{object-fit:contain;max-width:90px;max-height:100px}.error-text{color:#a63832}progress{accent-color:#174d43;width:100%}.original img{object-fit:contain;max-width:100%;max-height:650px}.proposal-options{gap:12px;display:grid}.proposal-options label{align-items:start;gap:10px;display:flex}.proposal-options input{width:auto}.upload-row strong{overflow-wrap:anywhere}@media (width<=600px){.upload-row{grid-template-columns:70px minmax(0,1fr);gap:12px;padding:12px}.upload-photo{height:90px}.upload-photo img{max-width:60px;max-height:80px}.upload-row>.actions{grid-column:2}}.payment-editor{border-bottom:1px solid #e5e9e3;margin-bottom:20px;padding:16px 0}.reading-json{white-space:pre-wrap;overflow-wrap:anywhere;max-height:24rem;font-size:.85rem;overflow:auto}.receipt-editor-layout{grid-template-columns:minmax(280px,.85fr) minmax(0,1.3fr);align-items:start;gap:24px;display:grid}.receipt-editor-layout .editor{max-width:none}.receipt-reference{top:calc(var(--app-header-offset) + 24px);min-width:0;position:sticky}.crop-dialog{width:min(600px,100vw - 32px);max-height:calc(100dvh - 32px);color:inherit;border:0;border-radius:16px;padding:24px;overflow:auto}.crop-dialog::backdrop{background:#0f1e19a6}.crop-stage{touch-action:none;cursor:crosshair;width:fit-content;max-width:100%;margin:12px auto;position:relative;overflow:hidden}.crop-stage canvas{width:auto;max-width:100%;height:auto;max-height:48vh;display:block}.crop-selection{pointer-events:none;background:#ffca6314;border:3px solid #ffca63;position:absolute;box-shadow:0 0 0 10000px #0006}.crop-edges{grid-template-columns:1fr 1fr;gap:12px;display:grid}.crop-dialog .actions{flex-wrap:wrap}.upload-photo canvas{object-fit:contain;max-width:100%;max-height:220px}@media (width<=850px){.receipt-editor-layout{grid-template-columns:1fr}.receipt-reference{position:static}.crop-dialog{padding:16px}}.receipt-reference-heading{justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;display:flex}.receipt-reference-heading h2{margin:0}.crop-dialog .actions{background:#fff;padding:12px 0;position:sticky;bottom:-24px}@media (width<=850px){.receipt-reference{top:calc(var(--app-header-offset) + 8px);z-index:5;max-height:45dvh;padding:12px;position:sticky;overflow:auto;box-shadow:0 4px 12px #0f1e191a}.receipt-reference-help{display:none}.receipt-reference-heading,.receipt-reference label{margin-bottom:8px}.receipt-reference p{margin:6px 0 0}.receipt-editor-layout input,.receipt-editor-layout select,.receipt-editor-layout textarea{scroll-margin-top:48dvh}.crop-dialog .actions{bottom:-16px}}summary{gap:12px;list-style:none}summary::-webkit-details-marker{display:none}summary:after{content:"";border-bottom:2px solid;border-right:2px solid;flex-shrink:0;width:8px;height:8px;margin:0 4px 4px 8px;transform:rotate(45deg)}details[open]>summary:after{margin-bottom:0;transform:rotate(225deg)}.disclosure-arrow.expanded{transform:rotate(180deg)}.receipt-photo-open{color:#245e50;background:#f4f5f0;border:0;border-radius:8px;flex-direction:column;align-items:center;gap:10px;width:100%;padding:12px;display:flex}.receipt-photo-open img{object-fit:contain;width:auto;max-width:100%;max-height:55vh}.receipt-photo-open span{align-items:center;gap:6px;display:flex}.receipt-reference .receipt-photo-open img{max-height:38vh}.receipt-viewer{width:min(1200px,100vw - 24px);max-width:none;height:calc(100dvh - 24px);max-height:none;color:inherit;border:0;border-radius:12px;padding:16px;display:none}.receipt-viewer[open]{flex-direction:column;gap:8px;display:flex}.receipt-viewer::backdrop{background:#0f1e19cc}.receipt-viewer-heading,.receipt-viewer-tools{align-items:center;gap:10px;display:flex}.receipt-viewer-heading{justify-content:space-between}.receipt-viewer-heading h2{margin:0}.receipt-viewer-tools{flex-wrap:wrap}.receipt-viewer-tools span{text-align:center;min-width:90px}.receipt-viewer-hint{margin:0;font-size:13px}.receipt-viewer-viewport{background:#e8ece7;border-radius:8px;flex:1;min-height:0;overflow:auto}.receipt-viewer-canvas{justify-content:center;align-items:center;display:flex}.receipt-viewer-canvas img{-webkit-user-select:none;user-select:none;max-width:none;max-height:none;display:block}@media (width<=850px){.receipt-reference .receipt-photo-open img{max-height:20dvh}.receipt-viewer{border-radius:0;width:100vw;height:100dvh;padding:12px}}.library-search{padding:16px 20px 8px}.library-search .search{border:1px solid #d8e2cf;border-radius:8px;align-items:center;gap:10px;padding:0 12px;display:flex}.library-search input{background:0 0;border:0;width:100%;min-width:0;margin-top:0;padding:12px 0}.library-filter-panel{border-bottom:1px solid #e5ebdd;padding:0 20px 12px}.library-filter-panel>summary{color:#456358;min-height:44px;font-size:14px}.library-filter-panel .filters{border:0;grid-template-columns:repeat(3,minmax(0,1fr));padding:8px 0;display:grid}.library-filter-panel label{min-width:0;margin:0}.library-filter-panel select,.library-filter-panel input{width:100%;min-width:0;max-width:none;margin-top:6px}.capture-options{margin-top:16px}.receipt-mode{border:0;padding:0}.receipt-mode legend{margin-bottom:12px}.receipt-mode label{align-items:center;gap:10px;padding:10px 0;display:flex}.receipt-mode input{width:auto;margin:0}.purchase-extra{border-top:1px solid #e5ebdd;margin-top:16px;padding-top:14px}.purchase-extra dl{margin-bottom:0}.account-disclosure>.panel{box-shadow:none;border:0;margin:0;padding:0}.account-grid{flex-direction:column;max-width:720px;display:flex}.account-disclosure>.panel>h2{display:none}.item-extra{grid-column:1/-1}.item-extra>summary{font-size:13px;font-weight:500}.item-extra .form-grid{margin-top:12px}.item-tools{grid-column:1/-1}.save-explanation{font-size:13px}.topbar nav a.active{color:#174d43;background:#eaf1eb;border-radius:8px}.upload-options{margin:12px 0}.upload-options summary{min-height:44px;font-size:14px}.crop-fine-tune{margin:12px 0}.crop-fine-tune summary{min-height:44px;font-size:14px}.upload-panel:has(.upload-row:only-child) .upload-row{grid-template-columns:1fr}.upload-panel:has(.upload-row:only-child) .upload-photo{background:#f4f5f0;border-radius:8px;justify-content:center;padding:12px;display:flex}:is(.upload-panel:has(.upload-row:only-child) .upload-photo img,.upload-panel:has(.upload-row:only-child) .upload-photo canvas){width:auto;max-width:100%;max-height:280px}.upload-panel:has(.upload-row:only-child) .upload-row small{display:none}.transaction-management .detail-footer{border:0;margin-top:0;padding-top:0}@media (width<=760px){main{padding:20px 16px calc(110px + env(safe-area-inset-bottom))}.topbar{height:var(--app-header-offset);padding:env(safe-area-inset-top,0px) 16px 0;gap:12px}.topbar nav{padding:6px 8px max(6px, env(safe-area-inset-bottom))}.topbar nav a{min-width:80px;min-height:52px;padding:6px 12px;font-size:12px}.page-heading{gap:12px;margin-bottom:20px}.page-heading .eyebrow{display:none}.page-heading h1{margin:0;font-size:26px}.page-heading p{margin:8px 0 0}.back{margin-bottom:16px}.library-heading{flex-direction:row;justify-content:space-between;align-items:center}.library-heading p{display:none}.library-heading .actions{width:auto}.library-heading .actions span{display:none}.library-heading .actions .primary,.library-heading .actions .secondary{min-width:44px;padding:12px}.library-tabs{grid-template-columns:1fr 1fr;gap:8px;display:grid}.library-tabs button{padding:12px 0;font-size:14px}.library-search{padding:12px 12px 0}.library-filter-panel{padding:0 12px 8px}.library-filter-panel .filters{grid-template-columns:1fr;gap:12px}.library-filter-panel .filters input,.library-filter-panel .filters select{min-height:48px;font-size:16px}.date-filter{display:block}.transaction-row{padding:16px 12px}.merchant{min-width:0}.merchant strong{overflow-wrap:anywhere;font-size:15px;display:block}.row-amount{font-size:14px}.row-date{font-size:12px}.table-footer,.quiet-note{display:none}.add-grid{gap:12px}.add-card{grid-template-columns:48px minmax(0,1fr) 20px;align-items:center;gap:12px;min-height:84px;padding:16px;display:grid}.add-card .big-icon{grid-area:1/1;width:48px;height:48px}.add-card h2{grid-area:1/2;margin:0;font-size:18px}.add-card p{display:none}.add-card .card-action{grid-area:1/3;margin:0;font-size:0}.panel{border-radius:12px;padding:18px}.panel.library{padding:0}.detail-grid>.summary{order:-1}.no-receipt{min-height:0;padding:16px}.no-receipt svg,.no-receipt p{display:none}.no-receipt h3{margin:0;font-size:15px}.total-display{margin:16px 0;font-size:30px}.section-title h2{font-size:18px}.detail-grid dl{gap:10px 12px}.item-heading{display:none}.item-row{grid-template-columns:minmax(0,1fr) auto;padding:12px 0;font-size:14px}.item-row strong{overflow-wrap:anywhere;grid-area:1/1;min-width:0}.item-row>span:nth-of-type(3){text-align:right;grid-area:1/2}.item-row>span:first-of-type{color:#65756e;grid-area:2/1;font-size:12px}.item-row>span:first-of-type:before{content:"Qty: "}.item-row>span:nth-of-type(2){color:#65756e;grid-area:2/2;font-size:12px}.item-row>span:nth-of-type(2):before{content:"Unit: "}input,select,textarea{font-size:16px}button,.primary,.secondary,.icon-button,summary{min-height:44px}.form-grid{gap:14px}.item-editor{grid-template-columns:repeat(3,minmax(0,1fr))}.item-editor label input{width:100%;min-width:0}.item-editor>label:first-child{grid-column:1/-1}.item-extra .form-grid{grid-template-columns:1fr}.form-footer{bottom:calc(72px + env(safe-area-inset-bottom));z-index:6;background:#fff;border:1px solid #d8e2cf;border-radius:12px;gap:10px;margin-top:12px;padding:12px;display:flex;position:sticky;box-shadow:0 4px 16px #0f1e1914}.form-footer .primary{flex:1}.receipt-reference{max-height:210px;top:calc(var(--app-header-offset) + 6px);padding:10px 12px}.receipt-reference-heading h2{font-size:16px}.receipt-reference-photo{min-width:0}.receipt-reference .receipt-photo-open{flex-direction:row;justify-content:center;gap:16px;padding:6px}.receipt-reference .receipt-photo-open img{max-width:96px;max-height:72px}.receipt-reference .receipt-photo-open span{font-size:13px}.receipt-reference p:has(a[download]){margin-top:4px;font-size:12px}.receipt-editor-layout input,.receipt-editor-layout select,.receipt-editor-layout textarea{scroll-margin-top:230px;scroll-margin-bottom:170px}.crop-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px}.crop-stage canvas{max-height:48dvh}.crop-dialog .actions{bottom:-16px}.auth-form{padding:24px 20px}.small-page{margin:24px 16px;padding:20px}}.library-search .search svg{flex-shrink:0;position:static}.receipt-options{margin-top:12px}.receipt-options>summary{font-size:14px}@media (width<=760px){.detail-grid .receipt-photo-open img{max-height:30dvh}}.password-toggle{align-items:center;gap:6px;margin:-12px 0 16px;display:flex}.page-heading h1,.detail-grid dd{overflow-wrap:anywhere}@media (width<=760px){.row-amount{overflow-wrap:anywhere;max-width:40vw}.form-grid>label{min-width:0}}.editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor .form-grid>label{min-width:0}.editor input,.editor select,.editor textarea{min-width:0;max-width:100%}.editor input[type=date],.editor input[type=time]{width:100%;appearance:none;inline-size:100%;min-inline-size:0;max-inline-size:100%;display:block}.editor input::-webkit-date-and-time-value{text-align:left;min-width:0}.editor input::-webkit-datetime-edit{min-width:0;padding:0}.photo-choice{text-align:left;color:#253c36;background:#fff;border:1px solid #d5dfce;border-radius:10px;grid-template-columns:24px minmax(0,1fr) 20px;align-items:center;gap:14px;width:100%;margin:14px 0;padding:18px;display:grid}.photo-choice:hover{background:#f6f9f5;border-color:#245e50}.photo-choice strong,.photo-choice small{display:block}.photo-choice strong{font-size:16px}.photo-choice small{color:#65756e;margin-top:5px}@media (width<=760px){.editor .mobile-wide{grid-column:1/-1}.photo-choice{gap:10px;padding:16px 12px}}.upload-row>div{min-width:0}.upload-row .actions button{white-space:normal;max-width:100%}.upload-panel .actions{flex-wrap:wrap}html{scroll-padding-top:calc(var(--app-header-offset) + 12px)}.topbar .user-avatar{flex:0 0 44px;justify-content:center;align-items:center;width:44px;height:44px;line-height:1;display:flex}.topbar .user-avatar:hover{background:#dbe8df;text-decoration:none}.topbar a:focus-visible{outline-offset:3px;outline:2px solid #174d43}@media (width<=760px){:root{--app-header-height:56px}.receipt-reference{max-height:min(210px,30dvh)}}.connection-notice{margin-bottom:1rem}.offline-change{overflow-wrap:anywhere;border-top:1px solid #dce4de;margin-top:1rem;padding-top:1rem}.offline-change .actions{flex-wrap:wrap}.offline-change dl{display:block}.offline-change dl div{margin-block:.75rem}.queued-photos{margin-bottom:1rem}.receipt-pages{min-width:0}.receipt-page-navigation{min-width:0;margin:8px 0}.receipt-page-stepper{justify-content:space-between;align-items:center;gap:8px;display:flex}.receipt-page-stepper button{min-width:44px;min-height:44px;padding:8px}.receipt-page-stepper [role=status]{text-align:center;font-weight:600}.receipt-page-strip{gap:8px;padding:8px 0;display:flex}.receipt-page-strip button{flex:1 1 0;min-width:0;min-height:44px;padding:8px 4px}.receipt-page-strip button[aria-current=true]{color:#fff;background:#245e50;border-color:#245e50}.receipt-photo-open{touch-action:pan-y}.receipt-viewer .receipt-page-navigation{flex-shrink:0}.receipt-viewer-viewport:focus-visible{outline-offset:-3px;outline:3px solid #245e50}@media (width<=760px){.receipt-reference .receipt-pages>.receipt-page-navigation{margin:4px 0}.receipt-reference .receipt-pages>.receipt-page-navigation .receipt-page-strip,.receipt-reference .receipt-pages>.receipt-image-share{display:none}.receipt-reference .receipt-pages>p:has(a[download]){display:none}.receipt-reference-heading{margin-bottom:4px}}
