.atlas-explore[hidden], .atlas-explore-cell-list[hidden], .atlas-explore [hidden] { display: none !important; }
.atlas-explore { grid-column: 1 / -1; min-width: 0; padding: 1.4rem; }
.atlas-explore h2, .atlas-explore h3 { color: #2d2439; margin: 0 0 .65rem; }
.atlas-explore-note { color: #615970; font-size: .875rem; margin: .5rem 0; }
.atlas-explore-note:empty { display: none; }
.atlas-explore-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .7rem; align-items: end; max-width: 55rem; }
.atlas-explore-form label { min-width: 0; display: grid; gap: .3rem; }
.atlas-explore-figure-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(135px,175px); align-items: start; gap: .8rem; }
.atlas-explore-figure-row > * { min-width: 0; }
.atlas-explore-cell-list { padding: .8rem .6rem; border: 1px solid #e5deed; border-radius: 10px; background: #fbf9fc; }
.atlas-explore-cell-list h3 { margin: 0 0 .4rem; font-size: 1rem; }
.atlas-explore-clear { margin-bottom: .35rem; width: 100%; font-size: .78rem; }
.atlas-explore-types { display: grid; grid-template-columns: minmax(0,1fr); gap: .22rem; max-height: 395px; overflow: auto; }
.atlas-explore-types button, .atlas-explore-table button { border: 0; border-radius: .35rem; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.atlas-explore-types button { display: flex; gap: .35rem; justify-content: space-between; padding: .33rem .35rem; font-size: .8rem; }
.atlas-explore-types button:hover, .atlas-explore-types button[aria-pressed=true],
.atlas-explore-table button[aria-pressed=true], .atlas-explore-table .is-highlighted > th { background: #eaddf5; color: #422459; }
.atlas-explore-types small { color: #6c5f75; white-space: nowrap; }
.atlas-explore-feature, .atlas-explore-heatmap, .atlas-explore-related { margin-top: 1.2rem; }
.atlas-explore-feature canvas { width: 100%; display: block; }
.atlas-explore-scale, .atlas-explore-gene-list, .atlas-explore-heatmap-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; }
.atlas-explore-scale { font-size: .8rem; color: #615970; }
.atlas-explore-ramp { display: inline-block; width: 6rem; height: .6rem; border-radius: .3rem; background: linear-gradient(90deg,#f7f2fa,#473084); }
.atlas-explore-unavailable::before { display:inline-block; content:''; width:.65rem; height:.65rem; margin-right:.25rem; border-radius:50%; background:#b9a9aa; }
.atlas-explore-heatmap-heading { justify-content: space-between; }
.atlas-explore-table-wrap { max-width: 100%; overflow: auto; }
.atlas-explore-table { border-collapse: separate; border-spacing: 2px; width: max-content; min-width: 56%; }
.atlas-explore-table th, .atlas-explore-table td { padding: .28rem .52rem; border: 0; font-size: .82rem; }
.atlas-explore-table th small { display: block; font-weight: normal; }
.atlas-explore-table td { color: #241433; text-align:right; font-variant-numeric: tabular-nums; }
.atlas-explore-table td.is-dark { color: #fff; }
@media(max-width: 1150px) {
 .atlas-explore-figure-row { grid-template-columns: minmax(0,1fr); }
 .atlas-explore-types { grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); max-height: 150px; }
}
@media(max-width: 520px) { .atlas-explore-form { grid-template-columns: 1fr; } }

.atlas-explore .atlas-explore-feature { margin-top: 0; }
.feature-plot-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
}
.feature-plot-header h3 { margin: 0; font-size: 1.26rem; }
.feature-plot-content { min-width: 0; }
.feature-plot-tools, .feature-plot-zoom, .feature-plot-tools label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .38rem;
}
.feature-plot-tools label { gap: .5rem; font-size: .85rem; font-weight: 600; }
.feature-plot-tools select, .feature-plot-tools button {
  min-height: 2.4rem;
  padding: .4rem .65rem;
  font-size: .83rem;
}
.feature-plot-tools button[aria-label^="Zoom"] { min-width: 2.4rem; font-size: 1rem; }
.feature-plot-viewport { color: #282238; min-width: 0; width: 100%; }
.feature-plot-viewport canvas { display: block; width: 100%; }
.feature-plot-viewport canvas[data-zoomed="true"] { cursor: grab; touch-action: none; }
.feature-plot-viewport canvas[data-zoomed="true"]:active { cursor: grabbing; }
.feature-plot-content [hidden] { display: none !important; }
.feature-plot-scale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .95rem;
  font-size: .8rem;
  color: #49536a;
  margin: .8rem 0 .95rem;
}
.feature-plot-key, .feature-plot-intensity { display: inline-flex; align-items: center; gap: .38rem; }
.feature-plot-key::before { width: .65rem; height: .65rem; border-radius: 50%; content: ''; display: inline-block; }
.feature-plot-zero::before { background: #c6ccd9; }
.feature-plot-missing::before { background: #a67b61; }
.feature-plot-cutoff { color: #646d82; font-size: .76rem; }
.feature-plot-intensity .atlas-explore-ramp {
  width: 7.5rem;
  height: .68rem;
  background: linear-gradient(90deg,#4384bd,#2d166e);
}
.feature-plot-dialog {
  border-radius: 14px;
  border: 1px solid #dedce9;
  padding: clamp(.7rem,2vw,1.5rem);
  width: min(96vw,2000px);
  max-width: 96vw;
  max-height: 94dvh;
  overflow: auto;
  background: #fff;
  color: #282238;
}
.feature-plot-dialog::backdrop { background: #231b32b8; }
.feature-plot-dialog .feature-plot-header {
  position: sticky; top: 0; z-index: 1; padding: .35rem 0;
  background: #fff;
}

.atlas-aligned-plots { display:grid; min-width:0; gap:22px; }
.atlas-aligned-feature { margin-top:0; }
.atlas-aligned-feature[hidden] { display:none !important; }
.feature-plot-row { margin-top:.65rem; }
.feature-plot-row-expanded { grid-template-columns:minmax(0,1fr); }
.feature-plot-row-expanded .feature-plot-scale { grid-row:1; margin-top:0; }
.feature-plot-row:not(.feature-plot-row-expanded) .feature-plot-scale {
  align-content:flex-start; margin:0; padding:.75rem .65rem;
  background:#fbf9fc; border:1px solid #e5deed; border-radius:10px;
}
.feature-plot-row:not(.feature-plot-row-expanded) .feature-plot-intensity { flex-wrap:wrap; }
@media(max-width:1150px) {
  .feature-plot-row:not(.feature-plot-row-expanded) .feature-plot-scale { padding:.6rem .65rem; }
}
