.live-camera{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:24px;overflow:auto;background:#f8faf6;overscroll-behavior:contain}
.live-camera[open]{display:block}.live-camera [hidden]{display:none!important}
.live-camera-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.live-camera-pilot{display:inline-block;font-size:.61rem;font-weight:700;letter-spacing:.13em;color:#627457}
.live-camera-heading h2{font-size:1.65rem;margin:7px 0 0;letter-spacing:-.04em}
.live-camera-heading>.button{min-height:44px;padding:9px 11px}
.live-camera #live-camera-intro{font-size:.82rem;margin:13px 0 17px}
.live-camera-preview{position:relative;display:flex;align-items:center;justify-content:center;min-height:220px;height:min(60dvh,520px);background:#10231d;border-radius:14px;overflow:hidden}
.live-camera-preview video{width:100%;height:100%;object-fit:contain;display:block}
.live-camera-frame{position:absolute;width:72%;height:70%;max-width:320px;pointer-events:none;inset:12% 0 auto;margin:0 auto}
.live-camera-frame span{position:absolute;width:26px;height:26px;border-color:#daf3b4;border-style:solid;border-width:0;filter:drop-shadow(0 1px 2px #0007)}
.live-camera-frame span:nth-child(1){left:0;top:0;border-top-width:2px;border-left-width:2px;border-top-left-radius:9px}
.live-camera-frame span:nth-child(2){right:0;top:0;border-top-width:2px;border-right-width:2px;border-top-right-radius:9px}
.live-camera-frame span:nth-child(3){left:0;bottom:0;border-bottom-width:2px;border-left-width:2px;border-bottom-left-radius:9px}
.live-camera-frame span:nth-child(4){right:0;bottom:0;border-bottom-width:2px;border-right-width:2px;border-bottom-right-radius:9px}
.live-camera-indicator{position:absolute;top:12px;left:12px;right:12px;justify-self:start;width:fit-content;max-width:calc(100% - 24px);border-radius:7px;background:#10231de8;color:#edf7e7;font-size:.68rem;line-height:1.4;padding:7px 10px}
.live-camera-overlay{position:absolute;bottom:13px;left:13px;right:13px;background:#10231def;border:1px solid #637953;border-radius:9px;padding:12px;overflow:hidden}
.live-camera-overlay>span{display:block;font-size:.56rem;font-weight:650;letter-spacing:.1em;color:#b7c9ad;margin-bottom:5px}
.live-camera-overlay strong{display:block;color:#e5facb;font-size:1rem;overflow-wrap:anywhere;line-height:1.3;max-height:2.6em;overflow:hidden}
.live-camera .live-camera-overlay p{font-size:.83rem;line-height:1.5;color:#dcf6b9;margin:4px 0 0;overflow-wrap:anywhere;white-space:pre-wrap;max-height:min(22dvh,150px);overflow:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.live-camera-guidance{min-height:54px;display:flex;align-items:center;padding:12px 2px;font-size:.78rem;line-height:1.45;color:#52634b}
.live-camera .live-camera-error{margin:0 0 12px;background:#fff0da;border:1px solid #efdbb9;color:#77501a;border-radius:9px;padding:11px 13px;font-size:.79rem;line-height:1.5}
.live-camera .live-camera-error:empty{display:none}
.live-camera-footer{position:sticky;bottom:-24px;display:grid;gap:8px;padding:5px 0 2px;background:#f8faf6;z-index:2}
.live-camera-footer .button{width:100%;min-height:49px;font-size:.88rem}
@media(max-width:600px){.live-camera{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding:17px;border-radius:14px}.live-camera-heading h2{font-size:1.5rem}.live-camera #live-camera-intro{font-size:.77rem;margin:12px 0 14px}.live-camera-preview{height:min(60dvh,530px);min-height:210px}.live-camera-guidance{min-height:52px;font-size:.75rem}.live-camera-footer{bottom:-17px}.live-camera-pilot{font-size:.58rem}}
@media(max-height:650px){.live-camera-preview{height:calc(100dvh - 240px);min-height:180px}.live-camera #live-camera-intro{margin:9px 0 11px}.live-camera-guidance{min-height:45px;padding:9px 2px}}
@media(max-height:480px) and (orientation:landscape){.live-camera{width:min(760px,calc(100vw - 24px))}.live-camera-preview{height:220px}.live-camera-footer{position:static}}
