@font-face {
  font-family: "Flora Chinese";
  src: url("../vendor/fonts/noto-sans-sc-chinese-simplified-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #1f2c2b;
  --ink-soft: #445654;
  --moss: #245b4d;
  --fern: #5d876d;
  --pollen: #c79637;
  --petal: #bd5d4b;
  --water: #527c91;
  --paper: #f8f8f2;
  --paper-deep: #eef1eb;
  --line: #d2dad2;
  --line-dark: #9dafaa;
  --white: #fffefa;
  --shadow: rgba(31, 44, 43, 0.12);
  --sans: Inter, "Flora Chinese", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: Iowan Old Style, "Flora Chinese", "Noto Serif SC", "Songti SC", STSong, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--sans);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper-deep);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--petal);
  outline-offset: 3px;
}

.page-shell {
  width: min(100%, 1700px);
  margin: 0 auto;
  padding: 0 32px 48px;
}

.site-header {
  min-height: 100px;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.25fr) minmax(330px, 0.9fr);
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line-dark);
}

.brand-lockup {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 10px;
  min-width: 0;
}

.brand-kicker {
  grid-column: 1 / -1;
  color: var(--moss);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.brand-lockup h1 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.05;
}

.brand-subtitle {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  white-space: nowrap;
}

.header-meta {
  min-width: 0;
}

.header-meta p {
  max-width: 460px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-dark);
  background: var(--white);
}

.language-button {
  min-width: 38px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.language-button:last-child {
  border-right: 0;
}

.language-button.is-active {
  background: var(--ink);
  color: var(--white);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 340px);
  height: 40px;
  border: 1px solid var(--line-dark);
  background: var(--white);
}

.search-label {
  padding: 0 10px 0 12px;
  color: var(--moss);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.search-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 32px 0 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.search-field input::placeholder {
  color: #87918d;
}

.clear-search {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--white);
  color: var(--moss);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.icon-button:hover {
  border-color: var(--moss);
  background: #edf4ef;
}

.more-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.more-link:hover {
  border-color: var(--moss);
  color: var(--moss);
  background: #edf4ef;
}

.search-results {
  position: absolute;
  z-index: 12;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  display: none;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 14px 24px var(--shadow);
}

.search-results.is-open {
  display: block;
}

.search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover,
.search-result:focus-visible {
  background: #edf4ef;
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result strong {
  font-size: 13px;
  font-weight: 720;
}

.search-result small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 11px;
}

.search-result em {
  align-self: center;
  color: var(--moss);
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.06em;
}

main {
  display: grid;
  gap: 0;
}

.atlas-workbench {
  padding: 40px 0 0;
}

.workbench-topline,
.collection-heading,
.method-strip {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow,
.panel-label {
  margin: 0;
  color: var(--moss);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.workbench-topline h2,
.collection-heading h2,
.method-strip h2,
.dialog-heading h2 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.16;
}

.metrics {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.metrics span {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-height: 43px;
  padding: 10px 16px;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
}

.metrics span:first-child {
  border-left: 1px solid var(--line);
}

.metrics strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 650;
}

.system-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 30px;
  border-bottom: 1px solid var(--line-dark);
}

.system-tab {
  min-height: 37px;
  padding: 0 15px;
  border: 0;
  border-right: 1px solid var(--line);
  border-top: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 680;
}

.system-tab:first-child {
  border-left: 1px solid var(--line);
}

.system-tab:hover {
  background: #edf4ef;
  color: var(--moss);
}

.system-tab.is-active {
  position: relative;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(312px, 0.34fr);
  border-bottom: 1px solid var(--line-dark);
}

.tree-panel {
  min-width: 0;
  padding: 23px 24px 20px 0;
  border-right: 1px solid var(--line-dark);
}

.panel-heading,
.detail-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h3 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 650;
}

.tree-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fit-button,
.text-button,
.locate-button {
  min-height: 34px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: var(--white);
  color: var(--moss);
  font-size: 12px;
  font-weight: 740;
}

.fit-button {
  padding: 0 11px;
}

.fit-button:hover,
.text-button:hover,
.locate-button:hover {
  border-color: var(--moss);
  background: #edf4ef;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  min-height: 40px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
}

.crumb::after {
  content: "/";
  color: var(--line-dark);
}

.crumb:last-child {
  color: var(--ink);
  font-weight: 750;
}

.crumb:last-child::after {
  display: none;
}

.crumb:hover:not(:last-child) {
  background: #edf4ef;
  color: var(--moss);
}

.tree-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 30px;
  margin-top: 10px;
}

.tree-context-current {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 680;
}

.tree-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 10px;
}

.tree-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.legend-mark {
  width: 7px;
  height: 7px;
  border: 1px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-dark);
}

.legend-mark-branch {
  background: var(--moss);
}

.legend-mark-family {
  background: var(--petal);
}

.legend-mark-cluster {
  background: var(--pollen);
}

.tree-canvas {
  position: relative;
  min-height: 610px;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.tree-canvas::before,
.tree-canvas::after {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.tree-canvas::before {
  top: 0;
  left: 0;
  width: 72px;
  height: 100%;
  border-right: 1px solid rgba(157, 175, 170, 0.34);
}

.tree-canvas::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 54px;
  border-top: 1px solid rgba(157, 175, 170, 0.34);
}

#lineage-tree {
  display: block;
  width: 100%;
  height: 610px;
  touch-action: none;
}

.tree-canvas .link {
  fill: none;
  stroke: #aebcb5;
  stroke-width: 1.25;
}

.tree-canvas .node-group {
  cursor: pointer;
}

.tree-canvas .node-group .node-dot {
  stroke: var(--white);
  stroke-width: 2px;
}

.tree-canvas .node-group.node-root .node-dot {
  fill: var(--ink);
}

.tree-canvas .node-group.node-division .node-dot,
.tree-canvas .node-group.node-class .node-dot {
  fill: var(--moss);
}

.tree-canvas .node-group.node-order .node-dot,
.tree-canvas .node-group.node-clade .node-dot {
  fill: var(--water);
}

.tree-canvas .node-group.node-family .node-dot {
  fill: var(--petal);
}

.tree-canvas .node-group.node-cluster .node-dot {
  fill: var(--pollen);
}

.tree-canvas .node-group.is-selected .node-dot {
  stroke: var(--pollen);
  stroke-width: 4px;
}

.tree-canvas .node-group:hover .node-dot {
  stroke: var(--ink);
  stroke-width: 3px;
}

.tree-canvas .node-label {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.tree-canvas .node-caption {
  fill: var(--ink-soft);
  font-size: 10px;
  pointer-events: none;
}

.tree-canvas .node-family .node-label,
.tree-canvas .node-cluster .node-label {
  font-size: 11px;
  font-weight: 620;
}

.tree-tooltip {
  position: absolute;
  z-index: 4;
  max-width: 240px;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 8px 16px var(--shadow);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
  pointer-events: none;
}

.tree-tooltip[aria-hidden="true"] {
  display: none;
}

.tree-tooltip strong,
.tree-tooltip span {
  display: block;
}

.tree-tooltip span {
  color: var(--ink-soft);
  font-size: 10px;
}

.tree-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--ink-soft);
  font-family: var(--serif);
}

.canvas-hint {
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.detail-panel {
  padding: 23px 0 24px 24px;
  background: #f4f6f1;
}

.system-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 150px;
  padding: 0 8px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: var(--white);
  color: var(--moss);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-align: center;
}

.specimen-frame {
  position: relative;
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #dfe6dc;
  aspect-ratio: 4 / 3;
}

.specimen-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specimen-frame figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 5px 8px;
  background: rgba(31, 44, 43, 0.88);
  color: var(--white);
  font-size: 10px;
}

.detail-copy {
  margin-top: 17px;
}

.detail-rank {
  margin: 0;
  color: var(--petal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.detail-copy h3 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 650;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.detail-latin {
  min-height: 18px;
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
}

.detail-summary-label {
  margin: 14px 0 0;
  color: var(--moss);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.detail-description {
  min-height: 66px;
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.68;
}

.detail-annotations {
  margin-top: 16px;
  border-top: 1px solid var(--line-dark);
}

.detail-annotation {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-annotation-label {
  margin: 0;
  color: var(--moss);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.detail-annotation-copy {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.detail-facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-facts div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.detail-facts dt {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.detail-facts dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.locate-button {
  width: 100%;
  margin-top: 16px;
  padding: 0 12px;
}

.collection-section,
.method-strip {
  padding: 56px 0;
  border-bottom: 1px solid var(--line-dark);
}

.gallery-status {
  margin: 0 0 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.specimen-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 25px;
}

.specimen-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: var(--white);
  text-align: left;
}

.specimen-card:hover {
  border-color: var(--moss);
  box-shadow: 0 7px 14px rgba(31, 44, 43, 0.09);
}

.specimen-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dfe6dc;
}

.specimen-card-copy {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.specimen-card-copy small {
  color: var(--moss);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.specimen-card-copy strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.specimen-card-copy em {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.specimen-card-copy span {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.collection-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.site-footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  text-align: center;
}

.site-footer p {
  margin: 0 auto;
  max-width: 860px;
}

.site-footer p + p {
  margin-top: 10px;
}

.text-button {
  flex: 0 0 auto;
  padding: 0 11px;
}

.method-strip {
  align-items: start;
  gap: 48px;
}

.method-strip > div:first-child {
  flex: 0 1 470px;
}

.source-list {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}

.source-item {
  min-height: 116px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.source-item:first-child {
  border-left: 1px solid var(--line);
}

.source-item strong,
.source-item span,
.source-item small {
  display: block;
}

.source-item strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 650;
}

.source-item span {
  margin-top: 7px;
  color: var(--moss);
  font-size: 11px;
  font-weight: 720;
}

.source-item small {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.4;
}

.about-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 48px rgba(31, 44, 43, 0.25);
}

.about-dialog::backdrop {
  background: rgba(31, 44, 43, 0.5);
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line-dark);
}

.dialog-heading h2 {
  font-size: 24px;
}

.dialog-content {
  display: grid;
  gap: 13px;
  padding: 21px 24px 26px;
}

.dialog-content p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.72;
}

.dialog-content code {
  color: var(--moss);
  font-size: 0.92em;
}

.loading-screen {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--paper-deep);
  transition: opacity 260ms ease, visibility 260ms ease;
}

.loading-screen > div {
  display: grid;
  place-items: center;
  gap: 12px;
}

.loading-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--moss);
  border-radius: 50%;
  color: var(--moss);
  font-family: var(--serif);
  font-size: 29px;
}

.loading-screen p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
}

.loading-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: minmax(200px, 0.7fr) 1fr;
    gap: 20px;
    padding: 18px 0;
  }

  .header-meta {
    display: none;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .atlas-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .specimen-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .specimen-card-copy strong {
    font-size: 16px;
  }
}

@media (max-width: 820px) {
  .page-shell {
    padding: 0 18px 36px;
  }

  .site-header {
    display: flex;
    flex-wrap: wrap;
    min-height: 0;
  }

  .brand-lockup {
    flex: 1;
  }

  .header-actions {
    flex: 1 0 100%;
    justify-content: stretch;
  }

  .search-field {
    width: 100%;
    max-width: none;
  }

  .workbench-topline,
  .collection-heading,
  .method-strip {
    align-items: start;
    flex-direction: column;
    gap: 17px;
  }

  .metrics {
    width: 100%;
  }

  .metrics span {
    flex: 1;
    justify-content: center;
    padding: 9px 8px;
  }

  .atlas-layout {
    display: block;
  }

  .tree-panel {
    padding-right: 0;
    border-right: 0;
  }

  .tree-context {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .tree-legend {
    justify-content: start;
  }

  .detail-panel {
    padding: 23px 0;
    border-top: 1px solid var(--line-dark);
  }

  .specimen-frame {
    max-width: 520px;
  }

  .specimen-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-list {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .method-strip > div:first-child {
    flex: none;
  }

  .source-item,
  .source-item:first-child {
    min-height: 0;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 0 12px 26px;
  }

  .site-header {
    gap: 12px;
  }

  .brand-lockup h1 {
    font-size: 26px;
  }

  .workbench-topline h2,
  .collection-heading h2,
  .method-strip h2 {
    font-size: 24px;
  }

  .atlas-workbench {
    padding-top: 27px;
  }

  .system-tabs {
    margin-top: 22px;
  }

  .system-tab {
    flex: 1 0 50%;
    padding: 0 8px;
    font-size: 11px;
  }

  .tree-panel {
    padding-top: 18px;
  }

  .tree-canvas,
  #lineage-tree {
    min-height: 500px;
    height: 500px;
  }

  .tree-canvas .node-label {
    font-size: 13px;
  }

  .tree-actions {
    gap: 4px;
  }

  .tree-actions .icon-button {
    width: 31px;
    height: 31px;
  }

  .fit-button {
    min-height: 31px;
    padding: 0 8px;
  }

  .breadcrumb {
    overflow: hidden;
    flex-wrap: nowrap;
  }

  .crumb {
    min-width: max-content;
  }

  .specimen-gallery {
    gap: 8px;
    margin-top: 18px;
  }

  .specimen-card-copy {
    padding: 9px;
  }

  .specimen-card-copy strong {
    font-size: 15px;
  }

  .specimen-card-copy span {
    display: none;
  }

  .collection-footer {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .collection-section,
  .method-strip {
    padding: 39px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
