.main-logo-img {
  display: block;
  width: clamp(136px, 22vw, 190px);
  height: auto;
}

.main-logo-img--small {
  width: auto;
  height: clamp(26px, 3.2vw, 38px);
}

.briar-spinner {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: inline-block;
  animation: spin 1.4s linear infinite;
}

.working-overlay .briar-spinner {
  width: 86px;
  height: 86px;
}

.loading-card .briar-spinner {
  margin-bottom: 4px;
}

.working-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  color: #fff;
  background: rgba(26, 26, 26, .78);
  backdrop-filter: blur(3px);
  padding: 24px;
}

.working-overlay .loading-sub {
  max-width: 320px;
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.5;
}

.camera-area.is-working {
  cursor: default;
}

.saved-results-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(61, 43, 31, .08);
  margin-top: 18px;
  padding: 18px;
}

.saved-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.saved-results-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
}

.saved-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(61, 43, 31, .08);
}

.saved-result-row:first-child {
  border-top: 0;
}

.saved-result-row p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--soil);
  margin-top: 4px;
}

.saved-result-main,
.saved-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.saved-result-main {
  font-size: 13px;
}

.saved-result-main span:last-child,
.saved-result-meta {
  font-size: 11px;
  color: var(--soil);
  opacity: .76;
}

.saved-result-meta {
  margin-top: 6px;
}

.recall-notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(74, 103, 65, .08);
  border: 1px solid rgba(74, 103, 65, .14);
  font-size: 13px;
  color: var(--moss);
}

.save-new-plant-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(74, 103, 65, .14);
  border-radius: 14px;
  background: rgba(74, 103, 65, .05);
}

.result-actions.compact {
  padding: 0;
  border-top: 0;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: max-content;
  max-width: 220px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--bark);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(61, 43, 31, .24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .15s ease, transform .15s ease;
}

[data-tooltip]::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  z-index: 21;
  border: 5px solid transparent;
  border-top-color: var(--bark);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .15s ease;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after,
[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::before {
  transform: translateX(-50%);
}

.mobile-upload-copy {
  display: none;
}

@media (hover: none) {
  [data-tooltip]::before,
  [data-tooltip]::after {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .desktop-upload-copy {
    display: none;
  }

  .mobile-upload-copy {
    display: block;
  }
}

@media (max-width: 640px) {
  .main-logo-img {
    width: 142px;
  }

  .main-logo-img--small {
    width: auto;
    height: 30px;
  }

  .desktop-upload-copy {
    display: none;
  }

  .mobile-upload-copy {
    display: block;
  }

  .saved-result-row {
    align-items: stretch;
    flex-direction: column;
  }

  .saved-result-row .btn {
    align-self: flex-start;
  }
}
