/* Calm help card for camera, browser and connection problems.
   Logic in js/help-messages.js. Uses tokens from style.css with fallbacks. */
.hm-card {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 10000; box-sizing: border-box;
  width: calc(100% - 32px); max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--bg-card, #fff); color: var(--warm-900, #3D2E1F);
  border: 1px solid var(--terra-300, #E2C4A6); border-radius: 14px;
  box-shadow: 0 8px 30px rgba(61, 46, 31, 0.25);
  padding: 18px 20px; font-size: 18px; line-height: 1.45;
}
.hm-card[hidden] { display: none; }
.hm-title { font-size: 21px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.hm-body p { margin: 0 0 10px; }
.hm-sub { font-weight: 600; margin: 10px 0 4px !important; }
.hm-steps { margin: 0 0 10px; padding-left: 24px; }
.hm-steps li { margin-bottom: 4px; }
.hm-more summary { cursor: pointer; color: var(--terra-700, #8B5A3A); margin: 4px 0; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hm-btn {
  min-height: 48px; padding: 10px 20px; border-radius: 10px; font: inherit; font-weight: 600;
  background: var(--terra-700, #8B5A3A); color: #fff; border: 1px solid var(--terra-700, #8B5A3A); cursor: pointer;
}
.hm-btn-quiet { background: transparent; color: var(--terra-700, #8B5A3A); }
.hm-copy { display: flex; gap: 8px; margin-top: 6px; }
.hm-copy input { flex: 1; min-width: 0; font-size: 15px; padding: 8px; border: 1px solid var(--warm-200, #D4C4AE); border-radius: 8px; }
.hm-spin {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 3px solid var(--terra-200, #F0E0CE); border-top-color: var(--terra-700, #8B5A3A);
  animation: hm-spin 1s linear infinite;
}
@keyframes hm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hm-spin { animation: none; } }
