/* صفحة الداخل: الكاميرا أولاً. تعتمد على shell.css. */
body.indoor { min-height: 100dvh; }
.screen { max-width: 560px; margin: 0 auto; padding: 12px 12px calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); }
/* لوحة الكاميرا تبقى في الصفحة لكن خارج الشاشة حتى يستمر البث والكشف */
[data-panel="nav"].parked { position: fixed; left: -200vw; top: 0; width: min(560px, 100vw); visibility: hidden; pointer-events: none; }

.stage { position: relative; display: grid; background: #0b1525; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; max-height: 44dvh; width: 100%; margin: 0 auto; }
.stage video, .stage canvas { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; }
.stage canvas { pointer-events: none; }
.stage video { opacity: 0; }
.stage.live video { opacity: 1; }
.stage-empty { grid-area: 1 / 1; display: grid; place-content: center; justify-items: center; gap: 6px; color: #9fb3cc; }
.stage-empty .ic { width: 40px; height: 40px; }
.stage-empty p { margin: 0; font-weight: 700; }
.stage.live .stage-empty { display: none; }
.readout-chip {
  position: absolute; top: 10px; inset-inline: 10px; z-index: 2; margin: 0; padding: 8px 12px; border-radius: 12px;
  background: rgba(8, 20, 38, .72); color: #fff; font-size: .95rem; font-weight: 800; line-height: 1.5;
}
.readout-chip.found { background: rgba(11, 90, 55, .88); }

.cam-actions { display: flex; gap: 8px; margin-top: 10px; }
.cam-actions > .btn { flex: 1; }
.cam-actions #stopButton { flex: 0 0 90px; }
#missCount { background: rgba(0, 0, 0, .15); border-radius: 999px; padding: 0 8px; min-width: 24px; text-align: center; }
.hint.strong { color: var(--ink); font-weight: 700; }
#recordStatus:empty { display: none; }

.instruction { margin-top: 12px; background: var(--navy); color: #fff; border-radius: 16px; padding: 14px; }
.instruction-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.instruction .chip.info { background: rgba(255, 255, 255, .16); color: #fff; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff; }
.instruction-main { margin: 8px 0 0; font-size: 1.15rem; font-weight: 800; line-height: 1.6; }
.nav-steps { margin: 10px 0 0; padding-inline-start: 1.4em; line-height: 1.8; font-size: .98rem; }
.nav-steps:empty { display: none; }
.nav-steps li { margin-bottom: 4px; }
.hint.light { color: #cfe0f5; }

.journey-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.journey-card small { display: block; color: var(--muted); font-size: .75rem; }
.journey-card b { font-size: 1.15rem; }

.seg { display: flex; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: #e3e9f2; }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; font-weight: 800; color: var(--muted); }
.seg button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(16, 35, 61, .15); }

.log-list { margin: 8px 0 12px; padding-inline-start: 1.2em; font-size: .88rem; line-height: 1.9; max-height: 340px; overflow: auto; }
.mono { direction: ltr; text-align: left; font-family: ui-monospace, Menlo, monospace; font-size: .75rem; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }

.tag-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.tag-row { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tag-row.seen { border-color: #9fd3b6; background: #f3fbf6; }
.tag-row.missed { border-color: #f0b4ae; background: #fff7f6; }
.tag-id { min-width: 44px; font-weight: 800; font-size: 1.05rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.tag-meta { flex: 1; min-width: 0; font-size: .74rem; color: var(--muted); line-height: 1.4; }
.tag-meta .verify { display: flex; width: fit-content; margin-top: 4px; }
.tag-row .btn { min-height: 40px; padding: 0 10px; font-size: .78rem; }
