.import-drop-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.sample-download{display:inline-block;margin-top:13px;color:var(--green);font-size:10px;font-weight:750;text-decoration:none}
.sample-download:hover{text-decoration:underline}
.import-result{margin-top:14px}
.import-preview-card{padding:20px}
.preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.preview-head h3{font-size:19px;margin:6px 0}
.preview-head p{margin:0;color:var(--muted);font-size:10px}
.data-badge{display:inline-flex;align-items:center;gap:5px;background:var(--mint);color:var(--green);border-radius:100px;padding:7px 10px;font-size:9px;font-weight:800;white-space:nowrap}
.import-summary{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:11px;margin-top:18px}
.import-summary>div{padding:14px;border-right:1px solid var(--line)}
.import-summary>div:last-child{border-right:0}
.import-summary small,.import-summary strong{display:block}
.import-summary small{color:var(--muted);font-size:9px}
.import-summary strong{font-size:17px;margin-top:5px}
.scope-total-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.scope-total-strip>div{background:#f4f8f6;border-radius:9px;padding:11px 13px;display:flex;justify-content:space-between;gap:12px;font-size:10px}
.scope-total-strip span{color:var(--muted)}
.mapping-line{display:flex;align-items:flex-start;gap:8px;margin-top:16px;padding:11px 12px;background:#f6f9f7;border-radius:9px;color:#5c6f67;font-size:9.5px;line-height:1.5}
.mapping-line i{color:var(--green);font-size:16px}
.imported-table{border:1px solid var(--line);border-radius:10px}
.imported-table table{min-width:960px}
.imported-table tbody tr{cursor:default}
.imported-table td:first-child{display:table-cell}
.imported-table tfoot td{background:#f4f8f6;color:var(--ink);border-top:1px solid var(--line)}
.preview-note{margin:9px 2px 0;color:var(--muted);font-size:9px}
.validation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
.validation-item{display:flex;align-items:center;gap:8px;border-radius:9px;padding:11px 12px;font-size:9.5px}
.validation-item i{font-size:17px}
.validation-item.ok{background:#edf8f3;color:#28755a}
.validation-item.warn{background:var(--amber-soft);color:#966319}
.validation-item.review{background:#eef3f6;color:#4c7185}
.factor-disclaimer{display:flex;align-items:flex-start;gap:9px;margin-top:12px;padding:12px;border:1px solid #f0d8aa;background:#fffaf0;border-radius:9px;color:#765b2c;font-size:9.5px;line-height:1.55}
.factor-disclaimer i{font-size:17px;flex:none}
.import-error{background:#fff0ee;color:#9b3d35;border-radius:8px;padding:10px 12px;font-size:10px}
@media(max-width:820px){.import-summary{grid-template-columns:repeat(2,1fr)}.import-summary>div:nth-child(2){border-right:0}.import-summary>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.scope-total-strip,.validation-grid{grid-template-columns:1fr}.preview-head{flex-direction:column}}
@media(max-width:560px){.import-summary{grid-template-columns:1fr}.import-summary>div{border-right:0;border-bottom:1px solid var(--line)}.import-summary>div:last-child{border-bottom:0}}
/* Keep long filenames, mappings and wide data tables within the viewport. */
.import-preview-card{min-width:0}.preview-head h3{overflow-wrap:anywhere}.preview-head p{font-size:12px;line-height:1.6}.preview-note,.factor-disclaimer{font-size:12px}.table-wrap{max-width:100%}.imported-table th{font-size:10px}.imported-table td{font-size:12px;line-height:1.5}.sample-download{font-size:12px}.import-error{font-size:13px;line-height:1.5}
@media(max-width:560px){.import-preview-card{padding:16px}.import-summary strong{font-size:18px}.scope-total-strip>div{font-size:12px;flex-wrap:wrap}.validation-item{font-size:12px}.data-badge{white-space:normal}.import-summary small{font-size:11px}}
.mapping-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin:18px 0}.mapping-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:650}.mapping-grid select,#sheetSelect{width:100%;max-width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink)}.review-check{display:flex;align-items:flex-start;gap:12px;line-height:1.6;margin:20px 0}.review-check input{flex:none;width:20px;height:20px;margin-top:3px}.import-preview-card>p{line-height:1.7;overflow-wrap:anywhere}.import-preview-card>h3{margin-top:24px}.scope-total-strip small{display:block;font-size:11px;color:var(--muted);margin-top:8px}button:disabled{opacity:.5;cursor:not-allowed}.imported-table td{max-width:320px;white-space:normal;overflow-wrap:anywhere}.imported-table table{min-width:800px}select:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #176c5a;outline-offset:3px}
