.receipt-tool { max-width: 1080px; }
.receipt-tool *, .receipt-tool *::before, .receipt-tool *::after { box-sizing:border-box; }
.receipt-tool .tool-hero { max-width: 900px; }
.receipt-tool .tool-hero p { line-height:1.7; }
.receipt-tool #receipt-root > section { margin-top:56px; }
.receipt-tool h2 { margin-bottom:16px; }
.receipt-tool h3 { font-size:1.1rem; }
.receipt-notice { margin-top:24px; padding:18px 22px; border-left:4px solid var(--accent); background:var(--tint); line-height:1.6; }
.receipt-notice p { margin:4px 0; }
.receipt-example-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.example-side { padding:20px; background:var(--tint); border:1px solid var(--line); border-radius:12px; min-width:0; }
.example-side h3 { margin:0 0 18px; }
.example-side p { font-size:.875rem; overflow-wrap:anywhere; }
.receipt-scatter,.receipt-tidy { display:flex; justify-content:center; align-items:center; gap:16px; min-height:185px; }
.fake-receipt,.fake-cover { display:flex; flex-direction:column; flex:none; gap:7px; width:104px; min-height:145px; padding:12px; background:var(--surface); border:1px solid var(--line-strong); box-shadow:0 2px 8px transparent; font-size:11px; }
.fake-cover { background:var(--accent-soft); padding-top:20px; }
.fake-receipt strong,.fake-cover strong { font-size:12px; }
.fake-receipt i { display:block; height:2px; background:var(--line-strong); }
.fake-receipt i:nth-of-type(2) { width:75%; }
.fake-receipt b { margin-top:auto; text-align:right; }
.tilt-one { transform:rotate(-12deg); }.tilt-two { transform:rotate(13deg); }
.receipt-tidy .fake-receipt,.receipt-tidy .fake-cover { width:94px; min-height:135px; box-shadow:none; }
.receipt-input { padding:24px; border:1px solid var(--line); border-radius:16px; }
.receipt-tool label { display:block; font-weight:650; margin-bottom:8px; }
.receipt-tool input,.receipt-tool select { font:inherit; min-height:44px; max-width:100%; }
.receipt-tool input[type=file] { display:block; width:100%; padding:10px; border:1px solid var(--line); border-radius:6px; }
.receipt-hint { color:var(--ink-2); line-height:1.5; font-size:.9rem; }
.receipt-pages { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.receipt-page { display:flex; gap:18px; align-items:center; border:1px solid var(--line); border-radius:10px; padding:12px; cursor:grab; }
.receipt-page-detail { min-width:0; overflow-wrap:anywhere; }
.receipt-thumb { width:100px; height:130px; flex:none; display:flex; align-items:center; justify-content:center; background:var(--tint); overflow:hidden; }
.receipt-thumb img { display:block; max-width:95%; max-height:95%; object-fit:contain; }
.receipt-thumb .rotation-90 { transform:rotate(90deg); }.receipt-thumb .rotation-180 { transform:rotate(180deg); }.receipt-thumb .rotation-270 { transform:rotate(270deg); }
.receipt-page-controls,.receipt-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.receipt-tool button { min-height:44px; cursor:pointer; white-space:normal; }
.receipt-tool button:disabled { opacity:.5; cursor:not-allowed; }
.receipt-tool :focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.receipt-empty { padding:18px; color:var(--ink-2); background:var(--tint); }
.receipt-table-wrap { width:100%; overflow-x:auto; }
.receipt-table { border-collapse:collapse; width:100%; min-width:820px; }
.receipt-table th,.receipt-table td { text-align:left; padding:8px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.receipt-table input { width:100%; min-width:100px; padding:8px; border:1px solid var(--line); border-radius:5px; }
.receipt-table th:first-child { max-width:180px; }
.receipt-output select { padding:8px; border:1px solid var(--line); border-radius:5px; }
.receipt-status { min-height:1.5em; }
.receipt-tool ol li { line-height:1.7; }
.receipt-faq > div { padding:10px 0; border-bottom:1px solid var(--line); }
.receipt-faq h3 { margin-bottom:6px; }.receipt-faq p { margin-top:0; line-height:1.6; }
@media(max-width:720px) { .receipt-tool #receipt-root > section { margin-top:40px; }.receipt-example-grid { grid-template-columns:1fr; }.receipt-input { padding:16px; }.receipt-page { align-items:flex-start; gap:12px; }.receipt-thumb { width:72px; height:100px; }.receipt-page-controls button { font-size:.85rem; } }

.receipt-table { font-variant-numeric: tabular-nums; }
