/* Snap (camera.js): the sheet's content. The sheet frame itself is sheets.css (.fh-sheet). Brand tokens via the
   dashboard's variables (--accent, --line, --surface-2, ...), with the brand token values as fallbacks. */
.snap-btn { white-space: nowrap; }
.snap-word { margin-left: 5px; }
.snap-sheet .fh-panel { max-width: 520px; }
.snap-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.snap-mode { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; min-height: 92px;
  border: 1px solid var(--line, #DCE3EB); border-radius: 12px; background: var(--surface, #fff); font: inherit; font-size: 13px;
  font-weight: 600; color: var(--ink, #1B2533); cursor: pointer; text-align: center; }
.snap-mode span { font-size: 26px; line-height: 1; }
.snap-mode:hover, .snap-mode:focus-visible { border-color: var(--accent, #0F766E); background: var(--accent-soft, #E1F4EF); }
.snap-more { margin: 8px 0; font-size: 12.5px; color: var(--ink-2, #475569); }
.snap-more summary { cursor: pointer; color: var(--accent, #0F766E); }

.snap-preview { position: relative; margin: 0 0 10px; border-radius: 12px; overflow: hidden; background: var(--surface-2, #EBF0F5);
  display: flex; justify-content: center; }
.snap-frame { position: relative; line-height: 0; }
.snap-preview img { display: block; max-width: 100%; max-height: 260px; object-fit: contain; }
.snap-retake p { margin: 0 0 4px; }

.snap-read { border: 1px solid var(--line, #DCE3EB); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.snap-read b { display: block; overflow-wrap: anywhere; }
.snap-read small { color: var(--ink-3, #5B6776); }
.snap-read ul { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; }
.snap-q { font-size: 15px; font-weight: 600; margin: 4px 0; }
.snap-lbl { display: grid; gap: 4px; margin: 8px 0; font-size: 12px; font-weight: 600; color: var(--ink-2, #475569); }
.snap-lbl input, .snap-lbl textarea, .snap-lbl select { font: inherit; font-size: 13.5px; font-weight: 400; border: 1px solid var(--line, #DCE3EB);
  border-radius: 8px; padding: 7px 9px; width: 100%; min-width: 0; box-sizing: border-box; background: var(--surface, #fff); color: var(--ink, #1B2533); }
.snap-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.snap-tag { border: 1px solid var(--line, #DCE3EB); background: var(--surface, #fff); border-radius: 999px; padding: 5px 11px;
  font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink-2, #475569); white-space: nowrap; }
.snap-tag.on { background: var(--accent-soft, #E1F4EF); border-color: var(--accent, #0F766E); color: var(--accent, #0F766E); font-weight: 600; }

.snap-done { font-size: 15px; font-weight: 600; color: var(--ok, #3f7d4f); }

@media (max-width: 640px) {
  /* In the check-in line the other two buttons need the room: Snap shows its camera icon only (it keeps its aria-label). */
  .checkin-mini .btn.snap-btn { flex: none; padding: 6px 10px; }
  .checkin-mini .snap-btn .snap-word { display: none; }
  .snap-mode { min-height: 84px; font-size: 12px; }
}
