.dataset-dropdown {
    min-width: 240px;
}

.gene-control-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.gene-control-label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.gene-dropdown {
    min-width: 240px;
}

.gene-dual-layout {
    display: flex;
    gap: 24px;
    min-height: 460px;
}

.gene-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bar-plot {
    min-height: 440px;
    border: 1px solid #ebeef5;
    border-radius: 6px;
    background: #fafbfc;
}

.bar-plot-compact {
    min-height: 320px;
}

.umap-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    min-height: 32px;
}

.umap-panel-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.umap-metric-dropdown {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 160px;
}

@media (max-width: 900px) {
    .umap-dual-layout,
    .gene-dual-layout {
        flex-direction: column;
    }
    .umap-plot {
        min-height: 340px;
    }
}

.umap-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.umap-panel {
    background: #ffffff;
    border: 1px solid #ebeef5;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.umap-panel-header {
    background: #fafafa;
    padding: 8px 14px;
    border-bottom: 1px solid #ebeef5;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.umap-plot {
    flex: 1;
    min-height: 350px;   /* 可根据需要调整 */
}

/* 跳转按钮 */
.link-actions {
    display: flex;
    flex-direction: column;    /* 【关键】改为上下垂直排列 */
    justify-content: center;   /* 在 400px 的网格高度中垂直居中 */
    align-items: stretch;      /* 按钮宽度拉满对齐 */
    gap: 48px;                 /* 两个按钮之间留出呼吸空间 */
    height: 100%;              /* 占满整个网格高度 */
    padding: 0 40px;           /* 左右留出安全边距，避免太宽 */
    border-top: none;          /* 删掉之前的虚线 */
}