/* Web camera shares the released APK presentation; native files are immutable. */
html body dialog.web-camera.apk-photo-camera{inset:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;padding:0!important;display:none!important;background:#102332!important;isolation:isolate}
html body dialog.web-camera.apk-photo-camera[open]{display:block!important}
html body .apk-photo-camera video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;padding:0!important;border-radius:0!important;visibility:hidden}
html body .apk-photo-camera.camera-ready video{visibility:visible}
.apk-photo-camera video::-webkit-media-controls,.apk-photo-camera video::-webkit-media-controls-overlay-play-button{display:none!important}
html body .apk-photo-camera header{position:absolute!important;inset:12px 12px auto!important;display:flex!important;align-items:flex-start!important;gap:12px!important;z-index:2}
.apk-photo-camera .camera-destination{padding:10px 14px;min-width:0;max-width:calc(100% - 56px);border:1px solid #ffffff66;border-radius:18px;background:#10233259;backdrop-filter:blur(8px);text-shadow:0 1px 3px #0007;overflow-wrap:anywhere}
html body .apk-photo-camera .camera-destination strong{display:block;font-size:19px!important;line-height:1.2}
.apk-photo-camera .camera-destination span{display:block;font-size:10px;opacity:.85;margin:5px 0 2px}.apk-photo-camera .camera-destination b{display:block;font-size:13px;line-height:1.3}
html body .apk-photo-camera button,html body .apk-photo-camera summary{box-sizing:border-box!important;color:#fff!important;background:#10233259!important;backdrop-filter:blur(8px);border:1px solid #ffffff80!important;box-shadow:0 2px 12px #10233222;border-radius:50%;padding:0!important;min-height:44px!important;min-width:44px!important;width:44px;height:44px;display:grid!important;place-items:center;font:600 16px/1 system-ui;-webkit-tap-highlight-color:transparent}
html body .apk-photo-camera header [data-cancel]{margin-left:auto!important;flex:none;font-size:27px!important;font-weight:400}
html body .apk-photo-camera button:disabled{opacity:.45!important}
html body .apk-photo-camera .camera-controls{position:static!important;display:contents!important;transform:none!important}
html body .apk-photo-camera [data-snap]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:80px;height:80px;min-width:80px!important;border:2px solid #ffffffbc!important;background:#ffffff40!important;color:#fff!important;z-index:2}
.apk-photo-camera svg{width:24px;height:24px}.apk-photo-camera [data-snap] svg{width:32px;height:32px;filter:drop-shadow(0 1px 2px #0008)}
html body .apk-photo-camera [data-snap]:active{background:#f8d91a80!important}
html body .apk-photo-camera [data-done]{position:absolute;right:12px;bottom:110px;width:auto;min-width:96px!important;padding:0 18px!important;border-radius:24px;background:#ffdb258c!important;border-color:#ffe260cc!important;color:#102332!important;height:48px;z-index:2}
html body .apk-photo-camera [data-resume]{position:absolute;left:50%;top:calc(50% + 58px);transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);height:auto;min-height:44px!important;padding:10px 16px!important;border-radius:24px;z-index:3;font-size:13px!important}
html body .apk-photo-camera .camera-shots{position:absolute;inset:auto 0 0!important;height:100px;max-height:100px!important;box-sizing:border-box;padding:8px 12px 12px;display:flex!important;flex-wrap:nowrap!important;gap:8px;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;touch-action:pan-x;scrollbar-width:none;background:linear-gradient(transparent,#10233280);align-items:center;z-index:2}
.apk-photo-camera .camera-shots::-webkit-scrollbar{display:none}.apk-photo-camera .camera-shots:empty{visibility:hidden}
.apk-photo-camera .camera-shots figure{position:relative;margin:0;flex:0 0 76px;height:80px;border:1px solid #ffffffb3;border-radius:14px;overflow:hidden;box-shadow:0 2px 8px #0003;background:#10233233}
html body .apk-photo-camera .camera-shots img{display:block;width:100%;height:100%;object-fit:cover;margin:0!important;border-radius:0!important}
.apk-photo-camera .camera-shots figcaption{position:absolute;right:4px;bottom:4px;min-width:18px;height:18px;padding:1px 3px;box-sizing:border-box;border-radius:9px;background:#10233280;color:#fff;font:600 11px/16px system-ui;text-align:center}
html body .apk-photo-camera [role=status]{position:absolute;left:12px;right:12px;bottom:166px;z-index:3;border-radius:14px;background:#10233280;backdrop-filter:blur(6px);padding:10px!important;box-sizing:border-box;max-height:25%;overflow:auto;line-height:1.4!important;font-size:13px!important;color:#fff!important}
html body .apk-photo-camera [role=status]:empty{display:none!important}
html body .apk-photo-camera .camera-note{display:block!important;position:absolute;left:12px;bottom:110px;z-index:4;margin:0!important;max-width:calc(100% - 24px)}
.apk-photo-camera .camera-note summary{list-style:none}.apk-photo-camera .camera-note summary::-webkit-details-marker{display:none}
.apk-photo-camera .camera-note label{display:block;position:absolute;left:0;bottom:54px;width:min(300px,calc(100vw - 24px));box-sizing:border-box;border:1px solid #fff8;border-radius:16px;padding:12px;background:#102332b3;backdrop-filter:blur(10px);font-size:13px;color:#fff}
html body .apk-photo-camera textarea{display:block;height:88px;min-height:88px!important;max-height:88px!important;width:100%;margin:8px 0 0;color:#fff;background:#ffffff24;border:1px solid #fff8;border-radius:10px;font-size:16px}
html body .apk-photo-camera [hidden]{display:none!important}
html body .apk-photo-camera button:focus-visible,html body .apk-photo-camera summary:focus-visible{outline:2px solid #ffe22a;outline-offset:3px}


@media(max-height:460px){html body .apk-photo-camera .camera-shots{height:84px;max-height:84px!important;padding-bottom:8px}.apk-photo-camera .camera-shots figure{height:68px;flex-basis:80px}html body .apk-photo-camera [data-done],html body .apk-photo-camera .camera-note{bottom:94px}html body .apk-photo-camera [role=status]{bottom:150px;left:calc(50% + 50px);right:12px;max-height:calc(100% - 170px)}.apk-photo-camera .camera-destination{padding:6px 12px;max-width:calc(50% - 60px)}html body .apk-photo-camera .camera-destination strong{font-size:16px!important}.apk-photo-camera .camera-destination b{font-size:11px}}
/* Keep controls away from the iPhone notch and home indicator. */
html.web-ui body dialog.web-camera.apk-photo-camera{margin:0!important;touch-action:manipulation}
html body .apk-photo-camera header{top:calc(12px + env(safe-area-inset-top))!important;left:calc(12px + env(safe-area-inset-left))!important;right:calc(12px + env(safe-area-inset-right))!important}
html body .apk-photo-camera .camera-shots{padding-bottom:calc(12px + env(safe-area-inset-bottom));height:calc(100px + env(safe-area-inset-bottom));max-height:calc(100px + env(safe-area-inset-bottom))!important}
html body .apk-photo-camera :is([data-done],.camera-note){bottom:calc(110px + env(safe-area-inset-bottom))}
html body .apk-photo-camera [role=status]{bottom:calc(166px + env(safe-area-inset-bottom))}
@media(max-height:460px){html body .apk-photo-camera .camera-shots{height:calc(84px + env(safe-area-inset-bottom));max-height:calc(84px + env(safe-area-inset-bottom))!important}html body .apk-photo-camera :is([data-done],.camera-note){bottom:calc(94px + env(safe-area-inset-bottom))}html body .apk-photo-camera [role=status]{bottom:calc(150px + env(safe-area-inset-bottom))}}

html.web-ui body dialog.web-camera.apk-photo-camera{border:0!important;border-radius:0!important}
/* Live video may exceed the screen to cover it; do not cap its intrinsic cover size. */
html body dialog.web-camera.apk-photo-camera video{max-width:none!important;min-width:0!important;min-height:0!important;}
/* Keep the inline source playing; show the canvas instead of an iOS video surface. */
html body dialog.web-camera.apk-photo-camera video{inset:0 auto auto 0!important;width:100%!important;height:100%!important;opacity:1!important;visibility:visible!important;pointer-events:none;transform:none!important;z-index:0}
html body dialog.web-camera.apk-photo-camera .camera-live-preview{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;pointer-events:none;visibility:hidden;z-index:1}
html body dialog.web-camera.apk-photo-camera.camera-ready .camera-live-preview{visibility:visible}
