.spossity-capture{position:fixed;inset:0;z-index:100000;background:#020916;color:#fff;font-family:inherit}
.spossity-capture-panel,.spossity-capture-stage{position:relative;width:100%;height:100dvh}
.spossity-capture-stage{overflow:hidden;isolation:isolate;background:radial-gradient(circle at 50% 40%,#204680,#071b3b 50%,#020916)}
/* Keep the live image and capture review faithful to the camera. Controls carry
   their own contrast; a stage-wide scrim would darken the user's composition. */
.spossity-capture-viewport{position:absolute;top:50%;left:50%;width:min(100%,calc(100dvh * var(--capture-ratio,.5625)));aspect-ratio:var(--capture-ratio,.5625);max-height:100%;overflow:hidden;transform:translate(-50%,-50%);background:#020916}
.spossity-capture-viewport>video,.spossity-capture-viewport>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.spossity-capture-viewport>[data-camera-composite]{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;transition:opacity .24s ease}
.spossity-capture[data-background-active=true] [data-camera-composite]{opacity:1}
.spossity-capture-viewport>[data-camera-finish]{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none}
.spossity-capture[data-finish-active=true] [data-camera-finish]{opacity:1}
.spossity-capture[data-preview-mirror=true] [data-camera-finish]{transform:scaleX(-1)}
.spossity-capture-finish{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 16px;max-width:100%;color:#fff;text-shadow:0 1px 3px #000;font-size:12px;font-weight:800}
.spossity-capture-finish label{display:flex;align-items:center;gap:8px}
.spossity-capture-finish input{width:90px;min-height:32px;margin:0;accent-color:#a779ff;cursor:pointer}
.spossity-capture-finish small{flex-basis:100%;text-align:center;font-size:11px}
.spossity-capture-finish small:empty{display:none}
.spossity-capture[data-preview-mirror=true] [data-camera-preview]:not([controls]){transform:scaleX(-1)}
.spossity-capture-frame{position:absolute;z-index:2;inset:3%;pointer-events:none}
.spossity-capture-frame i{position:absolute;width:28px;height:28px;border-color:#ffffffb8;border-style:solid}
.spossity-capture-frame i:nth-child(1){top:0;left:0;border-width:2px 0 0 2px;border-top-left-radius:6px}
.spossity-capture-frame i:nth-child(2){top:0;right:0;border-width:2px 2px 0 0;border-top-right-radius:6px}
.spossity-capture-frame i:nth-child(3){bottom:0;left:0;border-width:0 0 2px 2px;border-bottom-left-radius:6px}
.spossity-capture-frame i:nth-child(4){bottom:0;right:0;border-width:0 2px 2px 0;border-bottom-right-radius:6px}
.spossity-capture[data-review=true] .spossity-capture-frame{display:none}
.spossity-capture-stage [data-camera-message]{position:absolute;inset:0;z-index:3;display:grid;place-items:center;padding:20px;text-align:center;background:#071a38b8;font-size:18px;font-weight:700}
.spossity-capture-hardware{position:absolute;z-index:4;right:max(20px,env(safe-area-inset-right));top:50%;display:grid;gap:9px;justify-items:end;transform:translateY(-50%)}
.spossity-capture-hardware [data-camera-exposure]{display:flex;align-items:center;gap:5px;padding:5px;border:1px solid #ffffff63;border-radius:999px;background:#04122baf;backdrop-filter:blur(14px)}
.spossity-capture-hardware [data-camera-exposure-label]{min-width:43px;text-align:center;font-size:12px;font-weight:850;font-variant-numeric:tabular-nums}
.spossity-capture-panel .spossity-capture-hardware button{min-width:36px;min-height:36px;padding:0 9px;font-size:13px}
.spossity-capture-hardware [data-camera-torch][aria-pressed=true]{background:#2469f5;border-color:#fff}
.spossity-capture-panel header{position:absolute;z-index:5;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:max(16px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 12px max(20px,env(safe-area-inset-left))}
/* SpossityCam wordmark: one word in a glass pill that matches the round camera buttons (web, iPhone and iPad alike). */
.spossity-capture-brand{display:flex;align-items:center;gap:10px;min-width:0;padding:5px 15px 5px 5px;border-radius:999px;background:rgba(8,23,43,.46);border:1px solid rgba(245,248,255,.16);box-shadow:0 8px 28px rgba(2,9,22,.28);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4)}
.spossity-capture-wordmark{color:#fff;font-size:17px;font-weight:650;letter-spacing:-.01em;line-height:1;white-space:nowrap}
.spossity-capture-wordmark em{font-style:normal;font-weight:500;color:#9fb4d2}
.spossity-capture-mark{width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:50%;background:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.4),0 2px 10px rgba(33,103,245,.45);overflow:hidden}
.spossity-capture-mark img{display:block;width:22px;height:22px;object-fit:contain}
.spossity-capture-top-actions{display:flex;align-items:center;gap:8px}
.spossity-capture-panel button{min-width:46px;min-height:46px;border:1px solid #dde7ff8c;border-radius:999px;background:#04122b94;color:#fff;font-family:inherit;font-size:15px;font-weight:800;cursor:pointer;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.spossity-capture-panel button:focus-visible{outline:3px solid #9b6cff;outline-offset:3px}
.spossity-capture-panel button:disabled{opacity:.42;cursor:default}
.spossity-capture-panel [data-camera-grid],.spossity-capture-panel [data-camera-close]{width:46px;padding:0;font-size:24px}
.spossity-capture-panel [data-camera-grid][aria-pressed=true]{color:#caaeff;border-color:#af79ff;background:#5732b38f}
.spossity-capture-panel [data-camera-delay]{padding:0 14px;font-size:17px}
.spossity-capture-panel [data-camera-background-toggle]{min-width:100px;padding:0 12px;font-size:13px}
.spossity-capture-panel [data-camera-background-toggle][aria-pressed=true]{background:#6f3ee0;border-color:#e1d1ff}
.spossity-capture-backgrounds{position:absolute;z-index:7;top:max(80px,calc(env(safe-area-inset-top) + 64px));right:max(16px,env(safe-area-inset-right));width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 160px - env(safe-area-inset-top) - env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden;border:1px solid #d5dff9;border-radius:25px;background:#f5f7ffed;color:#0b285b;box-shadow:0 20px 70px #0209168c;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.spossity-capture-backgrounds-head,.spossity-capture-backgrounds-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px}
.spossity-capture-backgrounds-head strong{font-size:17px;font-weight:900;letter-spacing:-.03em}
.spossity-capture-panel .spossity-capture-backgrounds-head button{width:36px;min-width:36px;height:36px;min-height:36px;padding:0;background:#e7edfc;color:#0b285b;border-color:#d0ddf6;font-size:24px}
.spossity-capture-backgrounds-filter{position:relative;padding:0 16px 12px}
.spossity-capture-backgrounds-filter::after{content:"";position:absolute;right:34px;top:15px;width:9px;height:9px;border-right:2px solid #234779;border-bottom:2px solid #234779;transform:rotate(45deg);pointer-events:none}
.spossity-capture-backgrounds-filter select{display:block;width:100%;min-height:44px;padding:0 48px 0 16px;appearance:none;-webkit-appearance:none;border:1px solid #cbd9fa;border-radius:999px;background:#ecf2ff;color:#52698f;font-family:inherit;font-size:14px;font-weight:800;cursor:pointer}
.spossity-capture-backgrounds-filter select:focus-visible{outline:3px solid #7040df;outline-offset:2px}
.spossity-capture-backgrounds-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:9px;min-height:0;overflow:auto;padding:0 16px 10px;overscroll-behavior:contain}
.spossity-capture-background-option{overflow:hidden;border:1px solid #d3def7;border-radius:15px;background:#fff}
.spossity-capture-background-thumb{aspect-ratio:1.4;background-color:#dce6f6;background-size:500% 200%;background-repeat:no-repeat}
.spossity-capture-background-option-foot{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:5px 7px;font-size:12px;font-weight:900}
.spossity-capture-panel .spossity-capture-background-option-foot button{min-width:58px;min-height:32px;padding:0 8px;border-color:#d4e0fb;background:#eaf2ff;color:#1f5bc6;font-size:11px}
.spossity-capture-backgrounds-foot{border-top:1px solid #dce5f8;font-size:12px;font-weight:700;color:#52698f}
.spossity-capture-panel .spossity-capture-backgrounds-foot button{min-height:36px;padding:0 11px;border-color:#d4e0fb;background:#eaf2ff;color:#1f5bc6;font-size:11px;white-space:nowrap}
.spossity-capture-backgrounds-foot [data-camera-background-status]{min-width:0;overflow-wrap:anywhere;text-align:right}
.spossity-capture-panel [data-camera-delay-label]{font-size:12px}
.spossity-capture-grid{position:absolute;z-index:2;inset:0;pointer-events:none;opacity:.72;background:linear-gradient(to right,transparent 33.25%,#ffffff6b 33.33%,transparent 33.42%,transparent 66.58%,#ffffff6b 66.67%,transparent 66.75%),linear-gradient(to bottom,transparent 33.25%,#ffffff6b 33.33%,transparent 33.42%,transparent 66.58%,#ffffff6b 66.67%,transparent 66.75%);border:1px solid #ffffff47;border-radius:3px}
.spossity-capture-countdown{position:absolute;inset:0;z-index:6;display:grid;place-items:center;font-size:clamp(120px,28vw,240px);font-weight:900;text-shadow:0 8px 40px #020916;pointer-events:none}
.spossity-capture-stage [data-camera-time]{position:absolute;z-index:4;top:max(92px,calc(env(safe-area-inset-top) + 72px));left:50%;transform:translateX(-50%);padding:8px 15px;border:1px solid #ffffff73;border-radius:999px;background:#01091aad;font-size:15px;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.spossity-capture-panel [data-camera-error]{position:absolute;z-index:6;top:max(146px,calc(env(safe-area-inset-top) + 125px));left:50%;max-width:min(85%,500px);margin:0;padding:10px 15px;border-radius:16px;background:#071a38e6;color:#fff;font-weight:700;text-align:center;transform:translateX(-50%)}
.spossity-capture-panel footer{position:absolute;z-index:5;bottom:0;left:0;right:0;display:flex;justify-content:center;padding:40px max(16px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.spossity-capture-bottom{display:flex;flex-direction:column;align-items:center;gap:12px;width:min(440px,100%)}
.spossity-capture-lens{display:flex;align-items:center;gap:10px;max-width:100%;min-height:40px;padding:4px 5px 4px 14px;border:1px solid #d3b7ffb3;border-radius:999px;background:#04122bb8;font-size:13px;font-weight:800;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.spossity-capture-panel .spossity-capture-lens button{min-width:44px;min-height:32px;padding:0 12px;font-size:13px;background:#6f3ee0c7;border-color:#d3b7ff}
.spossity-capture-shape{position:relative;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid #ffffff8c;border-radius:999px;background:#04122bb8;color:#52698f;font-size:13px;font-weight:800;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.spossity-capture-shape::after{content:"";position:absolute;right:15px;top:16px;width:8px;height:8px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg);pointer-events:none}
.spossity-capture-shape select{min-height:42px;max-width:155px;padding:0 22px 0 4px;appearance:none;-webkit-appearance:none;border:0;background:transparent;color:#fff;font:inherit;font-weight:900;cursor:pointer}
.spossity-capture-shape select option{color:#0b285b;background:#f5f7ff}
.spossity-capture-shape select:focus-visible{outline:3px solid #9b6cff;outline-offset:2px;border-radius:8px}
.spossity-capture-zoom{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:900;font-variant-numeric:tabular-nums}
.spossity-capture-zoom button{min-width:36px;min-height:36px;width:36px;height:36px;padding:0}
.spossity-capture-zoom span{min-width:36px;text-align:center}
.spossity-capture-modes{display:flex;align-items:center;gap:22px}
.spossity-capture-modes button{min-width:auto;min-height:34px;padding:0 4px;border:0;border-radius:0;background:none;backdrop-filter:none;color:#52698f;font-size:14px;letter-spacing:.08em;text-transform:uppercase}
.spossity-capture-modes [aria-pressed=true]{color:#fff;border-bottom:3px solid #a779ff}
.spossity-capture-shutter-row{width:100%;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;justify-items:center;gap:16px}
.spossity-capture-shutter-row>[data-camera-flip]{justify-self:end;min-width:50px;min-height:50px;width:50px;height:50px;padding:0;font-size:26px}
.spossity-capture-shutter-row>[data-camera-side-label]{justify-self:start;font-size:12px;color:#52698f;font-weight:800}
.spossity-capture-panel .spossity-capture-shutter{width:84px;height:84px;min-width:84px;min-height:84px;padding:8px;border:4px solid #fff;background:transparent;box-shadow:0 8px 30px #0006}
.spossity-capture-shutter span{display:block;width:100%;height:100%;border-radius:50%;background:#fff;transition:background-color .2s var(--sp-ease-out),border-radius var(--sp-dur-snappy) var(--sp-ease-snappy),scale var(--sp-dur-snappy) var(--sp-ease-snappy),transform var(--sp-dur-snappy) var(--sp-ease-snappy)}
.spossity-capture[data-mode=video] .spossity-capture-shutter span{background:#f75071}
.spossity-capture[data-recording=true] .spossity-capture-shutter span{width:36px;height:36px;margin:auto;border-radius:8px}
.spossity-capture-panel [data-camera-use]{grid-column:3;padding:0 20px;background:#2469f5;border-color:#fff}
.spossity-capture-panel [data-camera-retake]{grid-column:1}
.spossity-capture-panel [data-camera-pause]{grid-column:3;padding:0 16px}
.spossity-capture-hint{min-height:18px;color:#52698f;text-align:center;font-size:12px;font-weight:700;text-shadow:0 2px 9px #020916}
.spossity-capture-panel [hidden]{display:none!important}
@media(max-width:600px){.spossity-capture-panel header{padding-inline:14px}.spossity-capture-wordmark{font-size:16px}.spossity-capture-panel [data-camera-delay]{padding:0 10px}.spossity-capture-panel [data-camera-background-toggle]{min-width:46px;width:46px;padding:0;font-size:0}.spossity-capture-panel [data-camera-background-toggle]::after{content:'◧';font-size:22px}.spossity-capture-backgrounds{top:max(78px,calc(env(safe-area-inset-top) + 64px));max-height:calc(100dvh - 165px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.spossity-capture-hardware{right:14px}}
@media(prefers-reduced-motion:reduce){.spossity-capture-shutter span,.spossity-capture-viewport>[data-camera-composite]{transition:none}}

/* Shared camera organization: tools live on the preview, in compact groups. */
.spossity-capture-utilities,.spossity-capture-optics{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;max-width:100%}
.spossity-capture-utilities .spossity-capture-shape>span{display:none}
.spossity-capture-utilities .spossity-capture-shape{padding-left:8px}
.spossity-capture-utilities button{padding-inline:12px}
.spossity-capture-optics select{max-width:160px;text-overflow:ellipsis}
.spossity-capture-panel .spossity-capture-utilities [data-camera-background-toggle]{width:auto;min-width:0;font-size:13px;padding-inline:12px}
.spossity-capture-utilities [data-camera-background-toggle]::after{content:none}
.spossity-capture-finish [data-camera-exposure]{display:flex;align-items:center;justify-content:center;gap:8px}
.spossity-capture-shutter-row>[data-camera-torch]{grid-column:3;grid-row:1;justify-self:start;padding-inline:12px}
.spossity-capture-utilities [aria-pressed=true]{background:#6f3ee0c7;border-color:#d3b7ff}
@media(max-width:420px){.spossity-capture-top-actions{gap:4px}.spossity-capture-brand{gap:6px}.spossity-capture-mark{width:28px;height:28px}.spossity-capture-wordmark{font-size:15px}.spossity-capture-panel [data-camera-delay]{padding-inline:8px}.spossity-capture-utilities{gap:6px}}

.spossity-capture-utilities .spossity-capture-shape select{width:82px;box-sizing:border-box}

/* Content Studio owns the embedded camera's available canvas area. */
.spossity-capture.spossity-capture-embedded{position:absolute;inset:0;border-radius:20px;overflow:hidden}
.spossity-capture-embedded .spossity-capture-panel,.spossity-capture-embedded .spossity-capture-stage{height:100%}
.spossity-capture-embedded .spossity-capture-backgrounds{max-height:calc(100% - 100px)}

/* Embedded controls are measured against the studio canvas, not the window. */
.spossity-capture-embedded{container-type:size;font-size:14px;line-height:1.3}
.spossity-capture-embedded *{box-sizing:border-box}
.spossity-capture-embedded .spossity-capture-viewport{width:min(100%,calc(100cqh * var(--capture-ratio,1.7778)))}
.spossity-capture-embedded .spossity-capture-panel header{padding:12px;gap:8px;margin:0}
.spossity-capture-embedded .spossity-capture-brand{gap:8px}
.spossity-capture-embedded .spossity-capture-wordmark{font-size:15px}

.spossity-capture-embedded .spossity-capture-mark{width:32px;height:32px;box-shadow:none}
.spossity-capture-embedded .spossity-capture-mark img{width:26px;height:26px}
.spossity-capture-embedded .spossity-capture-panel footer{padding:10px 12px;background:linear-gradient(transparent,#020916b3)}
.spossity-capture-embedded .spossity-capture-bottom{width:100%;gap:6px}
.spossity-capture-embedded .spossity-capture-utilities{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;max-width:100%;flex-shrink:0}
.spossity-capture-embedded .spossity-capture-utilities>*{flex-shrink:0}
.spossity-capture-embedded .spossity-capture-panel button{padding:0 12px;min-height:44px;font-size:13px}
.spossity-capture-embedded .spossity-capture-panel [data-camera-close],.spossity-capture-embedded .spossity-capture-panel [data-camera-grid]{width:44px;min-width:44px;padding:0;font-size:22px}
.spossity-capture-embedded .spossity-capture-shape{margin:0}
.spossity-capture-embedded .spossity-capture-panel .spossity-capture-shutter{width:64px;height:64px;min-width:64px;min-height:64px;padding:6px;border-radius:50%}
.spossity-capture-embedded .spossity-capture-shutter-row{gap:12px}
.spossity-capture-embedded .spossity-capture-panel .spossity-capture-modes button{min-height:36px;border-radius:0;background:transparent;padding:0 8px}
.spossity-capture-embedded .spossity-capture-hint{display:none}
.spossity-capture-embedded .spossity-capture-finish{margin:0}
@container (max-width:430px){
 .spossity-capture-embedded .spossity-capture-wordmark{font-size:14px}
 .spossity-capture-embedded .spossity-capture-mark{display:none}
 .spossity-capture-embedded .spossity-capture-top-actions{gap:4px}
 .spossity-capture-embedded .spossity-capture-panel [data-camera-delay]{padding-inline:8px}
}
@container (max-height:380px) and (min-width:520px){
 .spossity-capture-embedded .spossity-capture-bottom{display:grid;grid-template-columns:1fr auto;gap:4px 12px}
 .spossity-capture-embedded .spossity-capture-utilities{grid-column:1;grid-row:1}
 .spossity-capture-embedded .spossity-capture-modes{grid-column:1;grid-row:2;justify-content:center}
 .spossity-capture-embedded .spossity-capture-shutter-row{grid-column:2;grid-row:1 / span 2;width:auto}
}

.spossity-capture-embedded .spossity-capture-utilities .spossity-capture-shape{padding-inline:8px}
.spossity-capture-embedded .spossity-capture-utilities .spossity-capture-shape select{width:72px}

.spossity-capture-embedded .spossity-capture-resize{position:absolute;right:4px;bottom:4px;z-index:30;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:2px solid #fff;border-radius:12px;background:#935cff;color:#fff;font:700 24px/1 sans-serif;cursor:nwse-resize;touch-action:none}
.spossity-capture-embedded .spossity-capture-resize:focus-visible{outline:2px solid #fff;outline-offset:-6px}
.spossity-capture-embedded .spossity-capture-panel footer{padding-right:52px;padding-left:12px}

.spossity-capture-embedded .spossity-capture-move{cursor:grab;touch-action:none;user-select:none;min-height:44px}
.spossity-capture-embedded .spossity-capture-move:active{cursor:grabbing}
.spossity-capture-embedded .spossity-capture-move:focus-visible{outline:2px solid #a779ff;outline-offset:3px;border-radius:8px}

/* Studio: configure first, then preview with capture controls in the editor footer. */
.spossity-capture-embedded:not([data-review=true]) [data-camera-main]{display:none}
.spossity-capture-embedded .spossity-studio-preview-button{min-height:44px;padding:0 28px;background:#935cff;color:white;border:1px solid white;border-radius:22px;font-family:inherit;font-size:15px;font-weight:700;line-height:1.2}
.spossity-capture-embedded[data-studio-preview=true]:not([data-review=true]) footer,
.spossity-capture-embedded[data-studio-preview=true] [data-camera-grid],
.spossity-capture-embedded[data-studio-preview=true] [data-camera-delay],
.spossity-capture-embedded[data-studio-preview=true] .spossity-capture-frame,
.spossity-capture-embedded[data-studio-preview=true] .spossity-capture-hardware{display:none}
.spossity-capture-embedded[data-studio-shape=circle] .spossity-capture-viewport{border-radius:50%}
.spossity-capture-embedded .spossity-capture-utilities .spossity-capture-shape select{width:108px}

.spossity-capture-embedded[data-studio-preview=true],.spossity-capture-embedded[data-studio-preview=true] .spossity-capture-stage{background:transparent}

.spossity-capture-embedded .spossity-capture-draggable-preview{touch-action:none;cursor:grab}
.spossity-capture-embedded .spossity-capture-draggable-preview:active{cursor:grabbing}
.spossity-capture-embedded[data-studio-preview=true] .spossity-capture-brand{display:none}
.spossity-capture-embedded[data-studio-preview=true] .spossity-capture-panel header{justify-content:flex-end;pointer-events:none}
.spossity-capture-embedded[data-studio-preview=true] .spossity-capture-top-actions{pointer-events:auto}
.spossity-capture-embedded[data-studio-preview=true] .spossity-capture-viewport{background:transparent}

/* Preview controls belong to the selected camera, never to the composition. */
.spossity-capture-embedded[data-studio-preview=true][data-camera-selected=false] .spossity-capture-top-actions,
.spossity-capture-embedded[data-studio-preview=true][data-camera-selected=false] .spossity-capture-resize{visibility:hidden;pointer-events:none}
.spossity-capture-embedded[data-studio-preview=true][data-camera-selected=false] .spossity-capture-draggable-preview:focus{outline:none}
/* Tap to focus ring (same look as iPhone and iPad). */
.spossity-capture-focus{position:absolute;width:68px;height:68px;margin:-34px 0 0 -34px;border:2px solid #f5f8ff;border-radius:50%;background:rgba(33,103,245,.12);box-shadow:0 0 16px rgba(33,103,245,.6);pointer-events:none;animation:spossity-focus var(--sp-dur-snappy) var(--sp-ease-snappy)}
@keyframes spossity-focus{from{transform:scale(1.35);opacity:0}to{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.spossity-capture-focus{animation:none}}
/* Colour looks: a row of chips over the camera, same order and names as iPhone and iPad. */
.spossity-capture-looks{display:grid;gap:10px;justify-items:center;max-width:100%;color:#fff;text-shadow:0 1px 3px #000;font-size:12px;font-weight:800}
.spossity-capture-look-list{display:flex;gap:8px;max-width:100%;overflow-x:auto;padding:2px 4px;scrollbar-width:none}
.spossity-capture-look-list::-webkit-scrollbar{display:none}
.spossity-capture-panel .spossity-capture-look-list button{flex:none;min-height:38px;padding:0 15px;font-size:13px;text-shadow:none}
.spossity-capture-panel .spossity-capture-look-list button[aria-pressed=true]{background:#2167f5;border-color:#fff}
.spossity-capture-looks label{display:flex;align-items:center;gap:8px}
.spossity-capture-looks input{width:120px;min-height:32px;margin:0;accent-color:#9b6cff}
.spossity-capture-panel .spossity-capture-utilities button[aria-pressed=true]{background:#6f3ee0;border-color:#e1d1ff}
/* Background blur sits at the top of the background chooser. */
.spossity-capture-blur{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px 12px;color:#0b285b;font-size:13px;font-weight:800}
.spossity-capture-panel .spossity-capture-blur button{min-height:40px;padding:0 16px;background:#ecf2ff;color:#0b285b;border-color:#cbd9fa;backdrop-filter:none;-webkit-backdrop-filter:none}
.spossity-capture-panel .spossity-capture-blur button[aria-pressed=true]{background:#2167f5;color:#fff;border-color:#2167f5}
.spossity-capture-blur label{display:flex;align-items:center;gap:8px}
.spossity-capture-blur input{width:110px;accent-color:#2167f5}
/* Side rail: Light, Looks, Shape and Background sit on the right edge, out of the middle of the
   picture, and flow in with Spossity's spring (web/styles/motion.css). Same layout as iPhone and iPad. */
.spossity-capture .spossity-capture-panel .spossity-capture-rail{position:absolute;z-index:5;right:max(12px,env(safe-area-inset-right));top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:14px;flex-wrap:nowrap;overflow:visible;max-width:none;margin:0}
.spossity-capture .spossity-capture-panel .spossity-capture-rail[hidden]{display:none}
.spossity-capture .spossity-capture-panel .spossity-capture-rail>button,.spossity-capture .spossity-capture-panel .spossity-capture-rail [data-camera-background-toggle]{display:grid;justify-items:center;gap:4px;width:auto;min-width:56px;min-height:0;padding:0;border:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:#fff;font-size:11px;font-weight:700;text-shadow:0 1px 3px #000}
.spossity-capture-rail-icon{display:grid;place-items:center;width:46px;height:46px;border:1px solid #dde7ff8c;border-radius:50%;background:#04122b94;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);font-size:19px;text-shadow:none;transition:transform var(--sp-dur-snappy,510ms) var(--sp-ease-snappy),background-color .2s}
.spossity-capture-rail>button:active .spossity-capture-rail-icon{transform:scale(.9)}
.spossity-capture .spossity-capture-panel .spossity-capture-rail [aria-pressed=true]{background:none;border:0}
.spossity-capture-rail [aria-pressed=true] .spossity-capture-rail-icon{background:#6f3ee0;border-color:#e1d1ff}
.spossity-capture-rail small{font-size:11px;font-weight:700;line-height:1;white-space:nowrap}
/* The shape picker shows its ratio inside the circle, "Shape" underneath. */
.spossity-capture .spossity-capture-panel .spossity-capture-rail .spossity-capture-shape{flex-direction:column-reverse;gap:4px;min-height:0;padding:0;border:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:#fff;font-size:11px;font-weight:700;text-shadow:0 1px 3px #000}
.spossity-capture .spossity-capture-panel .spossity-capture-rail .spossity-capture-shape>span{display:block}
.spossity-capture .spossity-capture-panel .spossity-capture-rail .spossity-capture-shape::after{content:none}
.spossity-capture .spossity-capture-panel .spossity-capture-rail .spossity-capture-shape select{width:46px;height:46px;min-height:46px;padding:0;border:1px solid #dde7ff8c;border-radius:50%;background:#04122b94;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);color:#fff;font-size:11px;font-weight:800;text-align:center;text-align-last:center;text-shadow:none}
.spossity-capture-rail>*{animation:sp-rail-in var(--sp-dur-snappy,510ms) var(--sp-ease-snappy) both}
.spossity-capture-rail>:nth-child(2){animation-delay:45ms}.spossity-capture-rail>:nth-child(3){animation-delay:90ms}.spossity-capture-rail>:nth-child(4){animation-delay:135ms}
@keyframes sp-rail-in{from{opacity:0;transform:translateX(36px)}to{opacity:1;transform:none}}
/* Side sheet: grows out of the rail (right edge) with the same spring. */
.spossity-capture-side-sheet{position:absolute;z-index:5;right:calc(max(12px,env(safe-area-inset-right)) + 68px);top:50%;width:min(260px,calc(100% - 110px));max-height:calc(100% - 260px);overflow:auto;padding:14px;border:1px solid rgba(245,248,255,.16);border-radius:22px;background:rgba(8,23,43,.72);backdrop-filter:blur(20px) saturate(1.3);-webkit-backdrop-filter:blur(20px) saturate(1.3);box-shadow:0 14px 40px rgba(2,9,22,.35);transform:translateY(-50%);transform-origin:right center;animation:sp-sheet-in var(--sp-dur-snappy,510ms) var(--sp-ease-snappy) both}
.spossity-capture-side-sheet[hidden]{display:none}
@keyframes sp-sheet-in{from{opacity:0;transform:translateY(-50%) translateX(24px) scale(.9)}60%{opacity:1}to{opacity:1;transform:translateY(-50%)}}
.spossity-capture-side-sheet .spossity-capture-finish{flex-direction:column;align-items:stretch;gap:12px;text-shadow:none}
.spossity-capture-side-sheet .spossity-capture-finish label{justify-content:space-between}
.spossity-capture-side-sheet .spossity-capture-finish input,.spossity-capture-side-sheet .spossity-capture-looks input{width:120px}
.spossity-capture-side-sheet .spossity-capture-looks{justify-items:stretch;text-shadow:none}
.spossity-capture-side-sheet .spossity-capture-look-list{display:grid;grid-template-columns:1fr 1fr;overflow:visible;padding:0}
.spossity-capture-side-sheet .spossity-capture-looks label{justify-content:space-between}
@media(prefers-reduced-motion:reduce){.spossity-capture-rail>*,.spossity-capture-side-sheet{animation:none}.spossity-capture-rail-icon{transition:none}}
.spossity-capture-embedded .spossity-capture-side-sheet{max-height:calc(100% - 140px);width:min(240px,calc(100% - 100px))}
.spossity-capture-embedded .spossity-capture-rail{gap:10px}
/* Longer shape names (Content Studio: Rectangle, Square, Circle) widen the circle into a pill. */
.spossity-capture .spossity-capture-panel .spossity-capture-rail .spossity-capture-shape select{width:auto;min-width:46px;max-width:110px;padding:0 10px;border-radius:23px}
/* A disconnected camera covers the controls so "Try again" is always reachable. */
.spossity-capture-stage [data-camera-message][data-blocking=true]{z-index:8}
.spossity-capture-stage [data-camera-message] button{margin-left:10px;padding:0 18px;background:#2167f5;border-color:#fff}
