.bayes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bayes-left {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bayes-right {
    flex: 2 1 420px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bayes-panel {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.bayes-panel-subtitle {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 12px;
}

.bayes-scenario-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.bayes-scenario-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f8fafc;
}

.bayes-scenario-card:hover {
    border-color: #4f8ef7;
    box-shadow: 0 6px 18px rgba(79, 142, 247, 0.15);
}

.bayes-scenario-card.active {
    border-color: #4f8ef7;
    background: #eef4ff;
}

.bayes-scenario-card h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.bayes-scenario-card p {
    margin: 0 0 6px;
    font-size: 0.9rem;
    color: #475569;
}

.bayes-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: #1e293b;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 999px;
}

.bayes-insights {
    list-style: disc;
    padding-left: 18px;
    margin: 8px 0 0;
    color: #334155;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bayes-control-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.bayes-control-bar select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5f5;
}

.bayes-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #1e293b;
}

.bayes-parameter-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.bayes-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bayes-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

.bayes-input label {
    font-weight: 600;
    color: #1e293b;
}

.bayes-input input {
    border-radius: 6px;
    border: 1px solid #cbd5f5;
    padding: 6px 10px;
}

.bayes-custom-panel {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 12px;
    color: #1e293b;
}

.bayes-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bayes-primary-btn,
.bayes-secondary-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
}

.bayes-primary-btn {
    background: #4f8ef7;
    color: #ffffff;
}

.bayes-secondary-btn {
    background: #e2e8f0;
    color: #1e293b;
}

.bayes-primary-btn:disabled,
.bayes-secondary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bayes-error {
    color: #dc2626;
    font-size: 0.9rem;
}

.bayes-summary {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.bayes-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.bayes-summary h4 {
    margin-top: 0;
}

.bayes-plot {
    width: 100%;
    min-height: 360px;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
    .bayes-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
