:root{color-scheme:light;--bg: #f3efe6;--panel: rgba(255, 252, 246, .9);--panel-strong: #fffaf0;--line: rgba(40, 33, 18, .12);--line-strong: rgba(40, 33, 18, .2);--text: #2c2418;--muted: #6f624d;--accent: #d9672f;--accent-deep: #8f3f1d;--accent-soft: rgba(217, 103, 47, .12);--shadow: 0 24px 80px rgba(72, 50, 24, .12);--hot-fixed-height: 360px;font-family:Avenir Next,PingFang SC,Noto Sans SC,sans-serif}*{box-sizing:border-box}html,body,#app{height:100%;overflow:hidden}body{margin:0;min-width:320px;color:var(--text);background:radial-gradient(circle at top left,rgba(240,174,108,.28),transparent 28%),radial-gradient(circle at right 15%,rgba(130,181,148,.18),transparent 22%),linear-gradient(180deg,#f7f0e2,#efe6d6)}.page-shell{width:min(1500px,calc(100vw - 24px));height:100vh;margin:0 auto;padding:12px 0;display:flex;flex-direction:column;overflow:hidden}.hero-panel,.workspace-panel{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.hero-panel{display:flex;justify-content:center;align-items:center;padding:20px;border-radius:24px}.hero-copy{display:flex;flex-direction:column;align-items:center;text-align:center}.hero-copy h1{margin:0;font-size:clamp(1.6rem,2.7vw,2.4rem);line-height:1;letter-spacing:-.03em}.eyebrow{margin:0 0 8px;color:var(--accent-deep);font-size:.8rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase}.eyebrow-inline{margin-bottom:6px}.primary-button,.ghost-button{border:0;border-radius:999px;padding:12px 18px;font-size:.92rem;font-weight:700;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}.primary-button{color:#fff;background:linear-gradient(135deg,#d9672f,#b65021);box-shadow:0 14px 28px #b6502147}.ghost-button{color:var(--text);background:#ffffff80;border:1px solid var(--line)}.primary-button:hover,.ghost-button:hover,.dropzone:hover{transform:translateY(-1px)}.file-input{display:none}.workspace-panel{margin-top:12px;padding:16px;border-radius:24px;flex:1 1 auto;min-height:0;overflow:hidden}.page-footer{flex:0 0 auto;padding:10px 0 2px;display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;text-align:center;color:var(--muted);font-size:.8rem;line-height:1.4}.footer-record-link{color:var(--accent-deep);font-weight:700;text-decoration:none}.footer-record-link:hover,.footer-record-link:focus-visible{text-decoration:underline}.workspace-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(520px,1.25fr);gap:16px;align-items:stretch;height:100%;min-height:0}.source-stage,.dedupe-panel{min-width:0;min-height:0;display:flex;flex-direction:column}.panel-step-head{margin-bottom:8px}.dropzone{min-height:136px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1.5px dashed rgba(217,103,47,.4);border-radius:16px;background:linear-gradient(135deg,#fffc,#fff4e8d9),var(--panel-strong);text-align:center;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease;outline:none}.dropzone.is-dragover,.dropzone:focus-visible{border-color:var(--accent);background:linear-gradient(135deg,#fffffff5,#ffeadcf2)}.dropzone-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;color:var(--accent-deep);background:var(--accent-soft);font-size:1.4rem;line-height:1}.dropzone-title{margin:0;font-size:.98rem;font-weight:700}.dropzone-subtitle,.tips-row p,.table-toolbar p{margin:0;color:var(--muted)}.dropzone-limit{margin:2px 0 0;padding:6px 10px;border-radius:999px;background:#d9672f1a;color:var(--accent-deep);font-size:.8rem;font-weight:700}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}.summary-card{min-width:0;padding:10px 12px;border-radius:14px;border:1px solid var(--line);background:#ffffff8a}.summary-card-tight{padding:10px 12px}.summary-label{display:block;color:var(--muted);font-size:.8rem}.summary-label-inline{display:inline;flex:0 0 auto}.summary-value{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.95rem}.summary-value-inline{margin-top:0;text-align:right;flex:1 1 auto}.tips-row{margin-top:10px;padding:10px 12px;border-radius:12px;background:#ffffff6b;border:1px solid rgba(40,33,18,.08)}.status-highlight-danger{color:#b42318;font-weight:700}.table-panel{margin-top:10px;min-width:0;padding:12px;border-radius:16px;background:#fffcf6d1;border:1px solid rgba(40,33,18,.08);flex:0 0 auto}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.toolbar-button{flex:0 0 auto;margin-left:auto}#clearDataButton{color:#fff;background:linear-gradient(135deg,#d92d20,#b42318);border-color:transparent;box-shadow:0 12px 24px #b423183d}#clearDataButton:hover,#clearDataButton:focus-visible{background:linear-gradient(135deg,#c11f13,#912018)}.table-toolbar h2,.dedupe-panel-head h2{margin:0 0 4px;font-size:1.1rem}.dedupe-panel{padding:12px;border-radius:16px;border:1px solid rgba(40,33,18,.08);background:#fffcf6d1;align-self:start}.dedupe-panel-head p:last-child{margin:0;color:var(--muted);line-height:1.45;font-size:.9rem}.dedupe-controls{display:none}.dedupe-summary-grid{display:grid;grid-template-columns:minmax(176px,1.55fr) repeat(4,minmax(0,1fr));grid-auto-rows:minmax(64px,auto);gap:8px;margin-top:10px;width:100%;overflow:visible;padding-bottom:2px;align-items:stretch}.dedupe-summary-grid>*{min-width:0;min-height:64px}.dedupe-field-card,.dedupe-metric-card{display:flex;justify-content:center;gap:6px;padding-top:12px;padding-bottom:12px}.dedupe-field-card{min-width:0;align-items:center;justify-content:space-between;gap:12px}.dedupe-field-card span{color:var(--muted);font-size:.82rem;flex:0 0 auto;white-space:nowrap}.field-select-card{width:100%;min-width:0;min-height:40px;height:44px;padding:0 12px;border-radius:10px;border:1px solid var(--line-strong);background:#ffffffdb;color:var(--text);font-size:.92rem}.dedupe-metric-card{min-width:0;flex-direction:column;align-items:center;justify-content:center;text-align:center}.dedupe-metric-card .summary-label,.dedupe-metric-card .summary-label-inline{display:block;font-size:.72rem;line-height:1.1;white-space:nowrap}.dedupe-metric-card .summary-value,.dedupe-metric-card .summary-value-inline{display:block;margin-top:0;text-align:center;flex:0 0 auto;font-size:1rem;font-weight:700;line-height:1}.dedupe-export-card{cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.dedupe-export-card:hover,.dedupe-export-card:focus-visible{transform:translateY(-1px);box-shadow:0 10px 24px #4832181f;border-width:1px;border-style:solid;outline:none}.dedupe-export-card-normal{border-color:#86efac;background:#dcfce7}.dedupe-export-card-normal .summary-label,.dedupe-export-card-normal .summary-value{color:#166534}.dedupe-export-card-normal:hover,.dedupe-export-card-normal:focus-visible{border-color:#86efac}.dedupe-export-card-unscanned{border-color:#d1d5db;background:#f3f4f6}.dedupe-export-card-unscanned .summary-label,.dedupe-export-card-unscanned .summary-value{color:#4b5563}.dedupe-export-card-unscanned:hover,.dedupe-export-card-unscanned:focus-visible{border-color:#d1d5db}.dedupe-export-card-abnormal{border-color:#fca5a5;background:#fee2e2}.dedupe-export-card-abnormal .summary-label,.dedupe-export-card-abnormal .summary-value{color:#991b1b}.dedupe-export-card-abnormal:hover,.dedupe-export-card-abnormal:focus-visible{border-color:#fca5a5}.dedupe-export-card-all{border-color:#93c5fd;background:#dbeafe}.dedupe-export-card-all .summary-label,.dedupe-export-card-all .summary-value{color:#1d4ed8}.dedupe-export-card-all:hover,.dedupe-export-card-all:focus-visible{border-color:#93c5fd}.scan-entry-panel{margin-top:10px;width:100%}.scan-input{width:100%;height:58px;padding:0 16px;border:1px solid rgba(217,103,47,.24);border-radius:14px;background:#ffffffeb;color:var(--text);font-size:1.02rem;font-weight:600;outline:none;box-shadow:inset 0 1px #ffffffb3}.scan-input::placeholder{color:#d92d20;font-weight:700}.scan-input:focus{border-color:var(--accent);box-shadow:0 0 0 4px #d9672f1f}.scan-input:disabled{background:#f4efe4e6;color:#9d8a70;cursor:not-allowed}.dedupe-table-wrap{margin-top:10px;flex:0 0 auto;width:100%}.table-container{width:100%;min-width:0;overflow:hidden;border-radius:12px}.source-table-container{height:var(--hot-fixed-height);min-height:var(--hot-fixed-height);max-height:var(--hot-fixed-height)}.dedupe-table-container{min-height:260px}.table-container .ht_master .wtHolder{overflow:auto!important}.ht-theme-main{--ht-background-color: rgba(255, 252, 246, .96);--ht-foreground-color: #2c2418;--ht-border-color: rgba(40, 33, 18, .12);--ht-accent-color: #d9672f;--ht-cell-editor-border-color: #b65021}.handsontable th,.handsontable td{white-space:nowrap}.handsontable td.scan-status-ok,.handsontable td.scan-status-ok *{color:#1e7a46!important;background:#2a92561f;font-weight:700}.handsontable td.scan-status-bad,.handsontable td.scan-status-bad *{color:#b42318!important;background:#dc26261f;font-weight:700}.handsontable td.scan-status-pending,.handsontable td.scan-status-pending *{color:#8b6b2c!important;background:#d9a4411f;font-weight:700}.handsontable td.scan-value-ok,.handsontable td.scan-value-ok *{color:#1e7a46!important;font-weight:700}.handsontable td.scan-value-bad,.handsontable td.scan-value-bad *{color:#b42318!important;font-weight:700}.handsontable td.scan-value-pending,.handsontable td.scan-value-pending *{color:#8b6b2c!important;font-weight:700}.handsontable td.scan-overflow-row,.handsontable td.scan-overflow-row *{background:#dc262614!important}@media(max-width:1200px){:root{--hot-fixed-height: 320px}.dedupe-summary-grid{grid-template-columns:minmax(156px,1.35fr) repeat(4,minmax(0,1fr))}.dedupe-field-card{gap:8px}.dedupe-metric-card .summary-label,.dedupe-metric-card .summary-label-inline{font-size:.68rem}.dedupe-metric-card .summary-value,.dedupe-metric-card .summary-value-inline{font-size:.94rem}}@media(max-width:980px){.page-shell{width:min(100vw - 18px,100%);padding:10px 0}.hero-panel{padding:16px}.workspace-grid{grid-template-columns:1fr}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-height:860px){:root{--hot-fixed-height: 300px}.dropzone{min-height:88px}}@media(max-height:760px){:root{--hot-fixed-height: 260px}.dedupe-panel-head p:last-child,.dropzone-subtitle,.tips-row p,.table-toolbar p{font-size:.84rem}}
