
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;600;700;800&display=swap');

.catalog-layer, .culture-modal {
  --ink: #020607;
  --panel: rgba(3, 14, 16, .82);
  --panel-strong: rgba(5, 20, 22, .94);
  --teal: #39f4c4;
  --teal-soft: #8fffe4;
  --cyan: #58dcff;
  --blue: #67a3ff;
  --muted: #8aa9ad;
  --line: rgba(88, 220, 255, .34);
  --line-strong: rgba(57, 244, 196, .72);
  --white: #eafffa;
  box-sizing: border-box;
}
.catalog-layer *, .culture-modal * { box-sizing: border-box; }

.terraforming-lockup { display: contents; }
.terraforming-title,
.catalog-launch {
  transition: opacity .42s ease, visibility 0s linear 0s;
}
.catalog-launch {
  box-sizing: border-box;
  position: fixed;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 142px;
  padding: 8px 11px 7px;
  border: 1px solid rgba(255,255,255,.62);
  color: #fff;
  background: rgba(0,0,0,.62);
  font: 700 11px/1 'League Spartan', sans-serif;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  pointer-events: auto;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease, opacity .42s ease, visibility 0s linear 0s;
}
.catalog-launch:hover, .catalog-launch:focus-visible {
  color: #000;
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
  outline: none;
}
.catalog-launch-mobile {
  top: calc(50% + 100px);
  left: 50%;
  width: 160px;
  min-width: 160px;
  transform: translateX(-50%);
}
.catalog-launch-mobile:hover,
.catalog-launch-mobile:focus-visible {
  transform: translateX(-50%) translateY(-1px);
}
body.catalog-active .terraforming-title,
body.catalog-active .catalog-launch,
body.planet-returning .terraforming-title,
body.planet-returning .catalog-launch {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .36s ease, visibility 0s linear .65s;
}

#planetCanvas.official-planet-canvas {
  position: fixed !important;
  z-index: 2 !important;
  left: 50% !important;
  top: 50%;
  width: 512px;
  height: 512px;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  image-rendering: pixelated;
  cursor: grab;
  touch-action: none;
}
#planetCanvas.official-planet-canvas.dragging { cursor: grabbing; }
#planetCanvas.official-planet-canvas[data-renderer="webgl2"] {
  width: 1024px;
  height: 1024px;
}
#planetCanvas.official-planet-canvas:not([data-renderer="webgl2"]):not([data-renderer="webgl2-presented-2d"]) {
  transition: top 1.65s cubic-bezier(.22,.76,.18,1), transform 1.65s cubic-bezier(.22,.76,.18,1);
}
body.catalog-active #planetCanvas.official-planet-canvas:not([data-renderer="webgl2"]):not([data-renderer="webgl2-presented-2d"]) {
  top: 100%;
  transform: translate(-50%, -50%) scale(4);
}

#catalogField {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
}
body.catalog-active #catalogField { opacity: 1; }

body.catalog-active { overflow: hidden; }
body.catalog-active #footer { opacity: 0; pointer-events: none; }
.catalog-layer { padding-top: 0; }
.catalog-layer .official-catalog-header { position: relative; }
.official-catalog-return {
  position: absolute;
  top: 3px;
  right: 0;
  z-index: 3;
  appearance: none;
  border: 0;
  padding: 8px 0;
  color: var(--cyan);
  background: transparent;
  font: 700 10px/1 'League Spartan', sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}
.official-catalog-return:hover, .official-catalog-return:focus-visible { color: var(--teal); outline: none; }
.catalog-layer .catalog-header { width: min(1320px, calc(100% - 72px)); }
.catalog-layer .catalog-grid { width: min(1320px, calc(100vw - 72px)); }
.catalog-layer .catalog-scroll { padding-bottom: 210px; }
.catalog-layer .catalog-footer, .catalog-chrome { display: none !important; }

@media (max-width: 1088px) {
  .catalog-layer .catalog-main { padding-top: 82px; }
  .catalog-layer .catalog-header { width: min(100% - 28px, 1320px); }
  .catalog-layer .catalog-scroll { padding-bottom: 48px; }
}
@media (max-width: 619px) {
  .terraforming-title { display: none !important; }
  .catalog-launch,
  .catalog-launch-mobile {
    top: calc(50% + 100px) !important;
    left: 50% !important;
    width: 160px !important;
    min-width: 160px;
    transform: translateX(-50%);
  }
  .catalog-launch:hover,
  .catalog-launch:focus-visible,
  .catalog-launch-mobile:hover,
  .catalog-launch-mobile:focus-visible {
    transform: translateX(-50%) translateY(-1px);
  }
  .catalog-layer {
    background: transparent;
  }
  .catalog-layer .catalog-main { padding-top: 74px; }
  .official-catalog-return { top: -3px; }
  .catalog-layer .catalog-scroll {
    padding-bottom: clamp(330px, 58vh, 460px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .terraforming-title, .catalog-launch, #catalogField, #planetCanvas.official-planet-canvas { transition: none !important; }
}

.organism-orb {
  position: relative;
  width: 132px;
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid rgba(143, 255, 228, .38);
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 31%, rgba(255,255,255,.9) 0 2%, transparent 3%),
    radial-gradient(circle at 62% 58%, var(--orb-a) 0 8%, transparent 9%),
    radial-gradient(circle at 38% 68%, var(--orb-b) 0 11%, transparent 12%),
    radial-gradient(circle at 66% 30%, var(--orb-b) 0 6%, transparent 7%),
    radial-gradient(circle at 50% 50%, var(--orb-glow), rgba(1, 10, 12, .72) 64%);
  box-shadow: inset 0 0 28px rgba(0,0,0,.62), 0 0 24px var(--orb-shadow);
}
.organism-orb::before, .organism-orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--orb-line);
}
.organism-orb::before { inset: 18% 24% 26% 18%; transform: rotate(28deg); }
.organism-orb::after { inset: 37% 13% 14% 39%; transform: rotate(-18deg); }
.chlorella { --orb-a:#4dff91; --orb-b:#1ebd68; --orb-glow:rgba(24,180,84,.5); --orb-shadow:rgba(44,255,125,.18); --orb-line:rgba(102,255,156,.68); }
.cryptomonas { --orb-a:#ff7e5d; --orb-b:#b849ff; --orb-glow:rgba(151,49,138,.48); --orb-shadow:rgba(255,90,175,.18); --orb-line:rgba(255,145,203,.68); }
.raphidocelis { --orb-a:#a7ff42; --orb-b:#4fcf5d; --orb-glow:rgba(107,193,38,.48); --orb-shadow:rgba(162,255,66,.18); --orb-line:rgba(190,255,116,.68); }
.moina { --orb-a:#ffb76b; --orb-b:#ff6e80; --orb-glow:rgba(199,97,67,.48); --orb-shadow:rgba(255,132,107,.18); --orb-line:rgba(255,184,154,.68); }

@media (max-width: 760px) {
  .product-card .culture-profile-image {
    width: 70%;
    height: 70%;
  }
}
@media (max-width: 640px) {
  .topbar, .footer { width: min(100% - 28px, 1500px); }
  .topbar { padding-top: 17px; font-size: 10px; letter-spacing: .1em; }
  .footer { flex-direction: column; gap: 8px; }
}


/* Culture inventory status */
.culture-status {
  display: inline-flex;
  align-items: flex-start;
  row-gap: 0;
  column-gap: 0;
  min-height: 18px;
  color: #9a7d81;
  font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}
.status-light {
  position: relative;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  overflow: visible;
  /* Align the 12px icon with the optical center of the label's first line. */
  margin-top: calc(.65em - 6px);
}
.status-light::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 120, 132, .42);
  border-radius: 50%;
  background: #6c252c;
  box-shadow: inset 0 0 3px rgba(0,0,0,.82), 0 0 7px rgba(255, 77, 92, .17);
}
.status-planet {
  display: none !important;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.culture-status.is-online { color: var(--teal-soft); }
.culture-status.is-production { color: var(--blue); }
.culture-status.is-online .status-light::before,
.culture-status.is-production .status-light::before { display: none; }
.culture-status.is-online .status-planet,
.culture-status.is-production .status-planet { display: block !important; }
.culture-status.is-offline { color: #a88488; }
.culture-status.is-offline .status-light::before {
  border-color: rgba(255, 115, 128, .45);
  background: #6c252c;
  box-shadow: inset 0 0 3px rgba(0,0,0,.82), 0 0 8px rgba(255, 77, 92, .18);
}
.checkout-field .culture-status {
  align-items: center;
  justify-content: flex-end;
  column-gap: 7px;
  text-align: right;
}
.checkout-field .culture-status .status-light {
  margin-top: 0;
}


/* In-person checkout payment marks */
.in-person-checkout {
  cursor: default;
  opacity: 1;
  color: var(--teal);
  background: rgba(0, 18, 18, .82);
  border-color: rgba(57, 244, 196, .46);
  box-shadow: inset 0 0 18px rgba(57, 244, 196, .035);
}
.in-person-checkout:hover,
.in-person-checkout:focus-visible {
  transform: none;
  color: var(--teal);
  background: rgba(0, 18, 18, .82);
  box-shadow: inset 0 0 18px rgba(57, 244, 196, .035);
}
.payment-icons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.cash-payment-icon {
  display: inline-grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}
.tap-payment-icon {
  width: 25px;
  height: 25px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}


/* Inventory-driven checkout state */
.in-person-checkout.is-online {
  color: var(--teal);
  background: rgba(0, 18, 18, .82);
  border-color: rgba(57, 244, 196, .56);
  box-shadow: inset 0 0 18px rgba(57, 244, 196, .045), 0 0 12px rgba(57, 244, 196, .06);
}
.in-person-checkout.is-production {
  color: var(--blue);
  background: rgba(4, 10, 28, .84);
  border-color: rgba(103, 163, 255, .62);
  box-shadow: inset 0 0 18px rgba(103, 163, 255, .055), 0 0 14px rgba(103, 163, 255, .08);
}
.in-person-checkout.is-production:hover,
.in-person-checkout.is-production:focus-visible {
  color: var(--blue);
  background: rgba(4, 10, 28, .84);
  border-color: rgba(103, 163, 255, .62);
  box-shadow: inset 0 0 18px rgba(103, 163, 255, .055), 0 0 14px rgba(103, 163, 255, .08);
}
.in-person-checkout.is-offline {
  color: #ff7b89;
  background: rgba(31, 5, 10, .82);
  border-color: rgba(255, 91, 108, .58);
  box-shadow: inset 0 0 18px rgba(255, 68, 88, .045), 0 0 12px rgba(255, 68, 88, .055);
}
.in-person-checkout.is-offline .payment-icons { display: none; }
.in-person-checkout.is-offline::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 126, 139, .62);
  border-radius: 50%;
  background: #a32f3c;
  box-shadow: 0 0 7px rgba(255, 70, 90, .52), inset 0 0 2px rgba(255,255,255,.22);
}
.in-person-checkout.is-offline:hover,
.in-person-checkout.is-offline:focus-visible {
  color: #ff7b89;
  background: rgba(31, 5, 10, .82);
  border-color: rgba(255, 91, 108, .58);
  box-shadow: inset 0 0 18px rgba(255, 68, 88, .045), 0 0 12px rgba(255, 68, 88, .055);
}


/* Microscopy profile portraits and flipbooks */
.product-visual .culture-profile-image {
  width: 146px;
  height: 146px;
  display: block;
  object-fit: cover;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 22px rgba(255,255,255,.035), 0 0 22px rgba(245,252,253,.075);
  transform: scale(1.015);
  filter: saturate(.9) contrast(1.08);
  transition: transform .35s ease, filter .35s ease;
}
.product-card:hover .culture-profile-image,
.product-card:focus-visible .culture-profile-image {
  transform: scale(1.075);
  filter: saturate(1.02) contrast(1.12);
}
.culture-profile-portrait {
  width: 146px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #031214;
  box-shadow: inset 0 0 24px rgba(255,255,255,.035), 0 0 28px rgba(245,252,253,.085);
}
.culture-profile-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.92) contrast(1.08);
}
.microscopy-section-title { margin-bottom: 14px !important; }
.microscopy-flipbook {
  --microscopy-border: rgba(245, 252, 253, .11);
  position: relative;
  overflow: hidden;
  border: 0;
  background: linear-gradient(150deg, rgba(5, 17, 20, .96), rgba(0, 7, 9, .98));
  box-shadow: inset 0 0 34px rgba(255,255,255,.022), 0 14px 38px rgba(0, 0, 0, .22), 0 0 22px rgba(245,252,253,.04);
}
.microscopy-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(37, 141, 134, .14), transparent 60%),
    #010809;
  touch-action: pan-y;
}
.microscopy-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: none;
  place-items: center;
  background: #010809;
}
.microscopy-slide.is-active { display: grid; }
.microscopy-slide > img,
.microscopy-slide > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #010809;
}
.microscopy-slide > video { object-fit: contain; }
.microscopy-slide figcaption {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.1;
  text-transform: uppercase;
  pointer-events: none;
}
.microscopy-slide figcaption span,
.microscopy-slide figcaption strong {
  padding: 6px 8px 5px;
  border: 1px solid rgba(77, 221, 255, .45);
  color: #7deaff;
  background: rgba(0, 9, 12, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.microscopy-slide figcaption span {
  max-width: calc(100% - 72px);
}
.microscopy-slide figcaption strong {
  flex: 0 0 auto;
  color: #7deaff;
  font-weight: 800;
}
.microscopy-controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  border-top: 1px solid var(--microscopy-border);
  border-bottom: 1px solid rgba(245, 252, 253, .07);
}
.microscopy-arrow {
  width: 44px;
  height: 42px;
  border: 0;
  color: var(--teal);
  background: transparent;
  font: 700 17px/1 "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}
.microscopy-arrow:hover,
.microscopy-arrow:focus-visible {
  color: #ecffff;
  background: rgba(57, 244, 196, .08);
  outline: 1px solid rgba(57, 244, 196, .55);
  outline-offset: -1px;
}
.microscopy-counter {
  margin: 0;
  color: rgba(128, 218, 224, .82);
  text-align: center;
  font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  letter-spacing: .18em;
}
.microscopy-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 68px;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(57, 244, 196, .45) transparent;
}
.microscopy-thumb {
  position: relative;
  width: 68px;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(81, 224, 255, .18);
  background: #020a0c;
  opacity: .6;
  cursor: pointer;
}
.microscopy-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.microscopy-thumb > span {
  position: absolute;
  right: 4px;
  bottom: 3px;
  color: #e7ffff;
  font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 8px;
  text-shadow: 0 1px 4px #000;
}
.microscopy-thumb > i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(224, 255, 255, .6);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 8, 10, .66);
  font-size: 8px;
  font-style: normal;
  padding-left: 1px;
}
.microscopy-thumb:hover { opacity: .86; }
.microscopy-thumb.is-active {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), 0 0 15px rgba(57, 244, 196, .22);
  opacity: 1;
}
.microscopy-thumb:focus-visible { outline: 2px solid #e7ffff; outline-offset: 2px; }
@media (max-width: 640px) {
  .organism-title { min-width: 0; max-width: 100%; }
  .organism-title .title-genus,
  .organism-title .title-species { display: block; max-width: 100%; }
  .culture-profile-portrait { width: 126px; margin-inline: auto; }
  .microscopy-slide figcaption { top: 10px; left: 10px; right: 10px; font-size: 8px; }
  .microscopy-thumbs { grid-auto-columns: 60px; }
  .microscopy-thumb { width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-visual .culture-profile-image { transition: none; }
}


/* Scientific-name typography
   League Spartan in normal title case, with traditional italics and a
   consistent stepped indent for the species epithet. */
.catalog-layer, .culture-modal {
  --scientific-species-indent: .225em;
}

.product-heading .organism-title {
  margin: 0;
  color: var(--teal-soft);
  font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(48px, 5.2vw, 80px);
  font-style: italic;
  font-weight: 700;
  font-variant-caps: normal;
  font-feature-settings: normal;
  text-transform: none;
  line-height: .76;
  letter-spacing: -.025em;
  text-wrap: initial;
  text-shadow: 0 2px 0 rgba(10, 126, 109, .52), 0 0 18px rgba(57, 244, 196, .09);
}
.product-heading .organism-title .title-genus,
.product-heading .organism-title .title-species {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: normal;
  text-transform: none;
}
.product-heading .organism-title .title-species {
  margin-inline-start: var(--scientific-species-indent);
}

.product-card .binomial-name {
  margin: 0;
  color: var(--teal-soft);
  font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(25px, 1.8vw, 31px);
  font-style: italic;
  font-weight: 700;
  font-variant-caps: normal;
  font-feature-settings: normal;
  text-transform: none;
  line-height: .84;
  letter-spacing: -.018em;
}
.product-card .binomial-name > span {
  display: block;
  width: max-content;
  max-width: 100%;
  text-transform: none;
}
.product-card .binomial-name .species {
  margin-inline-start: var(--scientific-species-indent);
}

.culture-binomial {
  font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-variant-caps: normal;
  font-feature-settings: normal;
  text-transform: none;
  line-height: .88;
  letter-spacing: 0;
}
.culture-binomial > span {
  display: block;
  width: max-content;
  max-width: 100%;
  text-transform: none;
}
.culture-binomial .species {
  margin-inline-start: .72em;
}

@media (max-width: 640px) {
  .product-heading .organism-title-lockup {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .product-heading .organism-title {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    display: inline-grid;
    grid-template-columns: var(--scientific-species-indent) max-content;
    justify-content: start;
    font-size: clamp(40px, 11vw, 58px);
    line-height: .4;
    text-align: left;
  }
  .product-heading .organism-title .title-genus {
    grid-column: 1 / -1;
  }
  .product-heading .organism-title .title-species {
    grid-column: 2;
    margin-inline-start: 0;
  }
}

/* Full-screen microscopy image viewer */
body.microscopy-lightbox-open { overflow: hidden !important; }
.microscopy-zoomable {
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}
.microscopy-zoomable:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -3px;
}
.microscopy-lightbox[hidden] { display: none; }
.microscopy-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(13, 42, 43, .34), transparent 54%),
    rgba(0, 5, 7, .965);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  transition: opacity .18s ease, visibility 0s linear .18s;
}
.microscopy-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .18s ease, visibility 0s linear 0s;
}
.microscopy-lightbox-viewport {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}
.microscopy-lightbox-viewport.is-zoomed { cursor: grab; }
.microscopy-lightbox-viewport.is-interacting { cursor: grabbing; }
.microscopy-lightbox-image {
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  display: block;
  object-fit: contain;
  transform-origin: 50% 50%;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  will-change: transform;
}
.microscopy-lightbox-image.is-animating { transition: transform .18s ease; }
.microscopy-lightbox-toolbar {
  position: absolute;
  z-index: 2;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  min-height: 48px;
  padding: 7px 8px 7px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(112, 238, 255, .18);
  border-radius: 9px;
  color: #d8ffff;
  background: rgba(0, 12, 15, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 10px 30px rgba(0,0,0,.28);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.microscopy-lightbox-meta {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.microscopy-lightbox-meta > span:first-child {
  overflow: hidden;
  color: #7deaff;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.microscopy-lightbox-zoom {
  flex: 0 0 auto;
  color: rgba(216, 255, 255, .62);
}
.microscopy-lightbox-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.microscopy-lightbox-actions button {
  height: 32px;
  min-width: 32px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 234, 255, .24);
  border-radius: 6px;
  color: var(--teal-soft);
  background: rgba(255, 255, 255, .025);
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.microscopy-lightbox-actions button[data-lightbox-reset] {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.microscopy-lightbox-actions button:hover,
.microscopy-lightbox-actions button:focus-visible {
  border-color: rgba(125, 234, 255, .62);
  color: #fff;
  background: rgba(125, 234, 255, .10);
  outline: none;
}
.microscopy-lightbox-actions button:disabled {
  opacity: .32;
  cursor: default;
}
.microscopy-lightbox-actions .microscopy-lightbox-close {
  margin-left: 4px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 400;
}
.microscopy-lightbox-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  margin: 0;
  padding: 7px 10px 6px;
  transform: translateX(-50%);
  border: 1px solid rgba(125, 234, 255, .14);
  border-radius: 6px;
  color: rgba(190, 232, 235, .66);
  background: rgba(0, 12, 15, .62);
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (max-width: 640px) {
  .microscopy-lightbox-toolbar {
    min-height: 44px;
    padding: 5px 6px 5px 10px;
    gap: 8px;
  }
  .microscopy-lightbox-meta { gap: 7px; font-size: 8px; letter-spacing: .1em; }
  .microscopy-lightbox-actions { gap: 4px; }
  .microscopy-lightbox-actions button { height: 30px; min-width: 30px; padding: 0 7px; }
  .microscopy-lightbox-actions button[data-lightbox-reset] { display: none; }
  .microscopy-lightbox-hint { max-width: calc(100vw - 24px); font-size: 8px; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .microscopy-lightbox,
  .microscopy-lightbox-image.is-animating { transition: none; }
}
.catalog-main { min-height: calc(100vh - 137px); padding: 68px 0 54px; }
    .catalog-header { width: min(1320px, calc(100% - 72px)); margin: 0 auto 30px; }
    .catalog-header > .kicker {
      margin: 0 0 -0.08em;
      position: relative;
      z-index: 1;
    }
    .catalog-layer h1 {
      margin: 0;
      color: var(--teal);
      font-size: clamp(48px, 7vw, 104px);
      font-weight: 800;
      letter-spacing: -.02em;
      line-height: .9;

      text-shadow: none;
      filter: none;
    }
    .catalog-intro { max-width: 680px; margin: 17px 0 0; color: #adc8ca; font-size: 14px; line-height: 1.55; }
    .catalog-scroll { width: 100%; overflow-x: auto; padding: 2px 24px 26px; scrollbar-color: var(--teal) rgba(0,0,0,.2); }
    .catalog-grid {
      position: relative;
      width: min(1320px, calc(100vw - 72px));
      min-width: 1000px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
    }
    .trophic-flow {
      position: absolute;
      z-index: 2;
      top: calc(100% + 8px);
      left: 0;
      width: 100%;
      height: 78px;
      overflow: visible;
      pointer-events: none;
    }
    .trophic-flow path {
      fill: none;
      stroke: var(--cyan);
      stroke-width: 4.5;
      stroke-linecap: round;
      stroke-linejoin: round;
      vector-effect: non-scaling-stroke;
      filter: drop-shadow(0 0 7px rgba(24, 223, 255, .42));
    }
    .trophic-flow polygon {
      fill: var(--cyan);
      filter: drop-shadow(0 0 7px rgba(24, 223, 255, .42));
    }
    .catalog-item { min-width: 0; display: flex; flex-direction: column; gap: 12px; container-type: inline-size; }
    .catalog-item .product-card { width: 100%; flex: 1; }
    .catalog-item > .culture-status { padding: 0 4px; }
    /* The 12px host contains a ~22px visible cloud shell at zoom 3. Add
       breathing room only when this individual card is wide enough for the
       availability label to remain on one line. Narrow cards retain zero gap. */
    @container (min-width: 112px) {
      .catalog-item > .culture-status { column-gap: 7px; }
    }
    /* When the availability label wraps, size its text box to the first
       line itself. This prevents centered wrapped text from creating invisible
       padding between the planet and “Available for”. */
    @container (max-width: 200px) {
      .catalog-item > .culture-status.is-online [data-status-label],
      .catalog-item > .culture-status.is-production [data-status-label] {
        width: min-content;
      }
    }
    .culture-nameplate { display: none; }
    .product-card {
      min-height: 380px;
      padding: 22px 20px 18px;
      display: flex;
      flex-direction: column;
      border: 1px solid rgba(240, 250, 252, .09);
      background:
        linear-gradient(145deg, rgba(244, 252, 253, .052), rgba(244, 252, 253, .014)),
        linear-gradient(145deg, rgba(8, 22, 25, .43), rgba(1, 7, 9, .50));
      color: var(--white);
      text-decoration: none;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.065),
        inset 0 0 42px rgba(255,255,255,.018),
        0 16px 38px rgba(0,0,0,.16),
        0 0 22px rgba(240,250,252,.025);
      backdrop-filter: blur(16px) saturate(1.16);
      -webkit-backdrop-filter: blur(16px) saturate(1.16);
      transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }
    .product-card:hover, .product-card:focus-visible {
      transform: translateY(-5px);
      border-color: rgba(245, 252, 253, .17);
      background:
        linear-gradient(145deg, rgba(248, 253, 254, .078), rgba(248, 253, 254, .024)),
        linear-gradient(145deg, rgba(9, 25, 28, .47), rgba(1, 8, 10, .54));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.09),
        inset 0 0 46px rgba(255,255,255,.026),
        0 18px 42px rgba(0,0,0,.26),
        0 0 26px rgba(240,250,252,.055);
      outline: none;
    }
    .product-visual { min-height: 138px; display: grid; place-items: center; margin-bottom: 15px; }
    .product-type {
      margin: 0 0 7px;
      color: var(--blue);
      font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .18em;
      text-transform: uppercase;
    }
    .product-card h2 { margin: 0; color: var(--teal-soft); font-size: clamp(20px, 1.55vw, 26px); line-height: 1.08; }
    .product-copy { margin: 11px 0 16px; color: #9ebabc; font-size: 12.5px; line-height: 1.46; }
    .product-price {
      margin-top: auto;
      padding: 12px 0;
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 16px;
      border-top: 1px solid rgba(88, 220, 255, .18);
      font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    .product-price strong { color: var(--teal-soft); font-size: 22px; letter-spacing: -.03em; }
    .product-price span { color: #789597; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
    .product-link {
      padding-top: 12px;
      border-top: 1px solid rgba(88, 220, 255, .18);
      color: var(--teal);
      font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .14em;
      text-transform: uppercase;
    }
    /* Replace horizontal scrolling with a compact organism selector. */
    @media (max-width: 1088px) {
      .catalog-scroll {
        overflow: visible;
        padding: 2px 14px 26px;
      }
      .catalog-grid {
        width: min(560px, 100%);
        min-width: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;
        gap: clamp(8px, 2.4vw, 18px);
      }
      .catalog-item { align-items: center; gap: 7px; }
      .catalog-item .product-card { flex: 0 0 auto; width: 100%; }
      .catalog-item > .culture-status {
        width: 100%;
        padding: 0;
        justify-content: center;
        font-size: clamp(6px, 1.65vw, 8px);
        letter-spacing: .075em;
        text-align: center;
      }
      .culture-nameplate {
        position: relative;
        z-index: 2;
        width: calc(100% - 8px);
        min-height: 43px;
        margin-top: -15px;
        padding: 5px 3px 4px;
        display: grid;
        place-items: center;
        align-content: center;
        border: 1px solid rgba(81, 224, 255, .28);
        border-radius: 3px;
        background: linear-gradient(145deg, rgba(4, 27, 29, .94), rgba(0, 10, 13, .92));
        box-shadow: inset 0 0 15px rgba(57,244,196,.045), 0 4px 14px rgba(0,0,0,.38);
        font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        text-align: center;
        pointer-events: none;
      }
      .culture-nameplate::before,
      .culture-nameplate::after {
        content: "";
        position: absolute;
        top: -3px;
        width: 9px;
        height: 5px;
        border-top: 1px solid rgba(57,244,196,.56);
      }
      .culture-nameplate::before { left: 8px; transform: rotate(24deg); }
      .culture-nameplate::after { right: 8px; transform: rotate(-24deg); }
      .culture-accession {
        color: var(--blue);
        font-size: clamp(5px, 1.35vw, 7px);
        font-weight: 800;
        letter-spacing: .19em;
        line-height: 1;
        text-transform: uppercase;
      }
      .culture-binomial {
        margin-top: 3px;
        display: grid;
        gap: 1px;
        color: var(--teal-soft);
        font-size: clamp(6.5px, 1.75vw, 9px);
        font-weight: 750;
        letter-spacing: .01em;
        line-height: 1.02;
      }
      .culture-binomial .species {
        color: #a9c9c9;
        font-weight: 560;
      }
      .product-card {
        min-width: 0;
        min-height: 0;
        aspect-ratio: 1;
        padding: 0;
        border-color: rgba(240, 250, 252, .10);
        border-radius: 50%;
        display: grid;
        place-items: center;
        overflow: hidden;
        background:
          radial-gradient(circle at 34% 24%, rgba(255,255,255,.075), transparent 38%),
          linear-gradient(145deg, rgba(244,252,253,.045), rgba(1,8,10,.43));
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,.07),
          inset 0 0 28px rgba(255,255,255,.018),
          0 8px 22px rgba(0,0,0,.18),
          0 0 18px rgba(240,250,252,.035);
        backdrop-filter: blur(12px) saturate(1.14);
        -webkit-backdrop-filter: blur(12px) saturate(1.14);
      }
      .product-card:hover, .product-card:focus-visible {
        transform: scale(1.06);
        border-color: rgba(245,252,253,.18);
        background:
          radial-gradient(circle at 34% 24%, rgba(255,255,255,.10), transparent 38%),
          linear-gradient(145deg, rgba(248,253,254,.065), rgba(1,8,10,.47));
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,.10),
          inset 0 0 30px rgba(255,255,255,.025),
          0 10px 26px rgba(0,0,0,.24),
          0 0 22px rgba(240,250,252,.055);
      }
      .product-visual {
        min-height: 0;
        width: calc(100% - 12px);
        height: calc(100% - 12px);
        margin: 0;
        display: grid;
        place-items: center;
        overflow: hidden;
        border-radius: 50%;
      }
      .product-card .culture-profile-image {
        width: 100%;
        height: 100%;
        margin: 0;
        border: 0;
        border-radius: 50%;
        object-fit: cover;
        object-position: 50% 50%;
        transform: none;
      }
      .product-card:hover .culture-profile-image,
      .product-card:focus-visible .culture-profile-image {
        transform: scale(1.035);
      }
      .product-card .organism-orb {
        width: 74%;
        height: 74%;
      }
      .product-card .product-type,
      .product-card h2,
      .product-card .product-copy,
      .product-card .product-price,
      .product-card .product-link {
        display: none;
      }
    }
    @media (max-width: 640px) {
      .catalog-main { padding-top: 46px; }
      .catalog-header { width: min(100% - 28px, 1500px); }
      .catalog-grid {
        width: min(380px, calc(100vw - 56px));
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 18px 14px;
      }
      .catalog-item > .culture-status {
        min-height: 20px;
        font-size: clamp(7px, 2vw, 8px);
      }
      .culture-nameplate {
        width: calc(100% - 10px);
      }
    }

    /* Culture detail glass window */
    body.culture-modal-open { overflow: hidden; }
    .culture-modal[hidden] { display: none; }
    .culture-modal {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: grid;
      place-items: center;
      padding: 20px;
      opacity: 0;
      transition: opacity .18s ease;
    }
    .culture-modal.is-open { opacity: 1; }
    .culture-modal-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0, 5, 8, .54);
      backdrop-filter: blur(15px) saturate(1.2);
      -webkit-backdrop-filter: blur(15px) saturate(1.2);
    }
    .culture-modal-window {
      position: relative;
      width: min(1180px, calc(100vw - 40px));
      max-height: calc(100vh - 40px);
      display: grid;
      grid-template-rows: minmax(0, 1fr);
      overflow: hidden;
      border: 0;
      border-radius: 18px;
      background:
        linear-gradient(145deg, rgba(11, 25, 28, .76), rgba(2, 9, 12, .78)),
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .052), transparent 38%);
      box-shadow:
        0 38px 110px rgba(0, 0, 0, .72),
        0 0 42px rgba(238, 250, 252, .065),
        inset 0 1px 0 rgba(255, 255, 255, .09),
        inset 0 0 70px rgba(255, 255, 255, .022);
      backdrop-filter: blur(22px) saturate(1.22);
      -webkit-backdrop-filter: blur(22px) saturate(1.22);
      transform: translateY(18px) scale(.985);
      transition: transform .2s cubic-bezier(.2, .8, .2, 1);
    }
    .culture-modal.is-open .culture-modal-window { transform: translateY(0) scale(1); }
    .culture-modal-close {
      position: absolute;
      z-index: 8;
      top: 14px;
      right: 14px;
      width: 32px;
      height: 32px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(242, 250, 252, .15);
      border-radius: 50%;
      background: rgba(255, 255, 255, .018);
      color: var(--teal-soft);
      font: 20px/1 "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      cursor: pointer;
      transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
    }
    .culture-modal-close:hover,
    .culture-modal-close:focus-visible {
      border-color: rgba(245, 252, 253, .38);
      background: rgba(255, 255, 255, .075);
      color: #fff;
      transform: rotate(5deg);
      outline: none;
    }
    .culture-modal-body {
      min-height: 0;
      overflow: auto;
      overscroll-behavior: contain;
      scrollbar-color: rgba(57, 244, 196, .72) rgba(0, 0, 0, .18);
    }
    .culture-modal .product-main {
      width: 100%;
      min-height: 0;
      margin: 0;
      padding: clamp(24px, 3.5vw, 48px);
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
      gap: 22px;
      align-items: start;
    }
    .culture-modal .details,
    .culture-modal .checkout {
      border: 0;
      border-radius: 14px;
      background:
        linear-gradient(145deg, rgba(10, 24, 27, .64), rgba(2, 9, 12, .66));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        inset 0 0 46px rgba(255,255,255,.018),
        0 18px 40px rgba(0,0,0,.18),
        0 0 24px rgba(240,250,252,.035);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }
    .culture-modal .details { padding: clamp(26px, 4vw, 52px); }
    .culture-modal .product-heading {
      min-width: 0;
      display: grid;
      grid-template-columns: 150px minmax(0, 1fr);
      gap: 30px;
      align-items: center;
    }
    .culture-modal .product-heading > div { min-width: 0; }
    .culture-modal .product-heading .organism-orb { width: 146px; }
    /* Detail fragments are fetched without their page-level <style> block.
       Restore the two shared workbench primitives locally inside the modal. */
    .culture-modal .kicker {
      margin: 0 0 14px;
      color: var(--blue);
      font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 11px;
      font-weight: 700;
      line-height: 1;
      letter-spacing: .24em;
      text-transform: uppercase;
    }
    .culture-modal .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 28px;
      min-height: 48px;
      padding: 0 18px;
      border: 1px solid var(--line-strong);
      background: rgba(0, 10, 12, .74);
      color: var(--teal);
      font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 12px;
      font-weight: 800;
      line-height: 1;
      letter-spacing: .16em;
      text-decoration: none;
      text-transform: uppercase;
      transition: transform .16s ease, color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
    }
    .culture-modal .button:hover,
    .culture-modal .button:focus-visible {
      transform: translateY(-2px);
      background: var(--teal);
      color: var(--ink);
      box-shadow: 0 0 28px rgba(57, 244, 196, .28);
      outline: none;
    }
    .culture-modal .button.disabled,
    .culture-modal .button:disabled {
      cursor: not-allowed;
      opacity: .5;
      transform: none;
      background: rgba(0, 10, 12, .74);
      color: var(--muted);
      box-shadow: none;
    }
    /* State colors must follow the restored generic button primitive. */
    .culture-modal .in-person-checkout.is-online,
    .culture-modal .in-person-checkout.is-online:hover,
    .culture-modal .in-person-checkout.is-online:focus-visible {
      transform: none;
      color: var(--teal);
      background: rgba(0, 18, 18, .82);
      border-color: rgba(57, 244, 196, .56);
      box-shadow: inset 0 0 18px rgba(57, 244, 196, .045), 0 0 12px rgba(57, 244, 196, .06);
    }
    .culture-modal .in-person-checkout.is-production,
    .culture-modal .in-person-checkout.is-production:hover,
    .culture-modal .in-person-checkout.is-production:focus-visible {
      transform: none;
      color: var(--blue);
      background: rgba(4, 10, 28, .84);
      border-color: rgba(103, 163, 255, .62);
      box-shadow: inset 0 0 18px rgba(103, 163, 255, .055), 0 0 14px rgba(103, 163, 255, .08);
    }
    .culture-modal .in-person-checkout.is-offline,
    .culture-modal .in-person-checkout.is-offline:hover,
    .culture-modal .in-person-checkout.is-offline:focus-visible {
      transform: none;
      color: #ff7b89;
      background: rgba(31, 5, 10, .82);
      border-color: rgba(255, 91, 108, .58);
      box-shadow: inset 0 0 18px rgba(255, 68, 88, .045), 0 0 12px rgba(255, 68, 88, .055);
    }
    .culture-modal h1 {
      margin: 0;
      color: var(--teal-soft);
      font-size: clamp(38px, 5vw, 72px);
      font-weight: 800;
      line-height: .94;
      letter-spacing: -.055em;
      max-width: 100%;
      min-width: 0;
      text-shadow: none;
    }
    .culture-modal .type {
      margin: 12px 0 0;
      color: var(--blue);
      font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .18em;
      text-transform: uppercase;
    }
    .culture-modal .summary {
      margin: 35px 0 0;
      color: #bad0d1;
      font-size: 17px;
      line-height: 1.7;
    }
    .culture-modal .section-title {
      margin: 42px 0 14px;
      color: var(--teal);
      font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 11px;
      letter-spacing: .18em;
      text-transform: uppercase;
    }
    .culture-modal .specs { margin: 0; border-top: 1px solid rgba(88,220,255,.22); }
    .culture-modal .spec-row {
      display: grid;
      grid-template-columns: minmax(130px, .35fr) 1fr;
      gap: 24px;
      padding: 15px 0;
      border-bottom: 1px solid rgba(88,220,255,.14);
    }
    .culture-modal .spec-row dt {
      color: var(--muted);
      font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 11px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .culture-modal .spec-row dd { margin: 0; color: var(--white); font-size: 14px; }
    .culture-modal .checkout {
      position: sticky;
      top: 20px;
      padding: 30px;
    }
    .culture-modal .checkout h2 { margin: 0; color: var(--teal); font-size: 29px; }
    .culture-modal .checkout-copy { margin: 13px 0 25px; color: #9fb9bb; font-size: 14px; line-height: 1.6; }
    .culture-modal .checkout-field {
      padding: 15px 0;
      border-top: 1px solid rgba(88,220,255,.16);
      display: flex;
      justify-content: space-between;
      gap: 20px;
      font-size: 13px;
    }
    .culture-modal .checkout-field > span:first-child { color: var(--muted); }
    .culture-modal .checkout-field > span:last-child { color: var(--white); text-align: right; }
    .culture-modal .checkout .button { width: 100%; margin-top: 24px; }
    .culture-modal .checkout-note { margin: 14px 0 0; color: #758f91; font-size: 11px; line-height: 1.5; }
    .culture-modal-loading,
    .culture-modal-error {
      min-height: min(570px, calc(100vh - 90px));
      display: grid;
      place-items: center;
      padding: 48px;
      color: var(--teal-soft);
      font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .16em;
      text-align: center;
      text-transform: uppercase;
    }
    .culture-modal-loading span::after {
      content: "";
      display: inline-block;
      width: 1.4em;
      text-align: left;
      animation: culture-loading-dots 1.1s steps(4, end) infinite;
    }
    .culture-modal-error { gap: 16px; }
    .culture-modal-error a { color: var(--teal); }
    @keyframes culture-loading-dots {
      0% { content: ""; }
      25% { content: "."; }
      50% { content: ".."; }
      75%, 100% { content: "..."; }
    }
    @media (max-width: 850px) {
      .culture-modal { padding: 10px; }
      .culture-modal-window { width: calc(100vw - 20px); max-height: calc(100vh - 20px); border-radius: 14px; }
      .culture-modal .product-main { grid-template-columns: 1fr; padding: 56px 20px 20px; }
      .culture-modal .checkout { position: static; }
    }
    @media (max-width: 640px) {
      .culture-modal .product-main { padding: 52px 14px 14px; gap: 14px; }
      .culture-modal .details, .culture-modal .checkout { border-radius: 11px; }
      .culture-modal .details { padding: 25px 20px; }
      .culture-modal .checkout { padding: 22px 20px; }
      .culture-modal .product-heading { grid-template-columns: 1fr; gap: 18px; text-align: center; }
      .culture-modal .product-heading .organism-orb { width: 128px; }
      .culture-modal .product-heading > div:last-child {
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      .culture-modal .product-heading .organism-title-lockup {
        width: 100%;
        display: flex;
        justify-content: center;
      }
      .culture-modal .product-heading .organism-title {
        width: max-content;
        max-width: 100%;
        margin-inline: auto;
        display: grid;
        grid-template-columns: var(--scientific-species-indent) max-content;
        justify-content: start;
        font-size: clamp(40px, 10.8vw, 58px);
        text-align: left;
      }
      .culture-modal .product-heading .organism-title .title-genus {
        grid-column: 1 / -1;
      }
      .culture-modal .product-heading .organism-title .title-species {
        grid-column: 2;
        margin-inline-start: 0;
      }
      .culture-modal .spec-row { grid-template-columns: 1fr; gap: 7px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .culture-modal, .culture-modal-window { transition: none; }
    }




  /* UNIFIED COMMAND LAYER + CULTURE CATALOG */
  #zoomControls { display: none !important; }
  body.unified-site { overflow: hidden; }
  .hud {
    transition: opacity .58s ease, transform .9s cubic-bezier(.22,.76,.18,1), visibility 0s linear 0s;
    transform-origin: 50% 50%;
  }
  body.catalog-active .hud {
    opacity: 0;
    transform: scale(.965);
    visibility: hidden;
    transition: opacity .42s ease, transform .75s cubic-bezier(.22,.76,.18,1), visibility 0s linear .75s;
  }
  .catalog-layer {
    position: fixed;
    inset: 0;
    z-index: 4;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    color: var(--white);
    font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
      linear-gradient(180deg, rgba(2,6,7,.28), rgba(2,6,7,.07) 38%, rgba(2,6,7,.18)),
      radial-gradient(circle at 50% 22%, rgba(0, 18, 21, .18), transparent 55%);
    transition: opacity .58s ease, visibility 0s linear .72s;
    scrollbar-color: var(--teal) rgba(0,0,0,.2);
  }
  body.catalog-active .catalog-layer {
    opacity: 1;
    visibility: visible;
    transition: opacity .72s ease .38s, visibility 0s linear 0s;
  }
  .catalog-chrome {
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(88,220,255,.18);
    font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    pointer-events: none;
  }
  .catalog-brand { color: var(--cyan); }
  .catalog-brand strong { color: var(--teal); }
  .catalog-return {
    appearance: none;
    border: 0;
    padding: 0;
    color: var(--cyan);
    background: transparent;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
    pointer-events: auto;
    transition: color .16s ease, text-shadow .16s ease;
  }
  .catalog-return:hover,
  .catalog-return:focus-visible {
    color: var(--teal);
    text-shadow: 0 0 14px rgba(57,244,196,.45);
    outline: none;
  }
  .catalog-layer .catalog-main,
  .catalog-layer .catalog-header,
  .catalog-layer .catalog-item,
  .catalog-layer .culture-status { pointer-events: none; }
  .catalog-layer .catalog-scroll,
  .catalog-layer .product-card { pointer-events: auto; }
  .catalog-layer .catalog-main { padding-top: 92px; }
  .catalog-layer .catalog-header { margin-bottom: 26px; }
  .catalog-layer .catalog-scroll { padding-bottom: 200px; }
  @media (max-width: 1088px) {
    .trophic-flow { display: none; }
    .catalog-layer .catalog-scroll { padding-bottom: 42px; }
  }
  .catalog-layer .catalog-footer {
    width: min(1320px, calc(100% - 72px));
    margin: 0 auto;
    padding: 18px 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: rgba(103,163,255,.78);
    font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    pointer-events: none;
  }
  body.catalog-active #planetCanvas { z-index: 2; }
  body.culture-modal-open .catalog-layer { overflow: hidden; }
  @media (max-width: 640px) {
    .catalog-chrome,
    .catalog-layer .catalog-footer { width: min(100% - 28px, 1500px); }
    .catalog-chrome { padding-top: 17px; font-size: 10px; letter-spacing: .1em; }
    .catalog-layer .catalog-main { padding-top: 42px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hud, .catalog-layer { transition: none !important; }
  }


/* Official mobile catalog: workbench-proven planet architecture and a compact
   square 2×2 organism selector. The body-level 1024px WebGL canvas remains
   between the star field (z1) and the transparent catalog layer (z4). */
@media (max-width: 640px) {
  body.catalog-active .catalog-layer {
    background: transparent !important;
  }
  body.catalog-active #planetCanvas.official-planet-canvas[data-renderer="webgl2"] {
    z-index: 2 !important;
    width: 1024px;
    height: 1024px;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .catalog-layer .catalog-scroll {
    padding-bottom: clamp(300px, 48vh, 440px) !important;
  }
  .catalog-layer .catalog-grid {
    width: min(380px, calc(100vw - 56px)) !important;
    min-width: 0 !important;
    aspect-ratio: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
  }
  .catalog-layer .catalog-item {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 3px;
  }
  .catalog-layer .catalog-item .product-card {
    width: min(132px, calc(100% - 24px));
    justify-self: center;
    align-self: center;
  }
  .catalog-layer .culture-nameplate {
    width: 100%;
    min-height: 40px;
    margin-top: -8px;
    padding: 4px 3px 4px;
  }
  .catalog-layer .culture-binomial {
    gap: 3px;
    line-height: 1.08;
  }
  .catalog-layer .catalog-item > .culture-status {
    min-height: 16px;
    font-size: clamp(6px, 1.7vw, 8px);
  }
}

/* Safari-safe culture modal width containment.
   Keep the thumbnail rail scrollable without allowing its item count to
   contribute an intrinsic width to the modal or its grid tracks. */
.product-main,
.product-main > .details,
.product-main > .checkout,
.microscopy-flipbook,
.microscopy-stage,
.microscopy-controls,
.microscopy-thumbs {
  min-inline-size: 0;
  max-inline-size: 100%;
}

.microscopy-flipbook,
.microscopy-stage,
.microscopy-controls,
.microscopy-thumbs {
  inline-size: 100%;
}

.microscopy-thumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.microscopy-thumb {
  flex: 0 0 68px;
  inline-size: 68px;
}

.culture-modal-window,
.culture-modal-body,
.culture-modal .product-main,
.culture-modal .details,
.culture-modal .checkout {
  min-inline-size: 0;
  max-inline-size: 100%;
}

.culture-modal-body {
  overflow-x: hidden;
}

@media (max-width: 850px) {
  .culture-modal .product-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .microscopy-thumb {
    flex-basis: 60px;
    inline-size: 60px;
  }
}



/* Keep the mobile catalog below the actual rendered two-row public navbar.
   JS measures the fixed nav after it is injected and updates this variable. */
@media (max-width: 640px) {
  .catalog-layer .catalog-main {
    padding-top: var(--catalog-nav-clearance, 220px) !important;
  }
}

/* Mobile culture-detail scientific names need real row spacing. The legacy
   .4 line-height works for short names by accident, but overlaps long taxa. */
@media (max-width: 640px) {
  .culture-modal .product-heading .organism-title {
    line-height: .92 !important;
    row-gap: 3px;
  }
}

/* Mobile catalog typography polish: restore the workbench kicker primitive,
   make the compact scientific names more legible, and keep both taxa lines
   in the same teal family. */
@media (max-width: 640px) {
  .catalog-layer .catalog-header > .kicker {
    margin: 0 0 -0.08em;
    color: var(--blue) !important;
    font-family: "League Spartan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: .24em !important;
    text-transform: uppercase !important;
  }

  .catalog-layer .culture-binomial {
    color: var(--teal-soft) !important;
    font-size: clamp(8px, 2.2vw, 10px) !important;
    line-height: 1.08;
  }

  .catalog-layer .culture-binomial .species {
    color: inherit !important;
  }

  .official-catalog-return {
    text-transform: uppercase !important;
  }
}

/* Let the transparent catalog surface pass pointer drags through to the large
   planet. Only concrete catalog controls opt back into hit testing. */
.catalog-layer .catalog-scroll,
.catalog-layer .catalog-grid {
  pointer-events: none;
}
.catalog-layer .product-card,
.catalog-layer .official-catalog-return,
.catalog-layer .culture-modal,
.catalog-layer .culture-modal * {
  pointer-events: auto;
}

/* Interaction polish: keep the mouse treatment quiet, but make keyboard
   navigation unmistakable. These rings sit outside existing geometry. */
.catalog-launch:focus-visible {
  outline: 2px solid rgba(103, 163, 255, .9) !important;
  outline-offset: 4px;
}
.official-catalog-return:focus-visible,
.catalog-return:focus-visible {
  outline: 2px solid rgba(103, 163, 255, .9) !important;
  outline-offset: 5px;
  border-radius: 2px;
}
.catalog-layer .product-card:focus-visible {
  outline: 2px solid rgba(143, 255, 228, .92) !important;
  outline-offset: 4px;
}
.culture-modal-close:focus-visible {
  outline: 2px solid rgba(103, 163, 255, .95) !important;
  outline-offset: 4px;
}

/* On large screens the catalog now resolves into place after the planet starts
   its move. Mobile keeps the exact, workbench-proven geometry and timing. */
@media (min-width: 1089px) and (prefers-reduced-motion: no-preference) {
  body.catalog-active .official-catalog-header {
    animation: eb-catalog-rise .54s cubic-bezier(.2,.8,.2,1) .44s both;
  }
  body.catalog-active .catalog-item {
    animation: eb-catalog-rise .5s cubic-bezier(.2,.8,.2,1) both;
  }
  body.catalog-active .catalog-item:nth-child(1) { animation-delay: .50s; }
  body.catalog-active .catalog-item:nth-child(2) { animation-delay: .56s; }
  body.catalog-active .catalog-item:nth-child(3) { animation-delay: .62s; }
  body.catalog-active .catalog-item:nth-child(4) { animation-delay: .68s; }
  @keyframes eb-catalog-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
