:root{font-family:Inter,"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#243e3a;background:#f4f7f8;font-synthesis:none;--green:#137567;--dark:#143e35;--muted:#637775;--line:#e2e9e7}*{box-sizing:border-box}body{margin:0;font-size:16px}button,input,select{font:inherit}button,label,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,summary:focus-visible,.dropzone:focus-visible{outline:3px solid #45b2a0;outline-offset:3px}input:focus,select:focus{outline:2px solid #45b2a0;outline-offset:1px}input[type=checkbox]{accent-color:var(--green);width:17px;height:17px;flex-shrink:0}h1,h2,h3,p{margin-top:0}h2{font-size:1.18rem;letter-spacing:.02em}h3{font-size:1rem}p{line-height:1.8}.topbar{height:84px;padding:0 4vw;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;gap:4px;align-items:center;font-size:1.55rem;font-weight:750;letter-spacing:-1px;color:var(--dark);text-decoration:none}.brand-light{font-weight:400;margin-left:-3px}.logo{position:relative;width:36px;height:39px;background:var(--green);border-radius:7px 7px 12px 7px;color:white;display:grid;place-items:center;margin-right:8px;font-size:1.4rem;letter-spacing:0}.logo span{position:absolute;bottom:7px;right:7px;width:5px;height:5px;background:#b2e4d1;border-radius:50%}.beta{font-size:10px;letter-spacing:1px;font-weight:600;padding:4px 7px;background:#eef5f1;color:#32725c;border-radius:4px;margin-left:9px}.header-actions{display:flex;align-items:center;gap:22px;min-width:0}.license{font-size:.875rem;color:var(--muted);overflow-wrap:anywhere}.button{min-height:42px;border:1px solid #d4dfdb;border-radius:7px;background:white;color:#31544b;padding:10px 16px;font-size:.875rem;font-weight:600;transition:background .18s}.button:hover:not(:disabled){background:#edf5f1}.button.primary{background:var(--green);color:#fff;border-color:var(--green)}.button.primary:hover:not(:disabled){background:#0b5c51}.button.subtle{background:transparent}.button.small{padding:7px 12px;min-height:36px;font-size:.8125rem}.full{width:100%}main{max-width:1540px;padding:0 4vw;margin:auto}.intro{display:flex;justify-content:space-between;align-items:center;gap:36px;padding:47px 0 36px}.eyebrow{font-size:.6875rem;letter-spacing:2.1px;font-weight:700;color:#468675;margin-bottom:14px}h1{font-size:clamp(1.8rem,2.5vw,2.55rem);line-height:1.5;letter-spacing:.04em;margin-bottom:14px;font-weight:750}.lead{color:var(--muted);font-size:.9375rem;line-height:1.9;margin-bottom:0}.intro-note{display:flex;gap:15px;padding:20px 25px;border-left:2px solid #b7d4c8;font-size:.8125rem;color:#61766d;max-width:370px}.intro-note p{margin:0}.intro-note strong{font-size:.875rem;color:#315947}.note-icon{border:1px solid #97bba9;border-radius:50%;height:26px;width:26px;display:grid;place-items:center;flex-shrink:0;color:#468675}.steps{display:flex;align-items:center;border:1px solid var(--line);border-radius:8px;background:#fff;margin-bottom:24px;overflow:hidden}.steps>span{display:flex;gap:12px;align-items:center;font-size:.875rem;color:#788782;padding:16px 24px;flex:1;border-right:1px solid var(--line)}.steps>span:last-child{border:0}.steps b{height:25px;width:25px;border-radius:50%;display:grid;place-items:center;background:#eef2f1;font-size:.75rem}.steps .active{background:#edf6f1;color:var(--green);font-weight:650}.steps .active b{background:var(--green);color:white}.workspace{display:grid;grid-template-columns:302px minmax(0,1fr);gap:24px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 24px #1e504205}.upload-card{padding:24px}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}.section-heading h2,.section-heading h3{margin:0}.section-icon{font-size:1.2rem;color:#43856e}.muted{color:var(--muted)}.upload-card>.muted{font-size:.8125rem;margin-bottom:20px}.dropzone{border:1.5px dashed #b7d2c7;border-radius:10px;background:#f6faf8;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:221px;gap:10px;cursor:pointer;padding:20px 8px;color:#617d70;font-size:.8125rem}.dropzone:hover,.dropzone.dragging{background:#e8f5ed;border-color:var(--green)}.dropzone strong{font-size:.9375rem;color:#3b6452}.dropzone small{font-size:.6875rem;color:#74867f}.upload-symbol{display:grid;place-items:center;background:#e4f0e9;border-radius:14px;width:48px;height:48px;color:var(--green);font-size:1.8rem;margin-bottom:4px}.consent{display:flex;gap:8px;font-size:.75rem;line-height:1.7;color:#637775;margin:18px 0;align-items:flex-start}.consent input{margin:2px 0 0}.divider{height:1px;background:var(--line);margin:24px 0 20px}.sample-label{font-size:.8125rem;text-align:center;margin-bottom:12px}.micro{font-size:.75rem;color:var(--muted);line-height:1.7;margin:10px 0 0}.upload-card .micro{text-align:center;font-size:.6875rem}.results{overflow:hidden}.result-heading{padding:24px 26px 21px;display:flex;align-items:center;justify-content:space-between;gap:15px}.result-heading .eyebrow{font-size:.625rem;margin-bottom:9px}.result-heading h2{margin:0;display:flex;gap:10px;align-items:center}.badge{font-size:.6875rem;border-radius:5px;color:#8a6424;background:#faf0dc;padding:4px 8px;font-weight:500}.stats{display:grid;grid-template-columns:repeat(4,1fr);padding:21px 26px;background:#fbfcfc;border-block:1px solid var(--line);gap:10px}.stats>div{border-right:1px solid var(--line);padding-left:18px;min-width:0}.stats>div:first-child{padding-left:0}.stats>div:last-child{border:0}.stats span{display:block;font-size:.75rem;color:var(--muted);margin-bottom:8px}.stats strong{font-size:1.65rem;font-weight:650;letter-spacing:-.5px;white-space:nowrap}.stats strong small{font-size:.75rem;font-weight:400;margin-left:6px}.empty{min-height:350px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px}.empty h3{margin:20px 0 10px;font-size:1rem}.empty p{font-size:.8125rem;color:var(--muted);margin-bottom:0}.receipt-illustration{width:62px;height:83px;border:1.5px solid #b9d1c7;border-radius:6px;background:#f7fbf9;transform:rotate(-8deg);padding:15px 12px;box-shadow:8px 5px 0 #eff5f2}.receipt-illustration span{display:block;width:16px;height:8px;background:#bed6ca;margin-bottom:8px;border-radius:2px}.receipt-illustration i{display:block;height:3px;margin:6px 0;background:#d2e0d9}.receipt-illustration b{display:block;height:5px;background:#bed6ca;margin:8px 0 0 14px}.export-section{padding:23px 26px;border-top:1px solid var(--line)}.export-controls{display:flex;align-items:end;gap:12px;margin-top:18px}.export-controls>label{flex:1}.export-controls>button{white-space:nowrap;height:42px}label:not(.consent):not(.dropzone){font-size:.75rem;color:#5b726a}label>input:not([type=checkbox]),label>select{display:block;width:100%;height:42px;padding:8px 10px;border:1px solid #d8e2dd;border-radius:6px;background:white;color:#294e40;margin-top:7px;font-size:.875rem;min-width:0}select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#637775 50%),linear-gradient(135deg,#637775 50%,transparent 50%)!important;background-position:calc(100% - 16px) 18px,calc(100% - 12px) 18px!important;background-size:4px 4px!important;background-repeat:no-repeat!important;padding-right:28px!important}.export-section details{margin-top:18px;font-size:.8125rem}.export-section summary{color:#527b69;cursor:pointer;font-size:.75rem}.export-section details p{font-size:.75rem}.tax-fields{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.export-consent{margin:16px 0 0}.table-tools{display:flex;align-items:center;justify-content:space-between;padding:15px 24px;gap:16px}.table-tools label{display:flex;align-items:center;gap:8px;white-space:nowrap}.table-tools select{width:160px;margin:0}.table-tools .muted{font-size:.6875rem}.table-wrap{overflow:auto;max-height:480px;border-block:1px solid var(--line)}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:.8125rem}th{position:sticky;top:0;background:#f4f8f5;padding:13px 10px;color:#658074;font-size:.6875rem;font-weight:500;text-align:left;z-index:1}td{padding:11px 8px;border-top:1px solid #edf1ee;vertical-align:top}td input:not([type=checkbox]){border:1px solid transparent;border-radius:4px;padding:8px 5px;width:125px;color:#345347;background:transparent;font-size:.8125rem}td input:hover{border-color:#c3d6cb}td input[data-field=date]{width:108px}td input[data-field=vendor]{width:180px}td input[type=number]{width:105px;text-align:right}td input[data-field=invoice]{width:170px}td input[data-field=note]{width:220px}td input[data-field=account]{width:115px}td input[type=checkbox]{margin-top:10px}tr.excluded{background:#f5f6f5;color:#8a9992}tr.excluded input{color:#82938a}tr.invalid{background:#fff9ef}.row-issues{display:block;font-size:.6875rem;color:#9e6c1d;white-space:normal;min-width:180px;max-width:230px;line-height:1.6}.table-help{font-size:.6875rem;padding:12px 24px;color:var(--muted);margin:0}.file-info{overflow-wrap:anywhere;font-size:.8125rem;display:flex;flex-direction:column;gap:8px}.file-info video{width:100%;max-height:200px;border-radius:8px;background:#142b22}.progress{display:flex;align-items:center;gap:8px;font-size:.75rem;color:var(--green);margin-top:15px;line-height:1.6}.spinner{width:16px;height:16px;border:2px solid #cbe0d5;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#204c3f;color:#fff;border-radius:9px;box-shadow:0 6px 25px #0002;padding:16px 24px;max-width:min(90vw,680px);width:max-content;font-size:.875rem;z-index:5;line-height:1.7}.notice.error{background:#863e2b}footer{display:flex;justify-content:space-between;gap:16px;color:#7a8b83;font-size:.6875rem;padding:28px 0 22px}dialog{border:1px solid var(--line);border-radius:16px;padding:30px;max-width:520px;width:calc(100% - 32px);color:#294e40;box-shadow:0 20px 100px #173e332b}dialog::backdrop{background:#142f2870;backdrop-filter:blur(3px)}dialog .muted{font-size:.875rem}dialog label{display:block;margin:17px 0}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.dialog-heading h2{margin:0}.dialog-heading .eyebrow{margin-bottom:8px}.dialog-actions{display:flex;justify-content:space-between;gap:12px;margin-top:24px}#auth-status{font-size:.8125rem;margin-top:14px;color:#966124}.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}[hidden]{display:none!important}@media(min-width:1500px){main{padding-inline:35px}.workspace{grid-template-columns:320px minmax(0,1fr)}}@media(max-width:1150px){.workspace{grid-template-columns:260px minmax(0,1fr);gap:18px}.upload-card{padding:20px}.export-controls{flex-wrap:wrap}.export-controls>label{flex-basis:40%}.export-controls>button{width:100%}.stats strong{font-size:1.35rem}.stats{padding:18px}.stats>div{padding-left:8px}}@media(max-width:800px){.topbar{height:auto;min-height:76px;flex-wrap:wrap;padding:15px 5vw;gap:12px}.brand{font-size:1.3rem}.header-actions{gap:12px}.license{font-size:.75rem}.intro{padding:30px 0 25px;gap:20px}.intro-note{display:none}main{padding:0 5vw}.steps>span{padding:14px 10px;font-size:.6875rem;gap:6px}.steps b{flex-shrink:0;width:20px;height:20px}.workspace{grid-template-columns:1fr}.upload-card{padding:22px}.dropzone{min-height:170px}.results{width:100%}.result-heading{padding:22px}.empty{min-height:310px}.export-section{padding:22px}.stats strong{font-size:1.4rem}footer{flex-direction:column}.table-tools{padding:12px}.table-tools .muted{display:none}.stats span{font-size:.6875rem}.stats{gap:4px}.stats>div{padding-left:6px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Keep editable values and form labels readable at narrow widths. */
td input:not([type=checkbox]){font-size:.875rem}label:not(.consent):not(.dropzone){font-size:.875rem}.result-heading h2{flex-wrap:wrap;white-space:nowrap}.result-heading>.button{flex-shrink:0}@media(max-width:420px){.result-heading{align-items:flex-start}.result-heading h2{row-gap:8px}.result-heading .badge{white-space:nowrap}}

/* Per-receipt payment fields remain editable in the scrolling result table. */
td select{min-width:150px;height:34px;border:1px solid #c3d6cb;border-radius:4px;color:#345347;background-color:white}td input[data-field=paymentAccount],td input[data-field=paymentSubaccount]{width:170px}td input[data-field=paymentEvidence]{width:220px}

.notice.error{max-height:60vh;overflow-y:auto;overflow-wrap:anywhere;user-select:text}

#learning-settings{max-width:760px}#learning-list{max-height:42vh;overflow:auto;margin-bottom:16px}.learning-entry{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.learning-entry p{flex:1;margin:0;font-size:.8125rem;overflow-wrap:anywhere}.header-actions{flex-wrap:wrap}.learning-entry button{flex-shrink:0}
#usage-label{max-width:360px;margin:0;line-height:1.5}#license-label{overflow-wrap:anywhere}
