/* "รายการข้อมูล": fixed-height page — header + toolbar + action bar pinned, only .fl-body (the list) scrolls. */
.fl-view { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: hidden;
  height: calc(100vh - var(--fl-top, 66px) - 26px); height: calc(100dvh - var(--fl-top, 66px) - 26px); }
.fl-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; }
.fl-tools { align-items: flex-end; flex: none; }
.fl-tools .field { min-width: 180px; flex-direction: row; align-items: center; gap: 8px; }
.fl-tools .field > label { white-space: nowrap; }
.fl-search { flex: 1 1 260px; }
.fl-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.fl-list { list-style: none; margin: 0; padding: 0; }
.fl-row { display: flex; align-items: center; gap: 12px; padding: 0; border-bottom: 1px solid var(--line); }
.fl-row.on { background: var(--accent-soft); }
.fl-pick { flex: 1 1 auto; min-width: 0; min-height: 44px; text-align: left; background: none; border: 0; padding: 4px 10px; display: flex; flex-direction: row; align-items: baseline; gap: 4px 16px; }
.fl-name { font-weight: 600; flex: 0 1 280px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-meta { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-glyphs { display: flex; gap: 10px; flex: none; }
.fl-pair { display: inline-flex; flex-direction: row; align-items: center; font-size: 18px; line-height: 1.1; }
.fl-act { display: flex; align-items: center; gap: 8px; padding-right: 8px; flex: none; }
.fl-act .btn.small { min-height: 36px; }
.fl-empty { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px 0; margin: 0; }
.fl-bar { flex: none; padding-top: 2px; }
.fl-bar .btn { min-height: 40px; }
.fl-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.fl-view .error-box { flex: none; }
@media (min-width: 901px) and (max-height: 700px) { .fl-card { padding: 8px 14px; gap: 6px; } .fl-view { gap: 6px; } }

/* Mobile (≤ 900px): two tight lines per row (name / "date, time : sex (group)"); tap a row to select, act from the bar. */
@media (max-width: 900px) {
  .page:has(> .fl-view) { padding-top: 6px; padding-bottom: calc(var(--tabbar-h, 58px) + env(safe-area-inset-bottom) + 6px); gap: 0; }
  .fl-view { gap: 6px;
    height: calc(100vh - var(--fl-top, 60px) - var(--tabbar-h, 58px) - env(safe-area-inset-bottom) - 6px);
    height: calc(100dvh - var(--fl-top, 60px) - var(--tabbar-h, 58px) - env(safe-area-inset-bottom) - 6px); }
  .fl-card { padding: 8px 10px; gap: 6px; }
  .fl-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; align-items: end; }
  .fl-tools .field, .fl-search { min-width: 0; flex: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; }
  .fl-tools .input { min-height: 40px; }
  .fl-row { gap: 6px; }
  .fl-pick { flex-direction: column; align-items: stretch; gap: 0; min-height: 48px; padding: 4px 8px; }
  .fl-name { flex: none; font-size: 16px; line-height: 1.3; }
  .fl-meta-m { font-size: 13px; line-height: 1.3; color: var(--muted); }
  .fl-row.on .fl-meta-m { color: var(--ink); }
  .fl-glyphs { display: none; }
  .fl-act { display: none; }
  .fl-row.confirm { flex-wrap: wrap; }
  .fl-row.confirm .fl-act { display: flex; flex-wrap: wrap; width: 100%; padding: 0 8px 6px; }
  .fl-row.confirm .fl-act .btn { min-height: 40px; flex: 1 1 0; }
  .fl-row.confirm .fl-act .small { flex: 1 1 100%; }
  .fl-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .fl-bar > .btn { grid-column: span 2; padding: 0 4px; min-width: 0; font-size: 13px; }
  .fl-bar > [data-export], .fl-bar > [data-import] { grid-column: span 2; }
  .fl-ftag { margin-left: 6px; }
  .fl-fnote { grid-column: 1 / -1; }
}

/* โหงวเฮ้ง records in the shared list (ui/face-bridge.js records): thumbnail + tag column, loading / error note */
.fl-face-cell { flex: none; width: 128px; display: flex; align-items: center; gap: 6px; }
.fl-face { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); background: var(--soft); flex: none; }
.fl-face-none { visibility: hidden; }
.fl-fnote { font-size: 13px; color: var(--muted); align-self: center; }
