*{box-sizing:border-box}html,body{margin:0;background:#000;color:#fff;font-family:system-ui,-apple-system,sans-serif}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid #f50057;outline-offset:3px}.camera-app{height:100dvh;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top)}#camera-stage{position:relative;flex:1;min-height:0;background:#17191f;overflow:hidden;border-radius:0 0 24px 24px}#camera-preview{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}#camera-preview,#camera-preview.front{transform:none}#camera-placeholder{position:absolute;top:35%;left:20px;right:20px;text-align:center;color:#ccc;line-height:1.6}.camera-close,#flip-camera{position:absolute;top:12px;background:#0002;border:0;color:#fff;width:48px;height:48px;display:grid;place-items:center;text-decoration:none;font-size:36px;border-radius:50%}.camera-close{left:8px}#flip-camera{right:8px}.camera-controls{position:absolute;bottom:24px;left:0;right:0;text-align:center}.camera-modes{display:flex;justify-content:center;gap:14px;margin-bottom:20px}.camera-modes button{border:0;border-radius:24px;padding:9px 14px;background:#0004;color:white;font-weight:750}.camera-modes button[aria-pressed=true]{background:#fff;color:#17191f}#shutter{width:84px;height:84px;border:3px solid white;border-radius:50%;padding:4px;background:transparent}#shutter span{display:block;width:100%;height:100%;background:white;border-radius:50%}#shutter.video span{background:#f50057}.camera-footer{height:90px;flex-shrink:0;padding:10px 24px calc(10px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:12px}.camera-footer a{color:#aaa;text-decoration:none;font-size:14px}.camera-footer strong{font-size:15px}#choose-gallery{border:0;background:transparent;color:white;display:grid;justify-items:center;gap:3px;min-width:48px;min-height:48px;padding:0}#choose-gallery svg{width:34px;height:34px}#choose-gallery small{font-size:11px}#social-status{margin:0;padding:4px 18px 8px;font-size:12px;color:#eee}#social-status:empty{display:none}dialog{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:env(safe-area-inset-top) 0 0;background:white;color:#17191f;overscroll-behavior:contain}dialog[open]{display:flex;flex-direction:column}dialog header{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;gap:10px}dialog h1{font-size:17px;margin:0}dialog header button{border:0;background:transparent;min-width:44px;min-height:44px;font-weight:700}#close-picker{font-size:30px}.media-filters{display:flex;gap:8px;padding:4px 12px 10px}.media-filters button{flex:1;min-height:44px;background:transparent;border:0;color:#626b7a;font-weight:700;border-bottom:2px solid transparent}.media-filters button[aria-pressed=true]{color:#17191f;border-color:#17191f}#selection-status{font-size:12px;padding:0 14px;margin:4px 0 10px;color:#626b7a}#media-grid{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:2px}.media-choice{position:relative;aspect-ratio:3/4;overflow:hidden;border:0;background:#eee;padding:0}.media-choice img,.media-choice video{width:100%;height:100%;object-fit:cover;display:block}.media-choice .tick{position:absolute;right:7px;top:7px;width:25px;height:25px;border:1.5px solid white;background:#0003;border-radius:50%;color:#fff;font-size:14px;display:grid;place-items:center}.media-choice[aria-pressed=true] .tick{background:#f50057;border-color:#f50057}.media-choice .kind{position:absolute;bottom:5px;left:6px;color:white;background:#0005;border-radius:4px;padding:2px 5px;font-size:10px}.media-choice .result{position:absolute;bottom:25px;left:4px;right:4px;background:#0009;color:white;font-size:10px;padding:4px}.picker-footer{display:flex;gap:14px;justify-content:space-between;align-items:center;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:white;border-top:1px solid #eee}.picker-footer button{min-height:48px;border:0;border-radius:26px;padding:10px 18px;font-weight:750}#select-all{background:transparent;color:#17191f}#upload-next{background:#f50057;color:white;min-width:140px}#upload-next:disabled{background:#eee;color:#aaa}button:disabled{cursor:default}#media-picker.busy .media-filters,#media-picker.busy #select-all{pointer-events:none;opacity:.6}@media(min-width:700px){.camera-app{max-width:520px;margin:auto}#media-picker{max-width:620px;margin:auto}}
[hidden]{display:none!important}.creation-modes{width:260px;max-width:100%;overflow:hidden;flex-shrink:0}.mode-track{display:flex;align-items:center;width:max-content;gap:28px;transform:translateX(var(--mode-offset,95px));transition:transform .28s ease}.mode-track button,.mode-track a{background:none;border:0;color:#999;font-size:14px;font-weight:750;padding:12px 0;flex-shrink:0}.mode-track [aria-selected=true]{color:white}#choose-gallery{position:absolute;left:20px}.camera-footer{position:relative;justify-content:center}.record-progress{display:none;position:absolute;inset:-4px;width:calc(100% + 8px);height:calc(100% + 8px);transform:rotate(-90deg)}.record-progress circle{fill:none;stroke:#ff2558;stroke-width:5;stroke-linecap:round;stroke-dasharray:289;stroke-dashoffset:var(--record-progress,289)}#shutter{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.capturing .camera-modes,.capturing .camera-close,.capturing #flip-camera,.capturing .camera-footer,.capturing #social-status,.capturing #camera-placeholder{visibility:hidden}.capturing #camera-stage{border-radius:24px}.capturing #shutter{width:108px;height:108px;border:0;background:#ffffff55;padding:32px}.capturing .record-progress{display:block}.capturing .camera-controls{bottom:30px}.capturing #shutter span{background:white}#create-hub{flex:1;min-height:0;overflow:auto;padding:8px 16px 24px}#create-hub header{display:flex;align-items:center;justify-content:center;position:relative;height:54px}#create-hub h1{font-size:22px;margin:0}#create-hub header a{position:absolute;left:0;color:white;font-size:32px;text-decoration:none}.create-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 28px}.create-actions button{background:#202024;color:white;border:0;border-radius:14px;font-size:30px;min-height:90px}.create-actions span{display:block;font-size:13px;font-weight:700}.create-actions button:first-child{background:linear-gradient(110deg,#fff0e8,#e9fbff);color:#17191f}.template-heading{display:flex;align-items:center;justify-content:space-between}.template-heading h2{font-size:22px;margin:0 0 14px}.template-heading span{font-size:10px;color:#999}.template-copy{display:block;font-size:12px;color:#aaa;margin:0 0 18px}.template-copy input{display:block;border:1px solid #444;color:white;background:#1c1c20;border-radius:10px;font:inherit;padding:12px;width:100%;margin-top:6px}#template-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px}.template-card{padding:0;text-align:left;background:none;color:white;border:0}.template-art{aspect-ratio:3/4;border-radius:14px;display:grid;place-items:center;overflow:hidden;padding:14px;background:linear-gradient(140deg,#eee3d7,#a68d78)}.template-art span{font-size:22px;text-align:center;font-weight:850;letter-spacing:2px}.polaroid .template-art span{background:#fff;color:#766453;padding:60px 8px 24px;transform:rotate(-7deg);box-shadow:4px 8px 0 #ffffff77}.poster .template-art{background:linear-gradient(150deg,#37102c,#f50057)}.minimal .template-art{background:linear-gradient(150deg,#e4ece7,#68897b);color:#243b31}.template-card strong,.template-card small{display:block;margin-top:6px}.template-card strong{font-size:14px}.template-card small{font-size:11px;color:#aaa}.create-mode #choose-gallery{visibility:hidden}@media(prefers-reduced-motion:reduce){.mode-track{transition:none}}
.capture-review{background:#000;color:#fff;padding:0;overflow:hidden}.capture-review[open]{display:block}.review-stage{position:absolute;inset:0 0 104px;overflow:hidden;border-radius:22px;background:#17191f}.review-stage video{width:100%;height:100%;object-fit:cover}.review-back,.review-tools button{border:0;background:#0003;color:#fff;min-width:44px;min-height:44px;border-radius:50%;font-size:26px}.review-back{position:absolute;left:10px;top:calc(14px + env(safe-area-inset-top));font-size:38px}.review-tools{position:absolute;right:10px;top:calc(24px + env(safe-area-inset-top));display:grid;gap:18px}.capture-review footer{position:absolute;bottom:0;left:0;right:0;padding:8px 16px calc(14px + env(safe-area-inset-bottom));height:104px;display:flex;flex-direction:column;gap:10px}.capture-review footer p{font-size:11px;color:#aaa;margin:0;text-align:center}.capture-review footer button{border:0;background:#ff2558;color:white;border-radius:30px;min-height:48px;font-weight:800}.media-editor .me-preview{flex:0 0 42dvh;width:100%}.media-editor .me-controls{flex-shrink:0}

#camera-stage{border-radius:22px}.camera-close{background:transparent;font-weight:300;font-size:40px}.camera-sound{position:absolute;top:12px;left:50%;transform:translateX(-50%);border:0;border-radius:30px;padding:12px 20px;color:white;background:#0006;font-size:16px;font-weight:750;white-space:nowrap;min-height:44px}.camera-toolbar{position:absolute;right:8px;top:12px;display:flex;flex-direction:column;gap:12px;z-index:3;align-items:center}.camera-toolbar button{display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;color:white;padding:7px}.camera-toolbar svg{width:30px;height:30px;filter:drop-shadow(0 1px 2px #0003)}.camera-toolbar #flip-camera{position:static;background:transparent;border-radius:0}.camera-toolbar button:disabled{opacity:.45}.camera-toolbar [aria-pressed=true]{background:#ffffff35;border-radius:12px}.camera-tool-divider{width:20px;height:1px;background:#fff7;margin:0 0 2px}.camera-controls{bottom:24px}.camera-modes{gap:6px;align-items:center;margin-bottom:18px}.camera-modes button{padding:7px 10px;background:none;font-size:14px}.camera-modes #video-mode{display:none}#shutter{width:82px;height:82px}.camera-footer{height:82px}.creation-modes{width:100%;max-width:360px}.mode-track{gap:26px}.mode-track button,.mode-track a{font-size:15px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#camera-grid-lines{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 33.2%,#fff5 33.3%,#fff5 33.5%,transparent 33.6%,transparent 66.4%,#fff5 66.5%,#fff5 66.7%,transparent 66.8%),linear-gradient(transparent 33.2%,#fff5 33.3%,#fff5 33.5%,transparent 33.6%,transparent 66.4%,#fff5 66.5%,#fff5 66.7%,transparent 66.8%)}#camera-countdown{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:64px;font-weight:800;border-radius:50%;background:#0007;width:120px;height:120px;text-align:center;line-height:120px}.capturing .camera-toolbar,.capturing .camera-sound,.capturing #camera-grid-lines{visibility:hidden}#camera-options{inset:auto 0 0;height:auto;max-height:65dvh;background:#17191f;color:#fff;border-radius:20px 20px 0 0;padding:12px 16px calc(20px + env(safe-area-inset-bottom));overflow:auto}#camera-options header{padding:0 0 12px}#camera-options button{color:white;background:#292a30;border:0;border-radius:12px;min-height:44px;padding:10px 16px}#camera-options-content{display:flex;gap:12px;flex-wrap:wrap}#camera-options-content label{display:flex;gap:10px;align-items:center}#camera-options-content input{accent-color:#f50057}#camera-options-content button[aria-pressed=true]{background:#f50057}@media(max-height:650px){.camera-toolbar{gap:5px}.camera-toolbar button{width:38px;height:38px}.camera-controls{bottom:12px}}

.mode-track{gap:16px}.mode-track button,.mode-track a{font-size:14px}

.capture-review .review-back{background:transparent;border:0;border-radius:0;box-shadow:none;color:#fff}.capture-review .review-back:focus:not(:focus-visible){outline:none}

/* Compact sound chip in the recorded-video preview. */
.capture-review .review-sounds{top:calc(12px + env(safe-area-inset-top));left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:calc(100% - 144px);z-index:3}.capture-review .review-sounds .sounds-controls{margin:0;padding:0;border-radius:32px;background:#0006;backdrop-filter:blur(8px);max-width:100%}.capture-review .review-sounds .sounds-control-top{gap:0;min-width:0;max-width:100%}.capture-review .review-sounds .sounds-control-top button:first-child{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;font-size:15px;font-weight:750;min-height:44px;padding:10px 12px;background:transparent;border-radius:30px 0 0 30px}.capture-review .review-sounds .sounds-control-top button:nth-child(2){display:none}.capture-review .review-sounds .sounds-control-top button:nth-child(3){flex:0 0 36px;position:relative;width:36px;min-height:28px;font-size:22px;line-height:1;padding:0 8px;background:transparent;border-left:1px solid #ffffff50;border-radius:0}.capture-review .review-sounds details{display:none!important}.capture-review .review-sounds .sounds-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;margin:0}.capture-review .review-back{top:calc(12px + env(safe-area-inset-top));background:none;border:0;border-radius:0;outline:none;box-shadow:none}.capture-review .review-back:focus-visible{outline:none;text-shadow:0 0 6px #fff}.capture-review .review-tools{top:calc(12px + env(safe-area-inset-top))}

.capture-review .review-stage>video{transform:none}.capture-review video{direction:ltr}

#camera-ar-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:none;pointer-events:none}#camera-grid-lines{z-index:1}.camera-controls,.camera-close,.camera-sound{z-index:2}#camera-countdown{z-index:4}.camera-beauty-controls{width:100%;display:grid;gap:18px}.camera-beauty-controls label{display:grid!important;grid-template-columns:1fr auto;gap:8px!important}.camera-beauty-controls input{grid-column:1/-1;width:100%;min-height:40px}.camera-beauty-controls output{color:#ff4081}.camera-beauty-controls p{font-size:13px;line-height:1.5;margin:0}

.beauty-color-group{display:grid;gap:10px}.camera-beauty-controls input[type=color]{width:100%;height:46px;min-height:46px;border:1px solid #555;border-radius:10px;background:#222;padding:4px}.beauty-color-presets{display:flex;gap:10px;flex-wrap:wrap}#camera-options .beauty-color-swatch{width:44px;height:44px;min-height:44px;padding:0;border:2px solid #ffffff80;overflow:hidden;font-size:0;border-radius:50%}.beauty-color-swatch:focus-visible{outline:2px solid white;outline-offset:3px}

.camera-ar-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}.camera-ar-gallery button{min-height:58px;overflow-wrap:anywhere}.camera-ar-gallery button[aria-pressed=true]{outline:2px solid #f50057}

/* Camera sheet: no simulated browser chrome. Native safe areas and dynamic viewport. */
.camera-app{position:relative;height:100vh;height:100dvh;overflow:hidden;padding-top:env(safe-area-inset-top);--effects-height:38dvh}#camera-stage{border-radius:0;flex:1;min-height:0}#camera-preview,#camera-ar-preview{object-fit:contain;object-position:center;inset:0;width:100%;height:100%}#camera-stage>#flip-camera{position:absolute;top:10px;right:10px;width:44px;height:44px;z-index:5;background:#0003}#flip-camera svg{width:28px;height:28px}.camera-close{top:10px;left:10px;width:44px;height:44px;font-size:34px;z-index:5}.camera-sound{top:10px;max-width:calc(100% - 140px);overflow:hidden;text-overflow:ellipsis;font-size:14px;padding:10px 17px;min-height:44px}.camera-toolbar{top:70px;bottom:180px;right:8px;gap:9px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}.camera-toolbar button{flex-shrink:0;width:50px;height:55px;padding:3px;gap:2px}.camera-toolbar button small{font-size:10px;line-height:14px;text-shadow:0 1px 3px #000}.camera-toolbar svg{width:27px;height:27px}.camera-tool-divider{display:none}.camera-effect-pill{position:absolute;bottom:185px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);padding:8px 14px;border-radius:24px;background:#14161de0;color:#fff;font-size:12px;text-align:center;z-index:4;pointer-events:none}.effects-open #camera-stage{flex:none;height:calc(100% - var(--effects-height));min-height:0}.effects-open .camera-footer,.effects-open .camera-controls,.effects-open #social-status{display:none}.effects-open .camera-toolbar{bottom:52px}.effects-open .camera-effect-pill{bottom:10px}.effects-open #camera-placeholder{top:46%;font-size:12px;padding-right:40px}#effects-sheet{position:absolute;bottom:0;left:0;right:0;height:var(--effects-height);max-height:76%;min-height:28%;background:#191c23;color:#f8f8fc;border-radius:24px 24px 0 0;z-index:10;display:flex;flex-direction:column;padding:0 14px env(safe-area-inset-bottom);box-shadow:0 -4px 20px #0002;overflow:hidden}#effects-sheet[hidden]{display:none}.effects-header{position:relative;flex-shrink:0;height:57px;display:flex;align-items:end;padding:18px 0 9px;gap:6px;touch-action:none;user-select:none}.effects-header h2{margin:0;flex:1;font-size:18px;line-height:24px}.effects-header button{border:0;color:#fff;background:#2b2e37;border-radius:50%;width:34px;height:34px;padding:0;font-size:23px;flex-shrink:0}.effects-header .effects-info{font-size:19px;background:transparent}.effects-header .effects-handle{position:absolute;top:0;left:calc(50% - 32px);width:64px;height:18px;background:transparent;border-radius:8px}.effects-handle span{display:block;width:40px;height:5px;background:#636875;border-radius:5px;margin:auto}.effects-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #4b4c54;flex-shrink:0}.effects-tabs button{font:inherit;font-size:13px;font-weight:700;border:0;border-bottom:3px solid transparent;background:transparent;color:#bfc1ca;min-height:40px;padding:7px 3px}.effects-tabs [aria-selected=true]{color:#ff0063;border-bottom-color:#ff0063}.effects-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 0 10px;scrollbar-width:thin}.effects-tiles{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;padding:2px 2px 8px;scroll-snap-type:x proximity}.effect-tile{flex:0 0 78px;min-width:0;background:none;border:0;color:#e9e9ef;padding:0;font:inherit;font-size:11px;display:grid;gap:5px;scroll-snap-align:start;align-content:start}.effect-art{display:flex;position:relative;width:78px;height:78px;overflow:hidden;border:2px solid transparent;border-radius:12px;background:#30343c;align-items:center;justify-content:center;flex-direction:column}.effect-art img{width:100%;height:100%;object-fit:contain}.effect-art small{font-size:9px;padding:0 3px}.effect-no-preview{font-size:24px;color:#a8acb6}.effect-tile[aria-pressed=true] .effect-art{border-color:#ff0063}.effect-check{position:absolute;bottom:2px;right:2px;display:grid;place-items:center;background:#ff0063;border-radius:50%;width:22px;height:22px;color:white;font-size:15px}.effects-strength{display:flex;align-items:center;gap:10px;font-size:12px;min-height:44px}.effects-strength input{flex:1;min-width:0;accent-color:#ff0063;min-height:36px;touch-action:pan-x}.effects-strength output{min-width:25px;text-align:right}.effects-reset{background:#2c3039;border:0;color:#fff;border-radius:24px;padding:8px 14px;min-height:40px;font-size:12px}.makeup-parts{display:flex;gap:8px;margin:4px 0 8px}.makeup-parts button{border:1px solid #4d5260;background:transparent;border-radius:20px;color:#d5d7df;padding:8px 14px;min-height:36px}.makeup-parts [aria-pressed=true]{border-color:#ff0063;color:#ff458c}.makeup-swatches{display:flex;gap:12px;align-items:center;overflow:auto;padding:3px 2px}.makeup-swatches button,.makeup-swatches input{flex-shrink:0;width:34px;height:34px;border:2px solid #ffffff40;border-radius:50%;color:#fff;font-size:20px;padding:0}.makeup-swatches [aria-pressed=true]{outline:2px solid #ff0063;outline-offset:2px}.makeup-swatches input{border-radius:8px;background:#333}.effects-status,.effects-help{font-size:12px;color:#c4c8d3;line-height:1.5;margin:6px 0 0}.effects-status:empty{display:none}#effects-sheet[aria-busy=true] .effects-tiles{pointer-events:none;opacity:.65}.capturing .camera-effect-pill{visibility:hidden}@media(min-width:700px){.camera-app{max-width:480px}}@media(max-height:650px){.camera-toolbar{gap:3px}.camera-toolbar button{height:48px}.effects-header{height:50px}.effects-header h2{font-size:16px}.effect-art{width:66px;height:66px}.effect-tile{flex-basis:66px}.effects-content{padding-top:8px}}

/* Original SYOPER preset illustrations, circular and horizontally scrollable. */
.effects-tiles{gap:14px;padding:3px 3px 10px}.effect-tile{flex-basis:76px;font-size:11px;gap:7px}.effect-art{width:76px;height:76px;border-radius:50%;border:2px solid #ffffff18;background:#30343c}.effect-art img{object-fit:cover;border-radius:50%}.effect-tile[aria-pressed=true] .effect-art{border:3px solid #ff0063;box-shadow:0 0 0 2px #ff00631f}.effect-check{width:20px;height:20px;font-size:13px;right:3px;bottom:3px;box-shadow:0 0 0 2px #191c23}.filter-scenes{display:flex;gap:8px;padding:0 2px 12px}.filter-scenes button{font:inherit;font-size:12px;min-height:36px;padding:6px 16px;background:#292d36;color:#d6d8e1;border:1px solid transparent;border-radius:20px}.filter-scenes [aria-pressed=true]{color:#ff5b99;border-color:#ff0063;background:#ff006315}.face-adjustments{display:flex;padding:4px 0 7px}.face-adjustment,.makeup-parts button{display:flex;flex-direction:column;align-items:center;gap:4px;font:inherit;font-size:11px;min-width:58px;padding:7px 9px;color:#c4c8d3;border:1px solid #4d5260;border-radius:14px;background:transparent}.face-adjustment svg,.makeup-parts svg{width:28px;height:28px}.face-adjustment[aria-pressed=true]{border-color:#ff0063;color:#ff458c}.makeup-parts{gap:12px}.effects-help{font-size:11px}@media(max-height:650px){.effect-art{width:66px;height:66px}.effect-tile{flex-basis:66px}}
/* Latest reference: portrait cards with rounded corners rather than circular avatars. */
.effects-tiles{gap:10px;padding:3px 2px 10px}.effect-tile{flex-basis:72px;font-size:12px;gap:6px;font-weight:550}.effect-art{width:72px;height:88px;border-radius:10px;border:2px solid transparent}.effect-art img{border-radius:7px;object-fit:cover}.effect-tile[aria-pressed=true] .effect-art{border:3px solid #ff0063;box-shadow:none}.effect-check{bottom:3px;right:3px;box-shadow:none}.effects-header h2{font-size:19px}.filter-scenes{padding-bottom:8px;gap:6px}.filter-scenes button{min-height:28px;font-size:11px;padding:4px 12px}.effects-strength{display:grid;grid-template-columns:minmax(0,1fr) 28px 40px;gap:8px;min-height:80px;margin-top:10px}.effects-strength>span{grid-column:1/-1;font-size:12px}.effects-strength input{width:100%;margin:0;grid-column:1;accent-color:#ff0063}.effects-strength output{grid-column:2;font-size:12px}.effects-strength .effects-reset{grid-column:3;grid-row:2;border-radius:50%;width:38px;min-height:38px;height:38px;font-size:24px;padding:0;background:#2b2e38}.effects-header .effects-close{width:34px;height:34px}.effects-content{padding-top:10px}.effects-strength input::-webkit-slider-runnable-track{border-radius:8px}.effect-art .effect-no-preview{font-size:22px}@media(max-height:650px){.effect-art{width:66px;height:82px}.effect-tile{flex-basis:66px}}
/* Keep the portrait row and Intensity visible together on a typical phone viewport. */
.camera-app{--effects-height:40dvh}#effects-sheet .effects-header{height:55px;align-items:center;padding:18px 0 6px;gap:4px}#effects-sheet .effects-header h2{font-size:17px;white-space:nowrap}.effects-tabs button{min-height:36px}.effect-art{height:82px}.effects-tiles{padding-bottom:8px}.filter-scenes{display:block;width:80px;max-width:80px;min-height:30px;flex-shrink:0;margin:0;padding:3px 4px;border:1px solid #4d5260;border-radius:14px;background:#282c35;color:#e2e4eb;font:inherit;font-size:10px;touch-action:manipulation}.effects-strength{min-height:68px;margin-top:4px;gap:4px}.effects-content{padding-top:8px;padding-bottom:8px}.effects-header .effects-info{width:26px}.effects-header .effects-close{width:32px;height:32px}@media(max-width:360px){#effects-sheet .effects-header h2{font-size:15px}.filter-scenes{width:68px;max-width:68px}}
.effects-header .effects-off-all{flex-shrink:0;margin:0;width:30px;height:30px;min-height:30px;padding:0;border:1px solid #f50065;border-radius:50%;background:#2b2e38;color:#ff72ab;font-size:20px}.effects-off-all:active{background:#f5006520}
.beauty-mode .effects-tiles{gap:10px;padding:2px 0 10px;justify-content:space-between}.beauty-mode .beauty-preset{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:4px 8px;border:1px solid #4d5260;border-radius:12px;min-height:42px;font-size:12px}.beauty-mode .beauty-preset .effect-art{width:28px;height:32px;border-radius:7px;flex-shrink:0;border:0}.beauty-mode .beauty-preset .effect-art img{border-radius:6px}.beauty-mode .beauty-preset[aria-pressed=true]{border:2px solid #ff0063;padding:3px 7px;color:#ff6ba4;background:#ff00630c}.beauty-mode .effect-check{width:13px;height:13px;font-size:10px;bottom:0;right:0}.beauty-control-choices{display:flex;justify-content:center;gap:24px;margin:0 0 8px}.beauty-control-choices button{display:flex;align-items:center;gap:7px;background:none;border:1px solid #4d5260;border-radius:14px;color:#c5c7d1;font:inherit;font-size:11px;padding:6px 10px;min-height:40px}.beauty-control-choices svg{width:24px;height:24px}.beauty-control-choices [aria-pressed=true]{border-color:#ff0063;color:#ff458c}.beauty-mode .makeup-swatches{justify-content:center;gap:14px;padding:4px 3px}.beauty-mode .makeup-swatches button{width:29px;height:29px;font-size:18px}.beauty-color-name{text-align:center;color:#eee;font-size:10px;margin:3px 0 1px}.beauty-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0 0;background:#191c23;position:sticky;bottom:0}.beauty-actions button{min-height:36px;border:0;border-radius:20px;background:#2b2e38;color:#ececf2;padding:7px 12px;font:inherit;font-size:11px}.beauty-actions .beauty-compare{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background:none;padding-right:0}.beauty-compare[aria-pressed=true]{color:#ff6ba4}.beauty-mode .effects-strength{grid-template-columns:minmax(0,1fr) 28px;min-height:45px;margin:5px 0 0}.beauty-mode .effects-strength>span{grid-column:1;font-size:11px}.beauty-mode .effects-strength input{grid-row:2;grid-column:1}.beauty-mode .effects-strength output{grid-row:2;grid-column:2}.beauty-mode .effects-content{padding-top:8px;padding-bottom:8px}.effects-strength input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;height:30px;min-height:30px;border:0;padding:0;touch-action:pan-x}.effects-strength input::-webkit-slider-runnable-track{height:5px;border-radius:8px;background:linear-gradient(to right,#ff0063 0 var(--strength,0%),#41444f var(--strength,0%) 100%)}.effects-strength input::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;margin-top:-7.5px;background:#fff;border:0;box-shadow:0 1px 4px #0003}.effects-strength input::-moz-range-track{height:5px;border-radius:8px;background:#41444f}.effects-strength input::-moz-range-progress{height:5px;background:#ff0063;border-radius:8px}.effects-strength input::-moz-range-thumb{width:20px;height:20px;border:0;border-radius:50%;background:#fff}.effects-retry{background:#f50065;border:0;border-radius:18px;min-height:34px;color:white;padding:6px 14px;font:inherit;font-size:12px;margin-top:7px}#effects-sheet[aria-busy=true] .effects-status::before{content:'';display:inline-block;width:10px;height:10px;border:2px solid #777;border-top-color:#ff0063;border-radius:50%;margin-right:8px;animation:beauty-spin .8s linear infinite}@keyframes beauty-spin{to{transform:rotate(360deg)}}#effects-sheet button:disabled,#effects-sheet input:disabled{opacity:.45;cursor:default}@media(prefers-reduced-motion:reduce){#effects-sheet[aria-busy=true] .effects-status::before{animation:none}}@media(max-width:360px){.beauty-mode .beauty-preset{gap:4px;padding:4px;font-size:11px}.beauty-mode .beauty-preset .effect-art{width:22px;height:28px}.beauty-control-choices{gap:12px}}
.beauty-mode .beauty-preset{min-height:36px;padding-top:2px;padding-bottom:2px}.beauty-mode .beauty-preset[aria-pressed=true]{padding-top:1px;padding-bottom:1px}.beauty-mode .beauty-preset .effect-art{height:28px;width:25px}.beauty-mode .effects-tiles{padding-bottom:8px}.beauty-control-choices{margin-bottom:4px;gap:18px}.beauty-control-choices button{min-height:34px;padding:4px 10px}.beauty-control-choices svg{width:22px;height:22px}.beauty-mode .makeup-swatches{padding-top:2px;padding-bottom:2px}.beauty-mode .makeup-swatches button{height:27px;width:27px}.beauty-color-name{margin-top:2px;margin-bottom:0;line-height:11px}.beauty-mode .effects-strength{margin-top:3px;min-height:43px}.beauty-actions{padding-top:6px}.beauty-actions button{min-height:34px;padding-top:6px;padding-bottom:6px}
/* Full camera preview; controls overlay the image instead of reserving black bands. */
body:not(.create-mode) .camera-app{padding-top:0}
body:not(.create-mode) .camera-app #camera-stage{position:absolute;inset:0;width:100%;height:100%;flex:none;border-radius:0}
#camera-preview,#camera-ar-preview{object-fit:cover;object-position:center}
body:not(.create-mode) .camera-app .camera-footer{position:absolute;inset:auto 0 0;height:calc(82px + env(safe-area-inset-bottom));padding-bottom:calc(10px + env(safe-area-inset-bottom));z-index:5;background:linear-gradient(transparent,#0007)}
body:not(.create-mode) .camera-app .camera-controls{bottom:calc(100px + env(safe-area-inset-bottom))}
body:not(.create-mode) .camera-app #social-status{position:absolute;bottom:calc(82px + env(safe-area-inset-bottom));left:0;right:0;z-index:5;background:#0008}
.camera-close,.camera-sound,#camera-stage>#flip-camera{top:calc(10px + env(safe-area-inset-top))}
.camera-toolbar{top:calc(70px + env(safe-area-inset-top));bottom:calc(262px + env(safe-area-inset-bottom))}
.camera-effect-pill{bottom:calc(267px + env(safe-area-inset-bottom))}
.effects-open .camera-toolbar{bottom:calc(var(--effects-height) + 52px)}
.effects-open .camera-effect-pill{bottom:calc(var(--effects-height) + 10px)}
.capturing .camera-controls{bottom:calc(100px + env(safe-area-inset-bottom))}

/* Mirror only the front camera preview, including Beauty/AR. Capture bytes stay unchanged. */
#camera-preview.front,#camera-ar-preview.front{transform:scaleX(-1)}
#camera-preview:not(.front),#camera-ar-preview:not(.front){transform:none}
