/* Camera controls: clear view, one selected target, details outside the preview. */
.camera-card{height:460px;min-height:0;margin-top:20px;isolation:isolate}
.camera-card.expanded{height:100dvh;min-height:0;padding:0}
.camera-shade{background:linear-gradient(#0005,transparent 20%,transparent 75%,#0008)}
.camera-empty.hidden{display:none}
.camera-topline{top:12px;left:12px;right:12px;gap:6px;z-index:6}
.camera-expand{margin-left:auto;min-height:44px;padding:8px 12px;border:1px solid #ffffff35;border-radius:22px;background:#101410a8;font-size:11px;color:#f2f3ec}
.live-pill,.accuracy-pill{font-size:9px;padding:8px;white-space:nowrap}
.camera-dock{position:absolute;bottom:12px;left:12px;right:12px;z-index:6;display:grid;gap:7px}
.camera-dock[hidden],.camera-target[hidden],.target-envelope[hidden]{display:none!important}
.camera-dock-actions{display:flex;gap:10px}.camera-dock-actions>.button{flex:1;min-width:0;min-height:44px;font-size:12px}
#readinessStatus{padding:3px 6px;background:transparent;text-shadow:0 1px 4px #000;color:#fff;font-size:10px;line-height:1.35;text-align:center;max-height:28px;overflow:hidden}
.camera-target{position:absolute;inset:0;z-index:4;pointer-events:none}
.target-envelope{position:absolute;top:44%;left:50%;transform:translate(-50%,-50%);width:54px;height:54px;padding:0;border:2px solid #f4ffd7;border-radius:50%;background:#d6ef83;color:#1b2417;display:grid;place-items:center;box-shadow:0 3px 16px #0006;pointer-events:auto;touch-action:manipulation}
.recapture-target{position:absolute;z-index:6;top:60px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);padding:9px 14px;border:1px solid #d6ef8380;border-radius:18px;background:#101410e8;color:#eaf5d1;font-size:11px;white-space:nowrap;pointer-events:auto;touch-action:manipulation}.recapture-target[hidden]{display:none!important}.expanded .recapture-target{top:calc(60px + env(safe-area-inset-top))}
#targetTitle{position:absolute;top:calc(100% + 7px);left:50%;transform:translateX(-50%);max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 8px;border-radius:10px;font-size:11px;font-weight:600;background:#101410b8;color:white;pointer-events:none}
.target-guidance{position:absolute;bottom:99px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);display:flex;align-items:center;gap:8px;padding:0 2px 0 12px;min-height:44px;background:#101410b8;border-radius:24px;color:white;pointer-events:auto}
#targetDirection{font-size:20px;color:#d6ef83;display:inline-block;flex:none}#targetSummary{font-size:11px;line-height:1.3}#clearTarget{border:0;background:none;display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;color:#d8dfd1}
.expanded .camera-topline{top:max(12px,env(safe-area-inset-top))}.expanded .camera-dock{bottom:max(12px,env(safe-area-inset-bottom))}.expanded .target-guidance{bottom:calc(99px + env(safe-area-inset-bottom))}
.camera-active .hero>h1,.camera-active .hero>.eyebrow,.camera-active .hero>p:not(.accuracy-note){display:none}.camera-active .hero{padding-top:0}
.sensor-details{margin:24px 0 12px;color:#aab69d;font-size:12px}.sensor-details summary{padding:10px 0;cursor:pointer}.sensor-details .sensor-panel{margin-top:6px}
.note-content{font-size:18px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;color:#f2f3ec}.note-details{font-size:12px;color:#aab69d;margin:18px 0}.note-details summary{padding:8px 0;cursor:pointer}.modal .photo-preview{max-height:40dvh;object-fit:contain}.modal-backdrop{background:#05070570;backdrop-filter:none}
@media(max-width:370px){.camera-topline{gap:4px}.live-pill,.accuracy-pill{font-size:8px}.camera-expand{padding:8px;font-size:10px}.camera-card{height:440px}}
@media(orientation:landscape) and (max-height:500px){.expanded .camera-dock{left:auto;width:220px}.expanded .target-guidance{bottom:12px;left:12px;transform:none;max-width:calc(100% - 260px)}.expanded .target-envelope{top:42%}}

.vision-placement{position:absolute;inset:48px 0 102px;z-index:2;width:100%;height:auto;background:transparent;border:0;padding:0;touch-action:manipulation}.vision-placement[hidden]{display:none!important}.camera-target{z-index:4}.target-envelope{transform:translate(-50%,-50%)}.target-envelope[hidden]{display:none!important}

#targetTitle{top:auto;bottom:calc(100% + 6px)}
