.import-content{flex:1;min-width:0}
.import-dropzone{position:relative;width:min(100%,300px);aspect-ratio:1;margin:16px auto 0;padding:22px;border:1.5px dashed #b9c9df;border-radius:16px;background:linear-gradient(160deg,#fbfdff,#f5f8ff);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;cursor:pointer;transition:border-color .18s,background .18s,box-shadow .18s,transform .18s}
.import-dropzone:hover,.import-dropzone.is-dragging{border-color:#3971e8;background:#f0f5ff;box-shadow:0 0 0 4px rgba(41,98,255,.08);transform:translateY(-1px)}
.import-dropzone.is-dragging{border-style:solid}
.import-dropzone:focus-within{outline:3px solid rgba(41,98,255,.2);outline-offset:3px}
.import-file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dropzone-icon{width:54px;height:54px;margin-bottom:4px;border:1px solid #dce7fb;border-radius:16px;background:#eaf1ff;color:#386bd8;display:grid;place-items:center}
.dropzone-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dropzone-title{font:700 13px/1.5 Manrope,"Be Vietnam Pro",sans-serif;color:#172b48}
.dropzone-action{font-size:10px;color:#738199}
.dropzone-action b{color:#3266d5;font-weight:600}
.dropzone-file{display:block;width:100%;margin-top:8px;padding:8px 10px;border:1px solid #e3e9f2;border-radius:8px;background:#fff;color:#7b8798;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.import-dropzone.has-file .dropzone-file{border-color:#cceee3;background:#f1fbf7;color:#087f61}
.import-dropzone.has-error{border-color:#df4d5c;background:#fff8f8}
.import-dropzone.has-error .dropzone-icon{border-color:#f4d2d7;background:#fff0f2;color:#c44452}
.import-dropzone.has-error .dropzone-file{border-color:#f4d2d7;background:#fff0f2;color:#b83545;white-space:normal}
.dropzone-hint{margin:9px 0 0!important;text-align:center;font-size:9px!important;color:#8995a6!important}
@media(max-width:650px){.import-dropzone{width:min(100%,280px);padding:18px}}
.overwrite-backup{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin-top:7px;padding:10px;border:1px solid #bfd6fb;border-radius:8px;background:#f3f7ff;color:#35557e}.overwrite-backup b{color:#234d91}.overwrite-backup .button{margin-top:4px}.import-warnings{padding:8px 10px;border:1px solid #f2d49a;border-radius:8px;background:#fff9ec}.import-warnings summary{color:#94620a;font-weight:700;cursor:pointer}.import-warnings ul{padding-left:18px}.import-warnings li{color:#795414!important;line-height:1.6}.import-warnings li small{display:block;color:#9a762f}.import-guide code{padding:2px 4px;border-radius:4px;background:#edf2fa;color:#34517c;font-size:8px}
.import-preview{display:grid;gap:10px;margin-top:14px;padding:14px;border:1px solid #dfe5ed;border-radius:10px;background:#fbfcfe}.import-preview>strong{font:700 12px Manrope,"Be Vietnam Pro",sans-serif;color:#172b48}.import-preview>p{margin:-6px 0 0;font-size:10px;color:#69758a}
.import-preview-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.import-preview-stats>div{display:grid;gap:2px;padding:9px 8px;border:1px solid #e3e9f2;border-radius:8px;background:#fff;text-align:center}.import-preview-stats b{font-size:17px;line-height:1.2;color:#172b48}.import-preview-stats small{font-size:9px;color:#69758a}.import-preview-stats .good b{color:#087f61}.import-preview-stats .warn b{color:#b36b00}.import-preview-stats .bad b{color:#c83c4d}
.import-note{display:flex;flex-direction:column;gap:4px;padding:10px;border:1px solid;border-radius:8px;font-size:10px}.import-note.danger{border-color:#f4d2d7;background:#fff6f7;color:#8f2a38}.import-note.warning{border-color:#f5e0b5;background:#fffaf0;color:#7a5200}.import-note summary{cursor:pointer;font-weight:600}.import-note ul{margin:6px 0 0;padding-left:16px;max-height:190px;overflow:auto}.import-note li{margin-bottom:3px}.import-note small{font-size:9px;opacity:.85}
.import-preview-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap}.import-preview-empty{flex:1;margin:0;font-size:10px;color:#8f2a38}
@media(max-width:650px){.import-preview-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}

.import-guide-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.import-guide-actions .button{margin:0;white-space:nowrap}.import-guide-actions .button>span{display:inline-grid;place-items:center;width:14px;height:14px;font-weight:800}
.import-form-actions{display:flex;gap:8px;align-items:stretch}.import-form-actions .button{margin:0;white-space:nowrap}.import-form-actions .primary{flex:1}
.import-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px;border-bottom:1px solid #dfe5ed;padding-bottom:10px}.import-tabs button{border:1px solid #dfe5ed;background:#fff;padding:10px 14px;border-radius:8px;cursor:pointer;font-size:12px}.import-tabs button[aria-selected=true]{background:#eaf1ff;border-color:#3971e8;color:#2457bd;font-weight:700}
.reference-import{font-size:12px;line-height:1.7}.reference-import h3{font-size:15px}.reference-template-options{display:grid;gap:12px;margin:16px 0}.reference-template-option{display:block;min-width:0;padding:14px;border:1px solid #dce4ef;border-radius:10px;cursor:pointer}.reference-template-option:has(input:checked){border-color:#3971e8;background:#f7faff}.reference-template-option p{margin:6px 0;color:#5b6b80}.reference-template-picture{overflow-x:auto;max-width:100%;padding:6px 0}.reference-template-picture svg{display:block;min-width:520px;width:100%;font-family:system-ui,sans-serif}.reference-template-option:last-child svg{min-width:910px}.reference-format-help{margin:15px 0;padding:12px;background:#f6f8fc;border-radius:8px}.reference-format-help summary{cursor:pointer;font-weight:600}.reference-format-help code{overflow-wrap:anywhere}.reference-file-label{display:block;font-weight:600;margin-bottom:8px}#referenceImportFile{width:100%;max-width:100%;padding:12px;border:1px dashed #b9c9df;border-radius:8px;margin-bottom:12px}.reference-import .import-preview>p{margin:0}.reference-import .import-preview-actions .button{height:auto;min-height:38px}.reference-import .import-note{overflow-wrap:anywhere}

#referenceImportResult:not(:empty){margin-top:12px}
