body {
    background: #0b1120;
    font-family: "Segoe UI", sans-serif;
    color: #f8fafc;
    margin: 0;
}

.main-container {
    padding: 28px;
    max-width: 1600px;
    margin: auto;
}

.hero-card {
    background: linear-gradient(135deg, #1e293b, #111827);
    border: 1px solid #334155;
    border-radius: 24px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}

.badge-soft {
    display: inline-block;
    background: rgba(59,130,246,0.15);
    color: #93c5fd;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 12px;
}

.hero-card h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px;
}

.hero-card p {
    color: #cbd5e1;
    max-width: 760px;
    margin: 0;
}

.process-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0;
}

.process-step {
    background: #111827;
    border: 1px solid #334155;
    color: #94a3b8;
    border-radius: 16px;
    padding: 14px;
    font-weight: 600;
}

.process-step span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1e293b;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.process-step.active {
    color: #ffffff;
    border-color: #3b82f6;
    background: rgba(59,130,246,0.12);
}

.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.panel-card,
.mapping-card {
    background: #111827;
    border: 1px solid #334155;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.28);
}

.panel-header,
.mapping-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.panel-header h3,
.mapping-top h3 {
    font-size: 18px;
    margin: 0;
    font-weight: 700;
}

.panel-header small,
.mapping-top p {
    color: #94a3b8;
}

.mapping-top p {
    margin: 5px 0 0;
}

.pill {
    background: #1e293b;
    color: #93c5fd;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.code-box {
    width: 100%;
    height: 62vh;
    resize: vertical;
    border: 1px solid #334155;
    outline: none;
    border-radius: 16px;
    background: #020617;
    color: #e5e7eb;
    padding: 18px;
    font-size: 14px;
    line-height: 1.65;
    font-family: Consolas, monospace;
}

.code-box:focus {
    border-color: #3b82f6;
}

.btn-primary-action {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 700;
}

.btn-primary-action:hover {
    background: #1d4ed8;
    color: white;
}

.btn-secondary-action,
.copy-btn {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
}

.btn-secondary-action:hover,
.copy-btn:hover {
    background: #334155;
    color: white;
}

.mapping-card {
    margin-top: 24px;
}

.mapping-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.field-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field-row {
    display: grid;
    grid-template-columns: 42px 1fr 260px;
    gap: 16px;
    align-items: center;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 14px;
}

.field-row:hover {
    border-color: #3b82f6;
    background: #0f172a;
}

.field-check input {
    width: 20px;
    height: 20px;
}

.field-info label,
.field-target label {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 5px;
}

.source-path {
    color: #cbd5e1;
    font-family: Consolas, monospace;
    font-size: 13px;
    word-break: break-all;
}

.form-control {
    background: #0f172a;
    border: 1px solid #334155;
    color: white;
    border-radius: 12px;
    padding: 10px 12px;
}

.form-control:focus {
    background: #0f172a;
    color: white;
    border-color: #3b82f6;
    box-shadow: none;
}

@media (max-width: 1000px) {
    .workspace-grid,
    .process-strip {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .mapping-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .field-row {
        grid-template-columns: 36px 1fr;
    }

    .field-target {
        grid-column: 2;
    }

    .code-box {
        height: 48vh;
    }
}