/* Editable dashboard styles: shared shell, responsive layout and scientific views.
   Plot coordinates, data transformations and statistical results are computed in JS/R/Python. */
:root {
  --ink: #233a3b;
  --muted: #73817f;
  --teal: #17847d;
  --paper: #f5f6f2;
  --line: #e0e6de;
  --white: #fff;
  --amber: #c27c39;
  --purple: #7b6ba4;
  --control: #8c9894;
  --scz: #1c827b;
  --bp: #c67b45;
  --mdd: #8e70a8;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: var(--teal);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 218px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.1px;
  margin-bottom: 52px;
}
.brandmark {
  font-family: Georgia, serif;
  font-size: 40px;
  letter-spacing: -11px;
  background: #eaf1eb;
  border-radius: 12px;
  width: 46px;
  height: 49px;
  padding-left: 7px;
  line-height: 44px;
  color: var(--teal);
}
.brandmark span {
  color: #91a99b;
}
.brand strong {
  font-weight: 600;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #91a099;
  font-weight: 700;
  margin: 0 9px 15px;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  border: 0;
  background: none;
  text-align: left;
  padding: 12px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: #687875;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
nav button span {
  font-size: 20px;
  width: 19px;
  line-height: 18px;
}
nav button:hover {
  background: #f3f6f1;
}
nav button.active {
  background: #e8f2ed;
  color: #176f65;
  font-weight: 650;
}
.side-cohorts {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 26px;
  font-size: 12px;
}
.side-cohorts > div:not(.nav-label) {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 15px 9px;
}
.side-cohorts small {
  font-size: 9px;
  color: var(--muted);
  margin-left: auto;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 100%;
  display: inline-block;
  flex-shrink: 0;
}
.benjamin {
  background: var(--teal);
}
.ketchesin {
  background: var(--amber);
}
.lanz {
  background: var(--purple);
}
.side-footer {
  margin-top: auto;
  font-size: 10px;
  color: #7b8982;
  line-height: 1.9;
  padding: 10px 8px;
}
.side-footer small {
  font-size: 10px;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #66a988;
  margin-right: 5px;
}
.workspace {
  margin-left: 218px;
}
.topbar {
  height: 68px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fbfcf9;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: #82918c;
}
.slash {
  margin: 0 16px;
  color: #bdc7bf;
}
.status-pill {
  background: #edf1ea;
  border: 1px solid #dfe7dc;
  border-radius: 20px;
  padding: 7px 11px;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #657a68;
}
main {
  padding: 37px 44px 55px;
  max-width: 1680px;
  margin: auto;
  min-height: calc(100vh - 133px);
}
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: -1px;
  margin: 9px 0 12px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 9px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 8px;
}
p {
  line-height: 1.65;
  margin: 0 0 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: #56836c;
  text-transform: uppercase;
}
.subhead {
  font-size: 13px;
  color: var(--muted);
  max-width: 790px;
  line-height: 1.65;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head .tag {
  margin-top: 18px;
}
.tag {
  display: inline-block;
  font-size: 10px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #74827b;
  background: #fafffa;
  white-space: nowrap;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 3px #1d493703;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 29px 0 14px;
}
.section-title h2 {
  margin: 0;
}
.section-title small,
.muted {
  color: var(--muted);
  font-size: 11px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin: 25px 0;
}
.stat {
  padding: 22px 25px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat small {
  display: block;
  color: #7d8b83;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 8px 0 4px;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.cohort-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cohort-card {
  border-top: 3px solid var(--accent);
  position: relative;
}
.cohort-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cohort-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
}
.cohort-card h3 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin-top: 8px;
}
.cohort-card .annotation {
  margin: 12px 0;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  min-height: 32px;
}
.region-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.region-pills span {
  font-size: 10px;
  padding: 5px 8px;
  background: #f2f5f0;
  border-radius: 4px;
}
.bar {
  display: flex;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  margin: 20px 0 12px;
}
.bar span {
  min-width: 1px;
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #78867e;
  align-items: center;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 26px 30px;
  background: #eaf1e8;
  border: 1px solid #dce5d9;
  border-radius: 10px;
  margin: 25px 0;
}
.hero-strip h2 {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
}
.hero-strip p {
  font-size: 12px;
  color: #698072;
  margin: 0;
}
.button,
.primary {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid #d5dfd5;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.primary {
  background: #216e62;
  border-color: #216e62;
  color: #fff;
}
.button:hover {
  background: #f0f5ee;
}
.primary:hover {
  background: #15594e;
}
.small-btn {
  padding: 7px 10px;
  font-size: 10px;
}
.note {
  border-left: 3px solid #b7c9b4;
  padding: 10px 14px;
  background: #eef3ea;
  color: #61755f;
  font-size: 11px;
  line-height: 1.6;
  margin: 15px 0;
}
.note.amber {
  border-color: #d8bd8a;
  background: #f7f2e7;
  color: #8a7146;
}
.controls {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  flex-wrap: wrap;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}
.field label,
.control-label {
  font-size: 10px;
  letter-spacing: 0.55px;
  color: #7a897f;
  font-weight: 650;
  text-transform: uppercase;
}
input,
select,
textarea {
  border: 1px solid #dbe3d8;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  font-size: 12px;
  min-width: 0;
}
select {
  padding-right: 26px;
  max-width: 100%;
}
.field.grow {
  flex: 1;
  min-width: 250px;
}
.gene-search {
  position: relative;
}
.gene-search input {
  width: 100%;
}
.suggestions {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  border: 1px solid var(--line);
  background: #fff;
  z-index: 12;
  box-shadow: 0 10px 30px #293f3520;
  border-radius: 6px;
  max-height: 290px;
  overflow: auto;
}
.suggestions button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f2f3ef;
  background: #fff;
  text-align: left;
  font-size: 12px;
}
.suggestions button:hover {
  background: #edf4e9;
}
.suggestions small {
  font-size: 10px;
  color: var(--muted);
}
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}
.chip {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #dce7d8;
  background: #edf4e9;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 11px;
  color: #42694b;
}
.chip button {
  border: 0;
  background: none;
  font-size: 15px;
  padding: 0;
  line-height: 14px;
}
.presets {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 13px;
  font-size: 10px;
  color: #8a968e;
}
.text-button {
  color: #447d6b;
  background: none;
  border: 0;
  padding: 0;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.control-row {
  border-top: 1px solid #edf0e9;
  padding-top: 16px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}
.segmented {
  display: inline-flex;
  gap: 2px;
  background: #edf1e9;
  padding: 3px;
  border-radius: 6px;
}
.segmented button {
  border: 0;
  background: none;
  border-radius: 4px;
  font-size: 11px;
  padding: 7px 11px;
  color: #768575;
}
.segmented button.active {
  background: #fff;
  box-shadow: 0 1px 3px #2b473512;
  color: #365d42;
}
.checks {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  flex-wrap: wrap;
}
.checks label {
  display: flex;
  gap: 5px;
  align-items: center;
}
.checks input {
  accent-color: var(--teal);
  width: 13px;
  height: 13px;
  padding: 0;
}
.gene-heading {
  margin: 32px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.gene-heading h2 {
  font-size: 23px;
  display: inline-block;
  margin: 0 10px 0 0;
}
.gene-heading code {
  font-size: 11px;
  color: #8a978e;
}
.gene-heading .muted {
  display: block;
  margin-top: 6px;
}
.plot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.plot-card {
  padding: 17px 13px 10px;
  border-top: 3px solid var(--accent);
}
.plot-card .cohort-top {
  padding: 0 4px;
  margin-bottom: 6px;
}
.plot-card .annotation {
  font-size: 9px;
  color: #839085;
  line-height: 1.55;
  padding: 0 4px;
  margin: 4px 0 14px;
}
.boxplot {
  display: block;
  width: 100%;
  height: auto;
}
.axis {
  fill: #8b968e;
  font-size: 9px;
}
.plot-label {
  fill: #657966;
  font-size: 10px;
}
.gridline {
  stroke: #edf0e9;
  stroke-width: 1;
}
.expression-caption {
  font-size: 9px;
  line-height: 1.6;
  color: #859287;
  margin: 4px;
}
.missing {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #98a18f;
  text-align: center;
  font-size: 12px;
  background: repeating-linear-gradient(135deg, #fafbf8, #fafbf8 7px, #f4f6f0 7px, #f4f6f0 8px);
  border-radius: 5px;
}
.plot-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 7px;
}
.plain-btn {
  border: 0;
  background: none;
  color: #79907c;
  font-size: 9px;
}
.heat-scroll,
.table-wrap {
  overflow-x: auto;
}
.heatmap {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  font-size: 11px;
}
.heatmap th {
  font-size: 9px;
  font-weight: 500;
  color: #778778;
  padding: 5px;
  white-space: nowrap;
}
.heatmap td {
  text-align: center;
  min-width: 54px;
  height: 40px;
  padding: 5px 7px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.heatmap th.rowlabel {
  text-align: left;
  font-size: 11px;
  color: #3e6048;
  min-width: 90px;
  position: sticky;
  left: 0;
  background: white;
}
.color-key {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #829080;
  margin: 10px 0;
}
.gradient {
  width: 140px;
  height: 7px;
  border-radius: 3px;
  background: linear-gradient(to right, rgb(36, 91, 166), rgb(249, 249, 245), rgb(185, 72, 32));
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 1fr);
  gap: 20px;
}
.two-col > .card {
  min-width: 0;
}
.metric-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.metric-row span {
  font-size: 10px;
  color: var(--muted);
}
.metric-row strong {
  display: block;
  color: #315e4e;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin: 4px 0;
}
.matrix {
  border-collapse: separate;
  border-spacing: 3px;
  width: 100%;
  font-size: 9px;
}
.matrix th {
  color: #77887a;
  font-size: 9px;
  text-align: right;
  font-weight: 500;
  white-space: nowrap;
}
.matrix th.col {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  height: 105px;
  text-align: left;
  padding: 8px;
}
.matrix td {
  text-align: center;
  border-radius: 4px;
  height: 39px;
  min-width: 33px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.matrix button {
  border: 0;
  background: none;
  width: 100%;
  height: 100%;
  font-size: 11px;
  padding: 0;
}
.matrix td.selected {
  outline: 2px solid #386e5c;
  outline-offset: -2px;
}
.scatter-wrap {
  position: relative;
  width: 100%;
  height: 410px;
}
.scatter-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.scatter-hint {
  font-size: 10px;
  color: #8b968b;
  text-align: center;
  margin: 8px 0 0;
}
.tooltip {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  background: #263f36;
  color: #fff;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 11px;
  line-height: 1.6;
  box-shadow: 0 4px 15px #203f3320;
  max-width: 320px;
}
.tooltip small {
  color: #cbddd0;
}
.table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  white-space: nowrap;
}
.table th {
  text-align: left;
  font-weight: 600;
  color: #7c8b7e;
  font-size: 9px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  background: #fafcf7;
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1e9;
  font-variant-numeric: tabular-nums;
}
.table tr:hover td {
  background: #f7faf3;
}
.table button {
  border: 0;
  background: none;
  color: var(--teal);
  padding: 0;
  font-size: 11px;
}
.positive {
  color: #147e6e;
}
.negative {
  color: #997a56;
}
.badge {
  font-size: 9px;
  color: #6a8373;
  background: #edf3e9;
  padding: 3px 5px;
  border-radius: 3px;
}
.empty {
  padding: 45px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.error {
  background: #fff3ee;
  border: 1px solid #ebcbbc;
  color: #985c40;
  padding: 20px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
}
.loading {
  padding: 70px;
  text-align: center;
  font-size: 12px;
  color: #799183;
}
.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid #dce8d9;
  border-top-color: var(--teal);
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.footer {
  border-top: 1px solid var(--line);
  padding: 19px 44px;
  font-size: 10px;
  color: #90a08f;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.footer span {
  font-size: 9px;
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.method-grid .card {
  margin-bottom: 0;
}
.method-grid p {
  font-size: 12px;
  color: #768578;
}
.method-grid h3 {
  text-transform: capitalize;
}
.source-link {
  display: block;
  font-size: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.qc-chart {
  height: 285px;
  width: 100%;
  display: block;
}
.inline-code {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  background: #f1f5ed;
  border-radius: 3px;
  padding: 2px 4px;
}
.mini-definition {
  font-size: 11px;
  color: #7c8c7d;
  line-height: 1.7;
  margin: 10px 0;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 11px 18px;
  border-radius: 6px;
  background: #29483b;
  color: #fff;
  font-size: 12px;
  z-index: 70;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
}
.range-value {
  font-size: 11px;
  color: #54765c;
}
.wide-note {
  font-size: 11px;
  line-height: 1.7;
  color: #7f8c7e;
  max-width: 1000px;
}
.probe-details {
  font-size: 9px;
  color: #899687;
  padding: 8px 4px;
  overflow-wrap: anywhere;
}
.coexpr-toolbar {
  margin: 18px 0;
}
.pc-legend {
  margin-bottom: 12px;
}
.check-icon {
  font-size: 17px;
  color: #73a47d;
}
.stack {
  display: grid;
  gap: 10px;
}
.cap {
  font-size: 10px;
  color: #81907e;
}
.nowrap {
  white-space: nowrap;
}
@media (min-width: 1500px) {
  main {
    padding-top: 46px;
  }
  .plot-card {
    padding: 20px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 187px;
    padding: 30px 14px;
  }
  .workspace {
    margin-left: 187px;
  }
  .topbar {
    padding: 0 26px;
  }
  main {
    padding: 30px 25px;
  }
  .cohort-grid,
  .plot-grid {
    gap: 12px;
  }
  .cohort-card {
    padding: 17px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 20px 17px;
  }
  h1 {
    font-size: 34px;
  }
  .footer {
    padding: 17px 25px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 15px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    margin: 0 0 15px;
  }
  .brandmark {
    width: 36px;
    height: 37px;
    font-size: 30px;
    line-height: 33px;
    letter-spacing: -8px;
  }
  .sidebar > .nav-label,
  .side-cohorts,
  .side-footer {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  nav button {
    padding: 9px 10px;
    font-size: 11px;
  }
  nav button span {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 46px;
    padding: 0 20px;
    font-size: 8px;
  }
  .status-pill {
    font-size: 8px;
  }
  main {
    padding: 25px 18px;
  }
  .page-head {
    margin-bottom: 21px;
  }
  h1 {
    font-size: 32px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(2) {
    border: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .cohort-grid,
  .plot-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }
  .hero-strip {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .footer {
    padding: 16px 18px;
    flex-direction: column;
    gap: 5px;
  }
  .field {
    min-width: 120px;
    flex: 1;
  }
  .page-head .tag {
    display: none;
  }
  .card {
    padding: 17px;
  }
  .plot-card {
    padding: 17px;
  }
  .scatter-wrap {
    height: 350px;
  }
  .control-row {
    align-items: flex-start;
  }
  .gene-heading code {
    display: block;
    margin-top: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 760px) {
  .plot-grid {
    grid-template-columns: 1fr !important;
  }
}
/* Native inference views share the atlas typography and cohort accents. */
.infer-controls {
  margin-top: 20px;
}
.infer-controls .field {
  min-width: 155px;
}
.infer-controls select {
  max-width: 100%;
}
.infer-title {
  margin-top: 0;
}
.infer-gene-name {
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 400;
  margin: 12px 0 5px;
}
.infer-summary h2 {
  font-size: 17px;
}
.infer-summary details {
  margin-top: 12px;
}
.infer-summary summary {
  cursor: pointer;
  color: var(--teal);
  font-size: 12px;
}
.infer-summary details p {
  margin-top: 12px;
}
.age-chart {
  width: 100%;
  height: auto;
  display: block;
  margin: 8px 0 14px;
}
.age-slider {
  background: #f4f7f1;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 17px;
  margin: 18px 0;
  font-size: 12px;
}
.age-slider input {
  display: block;
  width: 100%;
  margin: 15px 0;
  accent-color: var(--teal);
}
.age-slider p {
  font-size: 14px;
  margin-bottom: 9px;
}
.age-slider small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.infer-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
}
.infer-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
#infer-min {
  width: 130px;
}
#infer-content .table {
  font-variant-numeric: tabular-nums;
}
#infer-content .cohort-top {
  gap: 15px;
  flex-wrap: wrap;
}
#infer-content .metric-row {
  flex-wrap: wrap;
}
.sidebar {
  overflow-y: auto;
}
.side-footer {
  padding-top: 24px;
}
@media (max-width: 800px) {
  .infer-controls .field {
    flex: 1 1 190px;
  }
  .infer-pagination {
    flex-wrap: wrap;
  }
  .infer-summary h2 {
    font-size: 15px;
  }
  .infer-gene-name {
    font-size: 25px;
  }
}
.infer-modes {
  flex-wrap: wrap;
}
.age-multi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 18px;
  align-items: start;
}
.age-multi-grid > div {
  min-width: 0;
}
.age-overlay-chart {
  max-height: 580px;
}
.age-multi-grid .card {
  padding: 18px;
}
.age-multi-grid .table th,
.age-multi-grid .table td {
  padding: 9px 8px;
}
#multi-age-table {
  margin: 10px 0 14px;
}
#multi-age-table .table th {
  background: transparent;
}
#multi-export-curves:disabled,
#multi-export-svg:disabled {
  opacity: 0.45;
  cursor: default;
}

.volcano-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.top-gene-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.top-genes td,
.top-genes th {
  padding: 8px 5px;
  font-size: 11px;
}
.top-genes td:first-child {
  max-width: 130px;
  overflow-wrap: anywhere;
}
.top-genes button {
  text-align: left;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.selected-gene {
  background: #e7eef8;
}
.selected-gene button {
  color: #182e54;
  font-weight: 750;
}
.meets-threshold {
  font-weight: 750;
  color: #255a49;
}
@media (max-width: 1200px) {
  .volcano-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .top-gene-columns {
    grid-template-columns: 1fr;
  }
}

.go-controls {
  margin: 20px 0;
}
.go-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  padding: 14px 16px;
  background: #f3f6f0;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.7;
}
.go-dotplot {
  max-width: 1000px;
  margin: 22px auto 12px;
}
.go-dotplot svg {
  display: block;
  width: 100%;
  height: auto;
}
.go-table td:first-child {
  min-width: 230px;
}
.go-table button {
  text-align: left;
}
.go-table .go-cell {
  text-align: center;
  min-width: 150px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  border: 4px solid white;
  border-radius: 6px;
}
.go-cell small {
  font-weight: 400;
}
.go-unavailable {
  background: #ecefeb;
  text-align: center;
  color: #657366;
}
.go-member-panel {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.go-methods {
  margin-top: 26px;
  font-size: 12px;
  line-height: 1.7;
}
.go-methods summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 600;
}
.go-member-panel .section-title {
  flex-wrap: wrap;
}
.segmented {
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .go-dotplot {
    overflow: auto;
  }
  .go-dotplot svg {
    min-width: 590px;
  }
  .go-coverage {
    display: block;
  }
  .go-coverage > div + div {
    margin-top: 10px;
  }
}

/* compareCluster-style GO plots keep label and circle sizes readable. */
.go-dotplot {
  max-width: none;
  overflow-x: auto;
  margin: 16px 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.go-dotplot svg {
  display: block;
  width: 100%;
  height: auto;
}
.go-selectable {
  cursor: pointer;
}
.go-selectable:focus {
  outline: 2px solid #182e54;
  outline-offset: 3px;
}
.go-selectable:hover text {
  text-decoration: underline;
}
.go-selectable:hover circle {
  stroke: #182e54;
  stroke-width: 2.5;
}
.go-plot-title {
  margin-top: 20px;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.go-plot-title h3 {
  margin: 0 0 7px;
}
.go-numeric {
  margin: 18px 0;
  font-size: 12px;
}
.go-numeric summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 600;
}
.go-numeric .table-wrap {
  margin-top: 12px;
}
.go-coverage > div {
  flex: 1 1 240px;
}

.co-trend-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.5;
  margin: 14px 0;
  color: #344f8c;
  cursor: pointer;
}
.co-trend-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #344f8c;
  margin: 0;
}
.co-trend-key {
  display: inline-block;
  width: 25px;
  height: 13px;
  background: #344f8c26;
  position: relative;
}
.co-trend-key:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  border-top: 2px solid #344f8c;
}
