:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#13243b;background:#f3f6fa;font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}
body{margin:0;background:#f3f6fa}
button,input{font:inherit}
button{cursor:pointer}
.app-shell{max-width:1480px;margin:0 auto;padding:0 34px}
.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce4ed}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{width:42px;height:42px;border-radius:12px;background:#102b4c;color:#fff;display:grid;place-items:center;font-weight:850;letter-spacing:-.06em}
.brand-title{font-size:14px;font-weight:850;letter-spacing:.09em;color:#102b49}
.brand-subtitle{font-size:9px;letter-spacing:.18em;color:#8493a6;margin-top:4px;font-weight:750}
.topbar-right{display:flex;align-items:center;gap:12px}
.baseline-pill{font-size:11px;font-weight:750;color:#526780;background:#e9eff6;padding:9px 13px;border-radius:20px;display:flex;align-items:center;gap:8px}
.pulse{width:7px;height:7px;background:#d49b32;border-radius:50%;box-shadow:0 0 0 4px #d49b3220}
.icon-button{width:36px;height:36px;border:1px solid #dbe4ee;border-radius:10px;background:#fff;color:#173757;font-size:23px;line-height:1}
.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:34px 0 26px}
.eyebrow{font-size:9px;font-weight:850;letter-spacing:.18em;color:#8b9bad}
h1{font-size:32px;letter-spacing:-.045em;color:#102847;margin:8px 0 5px}
.hero p,.section-heading p{margin:0;color:#708197;font-size:13px;line-height:1.55}
.hero-stats{display:flex;gap:10px}
.stat-card{min-width:132px;padding:13px 16px;background:#fff;border:1px solid #e3eaf1;border-radius:13px;box-shadow:0 4px 15px #18365608}
.stat-label{display:block;color:#8695a8;font-size:9px;font-weight:850;letter-spacing:.1em}
.stat-card strong{display:block;color:#152f4e;font-size:24px;margin-top:5px;letter-spacing:-.04em}
.mode-nav{display:flex;align-items:center;gap:5px;border-bottom:1px solid #dce4ed;overflow-x:auto}
.mode-tab{white-space:nowrap;border:0;background:transparent;color:#78899e;padding:15px 17px 13px;font-size:12px;font-weight:800;border-bottom:3px solid transparent}
.mode-tab span{font-size:9px;color:#a2afbd;margin-right:7px}
.mode-tab.active{color:#123456;border-bottom-color:#ef9c33}
.workspace-panel{padding:28px 0 36px}
.hidden{display:none!important}
.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}
h2{margin:6px 0 5px;color:#122d4d;font-size:22px;letter-spacing:-.035em}
.mode-tag{border-radius:20px;padding:7px 11px;font-size:9px;font-weight:850;letter-spacing:.08em;white-space:nowrap}
.mode-tag.blue{background:#e4eff9;color:#376994}
.mode-tag.amber{background:#fff1db;color:#9d6821}
.mode-tag.purple{background:#eee9fb;color:#725ca2}
.sorting-layout,.transfer-layout,.baseline-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.85fr);gap:16px}
.scan-card,.transfer-card,.detail-card{background:#fff;border:1px solid #e1e8f0;border-radius:16px;padding:22px;box-shadow:0 6px 22px #17375608}
.scan-card{border-top:3px solid #ef9c33}
.field-label{display:block;color:#8191a4;font-size:9px;font-weight:850;letter-spacing:.13em;margin-bottom:8px}
.crate-input,.form-input{width:100%;height:44px;border:1px solid #dbe4ed;border-radius:9px;background:#fbfcfe;padding:0 13px;color:#18324f;font-size:14px;outline:none}
.crate-input:focus,.form-input:focus,.scan-input:focus{border-color:#6494c1;box-shadow:0 0 0 3px #6494c11c}
.scan-label{margin-top:23px}
.scan-form{display:flex;gap:9px}
.scan-input{min-width:0;flex:1;height:58px;border:2px solid #d7e1eb;border-radius:10px;padding:0 16px;font-size:20px;font-weight:750;letter-spacing:.02em;color:#102b49;outline:none}
.scan-input::placeholder{font-size:15px;font-weight:500;color:#9aabba}
.primary-button{border:0;border-radius:9px;background:#12375b;color:#fff;padding:0 18px;min-height:44px;font-size:10px;font-weight:850;letter-spacing:.08em;display:inline-flex;align-items:center;justify-content:center;gap:15px;transition:background .15s,transform .15s}
.primary-button:hover{background:#1a4a76}
.primary-button:disabled{opacity:.55;cursor:wait}
.scan-form .primary-button{min-width:132px}
.primary-button span{font-size:15px}
.scan-hint{font-size:10px;color:#94a2b2;margin:11px 0 17px}
.keyboard-key{display:inline-block;border:1px solid #dbe3eb;border-bottom-width:2px;border-radius:4px;padding:2px 5px;color:#61758a;font-size:8px;font-weight:850;margin-right:4px}
.scan-result{min-height:68px;display:flex;align-items:center;gap:12px;padding:12px 14px;background:#f5f8fb;border-radius:10px;border:1px solid #edf1f5}
.result-icon{width:30px;height:30px;flex:0 0 auto;border-radius:50%;background:#e1f3ea;color:#278150;display:grid;place-items:center;font-weight:900}
.scan-result.error .result-icon{background:#fde9e7;color:#c14e42}
.scan-result.warning .result-icon{background:#fff1db;color:#a36d26}
.scan-result strong,.scan-result span{display:block}
.scan-result strong{font-size:12px;color:#24415e}
.scan-result span{font-size:10px;color:#8494a7;margin-top:3px}
.card-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px}
h3{font-size:16px;margin:5px 0 0;color:#183552}
.live-dot{font-size:9px;color:#299464;font-weight:850;letter-spacing:.07em}
.detail-rtn{font-size:20px;font-weight:850;color:#163858;letter-spacing:.01em;padding:9px 0 15px;border-bottom:1px solid #edf1f5;overflow-wrap:anywhere}
.detail-row{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #eff2f6}
.detail-row span{color:#8796a7;font-size:9px;font-weight:850;letter-spacing:.1em;white-space:nowrap}
.detail-row strong{color:#203e5d;font-size:11px;text-align:right;overflow-wrap:anywhere}
.detail-note{margin-top:15px;background:#f5f8fb;padding:12px;border-radius:9px;color:#78899c;font-size:10px;line-height:1.55}
.transfer-card{max-width:100%}
.transfer-card .field-label:not(:first-child){margin-top:19px}
.transfer-preview{display:flex;justify-content:space-between;align-items:center;padding:14px 0;margin-top:16px;border-top:1px solid #edf1f5;color:#8191a4;font-size:9px;letter-spacing:.09em;font-weight:850}
.transfer-preview strong{font-size:23px;letter-spacing:-.04em;color:#193a5b}
.transfer-button{width:100%;margin-top:6px}
.subtle-note{font-size:10px;line-height:1.5;color:#8b9bad;margin:12px 0 0}
.process-step{display:flex;align-items:center;gap:11px;margin:17px 0;color:#61758a;font-size:11px}
.process-step b{width:25px;height:25px;border-radius:8px;display:grid;place-items:center;background:#edf3f8;color:#315f86;font-size:10px}
.table-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;color:#8191a4;font-size:10px}
.secondary-button{border:1px solid #dbe4ed;background:#fff;color:#365573;border-radius:8px;padding:8px 12px;font-size:10px;font-weight:800}
.table-wrap{overflow:auto;border:1px solid #e0e7ef;border-radius:12px;background:#fff;box-shadow:0 5px 20px #17375608}
table{border-collapse:collapse;width:100%;min-width:850px;text-align:left}
th{background:#f6f8fb;padding:13px 14px;color:#8191a4;font-size:9px;letter-spacing:.1em;font-weight:850;white-space:nowrap}
td{padding:12px 14px;border-top:1px solid #edf1f5;color:#435d77;font-size:11px;white-space:nowrap}
tbody tr:hover{background:#fbfcfe}
td.rtn-cell{font-weight:800;color:#173b5f}
.status-pill{display:inline-block;border-radius:20px;background:#fff1db;color:#9b6722;padding:5px 8px;font-size:8px;font-weight:850;letter-spacing:.04em}
.status-pill.neutral{background:#edf2f7;color:#60768d}
.empty-cell{text-align:center!important;padding:35px!important;color:#9ba9b8!important}
.file-input{width:100%;border:1px dashed #cbd7e3;border-radius:9px;padding:13px;background:#fafbfd;color:#72849a;font-size:11px}
.source-columns{margin-top:20px;padding:13px;border-radius:9px;background:#f5f8fb}
.source-columns>span{display:block;color:#8293a6;font-size:9px;letter-spacing:.08em;font-weight:850;margin-bottom:9px}
.source-columns div{display:flex;flex-wrap:wrap;gap:6px}
.source-columns b{font-size:9px;padding:6px 8px;background:#e5edf5;color:#355a7d;border-radius:5px}
.source-columns small{display:block;color:#8a9bad;font-size:9px;margin-top:9px}
.baseline-layout .primary-button{width:100%;margin-top:14px}
.progress-track{height:6px;border-radius:8px;background:#eaf0f5;overflow:hidden;margin-top:17px}
.progress-track div{height:100%;width:0;background:#e99b33;transition:width .2s}
.baseline-name{font-weight:800;color:#244562;font-size:14px;margin:4px 0 10px;overflow-wrap:anywhere}
footer{height:58px;border-top:1px solid #dce4ed;display:flex;align-items:center;justify-content:space-between;color:#9aa8b6;font-size:8px;font-weight:850;letter-spacing:.13em}
.toast{position:fixed;right:24px;bottom:24px;max-width:min(420px,calc(100vw - 40px));padding:13px 16px;border-radius:10px;background:#173958;color:#fff;font-size:12px;box-shadow:0 10px 30px #0b254733;opacity:0;pointer-events:none;transform:translateY(8px);transition:all .2s;z-index:20}
.toast.show{opacity:1;transform:translateY(0)}
.toast.error{background:#9a3e38}
@media(max-width:900px){.app-shell{padding:0 18px}.hero{align-items:flex-start;flex-direction:column}.hero-stats{width:100%}.stat-card{flex:1;min-width:0}.sorting-layout,.transfer-layout,.baseline-layout{grid-template-columns:1fr}}
@media(max-width:560px){.app-shell{padding:0 12px}.topbar{height:70px}.brand-title{font-size:12px}.baseline-pill{font-size:9px;padding:8px}.hero{padding:25px 0 19px}h1{font-size:27px}.hero-stats{gap:6px}.stat-card{padding:11px 10px}.stat-label{font-size:7px}.stat-card strong{font-size:21px}.mode-tab{padding:13px 12px 11px}.workspace-panel{padding:22px 0}.scan-card,.transfer-card,.detail-card{padding:16px}.scan-form{flex-direction:column}.scan-form .primary-button{height:45px}.section-heading{gap:10px}.section-heading h2{font-size:20px}.mode-tag{font-size:8px;padding:6px 8px}}
