/* Plate viewer (handoff § 4). */
.plate-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.plate-pn { display: flex; gap: 16px; }
.plate-cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.viewer-col { flex: 1 1 560px; min-width: 0; display: grid; gap: 10px; }
.viewer { position: relative; aspect-ratio: 1; max-height: 78vh; width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--plate-black); overflow: hidden; }
.osd { position: absolute; inset: 0; }
.osd canvas { filter: var(--photo-filter); }
.orient { position: absolute; top: 8px; left: 10px; font-size: 11px; color: var(--muted); z-index: 2; pointer-events: none; }
.zoom-btns { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; gap: 6px; }
.zoom-btn { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); font-size: 18px; }
.viewer-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.marker { display: block; border: 2px solid var(--accent); border-radius: 50%; min-width: 16px; min-height: 16px; }
.marker.sel { border-color: var(--accent-hi); border-width: 3px; }
.marker:focus-visible { outline: 2px solid var(--text); }
.marker-label { position: absolute; left: 100%; top: 50%; transform: translate(4px, -50%); padding: 1px 4px; font-size: 11px; color: var(--accent); background: #070a09cc; border-radius: 2px; white-space: nowrap; }
.marker.label-above .marker-label { left: 50%; top: 0; transform: translate(-50%, calc(-100% - 3px)); }
.marker.sel .marker-label { color: var(--accent-hi); }
.plate-side { flex: 0 1 340px; min-width: 280px; display: grid; gap: 18px; }
.plate-h { font-size: 28px; }
.scan { margin: 0; display: grid; gap: 4px; }
.scan img { border: 1px solid var(--line); border-radius: 6px; max-height: 260px; object-fit: contain; background: #fff; }
.plate-objects, .downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.plate-objects li { display: grid; grid-template-columns: 60px 1fr; gap: 0 8px; }
.plate-objects li.sel { background: var(--accent-bg); }
.po-coords { grid-column: 2; font-size: 11px; color: var(--muted); }
.copyright { border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 900px) { .plate-side { flex: 1 1 100%; } }
.viewer-controls button:disabled { opacity: .45; cursor: not-allowed; }
