/* A viewport camera sheet; video and framing SVG share the same uncropped bounds. */
body.camera-open{overflow:hidden;overscroll-behavior:none}
#cameraDialog{position:fixed;inset:0;margin:0;padding:0;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;background:#080e13;color:#fff;overflow:hidden;box-shadow:none;overscroll-behavior:contain}
#cameraDialog::backdrop{background:#080e13}
#cameraDialog .camera-stage{position:absolute;inset:0;overflow:hidden}
#cameraDialog #cameraVideo{display:block;width:100%;height:100%;max-height:none;margin:0;border-radius:0;object-fit:contain;background:#080e13}
#cameraOverlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#framingGuide{fill:none;stroke:white;stroke-width:2;stroke-dasharray:14 12;vector-effect:non-scaling-stroke;opacity:.7}
#detectedBounds{fill:none;stroke:#28aae1;stroke-width:2;vector-effect:non-scaling-stroke}
#cameraCaptureUI{position:absolute;inset:0;pointer-events:none}
#cameraCaptureUI button,#cameraTips{pointer-events:auto}
#cameraDialog button{touch-action:manipulation}
#cameraDialog button:disabled{opacity:.5}
#cameraDialog .camera-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(14px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));background:linear-gradient(#080e13e8,#080e1380,transparent)}
#cameraDialog h2{font-size:15px;letter-spacing:.01em;font-weight:500}
#cameraDialog .camera-pill{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:44px;padding:9px 13px;border:1px solid #ffffff30;background:#101820c9;border-radius:24px;color:#fff;font-size:12px;line-height:1.35}
#cameraDialog .camera-pill:hover:not(:disabled){background:#29404feb}
#cameraDialog .camera-pill[aria-pressed=true]{background:#28aae1;color:#08131a;border-color:#28aae1}
#closeCamera>span{font-size:25px;line-height:16px}
#flashBtn>span:first-child{font-size:24px;line-height:1}
.camera-topline{display:flex;justify-content:space-between;align-items:center;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));gap:12px}
.camera-count{display:flex;align-items:center;gap:10px;border-left:3px solid #28aae1;background:#101820d6;padding:9px 12px;border-radius:2px 6px 6px 2px}
.camera-count strong{font-size:22px;font-weight:500;letter-spacing:-.05em;white-space:nowrap}
.camera-count span{font-size:10px;max-width:75px;color:#d4e1ea;line-height:1.4}
.camera-count[data-ready=true]{border-color:#73e1b0}
.camera-count[data-ready=true] strong{color:#73e1b0}
#cameraDialog .camera-tips{position:absolute;z-index:6;top:calc(135px + env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));width:min(380px,calc(100% - 32px));max-height:calc(100% - 155px - env(safe-area-inset-top));overflow:auto;padding:16px 18px 20px;border:1px solid #ffffff35;border-radius:12px;background:#101820fa;box-shadow:0 20px 60px #0009}
#cameraDialog .camera-tips p{font-size:12px;color:#c5d5df;line-height:1.6;margin:13px 0}
#cameraDialog .camera-tips strong{font-size:16px}
#cameraDialog .camera-tips .camera-disclaimer{font-size:11px;color:#a4b8c6}
#cameraDialog .camera-bottom{position:absolute;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;padding:35px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:linear-gradient(transparent,#080e13d9 18%,#080e13f5 70%);gap:8px}
#cameraDialog .camera-feedback{font-size:12px;text-align:center;color:#ffd997;line-height:1.4;max-width:480px;text-shadow:0 1px 4px #000;background:#101820c9;border-radius:16px;padding:7px 12px}
#cameraDialog .camera-feedback[data-state=good]{color:#97edc7}
#cameraDialog .camera-feedback[data-state=unknown]{color:#d4e1ea}
.camera-guidance{width:min(100%,410px)}
#cameraDialog .ring-tabs{display:flex;gap:6px}
#cameraDialog .ring-tabs button{flex:1;min-height:44px;font-size:11px;padding:7px;border:1px solid #ffffff30;background:#101820a8;color:#c7d6e0;border-radius:7px}
#cameraDialog .ring-tabs button[aria-pressed=true]{background:#28aae124;border-color:#28aae1;color:#a3e3ff}
.orbit-plan{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:5px}
.orbit-plan svg{width:52%;max-width:200px;height:53px;flex-shrink:1}
.orbit-plan strong{display:block;font-size:11px;font-weight:500;color:#e7f1f6;white-space:nowrap}
.orbit-plan span{display:block;margin-top:3px;font-size:10px;color:#a9becb}
.capture-stop{text-align:center;font-size:10px;line-height:1.4;color:#c2d5e1;margin:0 0 3px}
.camera-controls{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;width:min(100%,410px);gap:12px;margin-top:4px}
#cameraDialog .camera-side-button{border:0;background:none;color:#fff;min-height:84px;min-width:66px;display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;font-size:12px;line-height:1.2;padding:0 5px}
.camera-review-icon,.camera-process-icon{height:39px;width:44px;display:grid;place-items:center;font-size:32px;line-height:1}
.camera-process-icon{border-radius:50%;background:#28aae1;color:#07141d;font-size:26px;width:40px;height:40px}
.camera-shutter-wrap{display:flex;flex-direction:column;align-items:center;gap:7px}
#cameraDialog .camera-shutter{display:grid;place-items:center;padding:5px;width:78px;height:78px;border-radius:50%;border:3px solid #fff;background:transparent;box-shadow:0 0 0 4px #28aae133}
.camera-shutter>span{display:block;background:#fff;border-radius:50%;width:100%;height:100%;transition:transform .1s}
.camera-shutter:active:not(:disabled)>span{transform:scale(.88);background:#a3e3ff}
#shutterStatus{font-size:11px;white-space:nowrap;color:#d4e1ea}
.camera-process-hint{font-size:10px;line-height:1.5;text-align:center;color:#a9becb;min-height:15px}
#cameraDialog .camera-notice{position:absolute;z-index:12;left:50%;top:calc(145px + env(safe-area-inset-top));transform:translateX(-50%);width:max-content;max-width:calc(100% - 40px);border:1px solid #28aae1;padding:12px 18px;border-radius:12px;background:#101820f5;color:#fff;font-size:13px;text-align:center;pointer-events:none}
.camera-review,.camera-inspect{position:absolute;inset:0;background:#101820;z-index:8;overflow:auto;padding:max(20px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
.camera-review{display:flex;flex-direction:column;gap:12px}
.camera-review-header,.camera-inspect>header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}
#cameraDialog .camera-review h2{font-size:24px;letter-spacing:-.03em}
#cameraDialog .eyebrow{font-size:9px;color:#72c9ee;margin:0 0 6px;display:block}
.camera-review-intro{font-size:13px;color:#c5d5df;max-width:600px}
.camera-review-count{font-size:12px;color:#73e1b0}
.camera-review-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));grid-auto-rows:max-content;gap:12px;overflow:auto;min-height:0;align-content:start;padding:3px;flex:1}
.camera-photo{border:1px solid #486473;border-radius:8px;overflow:hidden;background:#1b2a35;min-width:0;align-self:start}
.camera-photo[data-selected=false]{border-color:#5c6268}
.camera-photo[data-selected=false] img{opacity:.4}
#cameraDialog .camera-photo-preview{display:block;padding:0;border:0;width:100%;background:#080e13;border-radius:0;aspect-ratio:4/3}
.camera-photo img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
#cameraDialog .camera-photo label,#cameraDialog .camera-inspect>label{display:flex;align-items:center;gap:8px;min-height:48px;padding:8px 10px;color:#dce9f1;font-size:12px;cursor:pointer}
#cameraDialog input[type=checkbox]{width:21px;height:21px;min-height:21px;padding:0;margin:0;accent-color:#28aae1;flex-shrink:0}
#cameraDialog .camera-review-footer{margin:0;padding:12px 0 0;border-top:1px solid #ffffff26;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-shrink:0}
#cameraDialog .camera-review-footer p{margin:0;color:#afc3cf;font-size:11px;max-width:440px}
#cameraDialog .camera-apply{background:#28aae1;color:#07141d;border-color:#28aae1;min-width:180px;border-radius:7px;min-height:48px}
.camera-inspect{display:flex;flex-direction:column;gap:15px}
.camera-inspect>img{min-height:0;flex:1;width:100%;object-fit:contain}
#cameraDialog .camera-inspect>label{justify-content:center;flex-shrink:0;font-size:14px}
@media(max-width:500px){#cameraTitle{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.camera-review-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#cameraDialog .camera-review-footer{flex-direction:column;align-items:stretch}.camera-review-footer p{min-height:32px}.camera-review,.camera-inspect{padding-left:16px;padding-right:16px}}
@media(max-height:700px) and (orientation:portrait){#cameraDialog .camera-header{padding-top:calc(8px + env(safe-area-inset-top));padding-bottom:5px}.camera-count{padding:5px 10px}#cameraDialog .camera-bottom{gap:3px;padding-top:20px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.orbit-plan svg{height:43px}.camera-controls{margin-top:2px}#cameraDialog .camera-shutter{width:68px;height:68px}}
@media(orientation:landscape) and (max-height:600px){#cameraDialog .camera-header{width:calc(100% - 260px);padding-top:max(8px,env(safe-area-inset-top));gap:8px}#cameraTitle{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.camera-topline{width:calc(100% - 260px)}#cameraDialog .camera-bottom{left:auto;width:254px;height:100%;padding:12px max(14px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) 14px;background:#080e13de;justify-content:center;gap:5px}#cameraDialog .camera-feedback{font-size:10px;padding:4px 7px}.orbit-plan{gap:6px}.orbit-plan svg{width:45%;height:40px}.orbit-plan strong{font-size:9px}.orbit-plan span{font-size:9px}.capture-stop{font-size:9px}.camera-controls{gap:5px}#cameraDialog .camera-shutter{width:66px;height:66px}#cameraDialog .camera-side-button{font-size:11px;min-width:50px}.camera-process-hint{font-size:9px}#cameraDialog .camera-tips{top:8px;right:266px;max-height:calc(100% - 16px);width:calc(100% - 282px)}#cameraDialog .camera-notice{top:auto;bottom:15px;left:16px;transform:none;max-width:calc(100% - 292px)}.camera-review{gap:7px}.camera-review-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}.camera-review-intro{font-size:11px}.camera-review-header .eyebrow{display:none}#cameraDialog .camera-review h2{font-size:19px}}
