.upload-dropzone{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px;border:2px dashed #9ab6a7;border-radius:12px;background:#f7faf7;min-width:0;max-width:100%;box-sizing:border-box;transition:background-color .15s,border-color .15s}
.upload-dropzone.is-dragging{border-color:var(--green,#146b57);background:var(--mint,#e9f4ee)}
.upload-dropzone:focus-within{outline:2px solid var(--green,#146b57);outline-offset:3px}
.upload-dropzone input[type=file]{display:block;width:100%;max-width:100%;min-width:0;min-height:44px;padding:0!important;margin:0;box-sizing:border-box;background:#fff;font:inherit;line-height:normal;overflow:hidden;text-overflow:ellipsis}
.upload-dropzone input[type=file]::file-selector-button{margin:0 10px 0 0;padding:10px 14px;min-height:44px;box-sizing:border-box;vertical-align:middle;border:0;border-right:1px solid #cbd9d1;border-radius:6px 0 0 6px;background:#e9f4ee;color:#174f3f;font:inherit;font-weight:600;cursor:pointer}
.upload-drop-hint{font-weight:600;color:var(--green,#146b57)}
.upload-drop-hint,.upload-drop-status,.upload-drop-error{max-width:100%;overflow-wrap:anywhere;margin:0}
.upload-drop-status{font-size:13px;color:var(--muted,#52635a)}
.upload-drop-error{font-size:13px;color:var(--danger,#a32323)}
.upload-drop-clear[hidden],.upload-drop-error[hidden]{display:none}
.record-import-controls{display:grid;grid-template-columns:minmax(170px,1fr) minmax(250px,2fr);gap:14px;align-items:start}
.record-import-controls>label,.record-import-file{min-width:0;margin:0}
.record-import-controls>label{display:flex;flex-direction:column;align-items:stretch;gap:6px}
.record-import-file>label{display:block;margin-bottom:6px}
.record-import-action{grid-column:1/-1}
.record-import-guide{margin-top:20px;min-width:0}
.record-import-guide [hidden]{display:none!important}
.record-import-guide pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;padding:12px;background:#f4f7f4;border-radius:8px;font-size:13px}
.record-import-table{max-width:100%;overflow-x:auto}
.record-import-table td,.record-import-table th{vertical-align:top;overflow-wrap:anywhere}
.record-import-table code{white-space:nowrap}
@media(max-width:600px){
 .record-import-controls{grid-template-columns:minmax(0,1fr)}.upload-dropzone{padding:12px}
 .record-import-table table,.record-import-table tbody{display:block;min-width:0;width:100%}
 .record-import-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .record-import-table tbody tr{display:grid;grid-template-columns:90px minmax(0,1fr);gap:0 12px;padding:12px 0;border-bottom:1px solid #dce6df}
 .record-import-table td,.record-import-table th{display:block;width:auto;padding:0;border:0;font-size:14px}
 .record-import-table td:last-child{grid-column:1/-1;margin-top:6px}
}
@media(prefers-reduced-motion:reduce){.upload-dropzone{transition:none}}
