/* The camera is the canvas; the same existing composer controls stay above it. */
.pk-composer-camera{position:relative;isolation:isolate;overflow:hidden}
.pk-camera-preview{position:absolute;inset:0;z-index:-1;border-radius:inherit;background:#090c0d}
.pk-camera-preview[hidden],.pk-camera-switch[hidden],.pk-camera-status[hidden],.pk-camera-native[hidden]{display:none}
.pk-camera-video{width:100%;height:100%;object-fit:cover;display:block}
.is-camera-front .pk-camera-video{transform:scaleX(-1)}
.pk-camera-preview::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.28),transparent 30%,transparent 56%,rgba(0,0,0,.72))}
.pk-composer-takeover.is-active .pk-composer-camera.has-live-camera{border:1px solid rgba(255,255,255,.14);border-radius:24px;min-height:min(65dvh,660px);justify-content:flex-end;padding:24px 18px;color:#fff}
.pk-composer-camera.has-live-camera .pk-composer-camera-scene,.pk-composer-camera.has-live-camera .pk-composer-camera-title,.pk-composer-camera.has-live-camera .pk-composer-camera-copy{visibility:hidden;position:absolute;pointer-events:none}
.pk-composer-camera.has-live-camera .pk-drop-hint{display:none}
.pk-composer-camera.has-live-camera .pk-composer-camera-actions{margin-top:0;position:relative;display:flex;align-items:center;justify-content:center;width:100%;padding:0 52px}
.pk-composer-camera.has-live-camera .pk-composer-library{position:absolute;left:0;bottom:10px;width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;border-radius:14px;color:#fff;background:rgba(15,18,19,.38);border:1px solid rgba(255,255,255,.28);backdrop-filter:blur(12px)}
.pk-composer-camera.has-live-camera .pk-composer-library>span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pk-composer-camera.has-live-camera .pk-composer-library svg{width:23px;height:23px}
.pk-composer-camera.has-live-camera .pk-composer-shutter{width:76px;height:76px;flex:none;border:2px solid rgba(255,255,255,.95);background:rgba(255,255,255,.12);box-shadow:0 3px 28px rgba(0,0,0,.3);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.pk-composer-camera.has-live-camera .pk-composer-shutter>span{background:#f7f5ef;border:0;box-shadow:none}
.pk-composer-camera.is-camera-recording .pk-composer-shutter>span{background:#c92530;border-radius:10px;width:30px;height:30px}
.pk-camera-switch{position:absolute;right:0;bottom:10px;width:44px;height:44px;min-height:44px;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(15,18,19,.38);color:#fff;font-size:29px;line-height:1;cursor:pointer;backdrop-filter:blur(12px)}
.pk-camera-switch:focus-visible,.pk-composer-camera.has-live-camera .pk-composer-library:focus-within{outline:2px solid #fff;outline-offset:4px}
.pk-camera-switch:disabled{opacity:.4;cursor:default}
.pk-camera-status{margin:10px 0 0;font-size:13px;line-height:1.45;color:#ced5d6;max-width:340px;text-align:center;overflow-wrap:anywhere}
.pk-camera-native{min-height:44px;padding:8px 14px;border:0;border-radius:999px;background:transparent;color:#d5dddd;font:500 13px/1.4 var(--fs-font);cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.pk-camera-native:focus-visible{outline:2px solid #fff;outline-offset:3px}
.has-live-camera .pk-camera-status,.has-live-camera .pk-composer-camera-device{color:#fff;text-shadow:0 1px 7px #000;position:relative;font-size:12px;line-height:1.4}
.is-camera-recording .pk-camera-status::before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#f24242}
.pk-camera-flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none}
.did-camera-capture .pk-camera-flash{animation:pk-camera-shutter-flash .18s ease-out both}
@keyframes pk-camera-shutter-flash{from{opacity:.65}to{opacity:0}}
@media(max-width:759px){.pk-composer-takeover.is-active .pk-composer-camera.has-live-camera{min-height:min(65dvh,650px);border-radius:20px;padding:18px 14px}.pk-composer-camera.has-live-camera .pk-composer-camera-actions{gap:0}}
@media(max-height:640px){.pk-composer-takeover.is-active .pk-composer-camera.has-live-camera{min-height:360px}}
@media(prefers-reduced-motion:reduce){.did-camera-capture .pk-camera-flash{animation:none}.pk-composer-camera.has-live-camera .pk-composer-shutter>span{transition:none}}
