:root {
    --babel-accent: #f7df1e;
    --babel-accent-2: #61dafb;
    --babel-ink: #111827;
    --babel-muted: #6b7280;
    --babel-surface: rgba(255, 255, 255, 0.9);
    --babel-border: rgba(17, 24, 39, 0.12);
    --babel-shadow: 0 14px 40px rgba(17, 24, 39, 0.10);
}
.babel-shell {
    background: radial-gradient(1200px 600px at 10% -10%, rgba(247, 223, 30, 0.25), transparent 50%),
                radial-gradient(900px 500px at 90% 0%, rgba(97, 218, 251, 0.18), transparent 55%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
    border: 1px solid var(--babel-border);
    border-radius: 18px;
    box-shadow: var(--babel-shadow);
    overflow: hidden;margin-bottom: 2rem;
}

.babel-shell-header {
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--babel-border);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
}

.babel-status {
    font-size: 0.9rem;
    color: var(--babel-muted);
}

.babel-preset-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.babel-preset-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 2px 2px;
    scrollbar-width: none;
    flex: 1 1 auto;
    min-width: 0;
}

.babel-preset-row::-webkit-scrollbar {
    display: none;
}

@media (max-width: 575px) {
    .babel-preset-bar {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .babel-status {
        width: 100%;
        text-align: left;
        padding-top: 6px;
    }
}

.babel-chip {
    appearance: none;
    border: 1px solid var(--babel-border);
    background: rgba(255, 255, 255, 0.85);
    color: var(--babel-ink);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
    transition: transform 120ms ease, background 160ms ease, border-color 160ms ease;
}

.babel-chip[aria-pressed="true"] {
    background: rgba(247, 223, 30, 0.22);
    border-color: rgba(247, 223, 30, 0.6);
}

.babel-chip:active {
    transform: scale(0.98);
}

.babel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
}

.babel-btn {
    appearance: none;
    border: 1px solid var(--babel-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--babel-ink);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 120ms ease, background 160ms ease, border-color 160ms ease;
}

.babel-btn.primary {
    background: linear-gradient(135deg, rgba(247, 223, 30, 0.9), rgba(247, 223, 30, 0.65));
    border-color: rgba(247, 223, 30, 0.9);
}

.babel-btn:active {
    transform: scale(0.99);
}

.babel-btn .icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.babel-panel {
    padding: 12px 14px 14px;
}

.babel-settings {
    display: none;
    border: 1px solid var(--babel-border);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.babel-settings[data-open="true"] {
    display: block;
}

.babel-settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .babel-settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.babel-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--babel-ink);
    margin-bottom: 6px;
}

.babel-field select,
.babel-field input[type="number"] {
    width: 100%;
    border: 1px solid var(--babel-border);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--babel-ink);
}

.babel-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--babel-border);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.96);
}

.babel-toggle input {
    width: 18px;
    height: 18px;
}

.babel-toggle span {
    font-weight: 700;
    color: var(--babel-ink);
    font-size: 0.95rem;
}

.babel-editors {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
}

@media (min-width: 992px) {
    .babel-editors {
        grid-template-columns: 1fr 1fr;
    }
}

.babel-editor-card {
    border: 1px solid var(--babel-border);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
}

.babel-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--babel-border);
    background: rgba(255, 255, 255, 0.85);
}

.babel-editor-head h2 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    color: var(--babel-ink);
}

.babel-editor-head .meta {
    font-size: 0.85rem;
    color: var(--babel-muted);
    white-space: nowrap;
}

.babel-editor {
    height: 520px;
    width: 100%;
}

@media (min-width: 992px) {
    .babel-editor {
        height: 580px;
    }
}

.babel-help {
    margin-top: 14px;
    border-top: 1px solid var(--babel-border);
    padding-top: 12px;
    color: var(--babel-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.babel-help ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.babel-help li {
    margin-bottom: 6px;
}

.babel-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

