.import-panel {
    border: 1px solid #ffe0b2;
    border-radius: 6px;
    margin: 12px 16px;
    background: #fff8f0;
    overflow: hidden;

    .import-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 14px;
        background: #f57c00;
        color: #fff;
        font-size: 14px;
        font-weight: 500;

        .btn-close {
            background: none;
            border: none;
            color: #fff;
            cursor: pointer;
            font-size: 16px;
            &:hover { opacity: 0.7; }
        }
    }

    .import-body { padding: 14px; }

    .drop-zone {
        border: 2px dashed #ffb74d;
        border-radius: 8px;
        padding: 32px;
        text-align: center;
        background: #fff;
        cursor: default;
        transition: border-color 0.2s;

        &.has-file { border-color: #388e3c; background: #f1f8e9; }

        .drop-icon { font-size: 36px; margin-bottom: 10px; }

        p { margin: 6px 0; font-size: 14px; color: #555; }
        .drop-sub { color: #aaa; }
        .drop-hint { font-size: 11px; color: #aaa; margin-top: 8px; }

        .btn-browse {
            display: inline-block;
            padding: 7px 18px;
            background: #f57c00;
            color: #fff;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            margin: 8px 0;

            &:hover { opacity: 0.85; }
        }

        .file-selected {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 14px;

            .file-icon { font-size: 24px; }
            .file-name { font-weight: 500; color: #333; }
            .file-size { color: #777; font-size: 12px; }
        }
    }

    .preview-meta {
        margin-bottom: 12px;

        .meta-row {
            display: flex;
            gap: 12px;
            padding: 4px 0;
            font-size: 13px;
            border-bottom: 1px solid #ffe0b2;

            span { color: #777; width: 130px; flex-shrink: 0; }
            strong { color: #333; }
        }
    }

    .preview-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
        margin-bottom: 14px;

        th, td {
            padding: 6px 10px;
            text-align: left;
            border-bottom: 1px solid #ffe0b2;
        }

        th { background: #fff3e0; font-weight: 600; color: #555; }

        td.warn { color: #e65100; }
    }

    .import-options {
        margin-bottom: 14px;

        .option-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
            font-size: 13px;

            label { width: 180px; flex-shrink: 0; color: #555; }

            .num-input, .select-input {
                border: 1px solid #bdbdbd;
                border-radius: 4px;
                padding: 5px 8px;
                font-size: 13px;
                min-width: 140px;
            }
        }
    }

    .upload-progress {
        margin-bottom: 14px;

        label { display: block; font-size: 12px; color: #555; margin-bottom: 4px; }

        .progress-bar {
            height: 8px;
            background: #ffe0b2;
            border-radius: 4px;
            overflow: hidden;

            .progress-fill {
                height: 100%;
                background: #f57c00;
                transition: width 0.3s;
            }
        }
    }

    .run-summary {
        background: #fff;
        border: 1px solid #ffe0b2;
        border-radius: 6px;
        padding: 12px;
        margin-bottom: 14px;

        .summary-row {
            display: flex;
            gap: 12px;
            padding: 4px 0;
            font-size: 13px;
            border-bottom: 1px solid #fff3e0;

            span { width: 120px; color: #777; }
            strong { color: #333; }
        }

        .error-detail {
            margin-top: 8px;
            font-size: 12px;
            color: #b71c1c;
            background: #ffebee;
            padding: 6px;
            border-radius: 4px;
        }
    }

    .waiting-msg {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: #777;
        padding: 8px 0;
    }

    .error-msg {
        color: #c62828;
        font-size: 13px;
        padding: 6px 10px;
        background: #ffebee;
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .step-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 8px;

        button {
            padding: 7px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 6px;

            &:disabled { opacity: 0.6; cursor: not-allowed; }
        }

        .btn-back   { background: #eee; color: #333; margin-right: auto; }
        .btn-cancel { background: #eee; color: #333; }
        .btn-next   { background: #f57c00; color: #fff; }
    }

    .spinner {
        display: inline-block;
        width: 12px;
        height: 12px;
        border: 2px solid rgba(255,255,255,0.4);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;

        &.dark {
            border-color: rgba(0,0,0,0.15);
            border-top-color: #555;
        }
    }

    @keyframes spin { to { transform: rotate(360deg); } }
}
