body {
    font-family: 'Inter', sans-serif;
}

.studio-background {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(204, 34, 0, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.08), transparent 24%),
        linear-gradient(180deg, #fff8f3 0%, #f5f7fa 52%, #eef2f7 100%);
    z-index: -1;
}

.studio-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 28px;
    box-shadow: 0 25px 60px -38px rgba(15, 23, 42, 0.45);
    padding: 1.5rem;
    backdrop-filter: blur(18px);
}

.studio-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 242, 0.98) 52%, rgba(255, 255, 255, 0.95) 100%);
    border-color: rgba(204, 34, 0, 0.12);
}

.studio-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    font-weight: 800;
    text-transform: uppercase;
    color: #cc2200;
}

.studio-action {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 16px;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.studio-action:hover {
    transform: translateY(-1px);
}

.studio-action-primary {
    color: #fff;
    background: linear-gradient(135deg, #cc2200 0%, #9f1239 100%);
    box-shadow: 0 16px 34px -24px rgba(159, 18, 57, 0.85);
}

.studio-action-secondary {
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.studio-action-secondary:hover {
    color: #cc2200;
    border-color: rgba(204, 34, 0, 0.35);
}

.studio-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    background: #fff7f2;
    color: #9a3412;
    border: 1px solid rgba(204, 34, 0, 0.16);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.55rem 0.9rem;
    text-transform: uppercase;
}

.studio-input,
.studio-select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #dbe2ea;
    background: #fff;
    color: #0f172a;
    padding: 0.85rem 0.95rem;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.studio-input:focus,
.studio-select:focus {
    border-color: rgba(204, 34, 0, 0.8);
    box-shadow: 0 0 0 4px rgba(204, 34, 0, 0.12);
}

.source-card {
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    padding: 1.25rem;
    box-shadow: 0 22px 40px -38px rgba(15, 23, 42, 0.7);
}

.source-card.is-active {
    border-color: rgba(204, 34, 0, 0.4);
    box-shadow: 0 26px 48px -34px rgba(204, 34, 0, 0.3);
}

.source-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.source-pill.required {
    background: #fff7f2;
    color: #9a3412;
    border-color: rgba(204, 34, 0, 0.16);
}

.pipeline-chip {
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1rem;
}

.pipeline-chip strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
}

.pipeline-chip span {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.summary-card {
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.92);
    padding: 1.15rem;
    box-shadow: 0 20px 44px -34px rgba(15, 23, 42, 0.5);
}

.summary-card h3 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #64748b;
}

.summary-card p {
    margin-top: 0.65rem;
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
}

.studio-log-item {
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.9rem 1rem;
}

.studio-log-item time {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.3rem;
}

.validation-item {
    border-radius: 18px;
    padding: 0.95rem 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.validation-item.ok {
    border-color: rgba(22, 163, 74, 0.25);
    background: #f0fdf4;
}

.validation-item.warn {
    border-color: rgba(245, 158, 11, 0.3);
    background: #fffbeb;
}

.validation-item.error {
    border-color: rgba(239, 68, 68, 0.3);
    background: #fef2f2;
}

.mapping-grid {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.preview-table th,
.preview-table td {
    white-space: nowrap;
    padding: 0.8rem 0.95rem;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    font-size: 0.82rem;
}

.preview-table thead th {
    background: #f8fafc;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 800;
}

.preview-table tbody tr:hover {
    background: #fff7f2;
}

details summary {
    list-style: none;
    cursor: pointer;
}

details summary::-webkit-details-marker {
    display: none;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: transparent;
}
