/* The photo viewer (pages/crossings/viewer.ts) and its rings, shared by the crossings and results pages */
.ring { fill: none; stroke: #2bd46a; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.ring.low { stroke: #4cc9f0; }
.ring.unknown { stroke: #ff9f1a; }
.ring.look { stroke: #c77dff; stroke-width: 3; }
.ring-label.look { fill: #c77dff; }
.ring.person { stroke: #d0d5db; stroke-dasharray: 6 5; }
.ring-label.person { fill: #d0d5db; }
.ring.excluded { stroke: #ff6b6b; stroke-dasharray: 3 6; opacity: .6; }
.ring-label.excluded { fill: #ff6b6b; opacity: .8; }
.ring-label { fill: #2bd46a; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: #000; stroke-width: 3; vector-effect: non-scaling-stroke; font-family: -apple-system, sans-serif; }
.ring-label.low { fill: #4cc9f0; }
.ring-label.unknown { fill: #ff9f1a; }
.viewer { position: fixed; inset: 0; z-index: 10; background: #0b0d10; color: #f2f4f6; display: flex; flex-direction: column; }
.viewer[hidden] { display: none; }
.v-stage { position: relative; flex: 1; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.v-layer { position: absolute; transform-origin: 0 0; }
.v-layer img { display: block; width: 100%; height: 100%; max-width: none; -webkit-user-drag: none; }
.v-rings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.v-rings.off { display: none; }
.v-stage.adding { cursor: copy !important; }
.v-extra .review { margin: 4px 0 0; }
.v-extra .review button.small { background: #1d232a; color: #f2f4f6; border-color: #444c56; }
.v-stage img.enhanced { filter: contrast(1.6) brightness(1.15) saturate(.6); }
.v-box { position: absolute; border: 2px dashed #ff4d57; background: rgba(255,77,87,.12); pointer-events: none; }
.viewer .v-prev, .viewer .v-next { position: absolute; top: 45%; width: 52px; height: 72px; font-size: 44px; line-height: 1; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; z-index: 1; }
.v-prev { left: 10px; } .v-next { right: 10px; }
.v-prev:disabled, .v-next:disabled { opacity: .25; }
.v-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px max(10px, env(safe-area-inset-bottom)); background: #12161b; }
.v-caption { font-family: var(--mono); font-size: 13px; }
.v-extra .reads { margin: 0; }
.v-extra .bib { color: #5fd07f; border-color: #5fd07f; }
.v-extra .bib.low { color: #4cc9f0; border-color: #4cc9f0; }
.v-extra .bib.unknown { color: #f0b04a; border-color: #f0b04a; }
.v-spacer { flex: 1; }
.v-bar > button { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 6px; border: 1px solid #444c56; background: #1d232a; color: #f2f4f6; cursor: pointer; }
.v-bar > button.on, .v-bar > .v-ring-btn.on { background: #ff4d57; border-color: #ff4d57; }
.v-help { flex-basis: 100%; font-size: 12px; color: #9aa5b1; }
@media (pointer: coarse) { .v-help { display: none; } }
/* The crossing's edit controls under the photo (pages/crossings/edit.ts), on any page */
.v-extra .reads, .v-extra .review { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.v-extra .bib { font: inherit; background: none; cursor: pointer; padding: 1px 8px; border-radius: 999px; border: 1px solid #5fd07f; font-weight: 600; }
.v-extra .bib.medium, .v-extra .bib.low { border-style: dashed; }
.v-extra button.small { font: inherit; font-size: 13px; padding: 2px 8px; border-radius: 6px; border: 1px solid #444c56; background: #1d232a; color: #f2f4f6; cursor: pointer; }
.v-extra .dealt-label { color: #5fd07f; font-weight: 600; }
.v-extra .muted { color: #9aa5b1; }
.v-extra .stuck { color: #f0b04a; font-weight: 700; }
