:root {
  --lab-surface: rgba(255, 255, 255, 0.88);
  --lab-border: rgba(17, 24, 39, 0.08);
  --lab-dark: #101726;
  --lab-text: #223046;
  --lab-text-soft: #5f6d84;
  --lab-shadow: 0 24px 60px rgba(12, 18, 31, 0.12);
}

.lab-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(192, 40, 43, 0.08), transparent 26%),
    radial-gradient(circle at bottom right, rgba(17, 24, 39, 0.08), transparent 30%),
    #f7f5f2;
  color: var(--lab-text);
}

.lab-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 0;
  background: rgba(247, 245, 242, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.05);
}

.lab-header__inner,
.lab-header__brand,
.lab-header__actions,
.lab-chip,
.lab-card__head,
.lab-question__head,
.lab-match__topline,
.lab-results__meta,
.lab-hero__mini {
  display: flex;
  align-items: center;
}

.lab-header__inner {
  justify-content: space-between;
  gap: 18px;
}

.lab-header__brand {
  gap: 16px;
  color: var(--dark);
}

.lab-header__brand img {
  width: clamp(64px, 7vw, 92px);
  height: auto;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85))
    drop-shadow(0 12px 18px rgba(17, 24, 39, 0.1));
}

.lab-header__eyebrow {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}

.lab-header__brand strong {
  display: block;
  font-family: var(--fh);
  font-size: 20px;
  line-height: 1.1;
}

.lab-header__actions {
  gap: 14px;
}

.lab-header__badge,
.lab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
}

.lab-hero {
  padding: 42px 0 18px;
}

.lab-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: stretch;
}

.lab-hero__copy,
.lab-hero__card,
.lab-card {
  border: 1px solid var(--lab-border);
  border-radius: 28px;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow);
}

.lab-hero__copy {
  padding: clamp(28px, 4vw, 42px);
}

.lab-hero__copy h1,
.lab-hero__copy h2 {
  margin: 12px 0 18px;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.lab-hero__lead {
  max-width: 64ch;
  font-size: 18px;
  color: var(--lab-text-soft);
  line-height: 1.75;
}

.lab-hero__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.lab-chip {
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.lab-chip strong {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(192, 40, 43, 0.12);
  color: var(--red);
  font-size: 13px;
}

.lab-chip span {
  font-size: 14px;
  line-height: 1.55;
  color: var(--lab-text);
}

.lab-hero__card {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 241, 0.9));
}

.lab-hero__mini {
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.lab-dot {
  width: 14px;
  height: 14px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #49b36f, #2d8f54);
  box-shadow: 0 0 0 8px rgba(73, 179, 111, 0.12);
}

.lab-hero__mini strong,
.lab-card__head h2,
.lab-question__head h3,
.lab-match h3,
.lab-alt h4,
.lab-reasons h4 {
  font-family: var(--fh);
}

.lab-hero__mini strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.lab-hero__mini p,
.lab-hero__list li,
.lab-card__head p,
.lab-question__head p,
.lab-upload__hint,
.lab-results__empty p,
.lab-match p,
.lab-note,
.lab-roadmap li {
  color: var(--lab-text-soft);
  line-height: 1.7;
}

.lab-hero__list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.lab-hero__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
}

.lab-hero__list li::before,
.lab-reasons li::before,
.lab-roadmap li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
}

.lab-app {
  padding-top: 12px;
  padding-bottom: 80px;
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 26px;
  align-items: start;
}

.lab-main {
  display: grid;
  gap: 24px;
}

.lab-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 24px;
}

.lab-card {
  padding: 28px;
}

.lab-card__head {
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.lab-card__head h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.lab-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(192, 40, 43, 0.1);
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lab-upload__dropzone {
  position: relative;
  display: block;
  min-height: 300px;
  border: 1.5px dashed rgba(17, 24, 39, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(247, 242, 236, 0.95));
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.lab-upload__dropzone:hover {
  border-color: rgba(192, 40, 43, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.09);
}

.lab-upload__dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.lab-upload__placeholder,
.lab-upload__preview {
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.lab-upload__preview img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.lab-upload__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(192, 40, 43, 0.12);
  color: var(--red);
  font-size: 34px;
  font-weight: 300;
}

.lab-upload__placeholder strong,
.lab-question__head h3,
.lab-match h3,
.lab-results__meta strong,
.lab-alt__item strong {
  color: var(--dark);
}

.lab-upload__placeholder strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--fh);
  font-size: 22px;
}

.lab-upload__placeholder span {
  font-size: 14px;
  color: var(--lab-text-soft);
}

.lab-upload__hint {
  margin-top: 16px;
  font-size: 14px;
}

.lab-upload__mode {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 242, 236, 0.72));
}

.lab-upload__mode-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lab-upload__mode-top strong {
  color: var(--dark);
  font-family: var(--fh);
  font-size: 18px;
}

.lab-upload__mode-top span,
.lab-upload__mode-help {
  color: var(--lab-text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.lab-upload__mode-help {
  margin: 0;
}

.lab-mode-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lab-mode-chip {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.lab-mode-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(192, 40, 43, 0.24);
  box-shadow: 0 14px 24px rgba(17, 24, 39, 0.08);
}

.lab-mode-chip.is-selected {
  border-color: rgba(192, 40, 43, 0.32);
  background: rgba(192, 40, 43, 0.1);
  color: var(--red);
}

.lab-upload__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.lab-upload__actions .btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

.lab-upload__actions .btn.is-loading {
  position: relative;
  padding-left: 42px;
}

.lab-upload__actions .btn.is-loading::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  opacity: .9;
  animation: lab-spin .7s linear infinite;
}

@keyframes lab-spin {
  to { transform: rotate(360deg); }
}

.lab-upload__status {
  flex: 1 1 auto;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.04);
  color: var(--lab-text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.lab-upload__status.is-loading {
  background: rgba(192, 40, 43, 0.08);
  color: var(--dark);
}

.lab-ai-loader {
  display: grid;
  gap: 10px;
}

.lab-ai-loader__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lab-ai-loader__head strong {
  font-size: 15px;
  color: var(--dark);
}

.lab-ai-loader__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(16, 23, 38, 0.28);
  border-top-color: rgba(192, 40, 43, 0.95);
  border-right-color: rgba(192, 40, 43, 0.55);
  animation: lab-spin .75s linear infinite;
}

.lab-ai-loader__phase {
  font-size: 13px;
  color: var(--lab-text-soft);
}

.lab-ai-loader__progress {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.12);
}

.lab-ai-loader__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c0282b 0%, #df5d5f 52%, #f18f72 100%);
  transition: width .32s ease;
}

.lab-upload__status.is-success {
  background: rgba(73, 179, 111, 0.12);
  color: #1f5132;
}

.lab-upload__status.is-error {
  background: rgba(192, 40, 43, 0.1);
  color: #8d201f;
}

.lab-quick {
  display: grid;
  gap: 18px;
}

.lab-scenarios__grid,
.lab-source {
  display: grid;
  gap: 12px;
}

.lab-scenarios__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lab-scenario {
  text-align: left;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247, 242, 236, 0.88));
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lab-scenario:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 40, 43, 0.24);
  box-shadow: 0 16px 28px rgba(17, 24, 39, 0.08);
}

.lab-scenario strong {
  display: block;
  margin-bottom: 8px;
  color: var(--dark);
  font-family: var(--fh);
  font-size: 19px;
  line-height: 1.05;
}

.lab-scenario span {
  display: block;
  color: var(--lab-text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.lab-quick__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.lab-quick__search input {
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.9);
  padding: 0 18px;
  color: var(--dark);
  font: inherit;
  font-size: 15px;
}

.lab-quick__search input:focus {
  outline: none;
  border-color: rgba(192, 40, 43, 0.32);
  box-shadow: 0 0 0 4px rgba(192, 40, 43, 0.08);
}

.lab-quick__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lab-quick-card {
  text-align: left;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}

.lab-quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.08);
  border-color: rgba(192, 40, 43, 0.25);
}

.lab-quick-card.is-selected {
  background: linear-gradient(160deg, rgba(212, 69, 53, 0.14), rgba(255, 255, 255, 0.94));
  border-color: rgba(192, 40, 43, 0.35);
  box-shadow: 0 18px 34px rgba(192, 40, 43, 0.12);
}

.lab-quick-card.is-dimmed {
  opacity: 0.42;
}

.lab-quick-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 28px;
}

.lab-quick-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--dark);
  font-family: var(--fh);
  font-size: 18px;
  line-height: 1.05;
}

.lab-quick-card small {
  display: block;
  color: var(--lab-text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.lab-quick__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.lab-quick__hint,
.lab-questions__notice {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(17, 24, 39, 0.035);
}

.lab-quick__hint {
  max-width: 460px;
}

.lab-quick__hint strong,
.lab-questions__notice strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--fh);
  font-size: 15px;
  color: var(--dark);
}

.lab-quick__hint span,
.lab-questions__notice p {
  display: block;
  margin: 0;
  color: var(--lab-text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.lab-questions {
  display: grid;
  gap: 18px;
}

.lab-question {
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.lab-question__head {
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.lab-question__head strong {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(17, 24, 39, 0.08);
  color: var(--dark);
  font-size: 14px;
}

.lab-question__head h3 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.15;
}

.lab-question__count {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--lab-text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lab-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lab-option {
  position: relative;
  padding: 12px 16px;
  padding-left: 46px;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255,255,255,0.88);
  color: var(--dark);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.lab-option::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  border: 1.5px solid rgba(17, 24, 39, 0.18);
  background: #fff;
  transform: translateY(-50%);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.lab-option:hover {
  transform: translateY(-1px);
  border-color: rgba(192, 40, 43, 0.24);
}

.lab-option.is-selected {
  background: linear-gradient(135deg, rgba(212, 69, 53, 0.14), rgba(255, 255, 255, 0.96));
  color: var(--dark);
  border-color: rgba(192, 40, 43, 0.26);
  box-shadow: 0 14px 26px rgba(192, 40, 43, 0.12);
}

.lab-option.is-selected::before {
  border-color: rgba(192, 40, 43, 0.4);
  background: linear-gradient(135deg, #d44535, #b82826);
  box-shadow: 0 10px 18px rgba(192, 40, 43, 0.18);
}

.lab-option.is-selected::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 50%;
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-58%) rotate(45deg);
}

.lab-quick-card {
  position: relative;
}

.lab-quick-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(17, 24, 39, 0.14);
  background: rgba(255, 255, 255, 0.92);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.lab-quick-card.is-selected::after {
  background: linear-gradient(135deg, #d44535, #b82826);
  border-color: rgba(192, 40, 43, 0.22);
  box-shadow: 0 12px 20px rgba(192, 40, 43, 0.18);
}

.lab-quick-card.is-selected::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 20px;
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  z-index: 1;
}

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

.lab-actions--stack {
  flex-direction: column;
  align-items: stretch;
}

.lab-actions--stack .btn {
  width: 100%;
  justify-content: center;
}

.lab-results__empty {
  padding: 24px;
  border-radius: 24px;
  background: rgba(247, 245, 242, 0.8);
  text-align: center;
}

.lab-results__empty-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.08);
  color: var(--dark);
  font-family: var(--fh);
  font-size: 26px;
  font-weight: 800;
}

.lab-results__empty h3 {
  margin: 0 0 8px;
  font-family: var(--fh);
  font-size: 28px;
  line-height: 1;
}

.lab-results__content.is-hidden,
.lab-upload__preview.is-hidden,
.lab-upload__placeholder.is-hidden,
.is-hidden {
  display: none !important;
}

.lab-match--top {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(28, 36, 53, 0.97));
  color: rgba(255, 255, 255, 0.82);
}

.lab-match__topline {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.lab-badge {
  min-height: 34px;
  padding-inline: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
}

.lab-confidence {
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.lab-match--top h3 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 0.95;
  color: #fff;
}

.lab-match--top p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.lab-progress {
  width: 100%;
  height: 8px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}

.lab-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff875d, #d44535);
  transition: width .25s ease;
}

.lab-species {
  margin-top: 18px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(192, 40, 43, 0.12);
  background: linear-gradient(180deg, rgba(192, 40, 43, 0.08), rgba(192, 40, 43, 0.03));
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.lab-species__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.lab-species__label,
.lab-species__scientific-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(192, 40, 43, 0.1);
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-species__confidence {
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
}

.lab-species__name {
  display: block;
  margin: 0;
  font-family: var(--fh);
  font-size: 24px;
  line-height: 1.05;
  color: var(--dark);
}

.lab-species__scientific-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.lab-species__scientific {
  font-size: 15px;
  font-style: italic;
  color: var(--lab-text-soft);
}

.lab-species__note {
  margin: 12px 0 0;
  color: var(--lab-text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.lab-species-alt {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(192, 40, 43, 0.22);
}

.lab-species-alt h4 {
  margin: 0 0 10px;
  font-family: var(--fh);
  font-size: 15px;
  color: var(--dark);
}

.lab-species-alt__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.lab-species-alt__item {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.lab-species-alt__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.lab-species-alt__top strong {
  font-family: var(--fh);
  font-size: 15px;
  color: var(--dark);
}

.lab-species-alt__top span {
  font-size: 12px;
  color: var(--lab-text-soft);
  white-space: nowrap;
}

.lab-species-alt__sci {
  margin-top: 4px;
  font-size: 13px;
  color: #6f7d94;
}

.lab-species-alt__item p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--lab-text-soft);
}

.lab-results__meta {
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.lab-results__meta > div {
  flex: 1 1 0;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.04);
}

.lab-results__meta span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lab-text-soft);
}

.lab-results__meta strong {
  font-family: var(--fh);
  font-size: 17px;
  line-height: 1.3;
}

.lab-source {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.lab-source__chip {
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(17, 24, 39, 0.04);
}

.lab-source__chip.is-active {
  border-color: rgba(192, 40, 43, 0.2);
  background: rgba(192, 40, 43, 0.08);
}

.lab-source__chip strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--fh);
  font-size: 14px;
  color: var(--dark);
}

.lab-source__chip span {
  display: block;
  color: var(--lab-text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.lab-reasons,
.lab-alt {
  margin-top: 20px;
}

.lab-reasons h4,
.lab-alt h4 {
  margin-bottom: 12px;
  font-size: 18px;
}

.lab-reasons ul,
.lab-roadmap {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.lab-reasons li,
.lab-roadmap li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
}

.lab-alt__list {
  display: grid;
  gap: 10px;
}

.lab-alt__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.lab-alt__item strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--fh);
  font-size: 17px;
}

.lab-alt__item span {
  color: var(--lab-text-soft);
  font-size: 14px;
}

.lab-alt__score {
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 800;
  color: var(--red);
}

.lab-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(192, 40, 43, 0.06);
  border: 1px solid rgba(192, 40, 43, 0.12);
  font-size: 14px;
}

.lab-roadmap li {
  position: relative;
}

@media (max-width: 1180px) {
  .lab-hero__grid,
  .lab-layout {
    grid-template-columns: 1fr;
  }

  .lab-sidebar {
    position: static;
  }

  .lab-quick__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .lab-header {
    padding: 12px 0;
  }

  .lab-header__inner,
  .lab-header__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lab-header__actions {
    gap: 10px;
  }

  .lab-header__badge,
  .lab-header .btn {
    justify-content: center;
  }

  .lab-hero {
    padding-top: 24px;
  }

  .lab-hero__copy,
  .lab-card,
  .lab-hero__card {
    padding: 22px;
    border-radius: 22px;
  }

  .lab-hero__points {
    grid-template-columns: 1fr;
  }

  .lab-question {
    padding: 18px;
  }

  .lab-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lab-upload__actions,
  .lab-quick__search {
    grid-template-columns: 1fr;
    display: grid;
  }

  .lab-upload__mode-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .lab-quick__grid {
    grid-template-columns: 1fr 1fr;
  }

  .lab-scenarios__grid,
  .lab-source {
    grid-template-columns: 1fr;
  }

  .lab-quick__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .lab-quick__hint {
    max-width: none;
  }

  .lab-question__count {
    width: 100%;
    text-align: center;
  }

  .lab-option {
    text-align: left;
  }

  .lab-results__meta {
    flex-direction: column;
  }

  .lab-species__head,
  .lab-species__scientific-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .lab-species-alt__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .lab-header__brand {
    gap: 12px;
  }

  .lab-header__brand img {
    width: 62px;
  }

  .lab-header__brand strong {
    font-size: 18px;
  }

  .lab-card__head {
    flex-direction: column;
    gap: 12px;
  }

  .lab-card__head h2 {
    font-size: 28px;
  }

  .lab-question__head {
    gap: 10px;
  }

  .lab-question__head h3 {
    font-size: 18px;
  }

  .lab-match--top h3 {
    font-size: 28px;
  }

  .lab-species__name {
    font-size: 21px;
  }

  .lab-quick__grid {
    grid-template-columns: 1fr;
  }

  .lab-mode-chip {
    width: 100%;
  }
}
