:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#243d37;background:#f3f5f1;font-synthesis:none;--green:#245447;--muted:#78867e;--line:#e2e8e0;--amber:#946d24}*{box-sizing:border-box}body{margin:0}header{max-width:1040px;margin:auto;padding:26px 28px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:12px;font-weight:650;letter-spacing:.5px;color:inherit;text-decoration:none}.mark{display:grid;place-items:center;background:#244e41;color:#fff;width:36px;height:36px;border-radius:11px;font-family:serif;font-size:22px}.brand-sub{font-size:13px;font-weight:400;color:var(--muted);border-left:1px solid #cbd5ca;margin-left:10px;padding-left:10px}.badge{font-size:11px;border:1px solid #cbd7c8;border-radius:20px;padding:5px 10px;color:#73836b}main{max-width:740px;padding:0 24px 40px;margin:auto}.intro{padding:34px 0 30px}.eyebrow{font-size:11px;letter-spacing:2px;color:#778b76;margin-bottom:14px}h1{font-family:"Songti SC",STSong,serif;font-weight:600;font-size:48px;line-height:1.25;letter-spacing:1px;margin:0 0 20px}p{font-size:14px;line-height:1.7;margin:12px 0}.intro p{color:#78867e;max-width:420px}h2{font-size:18px;line-height:1.5;font-weight:600;margin:0}.panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;margin-bottom:20px;box-shadow:0 8px 40px #30433004}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}.step{font-family:Georgia,serif;font-size:13px;color:#91a18c;font-weight:400;margin-right:10px}.muted{color:var(--muted)}.small{font-size:12px}.drop-zone{border:1px dashed #bacbb6;background:#f7f9f5;border-radius:14px;min-height:220px;display:flex;align-items:center;justify-content:center;overflow:hidden;text-align:center;padding:22px}.drop-zone.drag{background:#edf4e7;border-color:#245447}#empty-preview{display:grid;justify-items:center;gap:8px}#empty-preview strong{font-size:15px;font-weight:500}#empty-preview p{font-size:11px;color:#889484;margin:0}.upload-icon{height:44px;width:44px;color:#80967b;margin-bottom:10px}#local-preview{max-height:280px;max-width:100%;object-fit:contain;border-radius:8px}#heic-preview{line-height:1.9;color:#6c8066}.pick-actions{display:flex;gap:12px;margin-top:14px}.pick-actions .button{flex:1}.button,button{font:inherit;font-size:14px;border-radius:10px;border:0;min-height:46px;padding:12px 18px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;touch-action:manipulation;gap:10px}.primary{background:var(--green);color:white;font-weight:500}.primary:hover{background:#183d32}.primary:disabled{background:#c9d5c6;cursor:default;color:#f6faf5}.secondary{background:#f0f4ee;color:#35513c;border:1px solid #dfe7db}.secondary:hover{background:#e6eddf}.filename{overflow-wrap:anywhere;margin-top:12px}fieldset{border:0;padding:0;margin:30px 0 20px}legend{font-size:16px;font-weight:600;margin-bottom:14px}.mode{display:flex;align-items:center;gap:12px;border:1px solid #e6ebe3;border-radius:12px;padding:16px;margin-bottom:10px;cursor:pointer}.mode:has(input:checked){border-color:#668d65;background:#f6f9f3}.mode input{accent-color:#386647;width:16px;height:16px;flex-shrink:0;margin:0}.mode strong{font-size:14px;font-weight:500}.mode small{display:block;color:#889180;font-size:11px;line-height:1.6;margin-top:5px}.tag{background:#e2ecd8;color:#71835e;font-size:10px;padding:3px 6px;border-radius:4px;margin-left:auto;white-space:nowrap}#submit{width:100%;justify-content:space-between;padding-left:20px;padding-right:20px}.privacy{font-size:11px;color:#99a191;text-align:center;margin:12px 0 0}.notice{font-size:12px;color:#8d763d;background:#faf6e9;border:1px solid #f0e9d0;padding:12px 14px;border-radius:8px;margin:0 0 18px}.error{color:#b14736;font-size:13px}.error:empty{display:none}.track{height:5px;border-radius:9px;overflow:hidden;background:#e7eee2}#progress-bar{height:100%;background:#71966a;width:0;transition:width .5s}.track.busy #progress-bar{width:36%;animation:travel 1.7s infinite ease-in-out}@keyframes travel{0%{transform:translateX(-100%)}100%{transform:translateX(360%)}}.progress-panel p{margin-bottom:0}.result-actions{display:flex;gap:12px;margin:20px 0}.result-actions>*{flex:1}details{font-size:13px;border-top:1px solid var(--line);padding-top:18px}summary{cursor:pointer;color:#72816c}details img{max-width:100%;margin-top:16px;border:1px solid #e6ebe3;border-radius:8px}.result-card{border-bottom:1px solid #e6ebe3;padding:16px 0}.result-card:first-child{padding-top:0}.row-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.row-name{font-size:14px;font-weight:600;line-height:1.5}.row-code{font-size:11px;letter-spacing:.5px;color:#8c9785;font-weight:400}.row-value{font-size:24px;font-variant-numeric:tabular-nums;color:#315841;font-weight:600;white-space:nowrap}.row-unit{font-size:11px;font-weight:400;color:#87967c;margin-left:4px}.row-details{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#839079;margin-top:9px}.review{color:#9a7433;font-size:10px;background:#f8f1dd;padding:3px 6px;border-radius:4px;white-space:nowrap}.text-result{width:100%;min-height:230px;resize:vertical;border:1px solid #e0e7dc;border-radius:10px;padding:16px;line-height:1.9;background:#fbfcf9;color:#3b4d36;font:14px/1.9 ui-monospace,"PingFang SC",monospace}.delete-row{margin-top:24px;display:flex;justify-content:space-between;align-items:center;gap:12px}.text-button{background:transparent;color:#997c6a;font-size:11px;padding:5px;min-height:40px}.hidden{display:none!important}footer{margin-top:40px;text-align:center;color:#b0b9a7;font-size:12px}footer span{font-family:serif;letter-spacing:4px}footer p{font-size:11px;margin:8px 0}#login-form{display:grid;gap:12px;margin-top:18px}#login-form label{font-size:12px;color:#7f8e75}#key{font:16px inherit;border:1px solid var(--line);border-radius:8px;padding:12px;width:100%}:focus-visible{outline:3px solid #99b28d;outline-offset:3px}@media(min-width:850px){.intro{padding-top:46px}h1{font-size:54px}.panel{padding:32px}.drop-zone{min-height:240px}}@media(max-width:480px){header{padding:20px}.brand-sub{font-size:12px}main{padding:0 16px 28px}.intro{padding:24px 6px}h1{font-size:39px}.intro p{font-size:13px}.panel{padding:20px;border-radius:16px}.section-head{gap:8px}.section-head>.small{font-size:10px}.drop-zone{min-height:180px;padding:16px}.pick-actions{gap:10px}.mode{padding:13px 10px}.mode small{font-size:10px}.tag{display:none}.notice{font-size:11px}.delete-row{align-items:flex-start;flex-direction:column;gap:0}.row-value{font-size:23px}.privacy{font-size:10px}.result-actions{gap:8px}.result-actions>*{font-size:12px}}

.table-scroll{max-width:100%;overflow:auto;max-height:560px;border:1px solid #dce5d9;border-radius:12px;overscroll-behavior-x:contain}.ocr-table{border-collapse:separate;border-spacing:0;width:100%;font-size:14px;text-align:left}.ocr-table th,.ocr-table td{border-bottom:1px solid #e1e8dd;border-right:1px solid #e1e8dd;padding:0;vertical-align:top}.ocr-table thead th{position:sticky;top:0;z-index:2;background:#eaf1e6;color:#35513c;font-weight:600}.ocr-table thead th:first-child{padding:12px;min-width:44px;left:0;z-index:3}.ocr-table .row-number{position:sticky;left:0;z-index:1;padding:12px;background:#f4f7f1;color:#87927f;font-size:12px;font-weight:400;min-width:44px}.ocr-table tbody tr:nth-child(even){background:#fafcf8}.ocr-table .needs-review,.ocr-table .needs-review .row-number{background:#fff9e9}.ocr-table tr:last-child td,.ocr-table tr:last-child th{border-bottom:0}.column-name,.cell-editor{font:inherit;color:inherit;line-height:1.5;border:0;border-radius:0;background:transparent;padding:12px;width:100%;min-width:140px;display:block}.column-name{font-weight:600}.cell-editor{resize:vertical;min-height:46px;font-variant-numeric:tabular-nums}.cell-editor:focus,.column-name:focus{background:#fff;outline:2px solid #79936b;outline-offset:-2px}.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}#copy:disabled{opacity:.5;cursor:default}@media(max-width:480px){.column-name,.cell-editor{font-size:16px;min-width:132px}.table-scroll{max-height:460px}}

.ocr-table thead .column-label{padding:12px;min-width:140px;white-space:nowrap}.ocr-table thead .column-label:first-child,.ocr-table td:first-child .cell-editor{min-width:240px}.ocr-table thead .column-label:first-child{padding:12px}

@media(min-width:850px){main:has(#result:not(.hidden)){max-width:1040px}}
