.app-card.recognition-active .workflow-chrome { padding: 8px 14px 4px; }
.app-card.recognition-active .workflow-copy { min-height: 26px; }
.app-card.recognition-active #currentStepText { font-size: 19px; }

.app-card.recognition-active .back-button {
  top: 7px;
  left: 14px;
  width: 24px;
  height: 28px;
  font-size: 34px;
}

.app-card.recognition-active .step-dots { margin: 7px 34px 0; }
.app-card.recognition-active .step-dots li { gap: 5px; }
.app-card.recognition-active .step-dots li:not(:last-child)::after { top: 11px; }

.app-card.recognition-active .step-index {
  width: 24px;
  height: 24px;
  font-size: 13px;
}

.app-card.recognition-active .step-label { font-size: 12px; }
.app-card.recognition-active .scene { padding: 4px 14px calc(6px + env(safe-area-inset-bottom)); }

.analysis-flow.is-recognized {
  gap: 8px;
  padding-bottom: 6px;
}

.recognition-status {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #68716b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.recognition-status svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--home-green);
}

.recognition-status strong {
  color: var(--home-green);
  font-weight: 900;
}

.recognition-status em {
  color: #f28a20;
  font-style: normal;
  font-weight: 900;
}

.recognition-result {
  gap: 8px;
}

.recognition-result .annotation-card {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(54, 43, 30, 0.08);
}

.recognition-result .annotation-stage {
  margin: 0;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: #fffdfa;
}

.recognition-result .annotation-card img {
  display: block;
  width: 100%;
  max-height: min(50svh, 430px);
  object-fit: contain;
}

.recognition-result .room-chip {
  display: inline;
  max-width: 86%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f8b53;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    1px 0 0 rgba(255, 255, 255, 0.82),
    0 0 4px rgba(255, 255, 255, 0.9);
}

.recognition-result .room-chip[hidden] { display: none; }

.annotation-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 6px 10px 8px;
  color: #5f6861;
  font-size: 11px;
  font-weight: 700;
}

.annotation-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.annotation-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--home-green);
}

.annotation-legend span:nth-child(2) i {
  background: #f39a24;
}

.recognition-result #analyzeButton {
  min-height: 44px;
  margin-top: 0;
  border-radius: 12px;
  font-size: 15px;
}

@media (max-width: 430px) {
  .recognition-result .annotation-card img {
    max-height: min(48svh, 406px);
  }

  .annotation-legend {
    gap: 10px;
    font-size: 11px;
  }
}
