@layer site-02 {
/* Unified image workspace */
.image-workspace {
  position: relative;
  width: 100%;
  border: 1px solid rgba(20, 106, 96, 0.18);
  border-radius: 18px;
  background: #fbfefd;
  padding: 18px;
  color: var(--ink);
}

.image-workspace.is-saving {
  opacity: 0.82;
}

.image-workspace-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.image-workspace-heading > div {
  display: grid;
  gap: 4px;
}

.image-workspace-heading strong,
.image-workspace-heading h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.image-workspace-heading small {
  color: var(--muted);
}

.image-workspace-heading > span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e9f5f2;
  color: #176b61;
  padding: 5px 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.image-workspace-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  border: 1.5px dashed #83bdb6;
  border-radius: 14px;
  background: #f2faf8;
  padding: 16px;
  transition: 160ms ease;
}

.image-workspace-picker.is-dragging {
  border-color: #087d70;
  background: #e5f7f3;
  box-shadow: inset 0 0 0 2px rgba(8, 125, 112, 0.13);
}

.image-workspace-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #d9f1ed;
  color: #087d70;
  font-size: 1.35rem;
}

.image-workspace-picker > div:not(.image-picker-actions) {
  display: grid;
  gap: 4px;
}

.image-workspace-picker small {
  color: var(--muted);
}

.image-picker-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.image-picker-actions label {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #8ab8b2;
  border-radius: 11px;
  background: white;
  color: #145f57;
  padding: 0 14px;
  font-weight: 750;
  cursor: pointer;
}

.image-picker-actions label.camera-action {
  border-color: #087d70;
  background: #087d70;
  color: white;
}

.image-workspace-status,
.image-workspace-limit,
.image-workspace-empty {
  margin-top: 10px;
  border-radius: 10px;
  background: #f0f5f4;
  color: #49615e;
  padding: 9px 11px;
  font-size: 0.86rem;
}

.image-workspace-status {
  background: #edf8f6;
  color: #176b61;
}

.image-queue-grid,
.managed-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.image-tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe7e4;
  border-radius: 14px;
  background: white;
}

.image-tile.is-primary {
  border-color: #1e8f82;
  box-shadow: 0 0 0 2px rgba(30, 143, 130, 0.1);
}

.image-tile-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 168px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e4ecea;
  border-radius: 0;
  background: #eef4f3;
  padding: 0;
  cursor: zoom-in;
}

.image-tile-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: linear-gradient(45deg, #f3f7f6 25%, transparent 25%), linear-gradient(-45deg, #f3f7f6 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f3f7f6 75%), linear-gradient(-45deg, transparent 75%, #f3f7f6 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.image-tile-preview > span {
  position: absolute;
  left: 9px;
  top: 9px;
  display: inline-flex;
  min-width: 26px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(8, 39, 35, 0.82);
  color: white;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 800;
}

.image-tile-preview > span.image-primary-badge {
  min-width: auto;
  background: #087d70;
}

.image-tile-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.image-tile-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.image-tile-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.87rem;
}

.image-tile-title small {
  flex: 0 0 auto;
  color: var(--muted);
}

.image-tile-body > label {
  display: grid;
  gap: 5px;
}

.image-tile-body > label span {
  color: #49615e;
  font-size: 0.76rem;
  font-weight: 750;
}

.image-tile-body input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cadbd7;
  border-radius: 9px;
  background: #fff;
  padding: 8px 10px;
}

.image-tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.image-tile-actions button,
.image-tile-archive button {
  min-height: 36px;
  border: 1px solid #cfdfdc;
  border-radius: 9px;
  background: #f6faf9;
  color: #315e58;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 750;
}

.image-tile-actions button.is-active {
  border-color: #087d70;
  background: #e7f5f2;
  color: #08685e;
}

.image-tile-actions button.danger,
.image-tile-archive button {
  color: #a33b47;
}

.image-tile-actions button:disabled {
  opacity: 0.38;
}

.image-tile-archive {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #eef2f1;
  padding: 9px 12px;
}

.managed-image-upload-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid #dce8e5;
  padding-top: 16px;
}

.managed-image-upload-form > .image-workspace {
  border: 0;
  background: transparent;
  padding: 0;
}

.managed-image-manager.is-compact .managed-image-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.managed-image-manager.is-compact .image-tile-preview {
  height: 130px;
}

.location-manager > .managed-image-manager {
  margin: 18px 0;
}

.image-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 18, 16, 0.88);
  padding: 4vw;
}

.image-lightbox > button {
  position: fixed;
  z-index: 1;
  top: 18px;
  right: 18px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 1.8rem;
}

.image-lightbox img {
  display: block;
  max-width: min(94vw, 1500px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 90px rgba(0,0,0,0.5);
}

.record-form,
.supply-form {
  padding-bottom: 112px;
}

@media (max-width: 760px) {
  .image-workspace {
    border-radius: 14px;
    padding: 13px;
  }

  .image-workspace-picker {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .image-picker-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .image-picker-actions label {
    min-height: 46px;
  }

  .image-queue-grid,
  .managed-image-grid,
  .managed-image-manager.is-compact .managed-image-grid {
    grid-template-columns: 1fr;
  }

  .image-tile-preview,
  .managed-image-manager.is-compact .image-tile-preview {
    height: 190px;
  }

  .image-tile-actions button,
  .image-tile-archive button {
    min-height: 44px;
  }

  .image-lightbox {
    padding: 12px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 89% 9%, rgba(169, 230, 219, 0.26), transparent 25rem),
    linear-gradient(180deg, #f8fbfa 0%, var(--canvas) 44rem);
  color: var(--ink);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--cyan);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(8, 127, 115, 0.3);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(201, 215, 211, 0.82);
  background: rgba(248, 251, 250, 0.9);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
}

.brand,
.topbar-actions,
.member-chip,
.brand > span:last-child {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 11px 11px 11px 4px;
  background: var(--ink);
  color: white;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand > span:last-child {
  align-items: flex-start;
  flex-direction: column;
  line-height: 1.1;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.topbar-actions {
  gap: 14px;
}

.language-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f4f8f7;
}

.language-switcher form {
  display: flex;
}

.language-switcher button {
  min-width: 30px;
  height: 27px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.language-switcher button:hover,
.language-switcher button[aria-pressed="true"] {
  background: white;
  color: var(--teal-dark);
  box-shadow: 0 1px 4px rgba(19, 57, 50, 0.12);
}

.member-chip {
  gap: 9px;
}

.topbar-account-divider {
  width: 1px;
  height: 34px;
  flex: 0 0 1px;
  background: var(--line);
}

.member-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #b9d8d1;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.member-copy {
  display: flex;
  flex-direction: column;
  max-width: 120px;
}

.member-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.signout-link,
.invite-link,
.admin-link,
.clear-filters,
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
}

.signout-link:hover,
.invite-link:hover,
.admin-link:hover,
.clear-filters:hover,
.text-button:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.topbar-actions .signout-link,
.topbar-actions .invite-link,
.topbar-actions .admin-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding-inline: 4px;
}

.page-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease,
    border-color 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button-primary {
  background: var(--teal);
  box-shadow: 0 9px 24px rgba(8, 127, 115, 0.18);
  color: white;
}

.button-primary:hover:not(:disabled) {
  background: var(--teal-dark);
  box-shadow: 0 12px 28px rgba(8, 127, 115, 0.25);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.button-secondary:hover:not(:disabled),
.button-ghost:hover:not(:disabled) {
  border-color: #9ebbb4;
  background: #f9fcfb;
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-soft);
}

.eyebrow,
.section-kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow > span {
  width: 22px;
  height: 1px;
  background: var(--teal);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.75fr);
  gap: 54px;
  align-items: end;
  padding: 76px 0 64px;
}

.hero-copy h1 {
  margin: 18px 0 20px;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 790;
  letter-spacing: -0.052em;
  line-height: 1.05;
}

.hero-copy h1 em {
  color: var(--teal);
  font-style: normal;
}

.hero-copy > p {
  max-width: 610px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.stats-panel {
  overflow: hidden;
  border: 1px solid rgba(189, 209, 203, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.stats-panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.stats-panel-label span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--good);
  letter-spacing: 0;
}

.stats-panel-label span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ca66f;
  content: "";
  box-shadow: 0 0 0 4px rgba(44, 166, 111, 0.12);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 18px;
}

.stats-grid > div {
  display: flex;
  flex-direction: column;
  padding: 0 15px;
  border-right: 1px solid var(--line);
}

.stats-grid > div:first-child {
  padding-left: 0;
}

.stats-grid > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.stats-grid strong {
  font-family: var(--font-mono);
  font-size: 30px;
  letter-spacing: -0.05em;
}

.stats-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.coverage-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: #eff6f4;
  color: var(--muted);
  font-size: 12px;
}

.coverage-line > div,
.detail-badges,
.applications-cell,
.report-title > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.application-badge,
.vendor-badge {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid #b7d6cf;
  border-radius: 6px;
  background: #f3faf8;
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.library-section {
  padding: 32px 0 96px;
  scroll-margin-top: 90px;
}

.library-heading,
.card-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.library-heading h2,
.card-heading h2 {
  margin: 6px 0 0;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.result-count {
  padding-bottom: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.filter-panel {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 30px rgba(25, 65, 57, 0.05);
}

.search-field {
  position: relative;
  display: block;
}

.search-field input {
  width: 100%;
  height: 49px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fbfdfc;
  font-size: 14px;
  outline: 0;
}

.search-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 115, 0.08);
}

.search-icon {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 17px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: var(--muted);
  content: "";
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(125px, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}

.filter-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-row label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.filter-row select {
  width: 100%;
  height: 38px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 12px;
}

.filter-submit {
  min-height: 38px;
  padding-inline: 16px;
}

.clear-filters {
  display: inline-flex;
  height: 38px;
  align-items: center;
  padding: 0 7px;
}

.records-table {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(27, 67, 59, 0.05);
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.9fr 1.1fr 0.8fr 30px;
  gap: 14px;
  align-items: center;
}

.table-head {
  min-height: 41px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #eff5f3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.table-row {
  min-height: 86px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row:hover {
  background: #f9fcfb;
}

@media (min-width: 981px) {
  .home-page .table-head,
  .home-page .table-row {
    gap: 8px;
  }

  .home-page .table-head {
    min-height: 34px;
    padding-inline: 14px;
  }

  .home-page .table-row {
    min-height: 52px;
    padding: 8px 14px;
  }

  .home-page .target-cell a {
    font-size: 14px;
  }

  .home-page .target-cell > span,
  .home-page .outcome-cell small {
    margin-top: 2px;
    font-size: 12px;
  }

  .home-page .product-cell,
  .home-page .outcome-cell {
    gap: 3px;
  }

  .home-page .outcome-cell {
    align-items: center;
    flex-flow: row wrap;
  }

  .home-page .outcome-cell > small {
    flex-basis: 100%;
  }

  .home-page .status-badge {
    min-height: 21px;
    padding-inline: 7px;
    font-size: 12px;
  }
}

.target-cell,
.product-cell,
.outcome-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.outcome-cell {
  align-items: flex-start;
  gap: 6px;
}

.target-cell a {
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-cell a:hover {
  color: var(--teal);
}

.target-cell-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.target-cell-heading > a {
  min-width: 0;
}

.phospho-list-badge {
  display: inline-flex;
  min-height: 18px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 6px;
  border: 1px solid #e8b1cf;
  border-radius: 5px;
  background: #fff0f8;
  color: #a32970;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.target-cell > span,
.outcome-cell small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.outcome-cell > small {
  margin-top: 0;
}

.product-cell {
  gap: 5px;
}

.product-cell strong {
  font-size: 12px;
}

.product-cell code,
.detail-badges code,
.form-antibody-chip code {
  width: fit-content;
  padding: 3px 6px;
  border-radius: 4px;
  background: #edf2f1;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-recommended {
  background: var(--good-soft);
  color: var(--good);
}

.status-conditional {
  background: var(--warn-soft);
  color: var(--warn);
}

.status-not_recommended {
  background: var(--bad-soft);
  color: var(--bad);
}

.date-cell {
  color: var(--ink-soft);
  font-size: 12px;
}

.row-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal);
  transition: border-color 150ms ease, transform 150ms ease;
}

.row-arrow:hover {
  transform: translateX(2px);
  border-color: var(--teal);
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  display: flex;
  min-height: 350px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 16px;
  padding: 50px 24px;
  border: 1px dashed #b9cbc6;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.88)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(8,127,115,.09) 39px 40px);
  text-align: center;
}

.empty-orbit {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid #b6d5ce;
  border-radius: 50%;
}

.empty-orbit::before,
.empty-orbit::after {
  position: absolute;
  border: 1px solid #d8e8e4;
  border-radius: 50%;
  content: "";
}

.empty-orbit::before {
  inset: 8px -8px;
}

.empty-orbit::after {
  inset: -8px 8px;
}

.empty-orbit span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.empty-state h3 {
  margin: 10px 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.empty-state p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.empty-actions {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer span:first-child {
  color: var(--ink-soft);
  font-weight: 800;
}

.notice {
  margin-top: 20px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
}

.notice-success {
  border-color: #b6dcc9;
  background: var(--good-soft);
  color: #136644;
}

.notice-neutral {
  background: #edf3f1;
  color: var(--ink-soft);
}

.notice-error {
  border-color: #e7b9b9;
  background: var(--bad-soft);
  color: var(--bad);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a:hover {
  color: var(--teal);
}

.cell-tool-page .breadcrumbs,
.wb-planner-page .breadcrumbs { align-items: center; }
.cell-tool-page .breadcrumbs a,
.wb-planner-page .breadcrumbs a { display: inline-flex; min-height: 44px; align-items: center; }
.cell-tool-page .button,
.wb-planner-page .button { min-height: 44px; }

.form-page {
  max-width: 900px;
  padding-bottom: 90px;
}

.form-page-header {
  padding: 46px 0 32px;
}

.form-page-header h1 {
  margin: 7px 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.045em;
}

.form-page-header > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.record-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-section {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 40px rgba(29, 67, 59, 0.045);
}

.method-section {
  border-color: #b9d9d2;
  background: linear-gradient(135deg, #fff 0%, #f5fbf9 100%);
}

.section-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 25px;
}

.section-number {
  display: inline-flex;
  min-width: 31px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--ink);
  color: white;
  font-family: var(--font-mono);
  font-size: 12px;
}

.section-heading h2 {
  margin: -2px 0 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.form-grid-spaced {
  margin-top: 22px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.field em {
  color: var(--teal);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fcfefd;
  outline: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input,
.field select {
  height: 44px;
  padding: 0 12px;
}

.field textarea {
  min-height: 90px;
  padding: 11px 12px;
  line-height: 1.6;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 115, 0.08);
}

.field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.smart-recognition-section {
  border-color: #a9d8ce;
  background: linear-gradient(135deg, #f8fffd 0%, #edf9f6 100%);
}

.recognition-box textarea {
  width: 100%;
  min-height: 112px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  resize: vertical;
}

.recognition-box textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 115, 0.08);
  outline: 0;
}

.recognition-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.recognition-actions span {
  color: var(--teal-dark);
  font-size: 12px;
  line-height: 1.5;
}

.phospho-toggle {
  min-height: 70px;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #c4ddd7;
  border-radius: 11px;
  background: #f6fbfa;
  cursor: pointer;
}

.phospho-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--teal);
}

.phospho-toggle > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.phospho-toggle strong {
  font-size: 12px;
}

.mono-input,
.mono {
  font-family: var(--font-mono) !important;
}

.form-actions {
  position: sticky;
  z-index: 10;
  bottom: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(201, 215, 211, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(24, 65, 56, 0.12);
  backdrop-filter: blur(16px);
}

.form-error {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #efbcbc;
  border-radius: 10px;
  background: var(--bad-soft);
  color: #8c2e2e;
  font-size: 12px;
}

.form-error strong {
  font-size: 13px;
}

.application-picker,
.outcome-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  padding: 0;
  border: 0;
}

.application-picker label {
  position: relative;
  display: flex;
  min-height: 72px;
  justify-content: center;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfc;
  cursor: pointer;
}

.application-picker label.selected {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.legacy-type-notice {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e4c98f;
  border-radius: 9px;
  background: var(--warn-soft);
  color: #7a5a18;
  font-size: 12px;
  line-height: 1.55;
}

.application-picker input {
  position: absolute;
  top: 9px;
  right: 9px;
  accent-color: var(--teal);
}

.application-picker strong {
  font-family: var(--font-mono);
  font-size: 14px;
}

.application-picker span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.rating-field {
  margin: 0 0 20px;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px dashed var(--line);
}

.rating-field legend {
  width: 100%;
  margin-bottom: 4px;
  padding: 0;
}

.rating-field legend > span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.rating-field legend em {
  color: var(--teal);
  font-style: normal;
}

.rating-help {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.rating-picker {
  display: grid;
  width: min(100%, 390px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rating-option {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfc;
  color: #b9c3c0;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.rating-option:hover {
  transform: translateY(-1px);
}

.rating-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rating-option-star {
  font-size: 23px;
  line-height: 1;
}

.rating-option small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.rating-option:has(input:checked) {
  border-color: #bd8422;
  background: #fff9e9;
  box-shadow: inset 0 0 0 1px #bd8422;
}

.rating-option:has(input:checked) .rating-option-star,
.rating-option:has(~ .rating-option input:checked) .rating-option-star,
.rating-option:hover .rating-option-star,
.rating-option:has(~ .rating-option:hover) .rating-option-star {
  color: #bd8422;
}

.rating-option:has(input:focus-visible) {
  outline: 3px solid rgba(8, 127, 115, 0.25);
  outline-offset: 3px;
}

.outcome-picker {
  grid-template-columns: repeat(3, 1fr);
}

.outcome-option {
  display: flex;
  min-height: 78px;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}

.outcome-option:has(input:checked) {
  border-color: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}

.outcome-option input {
  margin-top: 2px;
  accent-color: currentColor;
}

.outcome-option > span {
  display: flex;
  flex-direction: column;
}

.outcome-option strong {
  color: var(--ink);
  font-size: 12px;
}

.outcome-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.outcome-good {
  background: var(--good-soft);
  color: var(--good);
}

.outcome-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.outcome-bad {
  background: var(--bad-soft);
  color: var(--bad);
}

.star-rating {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.star-meter {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.star-meter-base {
  color: #d4dcda;
}

.star-meter-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #bd8422;
  white-space: nowrap;
}

.star-rating strong {
  font-family: var(--font-mono);
  font-size: 12px;
}

.star-rating small,
.star-rating-empty {
  color: var(--muted);
  font-size: 12px;
}

.star-rating-compact .star-meter {
  font-size: 13px;
}

.star-rating-compact strong {
  font-size: 12px;
}

.upload-field input[type="file"] {
  height: auto;
  padding: 12px;
  border-style: dashed;
  background: #f6faf9;
  font-size: 12px;
}

.form-antibody-chip {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  font-size: 12px;
}

.form-antibody-chip strong {
  font-size: 13px;
}

.form-antibody-chip span {
  color: var(--muted);
}

.detail-page {
  padding-bottom: 88px;
}

.detail-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 52px 0 34px;
}

.detail-badges {
  align-items: center;
}

.vendor-badge {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
  font-family: var(--font-sans);
}

.detail-hero h1 {
  margin: 14px 0 6px;
  font-size: clamp(42px, 6vw, 66px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.detail-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-rating-summary {
  margin-top: 11px;
}

.detail-actions {
  display: flex;
  flex: 0 0 auto;
  max-width: 430px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.detail-hero > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.detail-actions form,
.detail-actions .text-button {
  flex: 0 0 auto;
}

.detail-actions .text-button {
  min-height: 42px;
  padding: 0 10px;
  line-height: 1.2;
}

.phospho-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #e6bad0;
  border-radius: 999px;
  background: #fff0f6;
  color: #a33d70;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.text-button-danger {
  color: var(--bad);
}

.detail-card,
.report-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 40px rgba(29, 67, 59, 0.05);
}

.detail-card {
  padding: 26px;
}

.card-heading {
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.card-heading a {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 8px;
}

.detail-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  padding: 15px 16px 15px 0;
}

.detail-item > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.detail-item > strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.reports-section {
  margin-top: 44px;
}

.report-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 18px;
}

.report-card {
  overflow: hidden;
}

.report-card-header {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 15px;
  align-items: start;
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
}

.report-index {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px 10px 10px 3px;
  background: var(--canvas-deep);
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.report-title h3 {
  margin: 8px 0 3px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.report-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.report-actions > a {
  color: var(--teal);
  font-weight: 700;
}

.report-key-grid,
.method-details {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 10px 23px;
}

.method-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 4px;
  border-top: 1px dashed var(--line);
  background: #fafcfb;
}

.report-notes {
  margin: 10px 23px 18px;
  padding: 13px 15px;
  border-left: 3px solid var(--teal);
  background: #f2f8f6;
}

.report-notes span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.report-notes p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.experiment-record-copy {
  margin: 12px 23px 20px;
  padding: 16px;
  border: 1px solid #c9ddd8;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(223, 242, 238, 0.72), rgba(249, 252, 251, 0.96) 45%),
    white;
}

.experiment-record-copy > header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.experiment-record-copy h4 {
  margin: 4px 0 3px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.experiment-record-copy header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.copy-record-button {
  min-height: 36px;
  flex: 0 0 auto;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--teal);
  border-radius: 9px;
  background: var(--teal);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.copy-record-button:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.copy-record-button > span {
  font-family: var(--font-mono);
  font-size: 14px;
}

.experiment-record-text {
  display: block;
  width: 100%;
  min-height: 180px;
  margin-top: 13px;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: #263c38;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  outline: 0;
}

.experiment-record-text:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 115, 0.08);
}

.copy-record-status {
  min-height: 14px;
  margin: 7px 1px 0;
  color: var(--muted);
  font-size: 12px;
}

.copy-record-status.is-error {
  color: var(--bad);
}

.evidence-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 2px 23px 21px;
}

.evidence-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f9f8;
}

.evidence-gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.evidence-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.evidence-gallery a:hover img {
  transform: scale(1.025);
}

.evidence-gallery figcaption {
  overflow: hidden;
  padding: 8px 9px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-card-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 23px;
  border-top: 1px solid var(--line);
  background: #f1f6f4;
  color: var(--muted);
  font-size: 12px;
}

.report-card-footer strong {
  color: var(--ink-soft);
}

.compact-empty {
  min-height: 300px;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  background: var(--paper);
}

.auth-brand-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 100vh;
  justify-content: space-between;
  flex-direction: column;
  padding: 46px clamp(38px, 5vw, 78px) 54px;
  background:
    radial-gradient(circle at 15% 84%, rgba(129, 221, 204, 0.22), transparent 20rem),
    linear-gradient(145deg, #102b27 0%, #153b34 48%, #0d2925 100%);
  color: white;
}

.auth-brand-panel::after {
  position: absolute;
  right: -12rem;
  bottom: 5rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(151, 232, 216, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 58px rgba(151, 232, 216, 0.04),
    0 0 0 116px rgba(151, 232, 216, 0.025);
  content: "";
}

.auth-brand {
  position: relative;
  z-index: 1;
  width: fit-content;
}

.auth-brand-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.language-switcher-inverse {
  border-color: rgba(191, 224, 217, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.language-switcher-inverse button {
  color: #a9cfc6;
}

.language-switcher-inverse button:hover,
.language-switcher-inverse button[aria-pressed="true"] {
  background: rgba(218, 247, 240, 0.16);
  color: white;
  box-shadow: none;
}

.auth-brand .brand-mark {
  background: #d9f4ee;
  color: #0f3932;
}

.auth-brand strong {
  color: white;
}

.auth-brand small {
  color: #9fc6bd;
}

.auth-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: auto 0;
  padding: 80px 0;
}

.auth-brand-copy .eyebrow {
  color: #7fd7c6;
}

.auth-brand-copy .eyebrow > span {
  background: #7fd7c6;
}

.auth-brand-copy h1 {
  margin: 22px 0;
  font-size: clamp(42px, 5vw, 67px);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.auth-brand-copy h1 em {
  color: #9ce2d5;
  font-style: normal;
}

.auth-brand-copy p {
  max-width: 500px;
  margin: 0;
  color: #bfd7d1;
  font-size: 14px;
  line-height: 1.8;
}

.auth-points {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-points li {
  display: flex;
  gap: 8px;
  flex-direction: column;
  color: #c7ded8;
  font-size: 12px;
  line-height: 1.45;
}

.auth-points li span {
  color: #71c9b8;
  font-family: var(--font-mono);
  font-size: 12px;
}

.auth-card-wrap {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px;
  background:
    radial-gradient(circle at 90% 10%, rgba(188, 235, 226, 0.35), transparent 22rem),
    #f7faf9;
}

.auth-card {
  width: min(100%, 440px);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.auth-card-wide {
  width: min(100%, 590px);
}

.auth-card h2 {
  margin: 10px 0 7px;
  font-size: 32px;
  letter-spacing: -0.045em;
}

.auth-card > p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.auth-form label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.auth-form label > span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 760;
}

.auth-form input {
  width: 100%;
  height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fcfefd;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 115, 0.08);
}

.auth-form label small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-form .button {
  width: 100%;
  min-height: 47px;
  margin-top: 3px;
}

.auth-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-card-footer {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.auth-card-footer a {
  color: var(--teal);
  font-weight: 750;
}

.auth-security-note {
  max-width: 440px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.account-page {
  max-width: 940px;
}

.account-admin-entry {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid #a9d8ce;
  border-radius: 13px;
  background: var(--teal-soft);
}

.account-admin-entry > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.account-admin-entry strong {
  color: var(--teal-dark);
  font-size: 13px;
}

.account-admin-entry span {
  color: var(--muted);
  font-size: 12px;
}

.account-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(330px, 1.2fr);
  gap: 48px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(29, 67, 59, 0.045);
}

.account-card + .account-card {
  margin-top: 14px;
}

.account-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.account-card > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.compact-auth-form {
  max-width: 440px;
}

.account-language-form,
.account-language-form fieldset {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  border: 0;
}

.account-language-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.account-language-options label {
  display: grid;
  min-height: 86px;
  align-content: center;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fbfdfc;
  cursor: pointer;
}

.account-language-options label:hover {
  border-color: #8fbdb4;
  background: #f3faf8;
}

.account-language-options label:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.account-language-options label:has(input:focus-visible) {
  outline: 3px solid rgba(8, 127, 115, 0.16);
  outline-offset: 2px;
}

.account-language-options label > span {
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
}

.account-language-options label > strong {
  font-size: 12px;
}

.account-language-options label > small {
  color: var(--muted);
  font-size: 12px;
}

.account-language-form > .button {
  justify-self: end;
}

.invite-generator form {
  display: flex;
  justify-content: flex-start;
}

.invite-result {
  display: flex;
  gap: 9px;
  flex-direction: column;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #a9d8ce;
  border-radius: 12px;
  background: var(--teal-soft);
}

.invite-result > span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.invite-result code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.invite-result small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.permanent-invite-card {
  margin-top: 14px;
  border-color: #a9d8ce;
  background: linear-gradient(135deg, #fff 0%, #f2fbf8 100%);
}

.permanent-invite-card .role-badge {
  margin-bottom: 10px;
}

.admin-page {
  max-width: 1100px;
}

.admin-header {
  padding-bottom: 24px;
}

.admin-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.admin-stats span {
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--muted);
  font-size: 12px;
}

.admin-stats strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
}

.admin-card {
  margin-top: 15px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(29, 67, 59, 0.045);
}

.admin-card .card-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-card .card-heading h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.admin-member-list,
.admin-invite-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.admin-member-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto minmax(200px, auto);
  gap: 16px;
  align-items: center;
  min-height: 78px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.admin-member-main {
  display: flex;
  min-width: 0;
  gap: 11px;
  align-items: center;
}

.admin-member-main > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.admin-member-main strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-member-main code {
  color: var(--muted);
  font-size: 12px;
}

.role-badge,
.member-status {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.role-admin {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.role-member {
  background: var(--blue-soft);
  color: #375f72;
}

.member-status {
  background: #f0f4f3;
  color: var(--muted);
}

.status-active {
  background: var(--good-soft);
  color: var(--good);
}

.status-archived {
  background: var(--bad-soft);
  color: var(--bad);
}

.admin-row-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-action {
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-action:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.admin-action-danger {
  border-color: #e8c5c5;
  color: var(--bad);
}

.admin-invite-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.admin-invite-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-invite-row strong {
  font-size: 12px;
}

.admin-invite-row span,
.admin-empty {
  color: var(--muted);
  font-size: 12px;
}

.admin-empty {
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.security-panel {
  margin-top: 14px;
  padding: 17px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.security-panel strong {
  color: var(--ink-soft);
}

.security-panel p {
  margin: 4px 0 0;
}
}

@layer site-04 {
.datasheet-card {
  scroll-margin-top: 92px;
}

.datasheet-heading {
  align-items: flex-end;
}

.datasheet-current {
  display: grid;
  gap: 18px;
}

.datasheet-document-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfa;
}

.datasheet-document-icon,
.datasheet-empty-icon {
  display: grid;
  width: 48px;
  height: 56px;
  place-items: center;
  border-radius: 7px 7px 7px 2px;
  background: #e74858;
  color: white;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: inset 0 -9px 0 rgba(116, 18, 32, 0.12);
}

.datasheet-document-bar > div:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.datasheet-document-bar strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.datasheet-document-bar span {
  color: var(--muted);
  font-size: 12px;
}

.datasheet-document-actions,
.datasheet-form-actions,
.datasheet-history-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.datasheet-document-actions .button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.datasheet-viewer {
  width: 100%;
  height: 720px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #eff3f2;
}

.datasheet-mobile-note {
  display: none;
}

.datasheet-empty {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 23px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfdfc, #f2f8f6);
}

.datasheet-empty h3,
.datasheet-empty p {
  margin: 0;
}

.datasheet-empty p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.datasheet-upload-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.datasheet-upload-panel > summary {
  padding: 16px 2px 8px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  list-style-position: inside;
}

.datasheet-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 13px;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfa;
}

.datasheet-form-heading,
.datasheet-form .compact-error,
.datasheet-form > .field-wide,
.datasheet-form-grid,
.datasheet-form-actions {
  grid-column: 1 / -1;
}

.datasheet-form-heading {
  display: grid;
  gap: 3px;
}

.datasheet-form-heading strong {
  font-size: 14px;
}

.datasheet-form-heading span {
  color: var(--muted);
  font-size: 12px;
}

.datasheet-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.datasheet-import-form {
  margin-top: 18px;
  background: var(--teal-soft);
}

.datasheet-admin-tools {
  margin-top: 22px;
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.datasheet-history {
  margin-top: 22px;
}

.datasheet-history-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 9px;
}

.datasheet-history-heading h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.datasheet-history-heading > span {
  color: var(--muted);
  font-size: 12px;
}

.datasheet-history-list {
  display: grid;
  gap: 9px;
}

.datasheet-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.datasheet-history-row.status-current {
  border-color: rgba(8, 127, 115, 0.32);
  box-shadow: inset 3px 0 0 var(--teal);
}

.datasheet-history-main,
.datasheet-history-main > div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.datasheet-history-main {
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
}

.datasheet-history-main > span,
.datasheet-history-main code {
  color: var(--muted);
  font-size: 12px;
}

.datasheet-status,
.coverage-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--canvas-deep);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.datasheet-status.status-current,
.coverage-official_pdf {
  background: var(--good-soft);
  color: var(--good);
}

.datasheet-status.status-pending,
.coverage-member_upload,
.coverage-official_link,
.coverage-unconfirmed {
  background: var(--warn-soft);
  color: var(--warn);
}

.coverage-official_page_snapshot {
  background: var(--blue-soft);
  color: #256987;
}

.coverage-missing {
  background: var(--bad-soft);
  color: var(--bad);
}

.datasheet-history-actions {
  justify-content: flex-end;
}

.datasheet-history-actions > a {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 750;
}

.datasheet-verify-form {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 0.8fr 1.7fr 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.datasheet-verify-form label {
  display: grid;
  gap: 4px;
}

.datasheet-verify-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.datasheet-verify-form input,
.datasheet-verify-form select {
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
  font-size: 12px;
}

.datasheet-coverage-summary {
  display: flex;
  gap: 9px;
  margin-bottom: 15px;
}

.datasheet-coverage-summary span {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 12px;
}

.datasheet-coverage-summary strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 18px;
}

.datasheet-coverage-list {
  display: grid;
}

.datasheet-coverage-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) 120px minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.datasheet-coverage-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.datasheet-coverage-row > div:first-child strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.datasheet-coverage-row > div:first-child span,
.coverage-counts {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .datasheet-heading,
  .datasheet-document-bar,
  .datasheet-history-heading {
    align-items: stretch;
  }

  .datasheet-heading,
  .datasheet-history-heading {
    flex-direction: column;
  }

  .datasheet-document-bar {
    grid-template-columns: auto 1fr;
  }

  .datasheet-document-actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }

  .datasheet-document-actions .button {
    flex: 1;
  }

  .datasheet-viewer {
    display: none;
  }

  .datasheet-mobile-note {
    display: grid;
    gap: 3px;
    padding: 13px;
    border-radius: 10px;
    background: var(--blue-soft);
  }

  .datasheet-mobile-note strong {
    font-size: 12px;
  }

  .datasheet-mobile-note span {
    color: var(--muted);
    font-size: 12px;
  }

  .datasheet-form,
  .datasheet-form-grid,
  .datasheet-history-row,
  .datasheet-verify-form,
  .datasheet-coverage-row {
    grid-template-columns: 1fr;
  }

  .datasheet-history-actions {
    justify-content: flex-start;
  }

  .datasheet-coverage-summary {
    flex-wrap: wrap;
  }

  .datasheet-coverage-row {
    gap: 7px;
    padding: 14px 0;
  }
}
}

@layer site-05 {
/* Shared module navigation and supply locator */
.module-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(234, 242, 240, 0.72);
}

.module-switcher a {
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.module-switcher a[aria-current="page"] {
  background: var(--paper);
  box-shadow: 0 2px 7px rgba(20, 55, 48, 0.1);
  color: var(--teal-dark);
}
}

@layer site-08 {
/* Managed laboratory images */
.image-dropzone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.image-drop-target {
  display: grid;
  min-height: 112px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border: 1.5px dashed #9dbdb6;
  border-radius: 13px;
  background: #f5faf8;
  color: var(--teal-dark);
  cursor: pointer;
  text-align: center;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.image-drop-target:hover,
.image-drop-target:focus-visible,
.image-dropzone.is-dragging .image-drop-target,
.image-dropzone.is-paste-target .image-drop-target {
  border-color: var(--teal);
  outline: 0;
  background: var(--teal-soft);
  box-shadow: 0 0 0 3px rgba(8, 127, 115, 0.1);
}

.image-drop-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: white;
  box-shadow: 0 3px 10px rgba(20, 55, 48, 0.08);
  font-size: 16px;
}

.image-drop-target strong {
  font-size: 12px;
}

.image-drop-target small {
  color: var(--muted);
  font-size: 12px;
}

.image-drop-target .image-paste-hint {
  color: var(--teal-dark);
  font-weight: 700;
}

.image-clipboard-status {
  grid-column: 1 / -1;
  padding: 7px 9px;
  border: 1px solid #a8d5c9;
  border-radius: 8px;
  background: #edf9f5;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.camera-upload-button {
  display: inline-flex;
  min-width: 132px;
  min-height: 46px;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #aac9c2;
  border-radius: 11px;
  background: white;
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.camera-upload-button span {
  color: #d43e7d;
  font-size: 12px;
}

.image-selected-files {
  display: grid;
  grid-column: 1 / -1;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.image-selected-files li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.image-selected-files strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-selected-files small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.image-dropzone.is-compact {
  grid-template-columns: minmax(0, 1fr) auto;
}

.image-dropzone.is-compact .image-drop-target {
  min-height: 72px;
  padding: 10px;
}

.image-dropzone.is-compact .image-drop-icon {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.image-dropzone.is-compact .camera-upload-button {
  min-width: 110px;
}

.storage-unit-photo {
  display: block;
  width: 72px;
  height: 60px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #b7cbc6;
  border-radius: 9px;
  background: #edf3f1;
  box-shadow: 0 5px 12px rgba(20, 55, 48, 0.1);
}

.storage-unit-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-card-select .storage-unit-photo {
  width: 52px;
  height: 44px;
  border-radius: 7px;
}

.supply-record-image {
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
}

.supply-record-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.managed-image-manager {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 7px 24px rgba(20, 55, 48, 0.045);
}

.location-manager > .managed-image-manager {
  margin-top: 0;
}

.managed-image-manager > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.managed-image-manager > header h2 {
  margin: 5px 0 3px;
  font-size: 20px;
}

.managed-image-manager > header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.managed-image-manager > header > strong {
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 12px;
}

.managed-image-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfa;
}

.managed-image-upload-form .image-drop-target {
  min-height: 86px;
}

.managed-image-list {
  display: grid;
  gap: 11px;
}

.managed-image-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: 15px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.managed-image-preview {
  display: block;
  min-height: 160px;
  overflow: hidden;
  border-radius: 10px;
  background: #edf2f0;
}

.managed-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: contain;
}

.managed-image-body,
.managed-image-edit-form {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.managed-image-meta {
  display: grid;
  gap: 3px;
}

.managed-image-meta strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managed-image-meta small,
.managed-image-replacement > small {
  color: var(--muted);
  font-size: 12px;
}

.managed-image-replacement {
  display: grid;
  gap: 6px;
}

.managed-image-replacement > span {
  font-size: 12px;
  font-weight: 760;
}

.managed-image-edit-form .button {
  justify-self: start;
}

.managed-image-archive-form {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.image-action-success {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
}

.managed-image-empty {
  display: grid;
  min-height: 92px;
  place-items: center;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1120px) {
  .topbar-actions {
    gap: 8px;
  }

  .module-switcher a {
    padding: 7px;
    font-size: 12px;
  }

  .supply-record-summary {
    grid-template-columns: minmax(170px, 1fr) minmax(230px, 1.2fr) minmax(150px, 0.8fr) auto;
  }

  .supply-record-updated {
    display: none;
  }
}

@media (max-width: 980px) {
  .topbar-inner {
    height: auto;
    min-height: 72px;
    padding: 10px 0;
  }

  .module-switcher {
    order: -1;
  }

  .supplies-hero {
    grid-template-columns: 1fr;
  }

  .supplies-hero-counts {
    justify-self: start;
  }

  .supply-filter-panel {
    grid-template-columns: minmax(220px, 1fr) 190px auto;
  }

  .supply-filter-panel .clear-filters {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 2px 4px;
  }

  .supply-record-summary {
    grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1.25fr) minmax(150px, 0.8fr) auto;
  }

  .room-choice-grid,
  .unit-choice-grid,
  .location-admin-room-grid,
  .location-admin-unit-grid,
  .location-admin-zone-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    width: min(100% - 24px, 1180px);
    flex-wrap: wrap;
    gap: 8px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .module-switcher {
    width: auto;
    flex: 1;
    justify-content: center;
  }

  .module-switcher a {
    flex: 1;
    text-align: center;
  }

  .supplies-page,
  .supply-form-page {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

  .supplies-hero {
    min-height: 0;
    padding: 28px 22px;
    border-radius: 18px;
  }

  .supplies-hero h1 {
    font-size: 35px;
  }

  .supplies-hero-counts {
    width: 100%;
  }

  .supplies-hero-counts span {
    min-width: 0;
  }

  .supplies-library {
    padding-top: 32px;
  }

  .supplies-heading h2 {
    font-size: 23px;
  }

  .supply-filter-panel {
    grid-template-columns: 1fr;
  }

  .supply-filter-panel .clear-filters {
    grid-column: auto;
  }

  .supply-record-summary {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .supply-record-toggle {
    justify-content: flex-start;
  }

  .supply-record-details {
    padding: 16px;
  }

  .supply-detail-grid {
    grid-template-columns: 1fr;
  }

  .supply-detail-images > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

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

  .supply-location-path {
    display: grid;
    grid-template-columns: auto 12px minmax(0, 1fr);
    justify-content: start;
  }

  .supply-location-path em {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .supply-record-actions {
    justify-content: flex-start;
    padding-top: 3px;
  }

  .supply-form-step,
  .location-admin-section {
    padding: 17px;
    border-radius: 15px;
  }

  .supply-basic-fields,
  .room-choice-grid,
  .unit-choice-grid,
  .responsibility-choice-grid,
  .supply-save-summary,
  .location-admin-room-grid,
  .location-admin-unit-grid,
  .location-admin-zone-list {
    grid-template-columns: 1fr;
  }

  .visual-choice-card {
    min-height: 104px;
  }

  .storage-zone-picker {
    min-height: 160px;
  }

  .supply-save-summary {
    align-items: start;
  }

  .supply-summary-path {
    flex-wrap: wrap;
  }

  .supply-form .form-actions {
    width: 100%;
    min-width: 0;
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .supply-form .form-actions .button {
    width: 100%;
    min-width: 0;
    flex: none;
  }

  .location-add-card {
    min-height: 130px;
  }

  .image-dropzone,
  .image-dropzone.is-compact,
  .managed-image-upload-form,
  .managed-image-card {
    grid-template-columns: 1fr;
  }

  .camera-upload-button,
  .image-dropzone.is-compact .camera-upload-button {
    width: 100%;
    min-width: 0;
  }

  .image-selected-files {
    grid-column: 1;
  }

  .managed-image-manager {
    padding: 17px;
    border-radius: 15px;
  }

  .managed-image-manager > header {
    align-items: flex-start;
  }

  .managed-image-preview,
  .managed-image-preview img {
    min-height: 190px;
    max-height: 300px;
  }

  .managed-image-archive-form {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Keep the unified workspace layout authoritative over legacy image rules. */
.managed-image-upload-form {
  grid-template-columns: 1fr;
  align-items: stretch;
  border: 0;
  background: transparent;
  padding: 16px 0 0;
}

.managed-image-upload-form > .button {
  justify-self: end;
}

.image-workspace input.sr-only,
.image-tile-body input.sr-only {
  width: 1px;
  min-width: 1px;
  height: 1px;
  min-height: 1px;
  margin: -1px;
  padding: 0;
}

/* File inputs inherit broad form sizing rules. Keep replacement controls
   accessible to their labelled button without letting them affect tile width. */
.image-tile-body .image-replacement-input {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.location-manager > .managed-image-manager {
  margin: 18px 0;
}

@media (max-width: 760px) {
  .managed-image-upload-form > .button {
    width: 100%;
    justify-self: stretch;
  }
}
}

@layer site-14 {
/* Curated visual assets: lightweight WebP, decorative unless the adjacent text identifies the action. */
.module-hero-icon {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 28px rgba(7,37,32,.18);
}

.gel-hero-stats > div.gel-hero-visual {
  display: flex;
  grid-column: 1 / -1;
  min-height: 76px;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 16px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(112deg, #f6fbf9 0%, #e6f4f0 100%);
}

.gel-hero-visual img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(20,55,48,.12);
}

.empty-state-illustration {
  display: block;
  width: min(320px, 82%);
  aspect-ratio: 4 / 3;
  margin: 0 auto 16px;
  object-fit: cover;
  border: 1px solid rgba(160,192,184,.5);
  border-radius: 18px;
  background: #f2f8f6;
  box-shadow: 0 14px 36px rgba(20,55,48,.08);
}

.application-picker label {
  min-height: 130px;
  align-items: center;
  text-align: center;
}

.application-picker-image {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto 7px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(20,55,48,.1);
}

.copy-record-heading {
  display: grid;
  min-width: 0;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.copy-record-heading > img {
  display: block;
  width: 112px;
  height: 58px;
  object-fit: contain;
  border: 1px solid rgba(150,186,178,.45);
  border-radius: 11px;
  background: white;
}

.auth-brand-panel::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url("/immutable-assets/visuals/lab-knowledge-hero-88c06e0f90e5.webp") center right / auto 100% no-repeat;
  content: "";
  opacity: .3;
  pointer-events: none;
}

.auth-brand-panel::after { z-index: 0; }
.auth-brand-row,
.auth-brand-copy,
.auth-points { position: relative; z-index: 2; }

.invite-page-header {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 28px;
}

.invite-page-header > img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow);
}

.supplies-hero-counts .module-hero-icon {
  grid-column: 1 / -1;
  justify-self: end;
  width: 60px;
  height: 60px;
  border-radius: 17px;
}

.supplies-empty .empty-state-illustration {
  width: min(260px, 72%);
  margin-bottom: 5px;
}

.supplies-empty h3 { margin-top: 10px; }

.supply-location-visual-guide {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid #b9d3cd;
  border-radius: 18px;
  background: linear-gradient(115deg, #f0f8f6, #fff);
}

.supply-location-visual-guide > img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 13px;
  background: #dff1ed;
}

.supply-location-visual-guide > div { display: grid; gap: 8px; }
.supply-location-visual-guide span { color: var(--teal); font-family: var(--font-mono); font-size: 12px; font-weight: 850; letter-spacing: .09em; }
.supply-location-visual-guide strong { max-width: 560px; font-size: clamp(16px, 2.4vw, 22px); line-height: 1.45; }

.image-drop-icon {
  overflow: hidden;
  border-radius: 9px;
}

.image-drop-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-detail-empty-image {
  display: block;
  width: min(260px, 72%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #eef7f4;
  box-shadow: 0 12px 32px rgba(20,55,48,.08);
}

.protocols-hero aside .module-hero-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  border-radius: 16px;
}

.protocol-finder-visual {
  display: block;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 3;
  margin-top: 14px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #eaf6f3;
}

.tools-hero-count .module-hero-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 16px;
}

.tool-launch-visual-image {
  display: block;
  width: 150px;
  height: 138px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #e8f5f2;
}

@media (max-width: 820px) {
  .tool-launch-visual-image { width: 112px; height: 120px; }
}

@media (max-width: 720px) {
  .auth-brand-panel::before {
    background-image: url("/immutable-assets/visuals/mobile-knowledge-6384ba8225d7.webp");
    background-position: center 35%;
    background-size: cover;
    opacity: .15;
  }

  .application-picker label { min-height: 118px; }
  .application-picker-image { width: 48px; height: 48px; }
  .supply-location-visual-guide { grid-template-columns: 1fr; }
  .supply-location-visual-guide > img { max-height: 220px; }
  .protocol-finder-visual { max-width: 260px; }
}

@media (max-width: 560px) {
  .gel-hero-stats > div.gel-hero-visual { min-height: 64px; padding: 8px 12px; }
  .gel-hero-visual img { width: 48px; height: 48px; border-radius: 14px; }
  .empty-state-illustration { width: min(280px, 94%); }
  .copy-record-heading { grid-template-columns: 88px minmax(0, 1fr); }
  .copy-record-heading > img { width: 88px; height: 48px; }
  .invite-page-header { grid-template-columns: minmax(0, 1fr) 78px; gap: 16px; }
  .invite-page-header > img { width: 78px; height: 78px; border-radius: 20px; }
  .supplies-hero-counts .module-hero-icon { justify-self: start; }
  .tool-launch-visual-image { width: 100%; height: 150px; }
}

/* Comprehension-first refinements: clear next steps, mobile utilities and compact guidance. */
.topbar-inner {
  width: min(1360px, calc(100% - 32px));
}

.brand {
  flex: 0 0 auto;
}

.brand > span:last-child {
  min-width: max-content;
}

.brand strong {
  white-space: nowrap;
}

.mobile-utility-menu {
  display: none;
}

.form-actions {
  position: static;
  z-index: auto;
  bottom: auto;
  margin-top: 2px;
}

.quick-start-strip {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  margin: 18px 0 38px;
  overflow: hidden;
  border: 1px solid #bfd8d2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(20, 55, 48, 0.045);
}

.quick-start-title {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 15px 17px;
  background: #123a34;
  color: white;
}

.quick-start-title > span {
  color: #91dfd1;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.quick-start-title > strong {
  font-size: 12px;
  line-height: 1.45;
}

.quick-start-strip ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-start-strip li {
  display: grid;
  min-width: 0;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-left: 1px solid var(--line);
}

.quick-start-strip li > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #acd2ca;
  border-radius: 50%;
  background: #eef8f5;
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

.quick-start-strip li > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.quick-start-strip li strong {
  font-size: 12px;
  line-height: 1.35;
}

.quick-start-strip li small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-jump-nav {
  position: sticky;
  z-index: 30;
  top: 82px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 14px;
  padding: 5px;
  border: 1px solid rgba(185, 211, 205, .9);
  border-radius: 14px;
  background: rgba(248, 251, 250, .9);
  box-shadow: 0 8px 24px rgba(20, 55, 48, .06);
  backdrop-filter: blur(16px);
}

.detail-jump-nav a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.detail-jump-nav a:hover,
.detail-jump-nav a:focus-visible {
  background: white;
  color: var(--teal-dark);
}

.detail-jump-nav a > span {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 12px;
}

#profile,
#datasheet,
#usage-records {
  scroll-margin-top: 150px;
}

.compact-empty .empty-state-illustration {
  width: min(260px, 78%);
  margin-bottom: 4px;
}

.admin-section-nav {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-section-nav-hint,
.location-mobile-steps {
  display: none;
}

.admin-section-nav a,
.admin-overview-stats a,
.location-master-list button,
.location-unit-list button {
  min-height: 48px;
}

.section-kicker {
  font-size: max(9px, .64rem);
}

.protocol-finder-heading p,
.protocol-finder-controls label,
.protocol-finder-placeholder,
.admin-overview-stats span,
.admin-overview-stats small,
.admin-task-row span:not(.admin-task-marker) {
  font-size: 12px;
}

.protocol-finder-visual {
  max-width: 176px;
  aspect-ratio: 16 / 10;
}

@media (max-width: 1380px) {
  .topbar-inner {
    width: min(100% - 24px, 1180px);
    gap: 10px;
  }

  .topbar-actions {
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
    gap: 8px;
  }

  .topbar-actions > .member-chip,
  .topbar-actions > form,
  .invite-link,
  .admin-link,
  .topbar-account-divider {
    display: none;
  }

  .mobile-utility-menu {
    position: relative;
    z-index: 80;
    display: block;
    flex: 0 0 auto;
  }

  .mobile-utility-menu > summary {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 4px;
    border: 1px solid #afd5ce;
    border-radius: 50%;
    background: #e8f7f3;
    cursor: pointer;
    list-style: none;
  }

  .mobile-utility-menu > summary::-webkit-details-marker { display: none; }
  .mobile-utility-menu > summary > span { width: 15px; height: 1.5px; border-radius: 2px; background: var(--teal-dark); }
  .mobile-utility-menu[open] > summary { background: var(--ink); }
  .mobile-utility-menu[open] > summary > span { background: white; }

  .mobile-utility-panel {
    position: absolute;
    z-index: 90;
    top: 52px;
    right: 0;
    display: grid;
    width: min(320px,calc(100vw - 24px));
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 22px 60px rgba(9,39,34,.22);
  }

  .mobile-utility-user { display: flex; align-items: center; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
  .mobile-utility-user > div { display: grid; gap: 2px; }
  .mobile-utility-user strong { font-size: 12px; }
  .mobile-utility-user small { color: var(--muted); font-size: 12px; }
  .mobile-utility-primary,
  .mobile-utility-panel nav a,
  .mobile-utility-panel > form button { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; }
  .mobile-utility-primary { justify-content: center; border-color: var(--teal); background: var(--teal); color: white; }
  .mobile-utility-panel nav { display: grid; gap: 5px; }
  .mobile-utility-panel > form { display: block !important; }
  .mobile-utility-panel > form button { width: 100%; justify-content: center; border-color: transparent; background: #f1f4f3; color: var(--muted); }

  .module-switcher a {
    padding-inline: 7px;
    font-size: 12px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    letter-spacing: .12em;
  }

  .topbar-new {
    padding-inline: 10px;
  }

  .module-switcher {
    min-width: 0;
    max-width: min(560px,calc(100vw - 330px));
    overflow-x: auto;
    scrollbar-width: none;
  }
}

@media (max-width: 900px) {
  .quick-start-strip {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .quick-start-strip li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    padding-inline: 10px;
  }

  .quick-start-strip li > span {
    width: 24px;
    height: 24px;
  }

  .quick-start-strip li small {
    display: none;
  }

  .invite-link,
  .admin-link {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    position: relative;
    height: auto;
    min-height: 98px;
    align-content: center;
    padding: 9px 0 8px;
  }

  .brand {
    min-width: 0;
    padding-right: 48px;
  }

  .brand strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand small {
    font-size: 12px;
  }

  .topbar-actions {
    position: relative;
  }

  .member-chip {
    display: none;
  }

  .mobile-utility-menu {
    position: absolute;
    z-index: 80;
    top: -48px;
    right: 0;
    display: block;
  }

  .mobile-utility-menu > summary {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 4px;
    border: 1px solid #afd5ce;
    border-radius: 50%;
    background: #e8f7f3;
    cursor: pointer;
    list-style: none;
  }

  .mobile-utility-menu > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-utility-menu > summary > span {
    width: 15px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--teal-dark);
  }

  .mobile-utility-menu[open] > summary {
    background: var(--ink);
  }

  .mobile-utility-menu[open] > summary > span {
    background: white;
  }

  .mobile-utility-panel {
    position: absolute;
    top: 52px;
    right: 0;
    display: grid;
    width: min(320px, calc(100vw - 24px));
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 22px 60px rgba(9, 39, 34, .22);
  }

  .mobile-utility-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-utility-user > div {
    display: grid;
    gap: 2px;
  }

  .mobile-utility-user strong {
    font-size: 12px;
  }

  .mobile-utility-user small {
    color: var(--muted);
    font-size: 12px;
  }

  .mobile-utility-primary,
  .mobile-utility-panel nav a,
  .mobile-utility-panel > form button {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-utility-primary {
    justify-content: center;
    border-color: var(--teal);
    background: var(--teal);
    color: white;
  }

  .mobile-utility-panel nav {
    display: grid;
    gap: 5px;
  }

  .mobile-utility-language {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
  }

  .mobile-utility-panel > form button {
    width: 100%;
    justify-content: center;
    border-color: transparent;
    background: #f1f4f3;
    color: var(--muted);
  }

  .module-switcher {
    max-width: none;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 14px), transparent 100%);
    scrollbar-width: none;
  }

  .module-switcher::-webkit-scrollbar,
  .admin-section-nav::-webkit-scrollbar,
  .quick-start-strip ol::-webkit-scrollbar {
    display: none;
  }

  .module-switcher a {
    flex: 0 0 auto;
    min-height: 34px;
  }

  .quick-start-strip {
    display: block;
    margin: 14px 0 30px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .quick-start-title {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 2px 10px;
    background: transparent;
    color: var(--ink);
  }

  .quick-start-title > span {
    color: var(--teal);
    font-size: 12px;
  }

  .quick-start-title > strong {
    font-size: 12px;
  }

  .quick-start-strip ol {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 1px 1px 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .quick-start-strip li {
    min-width: min(76vw, 250px);
    min-height: 68px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    scroll-snap-align: start;
  }

  .quick-start-strip li > span {
    width: 28px;
    height: 28px;
  }

  .quick-start-strip li small {
    display: block;
    font-size: 12px;
  }

  .detail-jump-nav {
    top: 106px;
  }

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

  .profile-grid .detail-item {
    padding: 13px 10px 13px 0;
    border-bottom: 1px solid #edf1f0;
  }

  .protocol-finder-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: center;
    column-gap: 12px;
  }

  .protocol-finder-heading > .section-kicker,
  .protocol-finder-heading > h2,
  .protocol-finder-heading > p {
    grid-column: 1;
  }

  .protocol-finder-visual {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 112px;
    height: 86px;
    margin: 0;
  }

  .supply-location-visual-guide {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 13px;
    padding: 13px;
  }

  .supply-location-visual-guide > img {
    height: 92px;
    max-height: 92px;
  }

  .supply-location-visual-guide strong {
    font-size: 14px;
  }

  .admin-section-nav {
    position: relative;
    padding-inline: 6px;
    scroll-padding-inline: 6px;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .admin-section-nav.can-scroll-right:not(.can-scroll-left) {
    padding-right: 26px;
    scroll-padding-inline: 6px 26px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 24px), transparent 100%);
  }

  .admin-section-nav.can-scroll-left:not(.can-scroll-right) {
    padding-left: 26px;
    scroll-padding-inline: 26px 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 100%);
  }

  .admin-section-nav.can-scroll-left.can-scroll-right {
    padding-inline: 26px;
    scroll-padding-inline: 26px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
  }

  .admin-section-nav-wrap {
    display: grid;
    gap: 5px;
  }

  .admin-section-nav-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding-right: 5px;
    color: var(--muted);
    font-size: 12px;
  }

  .admin-section-nav-hint b {
    color: var(--teal);
    font-size: 13px;
  }

  .admin-section-nav-hint.is-left {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 5px;
  }

  .admin-section-nav-hint.is-both {
    justify-content: center;
    padding-right: 0;
  }

  .admin-task-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-task-footer > div {
    justify-content: flex-start;
    margin-left: 0;
  }

  .location-mobile-steps {
    position: sticky;
    z-index: 18;
    top: 106px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 8px 0;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(248, 251, 250, .94);
    box-shadow: 0 7px 22px rgba(20, 55, 48, .06);
    backdrop-filter: blur(14px);
  }

  .location-mobile-steps a {
    display: grid;
    min-height: 42px;
    place-content: center;
    justify-items: center;
    gap: 2px;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
  }

  .location-mobile-steps a:hover,
  .location-mobile-steps a:focus-visible {
    background: white;
    color: var(--teal-dark);
  }

  .location-mobile-steps span {
    color: var(--teal);
    font-family: var(--font-mono);
    font-size: 12px;
  }

  #location-rooms-pane,
  #location-units-pane,
  #location-detail-pane {
    scroll-margin-top: 164px;
  }

  .form-page-header h1,
  .invite-page-header h1,
  .admin-dashboard-header h1,
  .admin-subpage-header h1 {
    text-wrap: balance;
  }

  .admin-section-nav a {
    min-width: 134px;
  }

  .form-page {
    padding-bottom: 128px;
  }

  .form-actions {
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
  }

  .form-actions .button {
    min-height: 42px;
    padding-inline: 10px;
    font-size: 12px;
  }
}

@media (max-width: 460px) {
  .admin-task-footer > div {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-task-footer .button {
    width: 100%;
  }

  .cell-stocks-hero aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cell-stocks-hero aside > span:last-child {
    grid-column: 1 / -1;
  }

  .cell-stock-hero-icon {
    width: 54px;
    height: 54px;
    justify-self: start;
  }

  .admin-overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-overview-stats a {
    min-height: 94px;
    padding: 14px;
  }

  .admin-overview-stats a:last-child {
    grid-column: 1 / -1;
  }

  .admin-overview-stats strong {
    font-size: 25px;
  }

  .detail-jump-nav a {
    gap: 5px;
    font-size: 12px;
  }

  .detail-card {
    padding-inline: 17px;
  }

  .profile-grid .detail-item > span {
    font-size: 12px;
  }

  .profile-grid .detail-item > strong {
    font-size: 12px;
  }

  .protocol-finder-heading {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .protocol-finder-visual {
    width: 92px;
    height: 74px;
  }

  .invite-page-header h1 {
    font-size: 35px;
  }

  .supply-location-visual-guide {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .supply-location-visual-guide > img {
    height: 78px;
  }
}
}

@layer site-19 {
/* Whole-site experience pass: less chrome, shorter journeys, progressive detail. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.app-shell main,
.page-wrap,
.topbar-actions,
.mobile-utility-panel,
.mobile-module-nav,
.mobile-account-nav {
  min-width: 0;
}

/* Compact guidance stays available without occupying every module's first view. */
.quick-start-strip {
  display: block;
  margin: 12px 0 22px;
  overflow: hidden;
  border: 1px solid #c9ddd8;
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 7px 20px rgba(20, 55, 48, .035);
}

.quick-start-summary {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 13px;
  cursor: pointer;
  list-style: none;
}

.quick-start-summary::-webkit-details-marker { display: none; }

.quick-start-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.quick-start-title > span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  padding: 5px 8px;
  font-size: 12px;
  letter-spacing: .1em;
}

.quick-start-title > strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-start-toggle {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.quick-start-toggle i,
.advanced-filter-disclosure > summary i,
.protocol-editor-metadata-summary > i,
.optional-upload-disclosure > summary i,
.supply-photo-step > summary > i,
.cell-stock-optional-card > summary > i,
.wb-planner-optional-card > summary > i,
.wb-lane-details > summary > i,
.protocol-version-history > summary > i,
.protocol-collaboration > summary > i {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .16s ease;
}

.quick-start-strip[open] .quick-start-toggle i,
.advanced-filter-disclosure[open] > summary i,
.protocol-editor-metadata[open] .protocol-editor-metadata-summary > i,
.optional-upload-disclosure[open] > summary i,
.supply-photo-step[open] > summary > i,
.cell-stock-optional-card[open] > summary > i,
.wb-planner-optional-card[open] > summary > i,
.wb-lane-details[open] > summary > i,
.protocol-version-history[open] > summary > i,
.protocol-collaboration[open] > summary > i {
  transform: rotate(225deg);
}

.quick-start-strip ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.quick-start-strip li {
  min-height: 62px;
  padding: 10px 13px;
}

/* Module headers retain their identity but stop delaying the actual task. */
.gel-home-hero,
.supplies-hero,
.protocols-hero,
.cell-stocks-hero,
.tools-hero,
.personal-records-hero,
.lab-protocols-hero,
.lab-protocol-detail-hero {
  min-height: 0;
  gap: 22px;
  margin-block: 14px 12px;
  border-radius: 20px;
  padding: 26px 30px;
}

.gel-home-hero h1,
.supplies-hero h1,
.protocols-hero h1,
.cell-stocks-hero h1,
.tools-hero h1,
.personal-records-hero h1,
.lab-protocols-hero h1,
.lab-protocol-detail-hero h1 {
  margin-block: 8px 7px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.02;
}

.gel-home-hero > div > p,
.supplies-hero p,
.protocols-hero p,
.cell-stocks-hero p,
.tools-hero p,
.personal-records-hero p,
.lab-protocols-hero p,
.lab-protocol-detail-hero p {
  margin-bottom: 14px;
  line-height: 1.55;
}

.lab-protocol-hero-actions,
.lab-protocol-detail-actions,
.personal-records-create-actions {
  margin-top: 15px;
}

.lab-protocols-hero > aside span { min-height: 70px; padding: 10px; }
.lab-protocols-hero > aside strong { font-size: 25px; }
.protocols-hero aside { min-height: 96px; padding: 13px; }
.tools-hero-count { min-width: 118px; padding: 13px; }
.cell-stocks-hero aside > span { min-width: 88px; padding: 11px; }
.personal-records-hero aside { padding: 11px; }

/* Search first; secondary filters open only when they are needed. */
.filter-panel {
  display: grid;
  gap: 9px;
  padding: 11px;
}

.filter-primary-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.filter-primary-row .search-field { min-width: 0; }

.advanced-filter-disclosure {
  border-top: 1px solid var(--line);
}

.advanced-filter-disclosure > summary {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 850;
}

.advanced-filter-disclosure > summary::-webkit-details-marker { display: none; }
.advanced-filter-disclosure > summary b { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--teal); color: white; font-size: 12px; }
.advanced-filter-disclosure > summary i { margin-left: auto; margin-right: 5px; color: var(--muted); }
.advanced-filter-disclosure .filter-row { padding: 2px 0 3px; }

.compact-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.compact-pagination a,
.compact-pagination > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--teal-dark);
  text-decoration: none;
}

.compact-pagination > span { opacity: .35; }
.compact-pagination strong { min-width: 64px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; text-align: center; }

/* Protocol cards become scannable records rather than poster-sized tiles. */
.lab-protocol-library { margin-top: 22px; }
.lab-protocol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }

.lab-protocol-card {
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: minmax(122px, auto) auto;
  min-height: 158px;
  border-radius: 14px;
}

.lab-protocol-card-cover {
  grid-row: 1 / 3;
  min-height: 158px;
}

.lab-protocol-card-body { min-width: 0; padding: 13px 14px 9px; }
.lab-protocol-card h3 { margin: 9px 0 5px; font-size: 16px; }
.lab-protocol-card-body > p {
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  margin-bottom: 8px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lab-protocol-card > footer { grid-column: 2; gap: 5px 9px; padding: 8px 14px; }

/* The tools index fits common workflows into a short, two-column scan. */
.tools-library { padding-top: 22px; }
.tool-launch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }

.tool-launch-card {
  grid-template-columns: 88px minmax(0, 1fr) 38px;
  min-height: 142px;
  gap: 14px;
  padding: 15px;
}

.tool-launch-visual,
.tool-launch-visual-image {
  width: 88px;
  height: 88px;
  align-self: center;
}

.tool-launch-copy strong { font-size: 20px; }
.tool-launch-copy > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tool-launch-copy em { overflow: hidden; flex-wrap: nowrap; }
.tool-launch-action { display: grid; width: 38px; height: 38px; place-items: center; align-self: center; padding: 0; font-size: 0; }
.tool-launch-action b { font-size: 15px; }

/* Secondary row operations are grouped instead of competing with the main action. */
.row-action-menu { position: relative; }
.row-action-menu > summary { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink-soft); cursor: pointer; list-style: none; font-weight: 900; }
.row-action-menu > summary::-webkit-details-marker { display: none; }
.row-action-menu > div { position: absolute; z-index: 20; top: 43px; right: 0; display: grid; min-width: 150px; gap: 5px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 16px 38px rgba(15,55,48,.16); }
.row-action-menu > div .button,
.row-action-menu > div .text-button { width: 100%; min-height: 38px; justify-content: center; }

@media (min-width: 1240px) {
  .lab-protocol-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1380px) {
  .module-switcher { display: none !important; }
  .topbar-inner { min-height: 64px; height: 64px; }
  .topbar-actions { flex: 0 0 auto; }
  .mobile-utility-panel { width: min(390px, calc(100vw - 24px)); }
  .mobile-module-nav { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .mobile-module-nav a[aria-current="page"] { border-color: #91c9bf; background: var(--teal-soft); color: var(--teal-dark); }
  .mobile-module-nav a > span { color: var(--teal); font-family: var(--font-mono); font-size: 12px; }
  .mobile-account-nav { display: grid !important; gap: 5px; border-top: 1px solid var(--line); padding-top: 10px; }
}

@media (max-width: 720px) {
  .topbar-inner { display: flex; min-height: 62px; height: 62px; align-items: center; padding: 0; }
  .brand { min-width: 0; padding-right: 0; }
  .brand-mark { width: 36px; height: 36px; }
  .brand small { display: none; }
  .topbar-actions { position: static; margin-left: auto; }
  .topbar-new { display: none !important; }
  .mobile-utility-menu { position: relative; top: auto; right: auto; }
  .mobile-utility-panel { top: 52px; right: 0; max-height: calc(100vh - 76px); overflow-y: auto; }

  .page-wrap { width: min(100% - 20px, 1180px); }

  .quick-start-strip { margin: 9px 0 17px; }
  .quick-start-summary { min-height: 46px; padding: 8px 11px; }
  .quick-start-title > strong { font-size: 12px; }
  .quick-start-strip ol { display: grid; grid-template-columns: 1fr; overflow: visible; padding: 0; }
  .quick-start-strip li { min-width: 0; min-height: 54px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 9px 11px; }

  .gel-home-hero,
  .supplies-hero,
  .protocols-hero,
  .cell-stocks-hero,
  .tools-hero,
  .personal-records-hero,
  .lab-protocols-hero,
  .lab-protocol-detail-hero {
    margin-top: 9px;
    border-radius: 17px;
    padding: 20px 18px;
  }

  .gel-home-hero h1,
  .supplies-hero h1,
  .protocols-hero h1,
  .cell-stocks-hero h1,
  .tools-hero h1,
  .personal-records-hero h1,
  .lab-protocols-hero h1,
  .lab-protocol-detail-hero h1 { font-size: 34px; }

  .gel-hero-stats { display: none; }
  .tools-hero-count { display: grid; width: 100%; min-width: 0; grid-template-columns: 52px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; column-gap: 12px; padding: 10px 12px; }
  .tools-hero-count .module-hero-icon { grid-row: 1 / 3; width: 52px; height: 52px; margin: 0; border-radius: 14px; }
  .tools-hero-count strong { align-self: end; font-size: 24px; }
  .tools-hero-count span { align-self: start; margin-top: 2px; }
  .protocols-hero aside { display: none; }
  .personal-records-hero aside { display: none; }
  .cell-stocks-hero aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-stocks-hero aside > span:last-child { display: none; }
  .lab-protocols-hero > aside span { min-height: 58px; padding: 8px; }
  .lab-protocols-hero > aside strong { font-size: 21px; }

  .filter-primary-row { grid-template-columns: minmax(0, 1fr) auto; }
  .filter-primary-row .clear-filters { grid-column: 1 / -1; justify-self: start; }
  .advanced-filter-disclosure .filter-row { grid-template-columns: 1fr 1fr; }

  .lab-protocol-filters { grid-template-columns: 1fr !important; width: 100%; }
  .lab-protocol-filters > * { grid-column: 1 !important; min-width: 0; width: 100%; }
  .lab-protocol-filters .button { justify-content: center; }

  .lab-protocol-grid { grid-template-columns: 1fr; }
  .lab-protocol-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: minmax(118px, auto) auto; min-height: 144px; }
  .lab-protocol-card-cover { grid-row: 1 / 3; height: auto; min-height: 144px; }
  .lab-protocol-card-body { padding: 11px 12px 8px; }
  .lab-protocol-card h3 { font-size: 15px; }
  .lab-protocol-card > footer { grid-column: 2; padding: 7px 12px; }

  .tool-launch-grid { grid-template-columns: 1fr; }
  .tool-launch-card { grid-template-columns: 80px minmax(0, 1fr) 44px; min-height: 116px; gap: 11px; padding: 12px; }
  .tool-launch-visual,
  .tool-launch-visual-image { width: 80px; height: 80px; }
  .tool-launch-copy strong { font-size: 17px; }
  .tool-launch-copy em { display: none; }
  .tool-launch-action { width: 44px; height: 44px; }

  .protocol-finder { margin-top: 17px; gap: 12px; padding: 14px; }
  .protocol-finder-visual { display: none; }
  .protocol-finder-heading { display: block; }
  .protocol-library { margin-top: 22px; }
  .protocol-card { gap: 8px; min-height: 0; padding: 11px; }
  .protocol-card-main > small { display: none; }
  .protocol-card-actions { flex-direction: row; align-items: center; }
  .protocol-card-actions > .button { width: auto; }
  .protocol-card-meta { display: none; }

  .supply-room-filter { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; scrollbar-width: none; }
  .supply-room-filter::-webkit-scrollbar { display: none; }
  .supply-room-filter a { flex: 0 0 auto; }
}

@media (max-width: 420px) {
  .mobile-module-nav { grid-template-columns: 1fr; }
  .advanced-filter-disclosure .filter-row { grid-template-columns: 1fr; }
  .lab-protocols-hero > aside { display: none; }
  .filter-primary-row { grid-template-columns: 1fr; }
  .filter-primary-row .button { width: 100%; justify-content: center; }
}

/* Forms show required decisions first and reveal optional work on demand. */
.form-page,
.protocol-form-page,
.cell-stock-form-page,
.supply-form-page,
.lab-protocol-editor-page {
  padding-top: 22px;
}

.form-page-header,
.protocol-form-header,
.cell-stock-form-header,
.supply-form-header {
  padding-block: 13px 16px;
}

.form-page-header h1,
.protocol-form-header h1,
.cell-stock-form-header h1,
.supply-form-header h1 {
  margin-block: 6px;
  font-size: clamp(30px, 4.2vw, 44px);
}

.record-form,
.report-form,
.protocol-form,
.cell-stock-form,
.supply-form { gap: 11px; }

.form-section,
.protocol-form-card,
.cell-stock-form-card,
.supply-form-step {
  border-radius: 15px;
  padding: 18px;
}

.section-heading,
.protocol-form-heading,
.cell-stock-form-heading,
.supply-step-heading { margin-bottom: 13px; }

.form-grid,
.protocol-form-grid,
.cell-stock-optional-grid { gap: 10px; }

.smart-recognition-section,
.optional-upload-disclosure,
.supply-photo-step,
.cell-stock-optional-card {
  overflow: hidden;
}

.smart-recognition-section > summary,
.optional-upload-disclosure > summary,
.supply-photo-step > summary,
.cell-stock-optional-card > summary {
  cursor: pointer;
  list-style: none;
}

.smart-recognition-section > summary::-webkit-details-marker,
.optional-upload-disclosure > summary::-webkit-details-marker,
.supply-photo-step > summary::-webkit-details-marker,
.cell-stock-optional-card > summary::-webkit-details-marker { display: none; }

.smart-recognition-section > summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  margin: 0;
}

.smart-recognition-section > summary > i,
.optional-upload-disclosure > summary i,
.supply-photo-step > summary > i,
.cell-stock-optional-card > summary > i { color: var(--muted); }

.smart-recognition-section .recognition-box { margin-top: 14px; }

.optional-upload-disclosure {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfa;
  padding: 0 !important;
}

.optional-upload-disclosure > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
}

.optional-upload-disclosure > :not(summary) { margin: 0 12px 12px; }
.supply-location-visual-guide { display: none; }
.supply-photo-step > summary,
.cell-stock-optional-card > summary { display: flex; align-items: center; }
.supply-photo-step > summary > i,
.cell-stock-optional-card > summary > i { margin-left: auto; margin-right: 4px; }
.supply-photo-step > .image-workspace,
.supply-photo-step > .staged-image-workspace { margin-top: 13px; }
.cell-stock-optional-card > .cell-stock-optional-grid { padding-top: 4px; }

/* A long Protocol now behaves like an outline: scan all blocks, open one to edit. */
.protocol-editor-metadata,
.protocol-editor-content,
.protocol-editor-preview,
.protocol-import-panel { padding: 18px; }

.protocol-editor-metadata { padding: 0; }
.protocol-editor-metadata-summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.protocol-editor-metadata-summary::-webkit-details-marker { display: none; }
.protocol-editor-metadata-summary > div { display: grid; min-width: 0; gap: 2px; }
.protocol-editor-metadata-summary strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.protocol-editor-metadata-summary small { color: var(--muted); font-size: 12px; }
.protocol-editor-metadata-summary > i { flex: 0 0 auto; color: var(--muted); }
.protocol-editor-metadata-body { border-top: 1px solid var(--line); padding: 17px; }

.protocol-editor-section-heading { align-items: center; margin-bottom: 12px; }
.protocol-editor-section-heading h2 { font-size: clamp(23px, 3vw, 30px); }
.protocol-editor-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.protocol-editor-heading-actions > span { margin-right: 3px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.protocol-editor-heading-actions button { min-height: 34px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--teal-dark); padding: 0 9px; font-size: 12px; font-weight: 850; cursor: pointer; }

.protocol-editor-blocks { gap: 7px; }
.protocol-editor-block { overflow: visible; border-radius: 11px; }
.protocol-editor-block > header { position: relative; gap: 6px; padding: 5px; cursor: grab; }

.protocol-editor-block-toggle {
  display: grid;
  min-width: 0;
  min-height: 48px;
  flex: 1;
  grid-template-columns: 32px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 5px 8px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.protocol-editor-block-toggle:hover { background: white; }
.protocol-editor-block-toggle > span:first-child { color: var(--teal); font-family: var(--font-mono); font-size: 12px; font-weight: 900; }
.protocol-editor-block-toggle > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.protocol-editor-block-toggle strong { font-size: 12px; }
.protocol-editor-block-toggle small { overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.protocol-editor-block-toggle > i { width: 7px; height: 7px; border-right: 1.5px solid var(--teal); border-bottom: 1.5px solid var(--teal); transform: rotate(45deg); }
.protocol-editor-block-toggle[aria-expanded="true"] > i { transform: rotate(225deg); }

.protocol-editor-block-menu { position: relative; flex: 0 0 auto; }
.protocol-editor-block-menu > summary { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--muted); cursor: pointer; list-style: none; font-size: 12px; font-weight: 900; }
.protocol-editor-block-menu > summary::-webkit-details-marker { display: none; }
.protocol-editor-block-actions { position: absolute; z-index: 25; top: 42px; right: 0; display: grid; min-width: 190px; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 15px 38px rgba(15,55,48,.17); }
.protocol-editor-block-actions button { width: 100%; min-height: 38px; border: 0; justify-content: flex-start; text-align: left; }
.protocol-editor-block-actions button:hover { background: var(--canvas); }
.protocol-editor-block-body { border-top: 1px solid var(--line); padding: 14px; }
.protocol-editor-block.is-expanded { border-color: #9ccbc3; box-shadow: 0 8px 20px rgba(20,55,48,.05); }

.protocol-block-library { display: block; margin-top: 10px; padding: 0; }
.protocol-block-library > summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 13px; cursor: pointer; list-style: none; }
.protocol-block-library > summary::-webkit-details-marker { display: none; }
.protocol-block-library > summary > div { display: grid; gap: 2px; }
.protocol-block-library > summary small { color: var(--muted); font-size: 12px; }
.protocol-block-library > summary > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--teal); color: white; font-size: 16px; }
.protocol-block-library[open] > summary > span { transform: rotate(45deg); }
.protocol-block-library-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; border-top: 1px solid #c8ddd8; padding: 10px; }

.protocol-editor-savebar { bottom: 8px; padding: 8px 9px 8px 14px; }

/* Reading mode keeps the method central and folds team/history controls. */
.lab-protocol-detail-hero { grid-template-columns: minmax(0, 1.5fr) minmax(240px, .5fr); }
.lab-protocol-detail-hero dl > div { padding: 8px; }
.lab-protocol-document-card { border-radius: 17px; padding: clamp(18px, 3vw, 32px); }
.lab-protocol-document-card > header { margin-bottom: 19px; padding-bottom: 12px; }
.lab-protocol-document-card > header h2 { font-size: 27px; }
.protocol-document { gap: 12px; }
.protocol-document > h2 { margin-top: 18px; padding-bottom: 7px; font-size: 24px; }
.protocol-document > h3 { margin-top: 12px; font-size: 18px; }
.protocol-document-step { grid-template-columns: 30px 32px minmax(0, 1fr); gap: 8px; padding: 3px 0 3px 11px; }
.protocol-step-icon { width: 30px; height: 30px; border-radius: 9px; }
.protocol-step-heading h3 { font-size: 15px; }
.protocol-document-step p { margin-top: 3px; line-height: 1.55; }
.protocol-document-image img { max-height: 480px; }

.protocol-collaboration,
.protocol-version-history {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.82);
}

.protocol-collaboration > summary,
.protocol-version-history > summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.protocol-collaboration > summary::-webkit-details-marker,
.protocol-version-history > summary::-webkit-details-marker { display: none; }
.protocol-collaboration > summary > header { flex: 1; margin: 0; }
.protocol-collaboration > summary > i,
.protocol-version-history > summary > i { flex: 0 0 auto; margin-left: auto; margin-right: 5px; color: var(--muted); }
.protocol-collaboration-body,
.protocol-version-history > div:last-child { border-top: 1px solid var(--line); padding: 14px; }
.protocol-version-history > summary > div { min-width: 0; }
.protocol-version-history > summary h2 { margin: 2px 0; font-size: 22px; }
.protocol-version-history > summary p { margin: 0; color: var(--muted); font-size: 12px; }
.protocol-version-history > summary > strong { color: var(--teal); font-family: var(--font-mono); }

/* The planner presents one path; bulk/row editing and print preview are optional branches. */
.wb-planner-optional-card { overflow: hidden; padding: 0 !important; }
.wb-planner-optional-card > summary { margin: 0; padding: 15px 17px; cursor: pointer; list-style: none; }
.wb-planner-optional-card > summary::-webkit-details-marker { display: none; }
.wb-planner-optional-card > summary > i { margin-left: auto; color: var(--muted); }
.wb-planner-optional-card > :not(summary) { margin: 0 17px 17px; }

.wb-bulk-samples { margin-top: 12px; }
.wb-lane-details { margin-top: 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfc; }
.wb-lane-details > summary { display: flex; min-height: 50px; align-items: center; gap: 9px; padding: 0 13px; cursor: pointer; list-style: none; }
.wb-lane-details > summary::-webkit-details-marker { display: none; }
.wb-lane-details > summary > span { font-size: 12px; font-weight: 850; }
.wb-lane-details > summary small { color: var(--muted); font-size: 12px; }
.wb-lane-details > summary > i { margin-left: auto; color: var(--muted); }
.wb-lane-details .wb-lane-entry-toolbar { margin: 0; border-top: 1px solid var(--line); padding: 10px 12px; }
.wb-lane-details .wb-lane-editor-list { padding: 0 10px 10px; }

.wb-planner-preview-toolbar { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.wb-preview-toggle { white-space: nowrap; }
.wb-preview-collapsed { display: grid; min-height: 150px; width: 100%; place-content: center; justify-items: center; gap: 6px; border: 1px dashed #a8c9c3; border-radius: 14px; background: linear-gradient(135deg, #f4faf8, white); color: var(--teal-dark); cursor: pointer; }
.wb-preview-collapsed > span { font-size: 28px; }
.wb-preview-collapsed strong { font-size: 14px; }
.wb-preview-collapsed small { color: var(--muted); font-size: 12px; }

.wb-gel-manager { margin: 16px 0 18px; overflow: hidden; border: 1px solid #9fc9c2; border-radius: 18px; background: linear-gradient(145deg,#f5fcfa 0%,#fff 72%); box-shadow: 0 12px 34px rgba(20,55,48,.065); }
.wb-gel-manager > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px 13px; border-bottom: 1px solid #d4e6e2; }
.wb-gel-manager > header > div:first-child { display: grid; gap: 3px; }
.wb-gel-manager > header > div:first-child > span { color: var(--teal); font: 900 7px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.wb-gel-manager h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.wb-gel-manager header p { margin: 0; color: var(--muted); font-size: 12px; }
.wb-gel-manager-add { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.wb-gel-manager-add > span { min-width: 42px; color: var(--muted); font: 850 8px var(--font-mono); text-align: center; }
.wb-gel-manager-add .button { min-height: 40px; white-space: nowrap; }
.wb-gel-tabs-scroll { overflow-x: auto; padding: 12px 14px; outline-offset: -3px; overscroll-behavior-inline: contain; }
.wb-gel-tabs { display: grid; grid-auto-columns: minmax(178px,1fr); grid-auto-flow: column; min-width: max(100%,calc(var(--wb-gel-count, 1) * 186px)); gap: 8px; }
.wb-gel-tabs > button { position: relative; display: grid; min-width: 178px; min-height: 105px; gap: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.wb-gel-tabs > button:hover,.wb-gel-tabs > button:focus-visible { border-color: #6daea3; }
.wb-gel-tabs > button.is-selected { border-color: var(--teal); background: #eaf8f5; box-shadow: 0 0 0 2px rgba(8,127,115,.1); }
.wb-gel-tabs > button.is-incomplete:not(.is-selected) { background: #fffaf3; }
.wb-gel-tabs > button > span { display: grid; grid-template-columns: 25px minmax(0,1fr); align-items: center; gap: 7px; }
.wb-gel-tabs > button > span b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; background: var(--ink); color: white; font: 900 7px var(--font-mono); }
.wb-gel-tabs > button.is-selected > span b { background: var(--teal); }
.wb-gel-tabs > button > span strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wb-gel-tabs > button > small,.wb-gel-tabs > button > em { overflow: hidden; color: var(--muted); font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.wb-gel-tabs > button > i { justify-self: start; padding: 3px 6px; border-radius: 5px; background: #f4f6f5; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 850; }
.wb-gel-tabs > button > i.is-ready { background: #dff5ec; color: #126a50; }
.wb-gel-tabs > button > i.has-warning { background: #fff0ce; color: #8a5b00; }
.wb-gel-quickbar { display: grid; grid-template-columns: minmax(190px,1fr) auto; align-items: end; gap: 10px 16px; padding: 12px 15px 14px; border-top: 1px solid #d4e6e2; background: rgba(255,255,255,.72); }
.wb-gel-quickbar > label { display: grid; max-width: 360px; gap: 5px; }
.wb-gel-quickbar > label > span { color: var(--muted); font-size: 12px; font-weight: 850; }
.wb-gel-quickbar input { width: 100%; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 9px; background: white; padding: 0 10px; color: var(--ink); font: 800 9px var(--font-mono); outline: none; }
.wb-gel-quickbar input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,115,.1); }
.wb-gel-quickbar > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.wb-gel-quickbar button { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 0 10px; color: var(--teal-dark); cursor: pointer; font-size: 12px; font-weight: 850; }
.wb-gel-quickbar button:hover:not(:disabled) { border-color: #6daea3; background: #edf9f6; }
.wb-gel-quickbar button.is-danger { color: var(--bad); }
.wb-gel-limit-note { margin: -4px 15px 12px; color: #8a5b00; font-size: 12px; }

.wb-planner-preview-toolbar { grid-template-columns: minmax(0,1fr) 105px 122px; align-items: end; }
.wb-planner-preview-toolbar > p { grid-column: 1 / -1; margin: 0; color: var(--bad); font-size: 12px; }
.wb-print-content-picker { position: relative; min-width: 0; }
.wb-print-content-picker > summary { display: flex; min-height: 41px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: white; color: var(--ink-soft); cursor: pointer; font-size: 12px; font-weight: 850; list-style: none; }
.wb-print-content-picker > summary::-webkit-details-marker { display: none; }
.wb-print-content-picker > summary b { display: grid; min-width: 28px; height: 22px; place-items: center; border-radius: 6px; background: #e6f5f2; color: var(--teal-dark); font: 850 7px var(--font-mono); }
.wb-print-content-picker > fieldset { position: absolute; left: 0; top: calc(100% + 6px); z-index: 50; display: grid; width: min(270px,calc(100vw - 48px)); gap: 3px; margin: 0; padding: 10px; border: 1px solid #a8cac4; border-radius: 11px; background: white; box-shadow: 0 16px 38px rgba(20,55,48,.18); }
.wb-print-content-picker legend { padding: 0 4px; color: var(--muted); font-size: 12px; font-weight: 850; }
.wb-print-content-picker fieldset label { display: flex; min-height: 38px; align-items: center; gap: 9px; padding: 0 7px; border-radius: 7px; color: var(--ink-soft); cursor: pointer; font-size: 12px; font-weight: 800; }
.wb-print-content-picker fieldset label:hover { background: #eef8f6; }
.wb-print-content-picker input { width: 16px; height: 16px; accent-color: var(--teal); }

.wb-print-gels { display: grid; gap: 12px; }
.wb-print-gel { min-width: 0; overflow: hidden; border-bottom: 4px solid #e6efed; background: white; }
.wb-print-gel:last-child { border-bottom: 0; }
.wb-print-gel-heading { display: grid; grid-template-columns: 31px minmax(0,1fr); align-items: center; gap: 9px; padding: 12px 20px 9px; border-bottom: 1px solid var(--line); background: #f7fbfa; }
.wb-print-gel-heading > span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; background: var(--teal-dark); color: white; font: 900 7px var(--font-mono); }
.wb-print-gel-heading h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.wb-print-gel-heading p { margin: 2px 0 0; color: var(--muted); font: 750 7px var(--font-mono); }
.wb-plan-print-sheet.is-diagrams-only.is-compact .wb-print-gels { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 10px; }
.wb-plan-print-sheet.is-diagrams-only.is-compact .wb-print-gel { border: 1px solid var(--line); border-radius: 10px; }
.wb-plan-print-sheet.is-diagrams-only.is-compact .wb-print-gel-heading { padding: 9px 10px 7px; }
.wb-plan-print-sheet.is-diagrams-only.is-compact .wb-print-section { padding: 10px; }
.wb-plan-print-sheet.is-gel-per-page .wb-print-gel { border-bottom: 0; }

@media (max-width: 1180px) {
  .protocol-editor-savebar > div { display: none; }
  .protocol-editor-savebar { width: fit-content; margin-left: auto; border-radius: 12px; padding: 7px; }
  .protocol-editor-savebar .button { min-height: 42px; }
}

@media (max-width: 900px) {
  .protocol-editor-meta-grid { grid-template-columns: 1fr; }
  .protocol-title-field,
  .protocol-summary-field { grid-column: 1; }
  .protocol-block-library-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lab-protocol-detail-hero { grid-template-columns: 1fr; }
  .wb-planner-preview-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .wb-planner-preview-toolbar .button { min-height: 44px; }
  .wb-planner-preview-toolbar > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .form-page,
  .protocol-form-page,
  .cell-stock-form-page,
  .supply-form-page,
  .lab-protocol-editor-page { padding-top: 15px; }

  .form-section,
  .protocol-form-card,
  .cell-stock-form-card,
  .supply-form-step { padding: 14px; }

  .protocol-editor-metadata,
  .protocol-editor-content,
  .protocol-editor-preview,
  .protocol-import-panel { padding: 13px; }
  .protocol-editor-metadata { padding: 0; }
  .protocol-editor-metadata-body { padding: 13px; }
  .protocol-editor-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .protocol-editor-heading-actions { width: 100%; justify-content: flex-start; }
  .protocol-editor-block-toggle { grid-template-columns: 27px minmax(0, 1fr) 9px; padding-inline: 5px; }
  .protocol-editor-block-menu > summary { width: 36px; height: 36px; }
  .protocol-editor-block-actions { min-width: min(210px, calc(100vw - 54px)); }
  .protocol-block-library-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .protocol-editor-savebar { position: sticky; width: 100%; margin-left: 0; }
  .protocol-editor-savebar .button { width: 100%; }

  .lab-protocol-document-card { padding: 16px 12px; }
  .protocol-document { gap: 10px; }
  .protocol-document-step { grid-template-columns: 25px minmax(0, 1fr); }
  .protocol-step-icon { display: none; }
  .protocol-step-heading { flex-direction: row; align-items: center; }
  .protocol-step-heading h3 { font-size: 14px; }
  .protocol-collaboration > summary,
  .protocol-version-history > summary { min-height: 66px; padding: 11px 12px; }
  .protocol-collaboration > summary > header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .protocol-collaboration > summary > header > div:last-child span { min-width: 74px; padding: 7px; }
  .protocol-collaboration-body,
  .protocol-version-history > div:last-child { padding: 10px; }

  .wb-planner-preview-toolbar { grid-template-columns: 1fr 1fr; }
  .wb-planner-preview-toolbar > div:first-child { grid-column: 1 / -1; }
  .wb-print-content-picker { grid-column: 1 / -1; }
  .wb-preview-toggle,
  .wb-planner-preview-toolbar > .button { width: 100%; justify-content: center; }
  .wb-planner-savebar { padding: 8px; }
  .wb-planner-savebar > div:first-child { display: none; }
  .wb-gel-manager > header { align-items: flex-start; flex-direction: column; }
  .wb-gel-manager-add { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .wb-gel-manager-add .button { flex: 1; }
  .wb-gel-quickbar { grid-template-columns: 1fr; align-items: stretch; }
  .wb-gel-quickbar > label { max-width: none; }
  .wb-gel-quickbar > div { justify-content: flex-start; }
  .wb-plan-print-sheet.is-diagrams-only.is-compact .wb-print-gels { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .pcr-product-grid,
  .room-choice-grid,
  .unit-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pcr-product-grid > button {
    min-height: 104px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 7px;
    padding: 10px 8px;
  }

  .pcr-product-grid > button em { grid-column: 1 / -1; grid-row: auto; }
  .pcr-product-mark { width: 34px; height: 44px; }
  .pcr-product-grid strong { font-size: 12px; }
  .pcr-product-grid small { font-size: 12px; }

  .room-choice-grid,
  .unit-choice-grid { gap: 7px; }

  .room-choice-grid .visual-choice-card,
  .unit-choice-grid .visual-choice-card {
    min-height: 108px;
    gap: 5px;
    padding: 10px 7px;
  }

  .room-choice-grid .visual-choice-card strong,
  .unit-choice-grid .visual-choice-card strong { font-size: 12px; }
  .room-choice-grid .visual-choice-card small,
  .unit-choice-grid .visual-choice-card small { font-size: 12px; }
}

@media (max-width: 430px) {
  .protocol-editor-heading-actions button { flex: 1; }
  .protocol-block-library-options { grid-template-columns: 1fr 1fr; }
  .protocol-collaboration > summary p,
  .protocol-version-history > summary p { display: none; }
}
}

@layer site-22 {
/* Responsive media polish: preserve complete scientific imagery and keep
   authentication controls usable across narrow phone and tablet widths. */
.auth-brand-row {
  flex-wrap: wrap;
  row-gap: 12px;
}

.auth-page .language-switcher button {
  min-width: 44px;
  height: 44px;
  padding-inline: 10px;
}

.lab-protocol-card-cover img {
  object-fit: contain;
  object-position: center;
  padding: clamp(6px, 0.8vw, 10px);
  background: #f4faf8;
}

.supply-record-image {
  width: 60px;
  height: 60px;
  border-radius: 11px;
  background: white;
}

.supply-record-image img {
  object-fit: contain;
  object-position: center;
  padding: 3px;
  background: white;
}

.personal-records-hero aside img {
  object-fit: contain;
  object-position: center;
  padding: 5px;
  background: white;
}

.tool-launch-visual-image {
  object-fit: contain;
  object-position: center;
  padding: clamp(3px, 0.5vw, 6px);
  background: #f7fbfa;
}

@media (max-width: 980px) {
  .auth-page {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-brand-panel {
    min-width: 0;
    min-height: auto;
    padding: 34px clamp(24px, 5vw, 44px) 42px;
  }

  .auth-brand-panel::before {
    background-image: url("/immutable-assets/visuals/mobile-knowledge-6384ba8225d7.webp");
    background-position: center 38%;
    background-size: cover;
    opacity: .18;
  }

  .auth-brand-copy {
    max-width: 680px;
    margin: 0;
    padding: clamp(44px, 7vw, 64px) 0 0;
  }

  .auth-card-wrap {
    min-width: 0;
    min-height: auto;
    padding: 42px 24px 56px;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .auth-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .auth-brand-panel {
    padding: 28px 24px 36px;
  }

  .auth-brand-copy {
    padding: 44px 0 0;
  }

  .auth-card-wrap {
    padding: 26px 14px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-settings-nav a,
  .account-language-option,
  .account-settings-field input,
  .account-password-input input {
    transition: none;
  }
}

@media print {
  .wb-gel-manager { display: none !important; }
  .wb-print-content-picker { display: none !important; }
  .wb-print-gels { display: block; }
  .wb-print-gel { overflow: visible; border-bottom: 2px solid #dce8e5; break-inside: auto; }
  .wb-print-gel-heading { padding: 7px 0 6px; break-after: avoid; break-inside: avoid; background: transparent; }
  .wb-print-gel-heading > span { width: 25px; height: 25px; }
  .wb-print-section { break-inside: avoid-page; }
  .wb-plan-print-sheet.is-diagrams-only.is-compact .wb-print-gels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6mm; padding: 4mm 0 0; }
  .wb-plan-print-sheet.is-diagrams-only.is-compact .wb-print-gel { border: 1px solid #ccdcd8; border-radius: 0; break-inside: avoid-page; }
  .wb-plan-print-sheet.is-diagrams-only.is-compact .wb-print-gel-heading { padding: 6px 7px 5px; }
  .wb-plan-print-sheet.is-diagrams-only.is-compact .wb-print-section { padding: 6px 7px; }
  .wb-plan-print-sheet.is-gel-per-page .wb-print-gels { display: block; }
  .wb-plan-print-sheet.is-gel-per-page .wb-print-gel + .wb-print-gel { break-before: page; page-break-before: always; }
  .wb-plan-print-sheet.is-gel-per-page .wb-print-gel { border-bottom: 0; }
}
}

@layer site-24 {
/* Unified UX motion system
   Motion is intentionally short, state-driven, and disabled for users who
   request reduced motion. The selectors cover every application surface while
   keeping data-heavy tables and editable values visually stable. */
:root {
  --motion-instant: 90ms;
  --motion-fast: 130ms;
  --motion-base: 180ms;
  --motion-slow: 220ms;
  --motion-ease-standard: cubic-bezier(.2, 0, 0, 1);
  --motion-ease-emphasized: cubic-bezier(.16, 1, .3, 1);
  --motion-distance: 5px;
}

@keyframes ux-disclosure-enter {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ux-dialog-enter {
  from { opacity: 0; transform: translateY(6px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ux-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ux-status-enter {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ux-success-pop {
  from { opacity: .7; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes ux-result-enter {
  from { opacity: 0; transform: translateY(var(--motion-distance)); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ux-hero-enter {
  from { opacity: 0; transform: translateY(var(--motion-distance)); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ux-hero-support-enter {
  from { opacity: 0; transform: translateY(7px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ux-module-switch-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ux-selection-confirm {
  from { opacity: .72; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes ux-selection-enter {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes ux-recognition-confirm {
  from { box-shadow: 0 0 0 3px rgba(8, 127, 115, .18); }
  to { box-shadow: 0 0 0 0 rgba(8, 127, 115, 0); }
}

@keyframes ux-drop-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.075); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Disclosure and menu motion follows the native open state, so keyboard and
     touch interactions receive the same feedback as pointer interactions. */
  :where(
    .quick-start-strip,
    .advanced-filter-disclosure,
    .smart-recognition-section,
    .datasheet-upload-panel,
    .supply-record-disclosure,
    .supply-photo-step,
    .tool-visual-guide,
    .wb-advanced-settings,
    .wb-bulk-samples,
    .wb-lane-details,
    .wb-planner-optional-card,
    .pcr-advanced-panel,
    .pcr-thermal-card,
    .cell-stock-group,
    .cell-stock-optional-card,
    .cell-stock-code-editor,
    .protocol-editor-metadata,
    .protocol-block-library,
    .protocol-version-history,
    .protocol-collaboration,
    .protocol-resolved-comments,
    .protocol-suggestion-history,
    .protocol-admin-archive-list,
    .protocol-stock-create-disclosure,
    .protocol-stock-edit,
    .admin-history-disclosure,
    .location-edit-details,
    .location-gallery-disclosure,
    .optional-upload-disclosure,
    .cross-system-dilution-module,
    .solution-version-history,
    .solution-protocol-picker,
    .protocol-recipe-manager,
    .wb-print-content-picker
  )[open] > :not(summary) {
    animation: ux-disclosure-enter var(--motion-base) var(--motion-ease-emphasized) backwards;
  }

  .mobile-utility-menu[open] .mobile-utility-panel,
  .row-action-menu[open] > div {
    transform-origin: top right;
    animation: ux-dialog-enter var(--motion-base) var(--motion-ease-emphasized) backwards;
  }

  .protocol-editor-block-menu[open] .protocol-editor-block-actions {
    transform-origin: top right;
    animation: ux-dialog-enter var(--motion-base) var(--motion-ease-emphasized) backwards;
  }

  /* Native dialogs and image previews. */
  :where(
    .admin-confirm-dialog,
    .cell-stock-dialog,
    .dose-calculator-dialog
  )[open] {
    transform-origin: 50% 18%;
    animation: ux-dialog-enter var(--motion-slow) var(--motion-ease-emphasized) backwards;
  }

  :where(
    .admin-confirm-dialog,
    .cell-stock-dialog,
    .dose-calculator-dialog
  )[open]::backdrop {
    animation: ux-backdrop-enter var(--motion-fast) ease-out backwards;
  }

  .image-lightbox {
    animation: ux-backdrop-enter var(--motion-fast) ease-out backwards;
  }

  .image-lightbox img {
    animation: ux-dialog-enter var(--motion-slow) var(--motion-ease-emphasized) backwards;
  }

  /* Result panels animate only when valid result content mounts or a readiness
     class becomes true. Numeric inputs themselves never move. */
  :where(
    .dilution-result-grid,
    .dilution-factor-row,
    .agarose-recipe-summary,
    .agarose-steps,
    .wb-target-summary,
    .wb-qc-section,
    .wb-setup-section,
    .wb-gel-recipe-grid,
    .pcr-batch-summary,
    .pcr-recipe-layout,
    .pcr-assay-result-card,
    .cell-result-primary,
    .cell-result-details,
    .fugene-result-context,
    .fugene-mix-table,
    .protocol-recommendations,
    .dose-result.is-ready,
    .concentration-summary.has-value,
    .wb-gel-profile-summary,
    .personal-record-summary-grid,
    .solution-preparation-result.is-ready,
    .molecular-formula-result.is-ready,
    .primer-results-card[data-motion-state="ready"] > .primer-summary-grid,
    .digest-recommendation-card[data-motion-state="ready"] > .digest-primary-recommendation,
    .digest-recommendation-card[data-motion-state="ready"] > .digest-buffer-ranking,
    .nebuilder-result-card[data-motion-state="ready"] > .nebuilder-result-summary,
    .nebuilder-result-card[data-motion-state="ready"] > .nebuilder-recipe-scroll,
    .cross-system-result[data-motion-state="ready"] > .cross-system-result-grid,
    .solution-result-card[data-motion-state="ready"] > .solution-result-total
  ) {
    animation: ux-result-enter var(--motion-base) var(--motion-ease-emphasized) backwards;
  }

  .gel-readout.is-active > * {
    animation: ux-result-enter var(--motion-fast) var(--motion-ease-emphasized) backwards;
  }

  .recognition-box[data-motion-state="success"] {
    animation: ux-recognition-confirm var(--motion-slow) ease-out backwards;
  }

  /* Conditional content animates only when the user explicitly changes a
     mode, selection, or editor state. */
  :where(
    .manufacturer-other-field[data-motion-state="visible"],
    .application-method-section[data-motion-state="active"],
    .protocol-editor-block-body,
    .protocol-editor-preview,
    .protocol-editor-content,
    .protocol-import-status,
    .cell-stock-selection-bar,
    .supply-form-step:not(.is-locked) > .unit-choice-grid,
    .supply-form-step:not(.is-locked) > .storage-zone-picker,
    .wb-od-entry,
    .wb-known-entry,
    .wb-custom-gel-field,
    .wb-custom-well-field,
    .pcr-selected-product,
    .pcr-variant-fieldset,
    .pcr-kapa-layout,
    .pcr-rox-fieldset,
    .pcr-assay-editor,
    .fugene-product-guidance,
    .protocol-recommendations,
    .protocol-finder-placeholder,
    .protocol-finder-empty,
    .personal-record-linked-destinations
  ) {
    animation: ux-result-enter var(--motion-base) var(--motion-ease-emphasized) backwards;
  }

  :where(
    .queued-image,
    .wb-selected-targets > article,
    .wb-od-entry > .wb-od-row:not(.is-bsa),
    .wb-known-entry > .wb-known-row,
    .pcr-assay-list > div,
    .count-input-grid > .count-input,
    .plasmid-list > .plasmid-row,
    .personal-record-link-chips > span
  ) {
    animation: ux-result-enter var(--motion-base) var(--motion-ease-emphasized) backwards;
  }

  /* Selection feedback is visually neutral; save/copy success is reserved for
     confirmed actions. */
  :where(
    .personal-record-link-option.is-selected .personal-record-link-check,
    .image-primary-badge,
    .visual-choice-card.is-selected .choice-check,
    .storage-zone-picker button.is-selected > i,
    .responsibility-choice-grid button.is-selected > i,
    .language-option-check,
    .account-password-guidance li.is-valid::before
  ) {
    animation: ux-selection-enter var(--motion-fast) var(--motion-ease-emphasized) backwards;
  }

  :where(
    .save-personal-record-control[data-motion-state="saved"] > button,
    .experiment-record-copy.is-copied .copy-record-button,
    .wb-save-record-button[data-motion-state="saved"],
    .wb-planner-save-actions button[data-motion-state="saved"],
    .personal-record-meta-actions button[data-motion-state="saved"],
    .personal-record-link-actions button[data-motion-state="saved"]
  ) {
    animation: ux-success-pop var(--motion-base) var(--motion-ease-emphasized) backwards;
  }

  .save-personal-record-control[data-motion-state="saved"] > a {
    animation: ux-status-enter var(--motion-base) var(--motion-ease-emphasized) backwards;
  }

  /* Notices, validation, copy feedback, and autosave messages enter near the
     control that caused them. Errors are never shaken or flashed. */
  :where(
    .notice,
    .form-error,
    .wb-save-status,
    .save-personal-record-error,
    .image-workspace-status:not(:empty),
    .image-action-success,
    .location-manager-status:not(:empty),
    .cell-stock-inline-error,
    .dose-warning,
    .recognition-status:not(:empty),
    .account-save-state,
    .invite-result,
    .personal-record-meta-actions > p:not(:empty),
    .personal-record-link-actions > p:not(:empty),
    .protocol-import-status,
    .protocol-collaboration .notice,
    .wb-planner-warnings,
    [role="alert"]
  ) {
    animation: ux-status-enter var(--motion-base) var(--motion-ease-emphasized) backwards;
  }

  .experiment-record-copy:is(.is-copied, .has-copy-error) .copy-record-status,
  .copy-result-status:not(:empty) {
    animation: ux-status-enter var(--motion-base) var(--motion-ease-emphasized) backwards;
  }

  /* Pending state is visible, stable, and confined to the action itself. */
  button[aria-busy="true"] {
    cursor: wait;
    opacity: .78;
    transform: translateY(1px);
    transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
  }

  .image-workspace-picker.is-dragging .image-workspace-icon {
    animation: ux-drop-pulse var(--motion-slow) var(--motion-ease-emphasized) backwards;
  }

  /* Tactile feedback without changing layout or delaying navigation. */
  :where(.button, .admin-action, .tool-reset-button):not(:disabled):active {
    transform: translateY(1px) scale(.985);
    transition-duration: var(--motion-instant);
  }

  :where(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
    transition: border-color var(--motion-fast) ease,
      box-shadow var(--motion-fast) ease,
      background-color var(--motion-fast) ease;
  }

  /* Selected, ready, and locked states retain their semantic labels while
     color and border changes become easier to follow. */
  :where(
    .solution-target-picker button,
    .agarose-preset-buttons button,
    .wb-gel-percent-presets button,
    .wb-mode-switch button,
    .fugene-product-grid label,
    .preset-buttons button,
    .vessel-grid > button,
    .pcr-variant-fieldset button,
    .pcr-overage-fieldset button,
    .pcr-rox-fieldset button,
    .pcr-primer-mode button,
    .wb-gel-tabs > button,
    .wb-gel-concentration-options button,
    .wb-preset-grid > button,
    .wb-lane-role-types button,
    .wb-lane-role-grid button,
    .application-picker label,
    .outcome-option,
    .personal-record-link-option,
    .cell-stock-view-tabs button,
    .cell-stock-batch-card,
    .location-master-row,
    .storage-zone-picker button,
    .responsibility-choice-grid button,
    .protocol-purpose-field button,
    .supply-form-step,
    .supply-save-summary,
    .protocol-save-summary,
    .cell-stock-save-summary,
    .plasmid-allocation > div
  ) {
    transition: border-color var(--motion-fast) ease,
      background-color var(--motion-fast) ease,
      color var(--motion-fast) ease,
      box-shadow var(--motion-fast) ease,
      opacity var(--motion-fast) ease;
  }

  .protocol-editor-block-toggle > i {
    transition: transform var(--motion-fast) var(--motion-ease-standard);
  }

  :where(.location-manager, .image-workspace).is-saving {
    opacity: 1;
    cursor: progress;
  }

  :where(.location-manager, .image-workspace).is-saving button {
    cursor: progress;
  }

  .protocol-collaboration.is-pending :where(button, input, textarea, select) {
    opacity: .72;
    transition: opacity var(--motion-fast) ease;
  }

  .wb-cut-target,
  .wb-cut-line:not(.is-dragging),
  .wb-cut-range-zone {
    transition: top var(--motion-fast) var(--motion-ease-standard),
      height var(--motion-fast) var(--motion-ease-standard),
      border-color var(--motion-fast) ease,
      background-color var(--motion-fast) ease;
  }

  .wb-cut-line.is-dragging {
    transition: none;
  }

  .protocol-editor-blocks > div {
    transition: opacity var(--motion-fast) ease, outline-color var(--motion-fast) ease;
  }

  .protocol-editor-blocks > .is-new {
    animation: ux-result-enter var(--motion-base) var(--motion-ease-emphasized) backwards;
  }
}

.smart-recognition-section > summary > i {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--motion-fast) var(--motion-ease-standard);
}

.smart-recognition-section[open] > summary > i {
  transform: rotate(225deg);
}

.protocol-editor-blocks > .is-dragging {
  opacity: .55;
  outline: 2px solid rgba(8, 127, 115, .34);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .wb-planner-scroll-hint { display: flex; }
}

@media (max-width: 400px) {
  .tool-launch-card { grid-template-columns: 72px minmax(0, 1fr) 44px; gap: 9px; }
  .tool-launch-visual,
  .tool-launch-visual-image { width: 72px; height: 72px; }
}

@media (max-width: 360px) {
  .wb-lane-editor-row,
  .wb-lane-editor-row.has-hidden-volume { grid-template-columns: 18px 48px minmax(0, 1fr) 56px; gap: 5px; padding: 7px 6px; }
  .wb-cut-line-list > div { grid-template-columns: minmax(0, 1fr) 44px; }
  .wb-cut-line-list button.is-remove { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto !important; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}

@media print {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
}

@layer site-26 {
/* Lightweight visual enhancement: one-shot entrances and direct interaction
   feedback only. No list staggering, timers, or continuously running motion. */
.module-switcher {
  position: relative;
  isolation: isolate;
}

.module-switcher a {
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.module-switcher-highlight {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: var(--module-switcher-highlight-width, 0px);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: 0 2px 7px rgba(20, 55, 48, .1);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--module-switcher-highlight-x, 0px), 0, 0);
}

.module-switcher-highlight[data-visible="true"] {
  opacity: 1;
}

.module-switcher a::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  content: "";
  opacity: 0;
  transform: scale(.94);
}

.module-switcher a[aria-current="page"] {
  background: transparent;
  box-shadow: none;
}

.module-switcher a[aria-current="page"]::before {
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: none;
}

.solution-protocol-picker > summary::after {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  content: "";
  transform: rotate(45deg);
}

.solution-protocol-picker[open] > summary::after {
  transform: rotate(225deg);
}

@media (prefers-reduced-motion: no-preference) {
  :where(
    .gel-home-hero,
    .supplies-hero,
    .solutions-hero,
    .protocols-hero,
    .cell-stocks-hero,
    .tools-hero,
    .personal-records-hero,
    .lab-protocols-hero,
    .lab-protocol-detail-hero,
    .account-settings-hero,
    .wb-planner-hero,
    .solution-detail-hero,
    .detail-hero
  ) > :first-child {
    animation: ux-hero-enter var(--motion-base) var(--motion-ease-emphasized) backwards;
  }

  :where(
    .gel-home-hero,
    .supplies-hero,
    .solutions-hero,
    .protocols-hero,
    .cell-stocks-hero,
    .tools-hero,
    .personal-records-hero,
    .lab-protocols-hero,
    .lab-protocol-detail-hero,
    .account-settings-hero,
    .wb-planner-hero,
    .solution-detail-hero,
    .detail-hero
  ) > :nth-child(2) {
    animation: ux-hero-support-enter var(--motion-slow) var(--motion-ease-emphasized) backwards;
  }

  .module-switcher a,
  .module-switcher a::before,
  .module-switcher-highlight,
  .brand-mark,
  .mobile-utility-menu > summary,
  .mobile-utility-menu > summary > span {
    transition: color var(--motion-fast) ease,
      background-color var(--motion-fast) ease,
      border-color var(--motion-fast) ease,
      box-shadow var(--motion-fast) ease,
      opacity var(--motion-fast) ease,
      transform var(--motion-slow) var(--motion-ease-emphasized);
  }

  .module-switcher-highlight {
    transition: width var(--motion-slow) var(--motion-ease-emphasized),
      opacity var(--motion-fast) ease,
      transform var(--motion-slow) var(--motion-ease-emphasized);
    will-change: width, transform;
  }

  .module-switcher-highlight[data-visible="true"] {
    animation: ux-module-switch-enter var(--motion-slow) var(--motion-ease-emphasized) backwards;
  }

  .mobile-utility-menu[open] > summary > span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .mobile-utility-menu[open] > summary > span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-utility-menu[open] > summary > span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  :where(
    .solution-scope-tabs a[aria-current="page"],
    .protocol-purpose-filter button.is-selected,
    .primer-model-switch button.is-selected,
    .cell-stock-view-tabs button.is-selected,
    .wb-mode-switch button.is-selected,
    .wb-gel-tabs > button[aria-selected="true"]
  ) {
    animation: ux-selection-confirm var(--motion-fast) var(--motion-ease-emphasized) backwards;
  }

  :where(
    .solution-scope-tabs a,
    .protocol-purpose-filter button,
    .primer-model-switch button,
    .cell-stock-view-tabs button,
    .wb-mode-switch button,
    .wb-gel-tabs > button,
    .digest-search-results button
  ) {
    transition: border-color var(--motion-fast) ease,
      background-color var(--motion-fast) ease,
      color var(--motion-fast) ease,
      box-shadow var(--motion-fast) ease,
      transform var(--motion-fast) var(--motion-ease-standard);
  }

  :where(
    .solution-version-history > summary > i,
    .protocol-recipe-manager > summary > i,
    .cross-system-dilution-module > summary > b,
    .solution-protocol-picker > summary::after
  ) {
    transition: transform var(--motion-fast) var(--motion-ease-standard);
  }

  :where(
    .tool-launch-card,
    .solution-card,
    .lab-protocol-card,
    .personal-record-card,
    .supply-record-card,
    .protocol-card,
    .protocol-admin-directory-row
  ) {
    transition: border-color var(--motion-fast) ease,
      box-shadow var(--motion-base) ease,
      transform var(--motion-base) var(--motion-ease-emphasized);
  }

  :where(
    .tool-launch-card,
    .solution-card,
    .lab-protocol-card,
    .personal-record-card,
    .supply-record-card,
    .protocol-card,
    .protocol-admin-directory-row
  ):focus-visible,
  :where(
    .tool-launch-card,
    .solution-card,
    .lab-protocol-card,
    .personal-record-card,
    .supply-record-card,
    .protocol-card,
    .protocol-admin-directory-row
  ):has(:focus-visible) {
    transform: translateY(-2px);
    border-color: #8fbfb6;
    box-shadow: 0 16px 36px rgba(20, 55, 48, .1);
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .brand:hover .brand-mark,
  .brand:focus-visible .brand-mark {
    transform: translateY(-1px) rotate(-2deg);
    background: var(--teal-dark);
    box-shadow: 0 7px 16px rgba(20, 55, 48, .16);
  }

  .module-switcher a:not([aria-current="page"]):hover::before {
    background: rgba(255, 255, 255, .62);
    opacity: 1;
    transform: scale(1);
  }

  .module-switcher a:not([aria-current="page"]):hover {
    color: var(--ink-soft);
  }

  :where(
    .tool-launch-card,
    .solution-card,
    .lab-protocol-card,
    .personal-record-card,
    .supply-record-card,
    .protocol-card,
    .protocol-admin-directory-row
  ):hover {
    transform: translateY(-2px);
    border-color: #8fbfb6;
    box-shadow: 0 16px 36px rgba(20, 55, 48, .1);
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: none),
  (prefers-reduced-motion: no-preference) and (pointer: coarse) {
  :where(
    .module-switcher a,
    .tool-launch-card,
    .solution-card,
    .lab-protocol-card,
    .personal-record-card,
    .supply-record-card,
    .protocol-card,
    .protocol-admin-directory-row
  ):active {
    transform: scale(.985);
    transition-duration: var(--motion-instant);
  }

  .tool-launch-card:hover { transform: none; border-color: var(--line); box-shadow: var(--shadow); }
  .solution-card:hover { transform: none; border-color: var(--line); box-shadow: 0 12px 34px rgba(20,55,48,.055); }
  .lab-protocol-card:hover { transform: none; border-color: var(--line); box-shadow: 0 12px 34px rgba(20,55,48,.055); }
  .personal-record-card:hover { transform: none; border-color: var(--line); box-shadow: 0 8px 26px rgba(20,55,48,.045); }
  .supply-record-card:hover { transform: none; border-color: var(--line); box-shadow: 0 5px 16px rgba(20,55,48,.035); }
  .protocol-card:hover { transform: none; border-color: var(--line); box-shadow: 0 7px 20px rgba(20,55,48,.035); }
  .protocol-admin-directory-row:hover { transform: none; border-color: var(--line); box-shadow: none; }
}

/* Unified page heroes
   One visual language for module, detail, editor, administration and utility
   headers. Module artwork stays informative and compact at phone widths. */
:root {
  --page-hero-surface: linear-gradient(128deg, #0d302b 0%, #11564d 68%, #087d70 100%);
  --page-hero-line: rgba(255, 255, 255, .16);
  --page-hero-copy: rgba(255, 255, 255, .76);
  --page-hero-kicker: #82e4d5;
}

.breadcrumbs,
.breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a,
.breadcrumb a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.gel-home-hero,
.supplies-hero,
.protocols-hero,
.cell-stocks-hero,
.tools-hero,
.personal-records-hero,
.lab-protocols-hero,
.solutions-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  align-items: center;
  gap: 26px;
  overflow: hidden;
  margin: 14px 0 18px;
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 91% 15%, rgba(149, 236, 220, .16), transparent 28%),
    var(--page-hero-surface);
  color: white;
  box-shadow: 0 20px 52px rgba(11, 65, 56, .16);
}

.gel-home-hero::after,
.supplies-hero::after,
.protocols-hero::after,
.cell-stocks-hero::after,
.tools-hero::after,
.personal-records-hero::after,
.lab-protocols-hero::after,
.solutions-hero::after {
  position: absolute;
  z-index: -1;
  right: -72px;
  bottom: -168px;
  width: 350px;
  height: 350px;
  border: 42px solid rgba(255, 255, 255, .04);
  border-radius: 50%;
  box-shadow: none;
  content: "";
}

.gel-home-hero > *,
.supplies-hero > *,
.protocols-hero > *,
.cell-stocks-hero > *,
.tools-hero > *,
.personal-records-hero > *,
.lab-protocols-hero > *,
.solutions-hero > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.gel-home-hero h1,
.supplies-hero h1,
.protocols-hero h1,
.cell-stocks-hero h1,
.tools-hero h1,
.personal-records-hero h1,
.lab-protocols-hero h1,
.solutions-hero h1 {
  max-width: 780px;
  margin: 8px 0 8px;
  color: white;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.gel-home-hero > div > p,
.supplies-hero p,
.protocols-hero p,
.cell-stocks-hero p,
.tools-hero p,
.personal-records-hero p,
.lab-protocols-hero p,
.solutions-hero p {
  max-width: 700px;
  margin: 0 0 15px;
  color: var(--page-hero-copy);
  font-size: 13px;
  line-height: 1.58;
}

.gel-home-hero .eyebrow,
.supplies-hero .eyebrow,
.protocols-hero .eyebrow,
.cell-stocks-hero .eyebrow,
.tools-hero .section-kicker,
.personal-records-hero .section-kicker,
.lab-protocols-hero .eyebrow,
.solutions-hero .eyebrow {
  color: var(--page-hero-kicker);
}

.gel-home-hero .button-primary,
.supplies-hero .button-primary,
.protocols-hero .button-primary,
.cell-stocks-hero .button-primary,
.personal-records-hero .button-primary,
.lab-protocols-hero .button-primary,
.solutions-hero .button-primary {
  border-color: #8de7d8;
  background: #8de7d8;
  color: #0b4038;
  box-shadow: none;
}

.gel-home-hero .button-ghost,
.personal-records-hero .button-secondary,
.lab-protocols-hero .button-secondary,
.solutions-hero .button-secondary {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: white;
}

.module-hero-icon,
.cell-stock-hero-icon,
.gel-hero-visual img,
.page-hero-art {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 17px;
  background: #eef5f7;
  box-shadow: 0 12px 28px rgba(5, 39, 34, .2);
}

.lab-protocols-hero > aside,
.solutions-hero > aside {
  display: grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  align-content: center;
  gap: 8px;
  width: min(100%, 340px);
}

.solutions-hero > aside {
  overflow: visible;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.solutions-hero > aside span + span { border-left: 1px solid var(--page-hero-line); }

.lab-protocols-hero > aside > .page-hero-art,
.solutions-hero > aside > .page-hero-art {
  grid-column: 1 / -1;
  justify-self: end;
}

.lab-protocols-hero > aside span,
.solutions-hero > aside span {
  display: grid;
  min-width: 0;
  min-height: 72px;
  align-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--page-hero-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .075);
  text-align: left;
}

.lab-protocols-hero > aside strong,
.solutions-hero > aside strong {
  color: white;
  font-size: 25px;
  line-height: 1;
}

.lab-protocols-hero > aside small,
.solutions-hero > aside small {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 750;
}

.personal-records-hero aside {
  display: grid;
  grid-template-columns: 64px repeat(2, minmax(82px, 1fr));
  align-items: center;
  gap: 8px;
  width: min(100%, 350px);
  padding: 11px;
  border: 1px solid var(--page-hero-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .075);
}

.personal-records-hero aside > .page-hero-art {
  grid-row: 1;
  width: 64px;
  height: 64px;
  padding: 4px;
}

.personal-records-hero aside span {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 58px;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
}

.personal-records-hero aside strong {
  color: white;
  font-size: 23px;
  line-height: 1;
}

.tools-hero-count,
.protocols-hero aside,
.supplies-hero-counts,
.cell-stocks-hero aside,
.gel-hero-stats {
  border-color: var(--page-hero-line);
  background: rgba(255, 255, 255, .075);
}

/* Detail heroes use the same surface with a denser metadata rail. */
.detail-hero,
.lab-protocol-detail-hero,
.solution-detail-hero,
.personal-record-detail-hero,
.solution-prepare-heading {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, auto);
  min-height: 0;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  margin: 14px 0 18px;
  padding: 26px 30px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 12%, rgba(149, 236, 220, .14), transparent 28%),
    var(--page-hero-surface);
  color: white;
  box-shadow: 0 18px 44px rgba(11, 65, 56, .14);
}

.detail-hero::after,
.lab-protocol-detail-hero::after,
.solution-detail-hero::after,
.personal-record-detail-hero::after,
.solution-prepare-heading::after {
  position: absolute;
  z-index: -1;
  right: -74px;
  bottom: -172px;
  width: 330px;
  height: 330px;
  border: 40px solid rgba(255, 255, 255, .038);
  border-radius: 50%;
  box-shadow: none;
  content: "";
}

.detail-hero > *,
.lab-protocol-detail-hero > *,
.solution-detail-hero > *,
.personal-record-detail-hero > *,
.solution-prepare-heading > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.detail-hero h1,
.lab-protocol-detail-hero h1,
.solution-detail-hero h1,
.personal-record-detail-hero h1,
.solution-prepare-heading h1 {
  max-width: 820px;
  margin: 9px 0 8px;
  color: white;
  font-size: clamp(32px, 4vw, 47px);
  line-height: 1.04;
  letter-spacing: -.043em;
}

.detail-hero p,
.lab-protocol-detail-hero p,
.solution-detail-hero > div > p,
.personal-record-detail-hero p,
.solution-prepare-heading p {
  margin: 0;
  color: var(--page-hero-copy);
  font-size: 12px;
  line-height: 1.65;
}

.detail-actions,
.personal-record-detail-actions {
  justify-self: end;
}

.detail-hero .button-ghost,
.personal-record-detail-hero .button-secondary {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: white;
}

.solution-prepare-heading > aside {
  border-color: var(--page-hero-line);
  background: rgba(255, 255, 255, .075);
}

.solution-prepare-heading aside strong { color: #8de7d8; }
.solution-prepare-heading aside span { color: rgba(255, 255, 255, .7); }

/* Compact editor, administration, member and calculator headers. */
.form-page-header,
.editor-page-heading,
.admin-dashboard-header,
.admin-subpage-header,
.account-settings-hero,
.cell-tool-header {
  position: relative;
  isolation: isolate;
  display: block;
  max-width: none;
  min-height: 0;
  overflow: hidden;
  margin: 12px 0 18px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 19px;
  background:
    radial-gradient(circle at 92% 12%, rgba(149, 236, 220, .13), transparent 26%),
    var(--page-hero-surface);
  color: white;
  box-shadow: 0 16px 38px rgba(11, 65, 56, .12);
}

.form-page-header,
.editor-page-heading,
.cell-tool-header {
  padding-right: 128px;
}

.form-page-header h1,
.editor-page-heading h1,
.admin-dashboard-header h1,
.admin-subpage-header h1,
.account-settings-hero h1,
.cell-tool-header h1 {
  max-width: 850px;
  margin: 7px 0 7px;
  color: white;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: -.042em;
}

.form-page-header > p,
.form-page-header > div > p,
.editor-page-heading > p,
.admin-dashboard-header p,
.admin-subpage-header p,
.account-settings-hero-copy p,
.cell-tool-header > p {
  max-width: 760px;
  margin: 0;
  color: var(--page-hero-copy);
  font-size: 12px;
  line-height: 1.65;
}

.form-page-header .section-kicker,
.editor-page-heading .section-kicker,
.admin-dashboard-header .section-kicker,
.admin-subpage-header .section-kicker,
.account-settings-hero .section-kicker,
.cell-tool-header .section-kicker {
  color: var(--page-hero-kicker);
}

.form-page { --page-hero-image: url("/immutable-assets/visuals/module-antibodies-afeee9f8c8e3.webp"); }
.protocol-form-page { --page-hero-image: url("/immutable-assets/visuals/module-protocols-90760f708c83.webp"); }
.cell-stock-form-page { --page-hero-image: url("/immutable-assets/visuals/module-cell-stocks-db012bfed63e.webp"); }
.supply-form-page { --page-hero-image: url("/immutable-assets/visuals/module-supplies-c61cd543b829.webp"); }
.lab-protocol-editor-page { --page-hero-image: url("/immutable-assets/visuals/module-lab-protocols-25c50a81e61a.webp"); }
.solution-editor-page { --page-hero-image: url("/immutable-assets/visuals/module-solutions-cb89befd6f94.webp"); }

.form-page-header:not(.invite-page-header)::before,
.editor-page-heading::before {
  position: absolute;
  top: 50%;
  right: 28px;
  width: 76px;
  height: 76px;
  transform: translateY(-50%);
  border: 1px solid var(--page-hero-line);
  border-radius: 18px;
  background-color: #eef5f7;
  background-image: var(--page-hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: 0 12px 28px rgba(5, 39, 34, .2);
  content: "";
}

.invite-page-header img,
.cell-tool-header > .page-hero-art {
  position: absolute;
  top: 50%;
  right: 28px;
  width: 76px;
  height: 76px;
  transform: translateY(-50%);
}

.cell-tool-header .wb-header-notes {
  max-width: 760px;
  margin-top: 13px;
}

.cell-tool-header .wb-header-notes > span {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .075);
  color: rgba(255, 255, 255, .78);
}

.admin-header-role,
.account-role-badge {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: white;
}

.admin-dashboard-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.account-settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.account-identity-card {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .09);
  box-shadow: none;
}

.account-identity-copy strong,
.account-identity-copy code { color: white; }

.wb-planner-hero {
  grid-template-columns: minmax(0, 1fr) 210px;
  min-height: 0;
  gap: 24px;
  margin: 14px 0 18px;
  padding: 26px 30px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 91% 15%, rgba(149, 236, 220, .16), transparent 28%),
    var(--page-hero-surface);
}

.wb-planner-hero h1 {
  margin: 8px 0;
  font-size: clamp(34px, 4vw, 48px);
}

.wb-planner-hero aside {
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 0;
  align-items: center;
  gap: 2px 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .08);
}

.wb-planner-hero aside > .page-hero-art {
  grid-row: 1 / 4;
  width: 64px;
  height: 64px;
}

@media (max-width: 900px) {
  .gel-home-hero,
  .supplies-hero,
  .protocols-hero,
  .cell-stocks-hero,
  .tools-hero,
  .personal-records-hero,
  .lab-protocols-hero,
  .solutions-hero,
  .detail-hero,
  .lab-protocol-detail-hero,
  .solution-detail-hero,
  .personal-record-detail-hero,
  .solution-prepare-heading,
  .wb-planner-hero {
    grid-template-columns: 1fr;
  }

  .detail-actions,
  .personal-record-detail-actions {
    width: 100%;
    justify-self: stretch;
    justify-content: flex-start;
  }

  .lab-protocol-detail-hero > aside,
  .solution-detail-hero > aside { width: 100%; }
}

@media (max-width: 720px) {
  .gel-home-hero,
  .supplies-hero,
  .protocols-hero,
  .cell-stocks-hero,
  .tools-hero,
  .personal-records-hero,
  .lab-protocols-hero,
  .solutions-hero,
  .detail-hero,
  .lab-protocol-detail-hero,
  .solution-detail-hero,
  .personal-record-detail-hero,
  .solution-prepare-heading,
  .wb-planner-hero {
    gap: 16px;
    margin-top: 9px;
    padding: 20px 18px;
    border-radius: 17px;
  }

  .gel-home-hero h1,
  .supplies-hero h1,
  .protocols-hero h1,
  .cell-stocks-hero h1,
  .tools-hero h1,
  .personal-records-hero h1,
  .lab-protocols-hero h1,
  .solutions-hero h1,
  .detail-hero h1,
  .lab-protocol-detail-hero h1,
  .solution-detail-hero h1,
  .personal-record-detail-hero h1,
  .solution-prepare-heading h1,
  .wb-planner-hero h1 { font-size: 34px; }

  .module-hero-icon,
  .cell-stock-hero-icon,
  .gel-hero-visual img,
  .page-hero-art {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .gel-hero-stats,
  .protocols-hero aside,
  .personal-records-hero aside,
  .lab-protocols-hero > aside,
  .solutions-hero > aside {
    display: grid;
  }

  .gel-hero-stats {
    grid-template-columns: 52px repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 5px;
  }

  .gel-hero-stats > div.gel-hero-visual {
    min-height: 58px;
    padding: 3px;
  }

  .gel-hero-stats > div:not(.gel-hero-apps):not(.gel-hero-visual) {
    min-width: 0;
    min-height: 58px;
    padding: 7px 5px;
  }

  .gel-hero-apps { display: none; }

  .protocols-hero aside {
    grid-template-columns: 52px auto minmax(0, 1fr);
    width: 100%;
    min-height: 0;
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  .protocols-hero aside small { grid-column: 2 / -1; margin-top: -4px; }

  .personal-records-hero aside {
    grid-template-columns: 52px repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .personal-records-hero aside > .page-hero-art {
    width: 52px;
    height: 52px;
  }

  .lab-protocols-hero > aside,
  .solutions-hero > aside {
    grid-template-columns: 52px repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .lab-protocols-hero > aside > .page-hero-art,
  .solutions-hero > aside > .page-hero-art {
    grid-column: auto;
    justify-self: start;
  }

  .lab-protocols-hero > aside span,
  .solutions-hero > aside span {
    min-height: 58px;
    padding: 7px 5px;
  }

  .lab-protocols-hero > aside strong,
  .solutions-hero > aside strong { font-size: 20px; }

  .cell-stocks-hero aside {
    grid-template-columns: 52px repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .cell-stocks-hero aside > .cell-stock-hero-icon {
    grid-column: auto;
    justify-self: start;
    margin: 0;
  }

  .cell-stocks-hero aside > span:last-child { display: grid; }

  .supplies-hero-counts {
    grid-template-columns: 52px repeat(2, minmax(0, 1fr));
    width: 100%;
    align-items: center;
  }

  .supplies-hero-counts .module-hero-icon { grid-column: auto; margin: 0; }

  .tools-hero-count {
    width: 100%;
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .wb-planner-hero aside { width: 100%; }

  .form-page-header,
  .editor-page-heading,
  .admin-dashboard-header,
  .admin-subpage-header,
  .account-settings-hero,
  .cell-tool-header {
    margin-top: 9px;
    padding: 20px 18px;
    border-radius: 17px;
  }

  .form-page-header,
  .editor-page-heading,
  .cell-tool-header { padding-right: 86px; }

  .form-page-header h1,
  .editor-page-heading h1,
  .admin-dashboard-header h1,
  .admin-subpage-header h1,
  .account-settings-hero h1,
  .cell-tool-header h1 { font-size: 32px; }

  .form-page-header:not(.invite-page-header)::before,
  .editor-page-heading::before,
  .invite-page-header img,
  .cell-tool-header > .page-hero-art {
    right: 17px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .admin-dashboard-header,
  .account-settings-hero { grid-template-columns: 1fr; }

  .account-identity-card { width: 100%; min-width: 0; }
}

@media (max-width: 480px) {
  .gel-hero-stats,
  .lab-protocols-hero > aside,
  .solutions-hero > aside,
  .cell-stocks-hero aside {
    grid-template-columns: 52px repeat(3, minmax(0, 1fr));
  }

  .gel-hero-stats span,
  .lab-protocols-hero > aside small,
  .solutions-hero > aside small,
  .cell-stocks-hero aside small { font-size: 12px; }

  .gel-hero-stats strong,
  .lab-protocols-hero > aside strong,
  .solutions-hero > aside strong,
  .cell-stocks-hero aside strong { font-size: 18px; }

  .detail-actions,
  .personal-record-detail-actions,
  .lab-protocol-detail-actions,
  .solution-detail-actions { align-items: stretch; flex-direction: column; }

  .detail-actions .button,
  .detail-actions form,
  .personal-record-detail-actions .button,
  .personal-record-detail-actions form,
  .lab-protocol-detail-actions .button,
  .lab-protocol-detail-actions form,
  .solution-detail-actions .button,
  .solution-detail-actions form { width: 100%; }

  .detail-actions .button,
  .personal-record-detail-actions .button,
  .lab-protocol-detail-actions .button,
  .solution-detail-actions .button { justify-content: center; }
}

@media print {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .form-page-header::before,
  .editor-page-heading::before,
  .page-hero-art { display: none !important; }
}

/* Immersive laboratory hero backgrounds
   Every authenticated page header now uses the same photographic-illustrative
   surface as the member entry screen.  Module wrappers select the scene while
   the two overlays keep text and metadata legible over every crop. */
:root {
  --page-hero-image: url("/immutable-assets/visuals/lab-knowledge-hero-88c06e0f90e5.webp");
  --page-hero-image-position: center;
}

.form-page {
  --page-hero-image: url("/immutable-assets/visuals/lab-knowledge-hero-88c06e0f90e5.webp");
  --page-hero-image-position: center right;
}

.home-page,
.detail-page {
  --page-hero-image: url("/immutable-assets/visuals/lab-knowledge-hero-88c06e0f90e5.webp");
  --page-hero-image-position: center right;
}

.supplies-page,
.supply-form-page,
.cell-stocks-page,
.cell-stock-form-page,
.location-admin-page {
  --page-hero-image: url("/immutable-assets/visuals/hero-storage-af28b591a11b.webp");
  --page-hero-image-position: center right;
}

.protocols-page,
.protocol-form-page,
.protocol-admin-page {
  --page-hero-image: url("/immutable-assets/visuals/hero-cell-protocols-6065fd3991b0.webp");
  --page-hero-image-position: center right;
}

.tools-home-page,
.cell-tool-page,
.wb-planner-page,
.solutions-page,
.solution-editor-page,
.solution-detail-page,
.solution-prepare-page {
  --page-hero-image: url("/immutable-assets/visuals/hero-tools-030041d9959d.webp");
  --page-hero-image-position: center right;
}

.personal-records-page,
.personal-record-detail-page {
  --page-hero-image: url("/immutable-assets/visuals/hero-records-2fd0239b3b95.webp");
  --page-hero-image-position: center right;
}

.lab-protocols-page,
.lab-protocol-detail-page,
.lab-protocol-editor-page {
  --page-hero-image: url("/immutable-assets/visuals/hero-methods-c34ad00ef600.webp");
  --page-hero-image-position: center right;
}

.admin-page,
.account-settings-page,
.account-page { --page-hero-image: url("/immutable-assets/visuals/hero-records-2fd0239b3b95.webp"); }
.admin-page.admin-datasheets-page {
  --page-hero-image: url("/immutable-assets/visuals/lab-knowledge-hero-88c06e0f90e5.webp");
  --page-hero-image-position: center right;
}
.admin-page.location-admin-page { --page-hero-image: url("/immutable-assets/visuals/hero-storage-af28b591a11b.webp"); }
.admin-page.protocol-admin-page { --page-hero-image: url("/immutable-assets/visuals/hero-cell-protocols-6065fd3991b0.webp"); }

.gel-home-hero,
.supplies-hero,
.protocols-hero,
.cell-stocks-hero,
.tools-hero,
.personal-records-hero,
.lab-protocols-hero,
.solutions-hero,
.detail-hero,
.lab-protocol-detail-hero,
.solution-detail-hero,
.personal-record-detail-hero,
.solution-prepare-heading,
.form-page-header,
.editor-page-heading,
.admin-dashboard-header,
.admin-subpage-header,
.account-settings-hero,
.cell-tool-header,
.wb-planner-hero {
  background-color: #082d2b;
  background-image:
    linear-gradient(90deg, rgba(5, 43, 40, .98) 0%, rgba(5, 43, 40, .92) 39%, rgba(5, 43, 40, .62) 68%, rgba(5, 43, 40, .48) 100%),
    linear-gradient(180deg, rgba(7, 45, 42, .08), rgba(5, 39, 37, .36)),
    var(--page-hero-image);
  background-position: center, center, var(--page-hero-image-position);
  background-repeat: no-repeat;
  background-size: cover;
}

.gel-home-hero::after,
.supplies-hero::after,
.protocols-hero::after,
.cell-stocks-hero::after,
.tools-hero::after,
.personal-records-hero::after,
.lab-protocols-hero::after,
.solutions-hero::after,
.detail-hero::after,
.lab-protocol-detail-hero::after,
.solution-detail-hero::after,
.personal-record-detail-hero::after,
.solution-prepare-heading::after {
  display: none;
}

/* Background scenes replace the old floating white icon tiles. */
.module-hero-icon,
.cell-stock-hero-icon,
.gel-hero-visual,
.page-hero-art,
.form-page-header:not(.invite-page-header)::before,
.editor-page-heading::before,
.invite-page-header > img {
  display: none;
}

.form-page-header,
.editor-page-heading,
.cell-tool-header {
  padding-right: 28px;
}

/* High-contrast, quieter metadata rails. */
.gel-hero-stats,
.supplies-hero-counts,
.protocols-hero aside,
.cell-stocks-hero aside,
.tools-hero-count,
.personal-records-hero aside,
.lab-protocols-hero > aside,
.solutions-hero > aside,
.wb-planner-hero aside,
.solution-prepare-heading > aside,
.lab-protocol-detail-hero > aside,
.solution-detail-hero > aside,
.account-identity-card {
  border: 1px solid rgba(187, 240, 230, .24);
  background: rgba(4, 39, 37, .62);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 14px 34px rgba(1, 24, 22, .18);
  backdrop-filter: blur(12px) saturate(115%);
}

/* These library heroes already render each metric as its own rounded card.
   Keep the cards directly on the artwork instead of adding a square rail behind them. */
.supplies-hero-counts,
.solutions-hero > aside,
.cell-stocks-hero aside {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.gel-hero-stats {
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  width: min(100%, 420px);
  border-radius: 18px;
}

.gel-hero-stats > div:not(.gel-hero-apps):not(.gel-hero-visual) {
  min-height: 90px;
  border-right: 1px solid rgba(187, 240, 230, .2);
  background: transparent;
}

.gel-hero-stats > div:nth-child(3) { border-right: 0; }

.gel-hero-stats strong,
.supplies-hero-counts strong,
.protocols-hero aside strong,
.cell-stocks-hero aside strong,
.tools-hero-count strong,
.personal-records-hero aside strong,
.lab-protocols-hero > aside strong,
.solutions-hero > aside strong {
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .18);
}

.gel-hero-stats span,
.supplies-hero-counts span,
.protocols-hero aside span,
.protocols-hero aside small,
.cell-stocks-hero aside small,
.tools-hero-count span,
.personal-records-hero aside span,
.lab-protocols-hero > aside small,
.solutions-hero > aside small {
  color: rgba(225, 250, 245, .8);
}

.gel-hero-apps {
  min-height: 48px;
  border-top: 1px solid rgba(187, 240, 230, .2);
  background: rgba(2, 30, 29, .24);
}

.gel-hero-apps .application-badge {
  border-color: rgba(187, 240, 230, .28);
  background: rgba(255, 255, 255, .08);
  color: #e9fffb;
}

.personal-records-hero aside {
  grid-template-columns: repeat(2, minmax(100px, 1fr));
}

.lab-protocols-hero > aside,
.solutions-hero > aside {
  grid-template-columns: repeat(3, minmax(82px, 1fr));
}

.wb-planner-hero aside {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .gel-home-hero,
  .supplies-hero,
  .protocols-hero,
  .cell-stocks-hero,
  .tools-hero,
  .personal-records-hero,
  .lab-protocols-hero,
  .solutions-hero,
  .detail-hero,
  .lab-protocol-detail-hero,
  .solution-detail-hero,
  .personal-record-detail-hero,
  .solution-prepare-heading,
  .form-page-header,
  .editor-page-heading,
  .admin-dashboard-header,
  .admin-subpage-header,
  .account-settings-hero,
  .cell-tool-header,
  .wb-planner-hero {
    background-image:
      linear-gradient(90deg, rgba(5, 43, 40, .98) 0%, rgba(5, 43, 40, .9) 58%, rgba(5, 43, 40, .62) 100%),
      linear-gradient(180deg, rgba(7, 45, 42, .12), rgba(5, 39, 37, .42)),
      var(--page-hero-image);
  }
}

@media (max-width: 720px) {
  .gel-home-hero,
  .supplies-hero,
  .protocols-hero,
  .cell-stocks-hero,
  .tools-hero,
  .personal-records-hero,
  .lab-protocols-hero,
  .solutions-hero,
  .detail-hero,
  .lab-protocol-detail-hero,
  .solution-detail-hero,
  .personal-record-detail-hero,
  .solution-prepare-heading,
  .form-page-header,
  .editor-page-heading,
  .admin-dashboard-header,
  .admin-subpage-header,
  .account-settings-hero,
  .cell-tool-header,
  .wb-planner-hero {
    background-image:
      linear-gradient(90deg, rgba(4, 39, 37, .97), rgba(4, 39, 37, .82)),
      linear-gradient(180deg, rgba(4, 39, 37, .15), rgba(4, 39, 37, .52)),
      var(--page-hero-image);
    background-position: center, center, 72% center;
  }

  .form-page-header,
  .editor-page-heading,
  .cell-tool-header { padding-right: 18px; }

  .gel-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .protocols-hero aside {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .protocols-hero aside small { grid-column: 1 / -1; }

  .personal-records-hero aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-protocols-hero > aside,
  .solutions-hero > aside,
  .cell-stocks-hero aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .supplies-hero-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tools-hero-count {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .gel-home-hero h1,
  .supplies-hero h1,
  .protocols-hero h1,
  .cell-stocks-hero h1,
  .tools-hero h1,
  .personal-records-hero h1,
  .lab-protocols-hero h1,
  .solutions-hero h1,
  .detail-hero h1,
  .lab-protocol-detail-hero h1,
  .solution-detail-hero h1,
  .personal-record-detail-hero h1,
  .solution-prepare-heading h1,
  .wb-planner-hero h1 { font-size: 31px; }

  .gel-home-hero,
  .supplies-hero,
  .protocols-hero,
  .cell-stocks-hero,
  .tools-hero,
  .personal-records-hero,
  .lab-protocols-hero,
  .solutions-hero {
    padding: 18px 16px;
  }

  .gel-hero-stats > div:not(.gel-hero-apps):not(.gel-hero-visual),
  .lab-protocols-hero > aside span,
  .solutions-hero > aside span,
  .cell-stocks-hero aside > span {
    min-height: 58px;
    padding: 7px 5px;
  }

  .gel-hero-stats span,
  .lab-protocols-hero > aside small,
  .solutions-hero > aside small,
  .cell-stocks-hero aside small {
    font-size: clamp(9px, 2.6vw, 10px);
    line-height: 1.25;
  }
}

/* Route memories: every authenticated banner keeps the shared teal surface,
   while its scene crop, accent light, and quiet CSS motif identify the task. */
.page-wrap {
  --page-hero-image-size: 116% auto;
  --page-hero-mobile-size: auto 108%;
  --page-hero-mobile-position: 82% center;
  --page-hero-accent: #8fe6d7;
  --page-hero-motif: radial-gradient(circle at 84% 26%, color-mix(in srgb, var(--page-hero-accent) 22%, transparent) 0 2px, transparent 3px 24px, color-mix(in srgb, var(--page-hero-accent) 12%, transparent) 25px, transparent 26px 50px);
}

.home-page { --page-hero-image: url("/immutable-assets/visuals/hero-antibody-discovery-69841a67b76c.webp"); --page-hero-image-size: 112% auto; --page-hero-image-position: 78% 38%; --page-hero-accent: #8fe6d7; }
.detail-page { --page-hero-image: url("/immutable-assets/visuals/hero-antibody-discovery-69841a67b76c.webp"); --page-hero-image-size: 125% auto; --page-hero-image-position: 68% 30%; --page-hero-accent: #61d7ea; }
.antibody-create-page { --page-hero-image: url("/immutable-assets/visuals/hero-antibody-discovery-69841a67b76c.webp"); --page-hero-image-size: 138% auto; --page-hero-image-position: 86% 70%; --page-hero-accent: #8fe6d7; }
.antibody-edit-page { --page-hero-image: url("/immutable-assets/visuals/hero-antibody-discovery-69841a67b76c.webp"); --page-hero-image-size: 132% auto; --page-hero-image-position: 72% 34%; --page-hero-accent: #b7a7ff; }
.usage-report-create-page { --page-hero-image: url("/immutable-assets/visuals/hero-antibody-discovery-69841a67b76c.webp"); --page-hero-image-size: 140% auto; --page-hero-image-position: 62% 70%; --page-hero-accent: #ed7db8; }
.usage-report-edit-page { --page-hero-image: url("/immutable-assets/visuals/hero-antibody-discovery-69841a67b76c.webp"); --page-hero-image-size: 142% auto; --page-hero-image-position: 88% 71%; --page-hero-accent: #f1c87a; }
.admin-page.admin-datasheets-page { --page-hero-image: url("/immutable-assets/visuals/hero-antibody-discovery-69841a67b76c.webp"); --page-hero-image-size: 135% auto; --page-hero-image-position: 64% 28%; --page-hero-accent: #f1c87a; }

.supplies-page { --page-hero-image-size: 125% auto; --page-hero-image-position: 54% 47%; --page-hero-accent: #8fe6d7; }
.supply-create-page { --page-hero-image-size: 135% auto; --page-hero-image-position: 94% 56%; --page-hero-accent: #ed7db8; }
.supply-edit-page { --page-hero-image-size: 145% auto; --page-hero-image-position: 52% 46%; --page-hero-accent: #61d7ea; }
.cell-stocks-page { --page-hero-image: url("/immutable-assets/visuals/hero-cell-culture-05f1918bc471.webp"); --page-hero-image-size: 118% auto; --page-hero-image-position: 74% 38%; --page-hero-accent: #7ebbff; }
.cell-stock-create-page { --page-hero-image: url("/immutable-assets/visuals/hero-cell-culture-05f1918bc471.webp"); --page-hero-image-size: 140% auto; --page-hero-image-position: 67% 75%; --page-hero-accent: #61d7ea; }
.cell-stock-edit-page { --page-hero-image: url("/immutable-assets/visuals/hero-cell-culture-05f1918bc471.webp"); --page-hero-image-size: 138% auto; --page-hero-image-position: 73% 34%; --page-hero-accent: #b7a7ff; }
.admin-page.location-admin-page { --page-hero-image-size: 132% auto; --page-hero-image-position: 95% 56%; --page-hero-accent: #ed7db8; }

.protocols-page { --page-hero-image-size: 116% auto; --page-hero-image-position: 73% 54%; --page-hero-accent: #8fe6d7; }
.protocol-create-page { --page-hero-image-size: 140% auto; --page-hero-image-position: 92% 36%; --page-hero-accent: #61d7ea; }
.protocol-edit-page { --page-hero-image-size: 140% auto; --page-hero-image-position: 62% 38%; --page-hero-accent: #b7a7ff; }
.admin-page.protocol-admin-page { --page-hero-image-size: 130% auto; --page-hero-image-position: 77% 64%; --page-hero-accent: #f1c87a; }
.admin-page.admin-cell-detail-page { --page-hero-image: url("/immutable-assets/visuals/hero-cell-culture-05f1918bc471.webp"); --page-hero-image-size: 145% auto; --page-hero-image-position: 50% 76%; --page-hero-accent: #ed7db8; }
.admin-page.admin-reagent-detail-page { --page-hero-image-size: 145% auto; --page-hero-image-position: 79% 21%; --page-hero-accent: #61d7ea; }

.lab-protocols-page { --page-hero-image-size: 116% auto; --page-hero-image-position: 70% 52%; --page-hero-accent: #8fe6d7; }
.lab-protocol-create-page { --page-hero-image-size: 140% auto; --page-hero-image-position: 86% 26%; --page-hero-accent: #8fe6d7; }
.lab-protocol-import-page { --page-hero-image-size: 142% auto; --page-hero-image-position: 67% 24%; --page-hero-accent: #61d7ea; }
.lab-protocol-detail-page { --page-hero-image-size: 126% auto; --page-hero-image-position: 72% 53%; --page-hero-accent: #f1c87a; }
.lab-protocol-edit-page { --page-hero-image-size: 145% auto; --page-hero-image-position: 54% 49%; --page-hero-accent: #b7a7ff; }

.solutions-page { --page-hero-image: url("/immutable-assets/visuals/hero-solution-chemistry-6a8affc0cd43.webp"); --page-hero-image-size: 116% auto; --page-hero-image-position: 67% 48%; --page-hero-accent: #8fe6d7; }
.solution-create-page { --page-hero-image: url("/immutable-assets/visuals/hero-solution-chemistry-6a8affc0cd43.webp"); --page-hero-image-size: 142% auto; --page-hero-image-position: 49% 70%; --page-hero-accent: #61d7ea; }
.solution-detail-page { --page-hero-image: url("/immutable-assets/visuals/hero-solution-chemistry-6a8affc0cd43.webp"); --page-hero-image-size: 130% auto; --page-hero-image-position: 67% 46%; --page-hero-accent: #ed7db8; }
.solution-edit-page { --page-hero-image: url("/immutable-assets/visuals/hero-solution-chemistry-6a8affc0cd43.webp"); --page-hero-image-size: 138% auto; --page-hero-image-position: 75% 55%; --page-hero-accent: #b7a7ff; }
.solution-prepare-page { --page-hero-image: url("/immutable-assets/visuals/hero-solution-chemistry-6a8affc0cd43.webp"); --page-hero-image-size: 142% auto; --page-hero-image-position: 88% 42%; --page-hero-accent: #f1c87a; }

.personal-records-page { --page-hero-image-size: 116% auto; --page-hero-image-position: 74% 45%; --page-hero-accent: #8fe6d7; }
.personal-record-create-hero { --page-hero-image-size: 140% auto; --page-hero-image-position: 76% 74%; --page-hero-accent: #61d7ea; }
.personal-record-detail-page { --page-hero-image-size: 138% auto; --page-hero-image-position: 59% 63%; --page-hero-accent: #b7a7ff; }
.account-settings-page { --page-hero-image-size: 132% auto; --page-hero-image-position: 58% 64%; --page-hero-accent: #61d7ea; }
.account-page { --page-hero-image: url("/immutable-assets/visuals/hero-team-admin-c0e72416b4e7.webp"); --page-hero-image-size: 140% auto; --page-hero-image-position: 84% 18%; --page-hero-accent: #ed7db8; }
.admin-overview-page { --page-hero-image: url("/immutable-assets/visuals/hero-team-admin-c0e72416b4e7.webp"); --page-hero-image-size: 118% auto; --page-hero-image-position: 72% 43%; --page-hero-accent: #f1c87a; }
.admin-backups-page { --page-hero-image-size: 142% auto; --page-hero-image-position: 78% 75%; --page-hero-accent: #7ebbff; }
.admin-members-page { --page-hero-image: url("/immutable-assets/visuals/hero-team-admin-c0e72416b4e7.webp"); --page-hero-image-size: 145% auto; --page-hero-image-position: 88% 18%; --page-hero-accent: #8fe6d7; }

.tools-home-page { --page-hero-image-size: 116% auto; --page-hero-image-position: 70% 52%; --page-hero-accent: #8fe6d7; }
.dilution-tool-page { --page-hero-image: url("/immutable-assets/visuals/hero-solution-chemistry-6a8affc0cd43.webp"); --page-hero-image-size: 135% auto; --page-hero-image-position: 67% 47%; --page-hero-accent: #61d7ea; }
.agarose-tool-page { --page-hero-image: url("/immutable-assets/visuals/hero-gel-pcr-f6b017ea2cf5.webp"); --page-hero-image-size: 132% auto; --page-hero-image-position: 58% 30%; --page-hero-accent: #f1c87a; }
.restriction-digest-tool-page { --page-hero-image: url("/immutable-assets/visuals/hero-restriction-digest-3440bac67c8a.webp"); --page-hero-image-size: 132% auto; --page-hero-image-position: 62% 30%; --page-hero-accent: #ed7db8; }
.wb-loading-page { --page-hero-image: url("/immutable-assets/visuals/hero-western-blot-1a6e92201cb0.webp"); --page-hero-image-size: 138% auto; --page-hero-image-position: 61% 57%; --page-hero-accent: #61d7ea; }
.wb-gel-page { --page-hero-image: url("/immutable-assets/visuals/hero-gel-pcr-f6b017ea2cf5.webp"); --page-hero-image-size: 138% auto; --page-hero-image-position: 84% 28%; --page-hero-accent: #b7a7ff; }
.wb-planner-page { --page-hero-image: url("/immutable-assets/visuals/hero-western-blot-1a6e92201cb0.webp"); --page-hero-image-size: 140% auto; --page-hero-image-position: 84% 70%; --page-hero-accent: #ed7db8; }
.pcr-master-mix-page { --page-hero-image: url("/immutable-assets/visuals/hero-gel-pcr-f6b017ea2cf5.webp"); --page-hero-image-size: 138% auto; --page-hero-image-position: 72% 55%; --page-hero-accent: #61d7ea; }
.primer-analyzer-tool-page { --page-hero-image: url("/immutable-assets/visuals/hero-primer-analysis-85d982a90832.webp"); --page-hero-image-size: 140% auto; --page-hero-image-position: 86% 27%; --page-hero-accent: #8fe6d7; }
.nebuilder-tool-page { --page-hero-image: url("/immutable-assets/visuals/hero-dna-assembly-ca260d1053b0.webp"); --page-hero-image-size: 140% auto; --page-hero-image-position: 87% 72%; --page-hero-accent: #b7a7ff; }
.cell-suspension-tool-page { --page-hero-image: url("/immutable-assets/visuals/hero-cell-culture-05f1918bc471.webp"); --page-hero-image-size: 145% auto; --page-hero-image-position: 56% 68%; --page-hero-accent: #8fe6d7; }
.fugene-tool-page { --page-hero-image: url("/immutable-assets/visuals/hero-transfection-485decb5368f.webp"); --page-hero-image-size: 142% auto; --page-hero-image-position: 92% 34%; --page-hero-accent: #ed7db8; }

.gel-home-hero,
.supplies-hero,
.protocols-hero,
.cell-stocks-hero,
.tools-hero,
.personal-records-hero,
.lab-protocols-hero,
.solutions-hero,
.detail-hero,
.lab-protocol-detail-hero,
.solution-detail-hero,
.personal-record-detail-hero,
.solution-prepare-heading,
.form-page-header,
.editor-page-heading,
.admin-dashboard-header,
.admin-subpage-header,
.account-settings-hero,
.cell-tool-header,
.wb-planner-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 43, 40, .98) 0%, rgba(5, 43, 40, .92) 39%, rgba(5, 43, 40, .62) 68%, rgba(5, 43, 40, .48) 100%),
    var(--page-hero-motif),
    var(--page-hero-image);
  background-position: center, center, var(--page-hero-image-position);
  background-size: cover, cover, var(--page-hero-image-size);
  box-shadow: inset 3px 0 var(--page-hero-accent), 0 18px 42px rgba(13, 47, 42, .12);
}

@media (max-width: 720px) {
  .gel-home-hero,
  .supplies-hero,
  .protocols-hero,
  .cell-stocks-hero,
  .tools-hero,
  .personal-records-hero,
  .lab-protocols-hero,
  .solutions-hero,
  .detail-hero,
  .lab-protocol-detail-hero,
  .solution-detail-hero,
  .personal-record-detail-hero,
  .solution-prepare-heading,
  .form-page-header,
  .editor-page-heading,
  .admin-dashboard-header,
  .admin-subpage-header,
  .account-settings-hero,
  .cell-tool-header,
  .wb-planner-hero {
    background-image:
      linear-gradient(90deg, rgba(4, 39, 37, .97), rgba(4, 39, 37, .82)),
      var(--page-hero-motif),
      var(--page-hero-image);
    background-position: center, center, var(--page-hero-mobile-position);
    background-size: cover, cover, var(--page-hero-mobile-size);
  }
}

@media (max-width: 360px) {
  .gel-hero-stats,
  .lab-protocols-hero > aside,
  .solutions-hero > aside,
  .cell-stocks-hero aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gel-hero-stats > :nth-child(3),
  .lab-protocols-hero > aside > :nth-child(3),
  .solutions-hero > aside > :nth-child(3),
  .cell-stocks-hero aside > :nth-child(3) {
    grid-column: 1 / -1;
  }
}
}

@layer site-28 {
/* Route transitions keep the current page interactive while the next server
   response is loading. The indicator only animates compositor properties. */
.navigation-feedback {
  position: fixed;
  z-index: 10000;
  inset: 0 0 auto;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.navigation-feedback > span {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, #0f766e, #2dd4bf);
  box-shadow: 0 0 12px rgba(20, 184, 166, .36);
  transform: translateX(-105%);
  transition: transform 220ms ease-out;
}

html[data-navigation-state="pending"] .navigation-feedback {
  opacity: 1;
  transform: translateY(0);
}

html[data-navigation-state="pending"] .navigation-feedback > span {
  transform: translateX(18%);
}

@media (prefers-reduced-motion: reduce), print {
  .navigation-feedback,
  .navigation-feedback > span {
    transition: none !important;
  }
}
}
