﻿@font-face{font-family:Roboto;src:url('/fonts/roboto-latin-400-normal.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Roboto;src:url('/fonts/roboto-latin-500-normal.woff2') format('woff2');font-weight:500 600;font-display:swap}
@font-face{font-family:Roboto;src:url('/fonts/roboto-latin-700-normal.woff2') format('woff2');font-weight:700 900;font-display:swap}
:root{--paper:#fff;--ink:#152d2a;--action:#006b5e;--on-primary:#fff;--primary-container:#a8f2da;--secondary-container:#d6e7df;--workspace:#e9efea;--surface:#f6faf6;--surface-high:#e0eae3;--muted:#50645c;--line:#bccdc4;--error:#a9232e;--error-container:#ffdadc;--tertiary:#725900;--tertiary-container:#ffe79a;--spring:cubic-bezier(.2,.8,.2,1);font-family:Roboto,Arial,sans-serif;color:var(--ink);background:var(--surface);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:var(--action)}button{cursor:pointer;min-height:48px;padding:12px 24px;border:0;border-radius:28px;font-weight:600;font-size:15px;transition:background .2s,border-radius .25s var(--spring),transform .2s var(--spring)}button:hover{filter:brightness(.95)}button:active{border-radius:14px;transform:scale(.97)}button:disabled{opacity:.45;cursor:not-allowed;transform:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--action);outline-offset:4px}.primary{background:var(--action);color:var(--on-primary)}.secondary{background:var(--secondary-container);color:#203e34}.text-button{background:transparent;color:var(--action);padding:10px 14px}.danger{color:var(--error)}[hidden]{display:none!important}
.app-header{height:88px;display:flex;align-items:center;gap:38px;padding:16px 40px;background:var(--surface)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:24px;letter-spacing:-.8px;white-space:nowrap}.brand svg{background:var(--primary-container);padding:8px;width:46px;height:46px;border-radius:16px;color:var(--action)}.brand span{font-weight:400}.brand b{font-weight:700}nav{display:flex;gap:4px;align-items:center;margin:auto}nav a{display:flex;align-items:center;gap:8px;padding:12px 16px;border-radius:24px;text-decoration:none;font-size:14px;font-weight:500;color:var(--muted);transition:background .25s var(--spring),border-radius .25s var(--spring)}nav a:hover{background:var(--workspace)}nav a[aria-current=page]{background:var(--primary-container);color:#004e40;border-radius:16px;font-weight:700}.nav-icon{display:flex;align-items:center;justify-content:center}.nav-icon svg{width:22px;height:22px}#record-count{font-size:11px;min-width:18px;text-align:center;background:var(--action);color:white;border-radius:9px;padding:2px 4px}.app-tools{max-width:1200px;margin:auto;display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:6px 32px 0}.app-tools button{min-height:44px;padding:10px 18px;display:flex;align-items:center;gap:7px}.app-tools button svg{width:18px;height:18px}.app-tools small{font-size:12px;color:var(--muted)}main{max-width:1200px;margin:auto;padding:24px 32px 60px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px}h1{font-size:44px;line-height:1.12;letter-spacing:-1.7px;font-weight:700;margin:0 0 12px}h2{font-size:24px;line-height:1.25;letter-spacing:-.5px;margin:0 0 12px}h3{font-size:20px;margin:0 0 8px}p{margin:0 0 16px;line-height:1.5}.subtitle,.hint{color:var(--muted)}.subtitle{font-size:16px;margin:0;max-width:600px}.hint{font-size:14px}.date{color:var(--muted);font-size:14px;white-space:nowrap;background:var(--workspace);padding:12px 16px;border-radius:16px}
.capture-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;align-items:start}.capture-panel{background:var(--secondary-container);border-radius:32px;overflow:hidden}.panel-heading{display:flex;justify-content:space-between;gap:12px;padding:20px 24px;font-size:14px;font-weight:600}.panel-heading span:last-child{font-size:12px;color:var(--muted);font-weight:400}.viewfinder{position:relative;display:flex;align-items:center;justify-content:center;min-height:280px;padding:24px}.viewfinder:before,.viewfinder:after{content:'';position:absolute;width:32px;height:32px;border-style:solid;border-color:#6b9a89;pointer-events:none}.viewfinder:before{left:20px;top:6px;border-width:2px 0 0 2px;border-radius:18px 0 0 0}.viewfinder:after{right:20px;bottom:6px;border-width:0 2px 2px 0;border-radius:0 0 18px 0}.capture-placeholder{text-align:center;max-width:310px}.receipt{display:block;width:90px;height:100px;margin:0 auto 16px;padding:20px;background:var(--primary-container);border-radius:35% 50% 35% 50%;color:var(--action);transform:rotate(-6deg)}.capture-placeholder h2{font-size:27px;letter-spacing:-.7px}.capture-placeholder p{font-size:14px;color:var(--muted);margin:0}.viewfinder img,.viewfinder video{display:block;width:100%;height:300px;object-fit:contain;border-radius:16px}.capture-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;padding:18px 20px}.camera-button{display:inline-flex;align-items:center;justify-content:center;gap:10px}.capture-actions .primary{min-height:60px;font-size:18px;padding:16px 30px;border-radius:22px}.capture-actions .primary:active{border-radius:32px}.capture-actions .secondary{background:#f6faf6}.capture-foot{padding:14px 24px 20px;color:var(--muted);font-size:12px;line-height:1.5}.details-panel{padding:24px;background:var(--workspace);border-radius:28px}.details-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.details-heading h2{margin:0}.field-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.field-row>div{min-width:0}label{display:block;font-size:13px;font-weight:500;margin:12px 0 6px}input,select,textarea{display:block;min-width:0;width:100%;min-height:52px;padding:13px 14px;border:1px solid transparent;border-bottom-color:#6e8177;border-radius:12px 12px 4px 4px;background:#fdfefb;color:var(--ink);font-size:16px}input::placeholder,textarea::placeholder{color:#687a71}input:focus,select:focus,textarea:focus{border-bottom:2px solid var(--action)}.amount-field{position:relative}.amount-field span{position:absolute;left:14px;top:14px;color:var(--muted)}.amount-field input{padding-left:30px}#account-status{min-height:18px;font-size:12px;margin:8px 0 12px}.entry-actions{display:grid;grid-template-columns:2fr 1fr;gap:8px;margin-top:20px}.entry-actions button{width:100%}.save-button{width:100%;margin:20px 0 12px}.entry-actions .save-button{margin:0}.capture-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 4px}.capture-bottom p{margin:0;font-size:15px}.capture-bottom a{flex-shrink:0;font-size:14px;font-weight:600;padding:12px 14px;text-decoration:none;border-radius:24px;background:var(--tertiary-container);color:var(--tertiary)}
.toolbar{display:flex;gap:12px;margin-bottom:16px}.toolbar input{flex:1;max-width:520px;border:0;border-radius:28px;background:var(--workspace);padding-left:20px}.toolbar select{width:160px;border:0;border-radius:16px;background:var(--workspace)}#review-search{border:0;border-radius:28px;background:var(--workspace);margin:8px 0 24px;padding-left:20px}.mark-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-bottom:20px}.mark-toolbar .secondary{border-radius:24px 8px 8px 24px}.mark-toolbar .text-button{background:var(--workspace);border-radius:8px 24px 24px 8px}.mark-toolbar span{margin-left:auto;font-size:13px;font-weight:500;color:var(--muted)}.entry-card{display:flex;align-items:center;gap:16px;background:var(--workspace);border:2px solid transparent;border-radius:24px;padding:18px;margin:8px 0;min-width:0;transition:background .2s,border-color .2s}.entry-card:has(input:checked){background:#d0f1e3;border-color:var(--action)}.entry-mark{display:flex;align-items:center;justify-content:center;min-width:28px;min-height:48px;margin:0}.entry-mark input{width:22px;height:22px;min-height:22px;accent-color:var(--action)}button.entry-image{padding:0;background:transparent;border:0;flex-shrink:0;border-radius:12px}.entry-image img{display:block;width:58px;height:74px;object-fit:cover;border-radius:12px}.entry-info{flex:1;min-width:0;overflow-wrap:anywhere}.entry-info h2{font-size:25px;font-weight:700;margin:0 0 6px}.entry-kind{display:inline-block;background:var(--primary-container);color:#004e40;font-size:19px;font-weight:700;padding:4px 12px;border-radius:10px;margin-bottom:8px}.entry-info p{font-size:14px;margin:0;color:var(--muted)}.entry-info small{display:block;font-size:12px;margin-top:3px;color:var(--muted)}.entry-value{display:flex;flex-direction:column;align-items:flex-end;gap:12px}.entry-value strong{font-size:24px;font-weight:700;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.entry-value button{font-size:14px}.table-total{display:flex;justify-content:space-between;padding:20px 4px;font-weight:600}.review-report{margin-top:24px}.review-report-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.review-report-heading h2{font-size:22px;margin-bottom:6px}.review-report-heading p{margin:0}.review-report>.hint{overflow-wrap:anywhere}.resolved-label{margin-top:5px}
.archive-report{border-bottom:1px solid var(--line)}.archive-report summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;padding:20px 4px;min-height:72px;list-style:none}.archive-report summary::-webkit-details-marker{display:none}.archive-report summary strong{display:block;font-size:20px;letter-spacing:-.4px}.archive-report summary small{display:block;color:var(--muted);font-size:13px;margin-top:6px}.archive-toggle{padding:10px 18px;background:var(--secondary-container);border-radius:24px;color:#203e34;font-size:14px;font-weight:600}.archive-report[open] .archive-toggle{background:var(--primary-container)}.archive-report .when-open{display:none}.archive-report[open] .when-open{display:inline}.archive-report[open] .when-closed{display:none}.archive-report-content{padding:0 4px 16px}.archive-report-content>.hint{margin:12px 0;overflow-wrap:anywhere}.archive-list{list-style:none;padding:0;margin:16px 0 0}.archive-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(70px,1fr) auto minmax(110px,1fr) auto;gap:16px;align-items:center;padding:14px 0;border-top:1px solid var(--line)}.archive-account{min-width:0;overflow-wrap:anywhere}.archive-account strong{display:block;font-size:19px}.archive-account span,.archive-resolved{color:var(--muted);font-size:12px}.archive-type{font-size:17px;color:var(--action)}.archive-amount{text-align:right;font-variant-numeric:tabular-nums}.archive-row button{white-space:nowrap}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-panel{padding:28px;background:var(--workspace);border-radius:28px}.settings-panel button{margin-top:18px}.group-row{border-top:1px solid var(--line);padding:16px 0;display:flex;justify-content:space-between;gap:12px;overflow-wrap:anywhere}.group-row p{margin:6px 0 0;font-size:14px}.group-row button{margin:0;align-self:start}.history{margin-top:28px;padding:24px;background:var(--secondary-container);border-radius:24px}.history p{margin-bottom:0}.empty{text-align:center;padding:48px 24px;background:var(--workspace);border-radius:32px}.empty h2{font-size:28px}.empty p{color:var(--muted)}.empty a{display:inline-block;padding:14px 22px;border-radius:28px;background:var(--primary-container);font-weight:600;text-decoration:none}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:16px 22px;background:#233d34;color:#f0f8f1;border-radius:16px;box-shadow:0 4px 14px #15382920;z-index:10;max-width:calc(100% - 32px);width:max-content;font-size:14px}#notice.error{background:var(--error);color:white}.error-text{color:var(--error)}dialog{border:0;border-radius:32px;padding:28px;width:640px;max-width:calc(100% - 24px);max-height:90dvh;background:var(--surface);color:var(--ink);box-shadow:0 16px 50px #152d2a30}dialog[open]{animation:dialog-enter .24s var(--spring)}dialog::backdrop{background:#12251b88}.close{float:right;min-width:44px;min-height:44px;padding:0;background:var(--workspace);font-size:26px;line-height:1}.dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}#report-items{max-height:300px;overflow:auto;border-top:1px solid var(--line)}.report-line{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.report-line>div{min-width:0;overflow-wrap:anywhere}.report-line strong{font-size:20px}.report-kind{font-size:18px;font-weight:700;color:var(--action)}.report-line small{font-size:13px;color:var(--muted)}.report-photo{display:block;padding:8px 0}.report-line>strong{white-space:nowrap;font-variant-numeric:tabular-nums}#report-message{margin:16px 0 0;overflow-wrap:anywhere}.capture-preview{padding:0;border:0;background:transparent;width:100%;border-radius:16px}.image-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.image-heading h2{margin:0;overflow-wrap:anywhere}#image-dialog{width:960px}#image-viewport{max-height:68dvh;overflow:auto;background:var(--workspace);border-radius:20px}#preview-image{display:block;width:100%;height:65dvh;object-fit:contain}#image-viewport.zoomed #preview-image{width:auto;max-width:none;height:auto;min-width:100%}.image-controls{display:flex;align-items:center;gap:15px;margin-top:14px}.image-controls p{font-size:14px;margin:0;color:var(--muted)}.unlock-page{max-width:480px;margin:10vh auto;padding:36px;background:var(--workspace);border-radius:32px}.unlock-page h1{font-size:40px}main>ol{padding-left:24px;line-height:1.7}main>ol li{margin-bottom:12px}
@keyframes dialog-enter{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}
@media(min-width:801px) and (max-width:1100px){.app-header{padding:16px 24px;gap:16px}nav a{padding:12px 10px}.brand{font-size:21px}nav{gap:0}}
@media(max-width:800px){body:has(nav){padding-bottom:calc(88px + env(safe-area-inset-bottom))}.app-header{height:72px;padding:12px 20px;display:flex}.brand{font-size:23px}nav{position:fixed;bottom:0;left:0;right:0;z-index:5;margin:0;display:flex;justify-content:space-around;gap:0;background:var(--workspace);padding:8px 8px calc(10px + env(safe-area-inset-bottom));min-height:80px;border-top:1px solid #dce7df}nav a{position:relative;flex:1;min-width:0;flex-direction:column;gap:4px;padding:0 2px;font-size:11px;letter-spacing:.1px;border-radius:0}nav a[aria-current=page],nav a:hover{background:transparent;border-radius:0}.nav-icon{width:58px;height:32px;border-radius:20px;transition:background .25s,border-radius .25s var(--spring)}nav a[aria-current=page] .nav-icon{background:var(--primary-container);border-radius:12px}#record-count{position:absolute;top:-2px;right:10%;font-size:10px}.app-tools{padding:4px 20px 0;gap:10px}.app-tools button{min-height:44px}main{padding:18px 20px 32px}.page-heading{margin-bottom:20px;align-items:flex-start;gap:16px}h1{font-size:36px;letter-spacing:-1.2px}.subtitle{font-size:14px}.date{display:none}.capture-grid{grid-template-columns:1fr;gap:12px}.capture-panel{border-radius:28px}.viewfinder{min-height:220px;padding:18px}.viewfinder img,.viewfinder video{height:260px}.panel-heading{padding:16px 20px}.receipt{width:76px;height:84px;padding:15px;margin-bottom:12px}.capture-placeholder h2{font-size:25px}.capture-actions{padding:12px 18px;gap:8px}.capture-actions .primary{width:100%;min-height:56px}.capture-actions .secondary{flex:1;min-height:48px}.capture-foot{padding:8px 20px 18px}.details-panel{display:none;padding:18px;border-radius:24px}.photo-ready .details-panel{display:block}.photo-ready .page-heading,.photo-ready .panel-heading,.photo-ready .capture-foot,.photo-ready .capture-bottom{display:none}.photo-ready .viewfinder{min-height:88px;padding:8px}.photo-ready .viewfinder img{height:88px}.photo-ready .capture-actions{padding:0 12px 10px;gap:6px}.photo-ready .capture-actions button{flex:1;min-height:44px;padding:8px;font-size:14px}.photo-ready .viewfinder:before,.photo-ready .viewfinder:after{display:none}.details-heading{margin-bottom:4px}.details-heading h2{font-size:22px}#entry-form label{margin-top:6px}#entry-form input,#entry-form select{min-height:48px;padding:11px 12px}#entry-form .amount-field input{padding-left:28px}.amount-field span{top:12px}.entry-actions{margin-top:12px}#account-status{margin:6px 0}.capture-bottom{gap:12px;padding:18px 0}.capture-bottom p{font-size:13px}.capture-bottom .hint{font-size:12px}.capture-bottom a{padding:12px;font-size:12px}.settings-grid{grid-template-columns:1fr;gap:16px}.settings-panel{padding:22px}.entry-card{gap:10px;padding:14px 12px;flex-wrap:wrap;border-radius:22px}.entry-image img{width:42px;height:58px}.entry-info h2{font-size:22px}.entry-kind{font-size:18px;margin-bottom:6px}.entry-value{width:100%;flex-direction:row;justify-content:space-between;align-items:center;padding-top:8px;border-top:1px solid var(--line)}.entry-value strong{font-size:22px}.toolbar{gap:8px}.toolbar input{width:0}.toolbar select{width:128px;font-size:14px}.page-heading:has(#prepare-report){flex-wrap:wrap}.page-heading>#prepare-report{width:100%;min-height:52px}.review-report-heading{align-items:flex-start;flex-wrap:wrap}.review-report-heading h2{font-size:22px}.review-report-heading button{min-height:48px}.archive-row{grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:14px 0}.archive-account{grid-column:1;grid-row:1 / 3}.archive-type{grid-column:2;grid-row:1;text-align:right}.archive-amount{grid-column:2;grid-row:2}.archive-resolved{grid-column:1;grid-row:3}.archive-row button{grid-column:2;grid-row:3;padding:8px 0}.archive-report summary strong{font-size:19px}.archive-toggle{padding:10px 14px}.archive-report summary small{font-size:12px}dialog{padding:22px 18px;max-height:88dvh;border-radius:28px}.dialog-actions button{flex:1;min-height:48px;padding:12px 16px}.dialog-actions #send-report,.dialog-actions #mark-report,.dialog-actions #resolve-report{flex-basis:100%}.image-heading h2{font-size:20px}#preview-image{height:58dvh}#notice{bottom:calc(94px + env(safe-area-inset-bottom))}.unlock-page{margin:8vh 16px;max-width:none;padding:28px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
