.ps-lens-card {
    background: #ffffff;
    padding: 1.5rem 0;
    margin: 1.5rem 0;
    box-sizing: border-box;
}

.ps-lens-content {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 2rem;
}

.ps-lens-chart-col {
    flex: 0 1 calc(75% - 1rem);
    max-width: calc(75% - 1rem);
    min-width: 0;
}

.ps-lens-data-col {
    flex: 0 1 calc(25% - 1rem);
    max-width: calc(25% - 1rem);
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.2rem;
}

/* Chart wrapper gets the visual styling */
.ps-chart-shell {
    width: 100%;
    border: 1px solid #d9d9d9;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
}

/* Plotly target should be plain and fully contained */
.ps-main-chart {
    width: 100%;
    min-height: 400px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Help Plotly's injected elements stay contained */
.ps-main-chart .plot-container,
.ps-main-chart .svg-container,
.ps-main-chart .main-svg {
    max-width: 100% !important;
}

.ps-chart-fallback {
    width: 100%;
    min-height: 400px;
    background: #fafafa;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.ps-od-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ps-od-item + .ps-od-item {
    margin-top: 0.35rem;
}

@media (max-width: 900px) {
    .ps-lens-chart-col,
    .ps-lens-data-col {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .ps-main-chart,
    .ps-chart-fallback {
        min-height: 320px;
    }
}