[hidden] {
  display: none !important;
}
.change-sides {
  --comparison-columns: 2;
}
.record-fields {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
}
.record-fields dt {
  font-weight: 650;
  margin-top: 0.5rem;
}
.record-fields dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comparison-column h4 {
  margin: 0;
}
.provenance pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}
.provenance details {
  margin: 1rem 0;
}
#counts {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
@media (max-width: 800px) {
  .change-sides {
    --comparison-columns: 1;
  }
}

#change-explorer {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-default);
}
.cx-totals,
.cx-controls,
.cx-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-block: 1rem;
}
.cx-totals button[aria-pressed='true'] {
  outline: 2px solid var(--color-loom-700);
  outline-offset: -2px;
}
.cx-controls label {
  display: flex;
  flex-direction: column;
  flex: 1 1 15rem;
  gap: 0.3rem;
  margin: 0;
}
.cx-controls .bw-select,
.cx-controls select {
  width: 100%;
}
#cx-page {
  flex: 1 1 16rem;
}
#cx-chart {
  width: 100%;
  min-width: 0;
}
.cx-figure {
  display: block;
  width: 100%;
  height: auto;
  font: 18px var(--font-sans);
  fill: var(--text-primary);
}
.cx-title {
  font-size: 23px;
  font-weight: 600;
}
.cx-note,
.cx-id {
  font-size: 15px;
  fill: var(--text-secondary);
}
.cx-compact .cx-id {
  font-size: 19px;
}
.cx-compact {
  font-size: 20px;
}
.cx-compact .cx-note {
  font-size: 17px;
}
.cx-gene-name {
  font-weight: 600;
}
.cx-axis {
  stroke: var(--border-default);
  stroke-width: 1;
}
.cx-bar {
  fill: var(--color-loom-500);
  stroke: var(--color-loom-700);
  stroke-width: 2;
}
.cx-removed {
  fill: var(--surface-2);
  stroke: var(--text-secondary);
  stroke-dasharray: 4 3;
}
.cx-hit {
  fill: var(--surface-0);
  stroke: var(--surface-0);
}
.cx-action {
  cursor: pointer;
}
.cx-action:hover .cx-hit,
.cx-action[aria-pressed='true'] .cx-hit {
  fill: var(--surface-2);
  stroke: var(--color-loom-700);
}
.cx-action:focus-visible {
  outline: 2px solid var(--color-loom-700);
  outline-offset: 2px;
}
.cx-action[aria-pressed='true'] text {
  text-decoration: underline;
}
.field-diff-table {
  min-width: 680px;
  table-layout: fixed;
}
.field-diff-table th:first-child {
  width: 160px;
}
.field-diff-table td {
  max-width: 30rem;
  min-width: 9rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.field-diff-table tr[data-changed='true'] th {
  border-left: 3px solid var(--color-loom-700);
}
.field-diff-table th {
  white-space: normal;
}
.field-diff-table small {
  display: block;
  font-weight: 400;
  color: var(--text-secondary);
}
.change-field-toggle {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-block: 1rem;
}

/* Organism flow and state stack (figures.mjs). */
.change-figures {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-default);
}
.cf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1.5rem;
}
.change-figures .drug-figure {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}
.change-figures .drug-figure h3 {
  margin: 0;
}
.change-figures .drug-scope {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}
.change-figures .drug-figure-chart {
  min-width: 0;
}
.change-figures .drug-figure-export {
  align-self: flex-start;
}
.change-figures .drug-figure-status:empty {
  display: none;
}
.cf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}
.state-segment[data-state='removed'] {
  border-style: dashed;
}
.state-segment[data-state='changed'] {
  border-style: dotted;
  border-width: 2px;
}
