/* SYOPER LIVE setup: only the host preparation surface; viewer UI stays intact. */
body[data-surface=creator-live]{background:#111217;color:#fff;overflow:hidden;margin:0;padding:0!important;font-family:system-ui,-apple-system,sans-serif}
.live-setup-root{position:relative!important;margin:auto!important;width:100%;max-width:480px!important;height:var(--live-height,100dvh);min-height:0!important;padding:0!important;overflow:hidden;background:#17191f;--setup-height:230px;--live-nav-height:44px;--effects-height:40dvh}
.live-setup-stage{position:absolute;inset:0;overflow:hidden}
#live-camera-preview,#live-ar-preview{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover;object-position:center;border-radius:0!important;z-index:0}
#live-ar-preview{z-index:1}.live-camera-shade{position:absolute!important;inset:0;z-index:2;pointer-events:none;background:linear-gradient(#0005,transparent 25%,transparent 60%,#000a)}
.live-setup-root .creator-header{position:absolute;top:env(safe-area-inset-top);left:0;right:0;z-index:5;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;padding:8px 12px!important;background:none;border:0;height:62px}
.live-setup-root .creator-header h1{margin:0;font-size:19px;text-align:center;color:#fff}.live-setup-root .creator-header>a{font-size:30px;color:#fff;text-decoration:none;text-align:center}.setup-share{background:transparent;border:0;color:white;width:44px;height:44px;padding:10px}.setup-share svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.setup-phase{position:absolute;top:calc(68px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);border-radius:24px;padding:8px 16px;background:#25262c99;white-space:nowrap;z-index:5;color:#fff;font-size:12px}.setup-phase[data-live=true]{background:#f50057}
.live-setup-root .prelive-panel{position:static!important;padding:0!important;background:none!important;border:0!important;margin:0!important;transform:none!important}
.live-setup-root .prelive-tools{position:absolute;right:7px;top:calc(126px + env(safe-area-inset-top));bottom:calc(var(--setup-height) + 70px + env(safe-area-inset-bottom));width:58px;display:flex!important;flex-direction:column!important;align-items:center;gap:10px;z-index:5;overflow:auto;scrollbar-width:none}
.live-setup-root .prelive-tool{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px;border:0;background:none!important;border-radius:0;color:#fff;padding:0!important;min-height:59px;width:54px;flex-shrink:0;font-size:10px}
.prelive-tool svg{box-sizing:border-box;width:39px!important;height:39px!important;padding:8px;border-radius:50%;background:#181a2070;fill:none!important;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.prelive-tool span{font-size:10px}.setup-audio-meter{height:5px;width:32px;accent-color:#28d587}.setup-audio-meter::-webkit-meter-bar{background:#343840;border:0}.setup-audio-meter::-webkit-meter-optimum-value{background:#28d587}
.live-setup-root .prelive-details{position:absolute!important;bottom:calc(var(--live-nav-height) + env(safe-area-inset-bottom));left:10px;right:10px;z-index:5;padding:14px!important;border-radius:23px!important;background:#1c1d21bd!important;border:1px solid #ffffff25;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);display:flex;flex-direction:column;gap:10px}
.prelive-title-row{display:flex;align-items:center;gap:14px;min-width:0}.prelive-thumbnail{position:relative;width:60px!important;height:64px!important;min-width:60px;border:1px solid #fff6;border-radius:12px;background:#32343c;color:white;overflow:hidden;padding:0;display:grid;place-items:center}.prelive-thumbnail img{width:100%;height:100%;object-fit:cover}.prelive-thumbnail svg{width:28px;height:28px;stroke:currentColor;fill:none}.prelive-thumbnail small{position:absolute;bottom:0;left:0;right:0;font-size:10px;background:#0008;padding:2px}
#prepare-live{display:block!important;min-width:0;flex:1;margin:0!important;padding:0!important;background:none!important;border:0!important}#prepare-live label{display:block;font-size:0;margin:0}#prepare-live input{box-sizing:border-box;width:100%;min-width:0;background:transparent;color:white;border:0;border-bottom:1px solid #ffffff70;border-radius:0;min-height:46px;font:inherit;font-size:16px;padding:8px 0;outline-offset:3px}#prepare-live input::placeholder{color:#d0d0d4}#prepare-live button{display:none!important}.live-field-error{font-size:12px;line-height:1.4;color:#ffa9c6;margin:0}.live-field-error:empty{display:none}
.setup-product-card{border:1px solid #ffffff17;border-radius:17px;background:#242529b5;color:white;display:flex;align-items:center;gap:12px;min-height:62px;width:100%;padding:9px 12px;text-align:left}.setup-product-card>svg{width:24px;height:24px;fill:none;stroke:#ff0063;stroke-width:1.6;flex-shrink:0}.setup-product-card>span{font-weight:700;font-size:13px}.setup-product-card small{display:block;font-size:11px;font-weight:400;color:#c2c2c8}.setup-product-photos{display:flex;gap:4px;margin-left:auto}.setup-product-photos img{width:35px;height:40px;border-radius:7px;object-fit:cover}.setup-product-card b{font-size:23px;font-weight:400}
#live-launch.live-launch{position:static!important;width:100%!important;height:52px!important;min-height:48px;border-radius:30px!important;background:#ff0063!important;border:0!important;padding:10px 18px!important;color:white!important;font-size:19px!important;font-weight:750!important;box-shadow:none!important;transform:none!important}#live-launch:disabled{opacity:.55}#live-launch::before,#live-launch::after{display:none!important}
.live-setup-root .prelive-modes{position:absolute!important;left:0;right:0;bottom:env(safe-area-inset-bottom);height:var(--live-nav-height);display:flex;align-items:center;justify-content:center;gap:40px;z-index:5;background:none;padding:0!important;margin:0!important}.prelive-modes a,.prelive-modes strong{font-size:12px;color:#aaa;text-decoration:none;position:relative;padding:16px 0}.prelive-modes strong{color:white}.prelive-modes strong::after{content:'';position:absolute;bottom:7px;height:3px;left:0;right:0;border-radius:4px;background:#ff0063}
body[data-surface=creator-live]>.app-tabs{display:none!important}.live-setup-root>[data-status]{position:absolute;top:calc(108px + env(safe-area-inset-top));left:14px;right:75px;z-index:5;color:#fff;font-size:11px;background:#0005;border-radius:9px;padding:5px 8px;pointer-events:none}.live-setup-root>[data-status]:empty{display:none}.live-camera-tools,.live-launch-hint,.prelive-camera-mode,.prelive-tip,#live-infrastructure{display:none!important}
body[data-surface=creator-live] .creator-sheet{box-sizing:border-box;background:#1c1e26;color:#fff;border:1px solid #fff2;border-radius:24px 24px 0 0;max-height:80dvh;padding-bottom:env(safe-area-inset-bottom)}.creator-sheet button{border-radius:15px;min-height:40px}.creator-sheet-body{overflow:auto}.setup-product-option{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #fff2;font-size:14px}.setup-product-option img{width:46px;height:54px;object-fit:cover;border-radius:8px}.setup-product-option input{accent-color:#ff0063}
.live-setup-root.effects-open .prelive-details,.live-setup-root.effects-open .prelive-modes{display:none}.live-setup-root.effects-open .prelive-tools{bottom:calc(var(--effects-height) + 38px)}.live-setup-root.effects-open .camera-effect-pill{bottom:calc(var(--effects-height) + 8px)}
[hidden]{display:none!important}
@media(max-height:650px){.live-setup-root .prelive-details{padding:10px!important;gap:6px}.live-setup-root .prelive-tools{top:112px;gap:6px}.prelive-thumbnail{height:50px!important;width:48px!important;min-width:48px}.setup-product-card{min-height:50px}#live-launch.live-launch{height:46px!important}.live-setup-root .prelive-tool{min-height:49px}}

#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}
.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}

.camera-effect-pill{position:absolute;bottom:calc(var(--setup-height) + var(--live-nav-height) + 10px);left:50%;transform:translateX(-50%);background:#1c1e26cc;color:#fff;border-radius:20px;padding:7px 12px;z-index:4;font-size:11px;max-width:80%;text-align:center}.effects-strength{display:grid;grid-template-columns:minmax(0,1fr) 28px 36px}.effects-strength>span{grid-column:1/-1}.effect-art img{object-fit:cover}.effects-info{font-size:18px!important}#effects-sheet{box-sizing:border-box}#effects-sheet button{font-family:inherit}/* Keep the actual camera element rendering while it feeds the broadcast canvas. */
.live-watching .live-setup-root{display:block!important;visibility:visible!important}
.live-watching .live-setup-root>:not(.live-setup-stage),.live-watching .live-setup-stage .prelive-tools,.live-watching .camera-effect-pill{display:none!important}
.live-setup-root[data-broadcasting=true] .prelive-panel,.live-setup-root[data-broadcasting=true] .prelive-details,.live-setup-root[data-broadcasting=true] .prelive-tools{display:none!important}
/* The on-air room owns the viewport; preparation stays behind it to render effects. */
body.live-watching[data-surface=creator-live] #live-room:not([hidden]){display:block!important;position:fixed;inset:0;width:min(100%,620px);height:100dvh;height:var(--live-viewport-height,100dvh);margin:auto;visibility:visible;z-index:20;outline:0}
body.live-watching[data-surface=creator-live] #live-video.host-preview{object-fit:cover;object-position:center}
.live-setup-root .prelive-title-row{margin-bottom:0}.live-setup-root .prelive-details>.setup-product-card{padding:9px 12px;margin:0;min-height:62px;text-align:left;border:1px solid #ffffff17;border-radius:17px;background:#242529b5}
.live-setup-root .creator-header h1{background:none;padding:0;letter-spacing:.2px}
.live-setup-root .prelive-tools{top:calc(120px + env(safe-area-inset-top));bottom:calc(var(--setup-height) + var(--live-nav-height) + 8px + env(safe-area-inset-bottom));gap:5px}.live-setup-root .prelive-tool{min-height:54px}
#setup-open-camera{position:absolute;left:50%;top:32%;transform:translateX(-50%);max-width:65%;border:1px solid #ffffff55;border-radius:24px;background:#24262ebb;color:#fff;padding:11px 16px;z-index:4;font-size:13px;min-height:44px}.live-camera-ready #setup-open-camera,.live-watching #setup-open-camera{display:none!important}
.live-setup-root.keyboard-open .creator-header,.live-setup-root.keyboard-open .setup-phase,.live-setup-root.keyboard-open .prelive-tools,.live-setup-root.keyboard-open .prelive-modes,.live-setup-root.keyboard-open .setup-product-card{display:none!important}.live-setup-root.keyboard-open .prelive-details{bottom:env(safe-area-inset-bottom)}

/* Keep the preview visible underneath the cancellable launch countdown. */
.live-counting .live-setup-root{visibility:visible!important}
.live-counting .live-setup-root>:not(.live-setup-stage),.live-counting .live-setup-stage .prelive-tools{visibility:hidden!important}
body[data-surface=creator-live] #live-countdown-overlay{position:fixed;inset:0;width:100%;height:100dvh;z-index:100;display:none;flex-direction:column;align-items:center;justify-content:center;gap:18px;margin:0;border:0;border-radius:0;background:#0003;color:#fff;font:inherit;touch-action:manipulation}
body.live-counting[data-surface=creator-live] #live-countdown-overlay:not([hidden]){display:flex}
#live-countdown-overlay .live-countdown-number{display:grid;place-items:center;width:116px;height:116px;min-height:116px;border:2px solid #ffffff50;border-radius:50%;background:#1c1d21bb;backdrop-filter:blur(8px);font-size:72px;font-weight:750;line-height:1;font-variant-numeric:tabular-nums}
#live-countdown-overlay .live-countdown-caption{font-size:17px;font-weight:650;text-shadow:0 1px 4px #0008}#live-countdown-overlay small{font-size:13px;background:#1c1d2188;border-radius:20px;padding:8px 16px}
