:root{font-family:-apple-system,BlinkMacSystemFont,Hiragino Sans,Noto Sans JP,sans-serif;color:#202520;background:#f5f6f2;font-synthesis:none;--green: #32765f;--muted: #7b807b;--bg: #f5f6f2}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:0;background:none;color:var(--green);cursor:pointer;min-height:44px;padding:8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;touch-action:manipulation}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #e3a35b;outline-offset:3px}input,textarea,select{font-size:16px;max-width:100%;min-width:0;background:transparent;color:inherit;border:0;border-radius:4px;padding:8px 2px;outline-offset:2px}input:not([type=checkbox]):not([type=date]),textarea{width:100%}input[type=date]{min-height:42px;max-width:165px}input:focus,textarea:focus{outline:2px solid #32765f55}textarea{min-height:88px;resize:vertical}select{color:var(--green)}h1,h2,h3,p{margin:0}h1{font-size:34px;letter-spacing:-1px;font-weight:750}h2{font-size:20px;line-height:1.5}h3{font-size:15px;font-weight:650}p{line-height:1.7}small,.footnote{font-size:12px;color:var(--muted);line-height:1.7}svg{flex-shrink:0}a{color:var(--green)}.app{max-width:620px;margin:auto;min-height:100dvh}.page-header{padding:calc(20px + env(safe-area-inset-top)) 20px 4px;display:flex;align-items:center;justify-content:space-between}.page-header>div{display:flex}.content{padding:20px 20px calc(100px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:22px}.caption{display:flex;flex-direction:column;gap:6px}.caption h2{font-size:19px}.caption p{font-size:14px;color:var(--muted)}.card{background:#fff;border-radius:22px;padding:20px}.capture{border-radius:28px;padding:38px 24px 24px;display:flex;flex-direction:column;align-items:center;gap:22px;text-align:center}.capture p{font-size:14px;line-height:1.5;color:var(--muted);margin-top:8px}.scan-art{width:132px;height:148px;border-radius:26px;background:#32765f12;display:grid;place-items:center;color:var(--green)}.primary,.secondary{width:100%;border-radius:12px;min-height:56px;font-size:17px;font-weight:650;padding:14px 10px}.primary{background:var(--green);color:#fff}.secondary{background:#32765f13;color:var(--green)}.capture .secondary{margin-top:-10px}.guidance{padding:0 8px;display:flex;flex-direction:column;gap:12px}.guidance h3{display:flex;align-items:center;gap:8px}.guidance p{color:var(--muted);font-size:12px}.text-button{font-size:15px}.tabs{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:620px;background:#fafbf9f5;backdrop-filter:blur(16px);border-top:1px solid #dfe3df;display:flex;padding:6px 0 calc(6px + env(safe-area-inset-bottom));z-index:10}.tabs button{flex:1;flex-direction:column;gap:4px;color:#929790;font-size:10px;min-height:49px}.tabs button.active{color:var(--green)}.tabs svg{width:24px;height:24px}.row{display:flex;align-items:center;gap:12px}.spread{justify-content:space-between}.content>.row{font-size:13px}.row input{min-width:0}.row>div{min-width:0}.search{display:flex;align-items:center;gap:6px;border-radius:10px;background:#e9ece7;padding:0 10px;color:#888f87}.search input{font-size:15px}.form{display:flex;flex-direction:column;gap:10px}.field{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:46px;border-bottom:1px solid #eeefec;font-size:14px}.field>span{flex-shrink:0}.field>input{text-align:right}.total-card{background:var(--green);color:#fff;border-radius:24px;padding:24px;display:flex;flex-direction:column;gap:12px}.total-card p{font-size:14px;opacity:.8}.total-card>strong{font-size:38px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-1px}.total-card .row{font-size:12px}.segments{background:#e7e9e4;padding:3px;border-radius:9px;display:flex}.segments button{flex:1;font-size:13px;min-height:30px;padding:5px;color:#30362f;border-radius:7px}.segments .selected{background:#fff;box-shadow:0 2px 4px #0002}.entry-list{padding:0;overflow:hidden}.entry-list>button{width:100%;text-align:left;padding:16px;gap:12px;color:inherit;justify-content:flex-start;border-bottom:1px solid #eee}.entry-list>button:last-child{border:0}.category-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;flex-shrink:0}.entry-description{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.entry-description strong{font-size:14px}.entry-description small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.entry-list>button>strong{font-size:14px;white-space:nowrap}.empty{text-align:center;padding:48px 0;color:var(--muted)}.empty h2{margin:15px 0 10px;color:#262e27}.empty p{font-size:13px}.donut{margin:4px auto 26px;width:230px;height:230px;border-radius:50%;display:grid;place-items:center}.donut>div{border-radius:50%;background:#fff;width:158px;height:158px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.donut strong{font-size:21px}table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:14px 0;text-align:left}th:last-child,td:last-child{text-align:right}thead{font-size:12px;color:var(--muted)}thead,tfoot{border-top:1px solid #eee;border-bottom:1px solid #eee}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:10px}.excel-icon{display:grid;place-items:center;background:#32765f12;border-radius:14px;color:var(--green);width:56px;height:56px;flex-shrink:0}.excel-icon+h3{margin:0}.calendar{margin:12px 0}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.calendar-grid small{text-align:center;padding:12px 0}.calendar-grid button{border-radius:50%;min-height:38px;width:38px;justify-self:center;color:inherit;font-size:17px}.calendar-grid button.chosen{background:var(--green);color:#fff}.dates{border-top:1px solid #eee;padding-top:12px;gap:4px}.dates input{font-size:12px;width:44%}.export-total{padding:0 8px}.export-total>div{display:flex;flex-direction:column;gap:6px}.export-total>div:last-child{text-align:right}.export-total strong{font-size:20px}details summary{cursor:pointer;color:var(--green);font-size:14px}details p{margin:14px 0}details>button{display:flex;justify-content:flex-start;text-align:left}.sheet{padding:0;border:0;background:var(--bg);color:inherit;width:100%;max-width:620px;max-height:94dvh;height:auto;min-height:260px;border-radius:22px 22px 0 0;margin:auto auto 0;overflow:auto;box-shadow:0 0 50px #0002}.sheet::backdrop{background:#0006}.sheet-header{position:sticky;top:0;z-index:2;background:#f5f6f2f5;backdrop-filter:blur(16px);border-bottom:1px solid #ddd;display:grid;grid-template-columns:80px 1fr 80px;align-items:center;text-align:center;padding:8px 12px}.sheet-header>button{justify-self:start}.sheet-header>span{justify-self:end}.sheet-header strong,.sheet-header button{font-size:16px}.sheet-body{padding:24px 20px calc(28px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:20px}.sheet-body>h3{color:var(--muted);font-size:12px;font-weight:500;padding-left:12px;margin-bottom:-10px}.draft-item{border-bottom:1px solid #eee;padding:8px 0 12px}.draft-item .row{gap:8px}.draft-item .amount-input{width:100px!important;flex:1}.draft-item select{max-width:48%}.draft-item small{display:block;margin:6px 0}.danger{color:#c7514b}.warning{color:#af722e}.receipt-image{width:100%;height:280px;object-fit:contain;background:#fff;border-radius:18px;margin-top:12px}.confirm{display:flex;align-items:center;justify-content:space-between;font-size:13px;gap:10px}.confirm input{appearance:none;flex-shrink:0;width:44px;height:27px;border-radius:20px;background:#d9ddd7;padding:3px;transition:background .15s}.confirm input:before{content:"";display:block;border-radius:50%;width:21px;height:21px;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .15s}.confirm input:checked{background:var(--green)}.confirm input:checked:before{transform:translate(17px)}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.list{padding:6px 16px}.list button{display:flex;width:100%;justify-content:flex-start;padding:12px 0;border-bottom:1px solid #eee}.list button span:nth-child(2){flex:1;text-align:left}.colors{display:flex;justify-content:space-between}.colors button{width:34px;height:34px;min-height:34px;border-radius:50%;padding:0;color:#fff}.busy{position:fixed;z-index:1000;bottom:calc(90px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);width:max-content;max-width:90%;background:#fff;box-shadow:0 4px 30px #0003;border-radius:14px;padding:18px;display:flex;align-items:center;gap:12px;font-size:13px}.spinner{border:2px solid #d4dfd8;border-top-color:var(--green);width:22px;height:22px;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.center-screen,.login{min-height:100dvh;max-width:540px;margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 24px;gap:20px;text-align:center}.login h1{font-size:30px}.login>p{color:var(--muted)}.login .card{margin-top:12px;padding:28px 24px;display:flex;flex-direction:column;gap:22px;width:100%}.login .card p{font-size:13px;color:var(--muted)}.brand-icon{background:#32765f13;color:var(--green);width:100px;height:100px;border-radius:28px;display:grid;place-items:center}.update-bar{padding:12px 20px;background:#e5eee7;display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;font-size:13px}.update-bar small{width:100%}@media(min-width:700px){.sheet{margin:auto;border-radius:22px;max-height:90dvh}.app{border-left:1px solid #e9ece7;border-right:1px solid #e9ece7}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}.primary,.secondary{border-radius:999px;min-height:64px}.capture .secondary{margin-top:0;background:#32765f2b}.tabs{bottom:calc(10px + env(safe-area-inset-bottom));width:calc(100% - 96px);max-width:360px;border:5px solid #ffffffd9;border-radius:999px;box-shadow:0 5px 24px #263a291c;padding:0;background:#f8faf6df}.tabs button{border-radius:999px;min-height:52px;color:#252b25}.tabs button.active{background:#dce3dc8c}.tabs button span{font-size:11px;font-weight:550}@media(display-mode:standalone){.page-header{padding-top:calc(42px + env(safe-area-inset-top))}}@media(max-width:350px){.tabs{width:calc(100% - 40px)}}.tab-page{display:flex;flex-direction:column;gap:22px}.tab-page[hidden]{display:none}
