.story-camera{--camera-white:#fafafa;position:fixed;inset:0;box-sizing:border-box;width:min(100vw,450px);height:100dvh;max-width:none;max-height:960px;margin:auto;padding:0;border:0;border-radius:24px;background:#0b0b0c;color:var(--camera-white);overflow:hidden;color-scheme:dark}
.story-camera::backdrop{background:rgba(0,0,0,.88);backdrop-filter:blur(12px)}
.camera-shell{position:relative;display:flex;flex-direction:column;width:100%;height:100%;margin:0;padding:0;isolation:isolate}
.story-camera .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.story-camera button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.story-camera button:focus-visible{outline:2px solid white;outline-offset:5px}
.story-camera button:disabled{opacity:.45;cursor:wait}
.camera-top{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;flex:none;height:70px;padding:env(safe-area-inset-top,0px) 18px 0;background:#0b0b0c}
.camera-heading{position:absolute;left:50%;transform:translateX(-50%);font-size:15px;font-weight:650;letter-spacing:.1px;pointer-events:none}
.camera-icon,.camera-caption-toggle{display:grid;place-items:center;width:42px;height:42px;padding:9px;border:0;border-radius:50%;background:transparent;color:white}
.camera-icon svg{width:25px;height:25px}.camera-torch{margin-left:auto}.camera-torch.on{color:#ffe393}
.camera-retake:not([hidden])+.camera-dismiss{margin-left:auto;margin-right:4px}
.camera-top:has(.camera-retake:not([hidden])) .camera-heading{display:none}
.camera-caption-toggle{font-size:24px;font-weight:600;letter-spacing:-2px}
.camera-frame{position:relative;flex:1;min-height:0;margin:0 8px;overflow:hidden;border-radius:16px;background:#141416}
.camera-live,.camera-result,.camera-result img,.camera-result video{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:cover}
.camera-live.mirrored{transform:scaleX(-1)}
.camera-result img,.camera-result video{object-fit:contain}
.camera-idle{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:23px;background:radial-gradient(ellipse at 50% 40%,#252528 0,#121214 75%)}
.camera-idle-icon svg{width:44px;height:44px;stroke-width:1.2;color:#a1a1a7}
.camera-native-open{padding:11px 18px;border:1px solid #535358;border-radius:24px;background:transparent;color:white;font-size:14px}
.camera-tools{flex:none;padding:22px 32px max(22px,env(safe-area-inset-bottom));background:#0b0b0c}
.camera-modes{display:flex;justify-content:center;gap:28px;margin-bottom:21px}
.camera-modes button{position:relative;border:0;padding:0 0 9px;background:none;color:#838389;text-transform:uppercase;font-size:11px;font-weight:700;letter-spacing:1.4px}
.camera-modes button.selected{color:white}.camera-modes button.selected:after{content:"";position:absolute;bottom:0;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:white}
.camera-controls{display:grid;grid-template-columns:1fr 86px 1fr;align-items:center;justify-items:center;gap:30px}
.camera-library,.camera-flip{display:grid;place-items:center;width:44px;height:44px;border:0;background:none;color:white;padding:7px}
.camera-library svg{width:30px;height:30px;stroke-width:1.5}.camera-flip svg{width:28px;height:28px;stroke-width:1.6}
.camera-shutter{display:grid;place-items:center;width:80px;height:80px;padding:5px;border:3px solid white;border-radius:50%;background:none}
.camera-shutter span{width:100%;height:100%;border-radius:50%;background:white;transition:transform .12s,background .12s}.camera-shutter:active span{transform:scale(.9)}.camera-shutter.video-mode span{background:#f04455}
.camera-controls-caption{display:block;margin-top:17px;color:#aaaab0;text-align:center;font-size:11px;letter-spacing:.25px}
.camera-feedback{position:absolute;z-index:5;top:83px;left:24px;right:24px;margin:0;padding:11px 14px;border-radius:12px;background:rgba(0,0,0,.72);color:white;font-size:12px;line-height:1.5;text-align:center;backdrop-filter:blur(10px);overflow-wrap:anywhere}
.camera-editor{flex:none;padding:16px 18px max(18px,env(safe-area-inset-bottom));background:#0b0b0c}
.camera-city-option{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 0 16px;font-size:13px;cursor:pointer}.camera-city-option small{display:block;color:#94949c;font-size:11px;margin-top:3px}.camera-city-option input{appearance:none;flex:none;width:42px;height:25px;margin:0;border:0;border-radius:20px;background:#47474d;cursor:pointer;transition:background .15s}.camera-city-option input:before{content:"";display:block;width:19px;height:19px;margin:3px;border-radius:50%;background:white;transition:transform .15s}.camera-city-option input:checked{background:#6d59d4}.camera-city-option input:checked:before{transform:translateX(17px)}
.camera-caption-area{position:absolute;z-index:2;left:24px;right:24px;bottom:calc(170px + env(safe-area-inset-bottom,0px))}
.camera-caption-area textarea{display:block;box-sizing:border-box;width:100%;min-height:44px;max-height:120px;margin:0;padding:12px 16px;border:0;border-radius:12px;background:rgba(0,0,0,.7);color:white;resize:none;font-size:16px;line-height:1.4;text-align:center;backdrop-filter:blur(8px)}
.camera-caption-area textarea::placeholder{color:#c5c5ca}
.camera-send-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:50px}
.camera-audience{font-size:12px;color:#aaaab0;white-space:nowrap}
.camera-publish{display:flex;align-items:center;justify-content:center;gap:13px;max-width:75%;padding:14px 18px;border:0;border-radius:28px;background:white;color:#141416;font-size:13px;font-weight:650;line-height:1.2}
.camera-publish svg{flex:none;width:20px;height:20px}.camera-publish-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:600px){.story-camera{width:100vw;height:100dvh;max-height:none;border-radius:0}.camera-top{height:64px}.camera-tools{padding-top:21px;padding-bottom:max(26px,env(safe-area-inset-bottom))}.camera-frame{border-radius:13px}.camera-feedback{top:calc(76px + env(safe-area-inset-top,0px))}}
@media(prefers-reduced-motion:reduce){.camera-shutter span{transition:none}}
