/* Equipment photo readings: camera review + historical trend, mobile first. */
.ephoto-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.ephoto-row .input-wrap { margin-top: 5px; }
.ephoto-help { color: var(--text-dim); font-size: 12px; line-height: 1.5; margin: 8px 0 12px; }
.ephoto-preview { display: block; max-width: 100%; width: auto; max-height: 250px; margin: 12px auto; border: 1px solid var(--border); border-radius: 8px; object-fit: contain; }
.ephoto-preview[hidden], .ephoto-draft[hidden], .ephoto-pool[hidden], #equipPhotoBecsFields[hidden], #equipPhotoGaugeFields[hidden] { display: none; }
.ephoto-action { width: 100%; margin-top: 10px; }
.ephoto-status { font-size: 12px; color: var(--text-dim); min-height: 18px; margin-top: 8px; }
.ephoto-status.warn { color: var(--warn); }
.ephoto-draft { padding: 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; margin-top: 12px; }
.ephoto-confirm { display: flex; gap: 10px; font-size: 12px; line-height: 1.5; align-items: flex-start; margin-top: 14px; }
.ephoto-confirm input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.ephoto-trend { overflow: hidden; margin: 12px 0; padding: 10px; background: var(--bg-elevated); border-radius: 9px; }
.ephoto-trend svg { display: block; width: 100%; height: 76px; }
.ephoto-entry { padding: 10px 0; border-top: 1px solid var(--border); font-size: 12px; line-height: 1.5; }
.ephoto-entry strong { color: var(--text); }
.ephoto-entry .ephoto-meta { color: var(--text-dim); font-size: 11px; }
.ephoto-photo { display: block; max-width: 100%; max-height: 240px; object-fit: contain; border-radius: 8px; margin: 8px 0; }
.ephoto-photo[hidden] { display: none; }
.ephoto-inline-button { padding: 5px 9px; font-size: 11px; margin-top: 5px; }
@media(max-width: 360px) { .ephoto-row { grid-template-columns: 1fr; } }

/* Tap-to-read + target camera (2026-10-15) */
.ephoto-tap[hidden], .ephoto-cam[hidden] { display: none; }
.ephoto-tap { margin-top: 12px; }
.ephoto-tap-prompt { font-size: 13px; line-height: 1.5; margin-bottom: 8px; color: var(--text); }
.ephoto-tap-canvas { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); touch-action: none; background: #000; }
.ephoto-tap-tools { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ephoto-tap-tools .btn-secondary { width: auto; flex: 1 1 auto; padding: 7px 10px; font-size: 11px; margin: 0; }
.ephoto-cam { position: fixed; inset: 0; z-index: 10000; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px 8px calc(12px + env(safe-area-inset-bottom)); }
.ephoto-cam-tip { color: #fff; font-size: 13px; text-align: center; max-width: 520px; line-height: 1.4; }
.ephoto-cam-stage { position: relative; display: inline-block; line-height: 0; }
.ephoto-cam-stage video { display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto; }
.ephoto-cam-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ephoto-cam-bar { display: flex; gap: 10px; width: 100%; max-width: 520px; }
.ephoto-cam-bar button { flex: 1; margin: 0; }
body.ephoto-cam-open { overflow: hidden; }
