/* Prevent horizontal layout shift caused by scrollbar appearing/disappearing */
html {
  scrollbar-gutter: stable;
}

/* Fallback for older browsers */
html, body {
  min-height: 100vh;
  overflow-y: scroll;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
}

:root {
  --option-card-height: 190px;
  --option-icon-area: 124px;
  --option-label-area: 54px;
  --option-icon-size: 104px;
}

.bee-app-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;

  background-image: repeating-linear-gradient(
    35deg,
    rgba(255, 230, 120, 0.05) 0px,
    rgba(255, 230, 120, 0.05) 60px,
    rgba(255, 230, 120, 0) 60px,
    rgba(255, 230, 120, 0) 120px
  );
  background-attachment: local;
  background-color: #fffdf5;
}

/* Container */
.bee-id-app {
  max-width: 1000px;
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 1.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

/* Main outer card for each step */
.bee-step-shell {
  width: 960px;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px 32px 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  box-sizing: border-box;
}

@media (min-width: 960px) {
  .bee-step-shell {
    min-width: 960px;
  }
}

.bee-step-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bee-step-header {
  margin-bottom: 16px;
}

.bee-step-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.bee-preview-panel {
  flex: 0 0 260px;
  max-width: 260px;
  width: 100%;
}

.bee-options-panel {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.bee-options-panel .bee-question-card {
  min-height: 0;
}

.bee-step-title {
  margin: 0 0 4px;
}

.bee-step-intro {
  margin: 0 0 20px;
  color: #555;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .bee-step-layout {
    flex-direction: column;
  }

  .bee-preview-panel {
    max-width: none;
    order: 1;
    flex: 1 1 auto;
  }

  .bee-options-panel {
    order: 2;
  }
}

/* Live preview */
.bee-preview-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-height: 320px;
}

.bee-preview-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto 0.75rem;
}

.bee-preview-fx {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 210px;
  --mx: 0px;
  --my: 0px;
  --drift: 10px;
}

.bee-hover-bee {
  position: relative;
  z-index: 2;
  transform: translateY(0);
  will-change: transform;
}

.bee-hover-drift {
  transform: translate3d(var(--mx), var(--my), 0);
  will-change: transform;
}

.bee-preview--takeoff .bee-hover-bee {
  animation: beeTakeoff 900ms cubic-bezier(.2, .9, .2, 1) forwards;
}

.bee-preview--takeoff .bee-layer-shadow {
  animation: shadowTakeoffSvg 900ms cubic-bezier(.2, .9, .2, 1) forwards;
}

.bee-preview--hover .bee-hover-bee {
  animation: beeHover 1800ms ease-in-out infinite;
}

.bee-preview--hover .bee-layer-shadow {
  animation: shadowHoverSvg 1800ms ease-in-out infinite;
}

/* Scaled bee model container */
.bee-model {
  --bee-size: 130px;
  --wing-left-origin-x: 48%;
  --wing-left-origin-y: 42%;
  --wing-right-origin-x: 52%;
  --wing-right-origin-y: 42%;
  --wing-flap-angle: 12deg;
  --wing-flap-duration: 120ms;
  display: grid;
  width: var(--bee-size);
  height: var(--bee-size);
  position: relative;
  place-items: center;
}

.bee-model--small {
  --wing-flap-angle: 9deg;
  --wing-flap-duration: 140ms;
}

.bee-model--medium {
  --wing-flap-angle: 12deg;
  --wing-flap-duration: 120ms;
}

.bee-model--large {
  --wing-flap-angle: 14deg;
  --wing-flap-duration: 110ms;
}

.bee-model__stage {
  width: 100%;
  height: 100%;
  position: relative;
  transform: scale(var(--bee-scale, 1));
  transform-origin: center;
}

.bee-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.bee-layer-shadow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0;
  transform: translateY(10%) scale(calc(var(--shadow-scale, 1) * 0.7));
  transform-origin: center;
  will-change: transform, opacity;
}


.bee-layer-base { z-index: 2; }
.bee-layer-abdomen { z-index: 3; }
.bee-layer-tail-tip { z-index: 4; }
.bee-layer-thorax { z-index: 5; }
.bee-layer-thorax-patch { z-index: 6; }
.bee-layer-head { z-index: 7; }
.bee-layer-banding { z-index: 8; }
.bee-layer-wing { z-index: 9; }
.bee-layer-outline { z-index: 10; }

.bee-layer-wing {
  will-change: transform;
}

.bee-layer-wing-left {
  transform-origin: var(--wing-left-origin-x) var(--wing-left-origin-y);
}

.bee-layer-wing-right {
  transform-origin: var(--wing-right-origin-x) var(--wing-right-origin-y);
}

.bee-wings-animating .bee-layer-wing-left {
  animation: wingFlapLeft var(--wing-flap-duration) ease-in-out infinite;
}

.bee-wings-animating .bee-layer-wing-right {
  animation: wingFlapRight var(--wing-flap-duration) ease-in-out infinite;
}

@keyframes wingFlapLeft {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(calc(var(--wing-flap-angle) * -1));
  }
}

@keyframes wingFlapRight {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(var(--wing-flap-angle));
  }
}

@keyframes beeTakeoff {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-18px);
  }
}

@keyframes shadowTakeoffSvg {
  0% {
    opacity: 0.42;
    transform: translateY(10%) scale(calc(var(--shadow-scale, 1) * 1.05));
  }
  100% {
    opacity: 0.2;
    transform: translateY(10%) scale(calc(var(--shadow-scale, 1) * 0.7));
  }
}

@keyframes beeHover {
  0%, 100% {
    transform: translateY(-18px);
  }
  50% {
    transform: translateY(-26px);
  }
}

@keyframes shadowHoverSvg {
  0%, 100% {
    opacity: 0.32;
    transform: translateY(10%) scale(calc(var(--shadow-scale, 1) * 0.85));
  }
  50% {
    opacity: 0.18;
    transform: translateY(10%) scale(calc(var(--shadow-scale, 1) * 0.7));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bee-wings-animating .bee-layer-wing-left,
  .bee-wings-animating .bee-layer-wing-right {
    animation: none !important;
  }

  .bee-preview--takeoff .bee-hover-bee,
  .bee-preview--hover .bee-hover-bee,
  .bee-preview--takeoff .bee-layer-shadow,
  .bee-preview--hover .bee-layer-shadow {
    animation: none !important;
  }

  .bee-preview--takeoff .bee-layer-shadow,
  .bee-preview--hover .bee-layer-shadow {
    opacity: 0.12;
    transform: translateY(18%) scale(0.55);
  }
}

.bee-preview-caption {
  font-size: 0.75rem;
  line-height: 1.3;
  color: #6b7280;
  text-align: center;
  max-width: 220px;
  margin: 0 auto;
}

.nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  width: 100%;
}

.bee-nav-back {
  order: 1;
}

.bee-nav-next {
  order: 2;
}

.bee-nav-restart {
  order: 3;
}

.nav-buttons button {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  width: 100%;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.nav-restart {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.nav-back,
.nav-next {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
}

.nav-back {
  color: #111827;
}

.nav-next {
  background: #ffb300;
  border-color: #f1b82c;
  color: #111;
}

.nav-buttons button:not(.is-disabled):not(:disabled):hover {
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.nav-buttons button.is-disabled,
.nav-buttons button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

/* Header */
.bee-id-header {
  margin-bottom: 1rem;
}

.bee-id-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.bee-id-description {
  color: #555;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.45rem;
}

/* Options */
.bee-question-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bee-question-header {
  margin-bottom: 0.25rem;
}

.bee-question-body {
  flex: 1;
  min-height: 260px;
}

.bee-question-body--scroll {
  max-height: min(400px, calc(100vh - 420px));
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.bee-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

.bee-question-body--scroll.bee-options-grid {
  gap: 12px;
}

.bee-option-card {
  --preview-scale: 1;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bee-id-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  border: 1px solid #e1e1e1;
  background: #fff;
  text-align: center;
  color: #111;
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
  width: 100%;
  height: var(--option-card-height);
  min-height: var(--option-card-height);
  max-height: var(--option-card-height);
  padding-top: 12px;
  padding-bottom: 12px;
  overflow: hidden;
}

.bee-id-option-btn--tail {
  min-height: var(--option-card-height);
}

.bee-id-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--option-icon-area);
  height: var(--option-icon-area);
  margin-bottom: 0;
  overflow: hidden;
}

.bee-id-option-icon--swatch {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bee-swatch {
  width: 56px;
  height: 56px;
  background: var(--swatch, #111);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
}

.bee-swatch--shiny {
  overflow: hidden;
}

.bee-swatch--shiny::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 28px;
  height: 22px;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.16) 45%, rgba(255, 255, 255, 0) 75%);
  filter: blur(1.5px);
  opacity: 0.9;
  pointer-events: none;
}

.bee-swatch--fluffy {
  clip-path: polygon(6% 8%, 12% 4%, 22% 6%, 30% 2%, 40% 6%, 52% 3%, 62% 7%, 72% 4%, 84% 8%, 94% 10%, 96% 20%, 92% 30%, 98% 40%, 92% 50%, 96% 60%, 94% 70%, 98% 80%, 90% 90%, 82% 96%, 72% 92%, 64% 98%, 54% 94%, 44% 99%, 34% 94%, 24% 98%, 16% 92%, 10% 96%, 4% 88%, 8% 78%, 2% 68%, 8% 58%, 4% 48%, 8% 38%, 2% 28%, 6% 18%, 4% 12%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.18),
    0 0 0 4px rgba(0, 0, 0, 0.06),
    0 0 8px 2px rgba(0, 0, 0, 0.1);
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.18));
}

.bee-swatch--patch {
  position: relative;
  overflow: hidden;
}

.bee-swatch--patch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  background: var(--patch, #c76a2a);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.bee-tail-option-icon {
  width: var(--option-icon-area);
  height: var(--option-icon-area);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bee-banding-option-icon {
  width: var(--option-icon-area);
  height: var(--option-icon-area);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bee-size-option-icon {
  width: var(--option-icon-area);
  height: var(--option-icon-area);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bee-id-option-icon > img {
  width: var(--option-icon-size);
  height: var(--option-icon-size);
  object-fit: contain;
  display: block;
  transform: scale(var(--preview-scale, 1));
  transform-origin: center;
}

.bee-tail-option-icon > img {
  width: 100%;
  height: 100%;
}

[data-step-id="tailTip"] .bee-id-option-icon {
  width: var(--option-icon-area);
  height: var(--option-icon-area);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bee-id-option-label {
  height: var(--option-label-area);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 4px;
  font-size: 0.9rem;
  line-height: 1.2;
}

.bee-option-title {
  display: -webkit-box;
  font-weight: 600;
  margin-bottom: 0.25rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bee-option-hint {
  display: -webkit-box;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--bee-text-muted, #6b7280);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bee-option-hint-line + .bee-option-hint-line {
  margin-top: 0.1rem;
}

[data-step-id="tailColor"] {
  --option-icon-size: 118px;
}

[data-step-id="banding"] {
  --option-icon-size: 108px;
}

[data-step-id="size"] {
  --option-icon-size: 112px;
}

[data-step-id="cuckooIndicators"] {
  --option-label-area: 66px;
}

[data-step-id="cuckooIndicators"] .bee-id-option-btn {
  justify-content: center;
}

[data-step-id="cuckooIndicators"] .bee-id-option-label {
  height: auto;
  justify-content: center;
  text-align: center;
}

[data-step-id="cuckooIndicators"] .bee-option-hint {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.bee-id-option-btn:hover {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.bee-id-option-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.bee-id-option-btn-active {
  border-color: #f1b82c;
  background: #fff9eb;
  box-shadow: 0 0 0 2px #f1b82c55, 0 10px 18px rgba(0, 0, 0, 0.09);
}

/* Footer */
.bee-id-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.5rem;
}

.bee-id-progress {
  font-weight: 500;
}

/* Buttons */
.bee-id-cta {
  margin-top: 1rem;
}

.bee-id-cta button {
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}

.bee-id-cta-primary {
  background: #ffb300;
  color: #000;
}

.bee-id-cta-secondary {
  background: #eee;
  margin-left: 0.5rem;
}

/* Results */
.bee-id-result-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.bee-id-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.bee-id-card img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.bee-id-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.bee-id-card small {
  display: block;
  color: #777;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

/* Result chips */
.bee-id-chip-row {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.bee-id-tail-preview {
  margin-top: 0.5rem;
}

.bee-id-tail-preview img {
  width: 120px;
  height: auto;
  display: block;
}

.bee-id-chip {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #f5f5f5;
}

/* Link */
.bee-id-link {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Result list layout */
.bee-id-result-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Result card */
.bee-id-card {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid #e3e3e3;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.bee-id-card-media img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* Card body */
.bee-id-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bee-id-card-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bee-id-card-title {
  margin: 0;
  font-size: 1rem;
}

.bee-id-card-scientific {
  display: block;
  color: #777;
}

/* Trait summary */
.bee-id-card-traits {
  margin: 0.1rem 0 0.1rem;
  font-size: 0.85rem;
  color: #555;
}

/* Description text */
.bee-id-card-text {
  margin: 0.15rem 0 0.25rem;
  font-size: 0.9rem;
}

/* Chips can wrap nicely */
.bee-id-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.15rem;
}

/* Profile link */
.bee-id-profile-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #0b63ce;
}

.bee-id-profile-link:hover {
  text-decoration: underline;
}

.confidence-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  margin-left: 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.confidence-badge.similar {
  background: #f6c560;
  color: #5a3d00;
  border: 1px solid #e1aa35;
}

/* High confidence: green */
.score-high {
  background-color: #c6f6d5;
  color: #22543d;
}

/* Medium confidence: amber */
.score-medium {
  background-color: #fefcbf;
  color: #744210;
}

/* Low confidence: red */
.score-low {
  background-color: #fed7d7;
  color: #742a2a;
}

/* Inline results panel */
.bee-results-card {
  margin-top: 16px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bee-results-panel {
  min-height: 360px;
}

.bee-results-header h3 {
  margin: 0 0 4px;
}

.bee-results-subtitle {
  margin: 0;
  color: #555;
}

/* Breadcrumb bar */
.bee-breadcrumbs-bar {
  margin-top: 12px;
  margin-bottom: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.bee-breadcrumbs {
  background: #fffdf5;
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 0 0 1px #f3e2aa;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.bee-breadcrumbs-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.bee-breadcrumbs-label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
}

.bee-breadcrumbs-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;           /* Firefox */
}

.bee-breadcrumbs-list::-webkit-scrollbar {
  display: none;                   /* WebKit */
}

.bee-breadcrumbs-arrow {
  border: none;
  background: transparent;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: #b38a16;
  flex-shrink: 0;
}

.bee-breadcrumbs-arrow:hover:not(:disabled) {
  background: #fff3c2;
}

.bee-breadcrumbs-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.bee-crumb-pill {
  font-size: 12px;
  line-height: 1.4;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #f1d27c;
  background: #fff7d6;
  color: #7b5a1a;
  white-space: nowrap;
}

.bee-crumb-pill--empty {
  border-color: #e0e0e0;
  background: #f6f6f6;
  color: #999;
  font-style: italic;
}

.bee-crumb-pill--filled {
  border-color: #f1d27c;
  background: #ffeaa3;
  color: #5c4514;
  font-style: normal;
}

.bee-results-placeholder {
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}

.bee-results-carousel.is-hidden,
.bee-results-placeholder.is-hidden,
.results-meta.is-hidden,
.results-actions.is-hidden {
  display: none;
}

.bee-results-carousel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: auto;
}

.results-card-wrapper {
  flex: 1;
  min-height: 180px;
  display: flex;
  justify-content: center;
}

.results-nav {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e1e1e1;
  background: #fafafa;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.results-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.results-nav:not(:disabled):hover {
  background: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.results-meta {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}

.results-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.results-actions .btn-primary,
.results-actions .btn-secondary {
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.results-actions .btn-primary {
  background: #ffb300;
  color: #000;
}

.results-actions .btn-secondary {
  background: #f1f1f1;
}

.bee-tool-card,
.bee-question-card,
.bee-results-card {
  background-color: #ffffff;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .bee-options-grid {
    grid-template-columns: 1fr;
  }

  .bee-question-body--scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .bee-results-panel {
    min-height: 360px;
  }

  .results-card-wrapper {
    min-height: 0;
  }
}

/* Similar species section */
.bee-id-similar-species {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.bee-id-similar-title {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #444;
  font-weight: 600;
}

.bee-id-similar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bee-id-similar-item {
  margin: 0;
  padding: 0;
}

.bee-id-chip--similar {
  padding: 0.25rem 0.55rem;
  font-size: 0.85rem;
  background: #f7f7f7;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  color: #444;
}
