/* One task at a time. Camera pixels fill the screen; guides never pretend to be a face. */
body.capture-v2{--font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--display:var(--font);--ink:#f7f5ff;--muted:#aaa6bb;--accent:#b6a6ff;--mint:#79e5cb;background:#0c0c11;color:var(--ink);overflow:hidden;font-family:var(--font)}
.capture-v2 *{box-sizing:border-box}.capture-v2 [hidden]{display:none!important}.capture-v2 header,.capture-v2 footer,.capture-v2 #toast{display:none}.capture-v2 main{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;max-width:none!important;margin:0!important;padding:0!important;overflow:auto;background:#0c0c11}.capture-v2 h1{font-family:var(--font);font-size:clamp(30px,5vw,44px);font-weight:600;letter-spacing:-1.2px;line-height:1.15;color:var(--ink);margin:0}.capture-v2 p{color:var(--muted);font-size:17px;line-height:1.5;margin:12px 0}.capture-v2 button,.capture-v2 input,.capture-v2 textarea,.capture-v2 select{font-family:inherit}.capture-v2 button:focus-visible,.capture-v2 summary:focus-visible,.capture-v2 input:focus-visible,.capture-v2 textarea:focus-visible,.capture-v2 select:focus-visible,.capture-v2 a:focus-visible{outline:3px solid #cebdff;outline-offset:4px}.capture-v2 button:disabled{opacity:.42;cursor:default}.capture-v2 button{touch-action:manipulation}
.capture-welcome{position:relative;min-height:100vh;min-height:100dvh;max-width:520px;padding:max(96px,calc(env(safe-area-inset-top) + 75px)) 28px max(28px,env(safe-area-inset-bottom));margin:auto;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;animation:arrive .35s ease both}.capture-brand{position:absolute;top:max(26px,env(safe-area-inset-top));font-size:19px;font-weight:650;letter-spacing:-.7px;display:flex;align-items:center;gap:8px;color:var(--ink)}.capture-brand>span{color:var(--accent);font-size:28px}.capture-brand small{font-size:10px;letter-spacing:1px;color:var(--mint);margin-left:10px}.capture-emblem{width:140px;height:160px;margin:20px auto 32px;position:relative}.capture-emblem:before{content:'';position:absolute;inset:0;border-radius:50%;background:#8d75ff22;filter:blur(30px);animation:breathe 5s ease-in-out infinite}.capture-emblem svg{position:relative;width:100%;height:100%;fill:none;stroke:#c5b6ff;stroke-width:2.5;stroke-linecap:round}.capture-emblem ellipse{stroke:#ae95ff55;stroke-dasharray:3 8}.capture-welcome-actions{width:100%;margin-top:28px}.capture-primary{min-height:58px;width:100%;max-width:400px;border:0;border-radius:999px;background:#b6a6ff;color:#19112f;font-size:18px;font-weight:650;cursor:pointer;padding:16px 26px;transition:transform .18s,background .18s}.capture-primary:hover:not(:disabled){background:#c7baff}.capture-primary:active:not(:disabled){transform:scale(.98)}.capture-fine{font-size:12px!important;line-height:1.5!important;color:var(--muted)!important;margin-top:15px!important}.capture-privacy{margin:8px auto 0;max-width:360px;font-size:12px;color:var(--muted)}.capture-privacy summary{cursor:pointer;padding:10px;display:inline-block}.capture-privacy p{font-size:13px;max-height:180px;overflow:auto;text-align:left;background:#ffffff09;padding:16px;border-radius:14px}.capture-link{min-height:44px;color:#c9c2dc;font-size:14px;padding:12px 18px;border:0;background:transparent;cursor:pointer}.capture-welcome #capture-status{font-size:14px;min-height:22px}
.capture-camera{position:relative;width:100%;height:100vh;height:100dvh;overflow:hidden;background:#111116}.capture-camera video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform:scaleX(-1);background:#111116}.capture-camera[data-stage="1"] video{object-fit:contain}.camera-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#08080db3,transparent 23%,transparent 54%,#08080dd9 81%,#08080d)}.capture-top{position:absolute;z-index:4;top:max(22px,env(safe-area-inset-top));left:22px;right:20px;display:flex;align-items:center;justify-content:space-between}.capture-top>div{display:flex;align-items:center;gap:12px}.capture-top strong{font-size:18px;font-weight:500}.capture-step{font-size:12px;color:#ffffffba;border:1px solid #ffffff30;border-radius:30px;padding:7px 11px;font-variant-numeric:tabular-nums}.capture-close{border:1px solid #ffffff30;background:#10101580;color:#fff;font-size:29px;font-weight:300;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;cursor:pointer}.capture-center{position:absolute;inset:15% 22px 23%;pointer-events:none;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.capture-frame{position:absolute;top:15%;left:50%;transform:translateX(-50%);width:min(65vw,280px);height:34dvh;opacity:.7;transition:opacity .3s}.capture-frame[data-tracked="true"]{opacity:0}.capture-frame i{position:absolute;width:28px;height:28px;border:2px solid #f1eaff;border-radius:4px}.capture-frame i:nth-child(1){top:0;left:0;border-right:0;border-bottom:0}.capture-frame i:nth-child(2){top:0;right:0;border-left:0;border-bottom:0}.capture-frame i:nth-child(3){bottom:0;left:0;border-top:0;border-right:0}.capture-frame i:nth-child(4){bottom:0;right:0;border-top:0;border-left:0}.body-frame{height:43dvh;width:min(55vw,230px)}
#adaptive-outline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;opacity:0;transition:opacity .25s}#adaptive-outline[data-tracked="true"]{opacity:1}#adaptive-outline path{fill:none;stroke:#d5c9ff99;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}#adaptive-outline .contour-progress{stroke:var(--mint);stroke-width:4;stroke-dasharray:100;stroke-dashoffset:calc(100 - var(--hold,0)*100);filter:drop-shadow(0 0 8px #79e5cb66);opacity:0}#adaptive-outline[data-valid="true"] .contour-progress{opacity:1}.capture-accepted #adaptive-outline{animation:accepted .55s ease}.capture-prompt{position:relative;z-index:3;text-align:center;max-width:440px;min-height:92px}.capture-prompt h1{font-size:clamp(25px,4vw,32px);letter-spacing:-.8px;text-shadow:0 2px 25px #0008}.capture-prompt p{font-size:14px;color:#e0dce9;margin-top:10px;min-height:21px}.capture-bottom{position:absolute;z-index:4;bottom:max(26px,env(safe-area-inset-bottom));left:28px;right:28px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}.capture-three{display:flex;gap:7px}.capture-three i{height:4px;width:30px;border-radius:4px;background:#ffffff30}.capture-three .current{background:var(--accent)}.capture-three .done{background:var(--mint)}.capture-count{font-size:16px;font-weight:500;font-variant-numeric:tabular-nums;color:#ddd7eb;min-height:22px}.capture-count:empty{display:none}.capture-progress{display:none;width:110px;height:3px;background:#ffffff20;border-radius:3px;overflow:hidden}.is-recording .capture-progress{display:block}.capture-progress i{display:block;height:100%;width:0;background:var(--mint);transition:width .2s ease}
.capture-camera[data-stage="2"] .capture-center{inset:14% 22px 66%;justify-content:center}.capture-camera[data-stage="2"] .capture-frame,.capture-camera[data-stage="2"] #adaptive-outline{display:none}.capture-camera[data-stage="2"] .capture-prompt h1{font-size:25px}.capture-script{position:absolute;z-index:3;left:24px;right:24px;top:31%;height:36%;max-width:600px;margin:auto;overflow:auto;scrollbar-width:none;padding:22px 18px;background:#09090db3;border:1px solid #ffffff12;border-radius:22px}.capture-script p{font-size:clamp(21px,3.6vw,26px);font-weight:500;line-height:1.55;color:white;margin:0;text-align:center}.voice-meter{position:absolute;top:70%;left:0;right:0;height:30px;display:flex;justify-content:center;align-items:center;gap:4px}.voice-meter i{width:4px;height:4px;background:var(--accent);border-radius:4px;transition:height .08s linear}
.capture-check{width:96px;height:96px;border-radius:50%;background:#79e5cb14;color:var(--mint);font-size:48px;display:grid;place-items:center;margin:15px 0 28px;animation:arrive .4s ease both}.capture-review-steps{display:flex;width:100%;gap:12px;margin:28px 0}.capture-review-step{flex:1;display:flex;flex-direction:column;align-items:center;gap:10px;background:#ffffff08;border:1px solid #ffffff16;border-radius:20px;padding:20px 6px;color:#fff;font-size:16px;cursor:pointer}.capture-review-step>span{font-size:24px;color:var(--mint)}.capture-review-step small{font-size:12px;color:var(--muted)}.capture-send-progress{height:4px;background:#ffffff13;border-radius:4px;width:100%;margin-bottom:18px;overflow:hidden}.capture-send-progress>i{display:block;height:100%;background:var(--mint);width:0;transition:width .3s}.capture-finish #capture-status{min-height:26px}.capture-loader{width:64px;height:64px;border-radius:50%;border:2px solid #ffffff20;border-top-color:var(--accent);animation:spin 1s linear infinite;margin:35px 0}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes breathe{50%{opacity:.45;transform:scale(1.12)}}@keyframes accepted{35%{filter:drop-shadow(0 0 10px #79e5cb);opacity:.8}}
@media(max-height:700px){.capture-welcome{padding-top:80px}.capture-emblem{width:100px;height:115px;margin:12px auto 20px}.capture-welcome h1{font-size:32px}.capture-welcome-actions{margin-top:20px}.capture-center{inset:15% 20px 26%}.capture-frame{height:28dvh}.capture-prompt h1{font-size:23px}.capture-prompt{min-height:72px}.capture-bottom{gap:10px;bottom:max(18px,env(safe-area-inset-bottom))}.capture-camera[data-stage="2"] .capture-center{inset:13% 20px 68%}.capture-script{top:27%;height:37%}.capture-script p{font-size:20px}.voice-meter{top:66%}}
@media(prefers-reduced-motion:reduce){.capture-v2 *,.capture-v2 *:before,.capture-v2 *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Body preview and measured contour use the same full-viewport cover projection. */
.capture-viewfinder{position:absolute;inset:0}
.capture-camera[data-stage="1"] .capture-viewfinder{inset:0}
.capture-camera[data-stage="1"] .camera-shade{background:linear-gradient(#08080d66,transparent 18%,transparent 78%,#08080d66)}
.capture-camera[data-stage="1"] .capture-center{inset:auto 24px max(132px,calc(env(safe-area-inset-bottom) + 112px));justify-content:flex-end}
.capture-camera[data-stage="1"] .capture-prompt{min-height:0;max-width:350px}
.capture-camera[data-stage="1"] .capture-prompt h1{font-size:clamp(23px,4vw,29px)}
.capture-camera[data-stage="1"] .capture-prompt p{margin-top:7px;text-shadow:0 1px 8px #000}
.capture-camera[data-stage="1"] .body-frame{top:max(88px,calc(env(safe-area-inset-top) + 72px));bottom:max(132px,calc(env(safe-area-inset-bottom) + 112px));height:auto;width:76%;max-width:480px;opacity:.55;pointer-events:none}
.capture-camera[data-stage="1"] .body-frame[data-tracked="true"]{opacity:0}
.capture-camera[data-stage="1"] .body-frame i{width:32px;height:32px;border-color:#eee7ffb3;border-radius:10px}
.capture-camera[data-stage="1"] .body-frame::after{content:'';position:absolute;inset:0 8%;height:1px;top:12%;background:linear-gradient(90deg,transparent,#d5c9ffb3,transparent);box-shadow:0 0 12px #b6a6ff55;animation:body-scan 4.5s ease-in-out infinite;pointer-events:none}
.capture-camera[data-stage="1"] #adaptive-outline path{stroke-width:2.5;stroke:#ddd3ffb3}
.capture-camera[data-stage="1"] #adaptive-outline .contour-progress{stroke:var(--mint);stroke-width:3.5}
.capture-camera[data-stage="1"] #adaptive-outline[data-tracked="true"] path:not(.contour-progress){animation:body-tracking 4s ease-in-out infinite}
.capture-camera[data-stage="1"] .capture-bottom{left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));gap:10px}
.capture-camera[data-stage="1"] .capture-bottom .capture-primary{max-width:320px}
@keyframes body-scan{0%,100%{top:12%;opacity:.25}50%{top:88%;opacity:.7}}
@keyframes body-tracking{0%,100%{stroke-opacity:.7}50%{stroke-opacity:1}}
@media(max-height:700px){.capture-camera[data-stage="1"] .capture-center{bottom:max(116px,calc(env(safe-area-inset-bottom) + 98px))}.capture-camera[data-stage="1"] .body-frame{top:max(78px,calc(env(safe-area-inset-top) + 64px));bottom:max(116px,calc(env(safe-area-inset-bottom) + 98px))}}

/* Voice uses the remaining viewport for one card; controls never overlap its text. */
.capture-camera[data-stage="2"]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) 24px auto;gap:12px;padding:max(84px,calc(env(safe-area-inset-top) + 70px)) max(18px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));isolation:isolate}
.capture-camera[data-stage="2"] .capture-center{position:relative;inset:auto;grid-row:1;width:100%;max-width:680px;min-height:0;margin:0 auto;align-self:start;justify-content:center}
.capture-camera[data-stage="2"] .capture-prompt{min-height:0;max-width:100%}
.capture-camera[data-stage="2"] .capture-prompt h1{font-size:clamp(20px,3.8vw,26px);letter-spacing:-.5px;line-height:1.2}
.capture-camera[data-stage="2"] .capture-prompt p{font-size:14px;line-height:1.35;min-height:0;max-width:40ch;margin:7px auto 0}
.capture-camera[data-stage="2"] .capture-script{position:relative;inset:auto;grid-row:2;align-self:stretch;width:100%;max-width:720px;min-height:0;height:auto;margin:0 auto;padding:18px;background:#09090db8;border-radius:20px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff44 transparent;scroll-padding-block:18px}
.capture-camera[data-stage="2"] .capture-script p{font-size:clamp(20px,5.3vw,28px);font-weight:500;line-height:1.48;letter-spacing:-.015em;text-align:left;margin:0;color:#f7f5ff;overflow-wrap:anywhere}
.voice-script-word{color:inherit;transition:color .12s ease}
.voice-script-word[data-spoken="true"]{color:var(--mint);text-decoration:underline;text-decoration-color:#79e5cb66;text-decoration-thickness:1px;text-underline-offset:.18em}
.capture-camera[data-stage="2"] .voice-meter{position:relative;inset:auto;grid-row:3;align-self:center;height:24px;width:100%;margin:0 auto}
.capture-camera[data-stage="2"] .capture-bottom{position:relative;inset:auto;grid-row:4;width:100%;max-width:400px;margin:0 auto;gap:8px}
.capture-camera[data-stage="2"] .capture-bottom .capture-primary{min-height:54px;padding:14px 18px}
.capture-camera[data-stage="2"] .capture-bottom .capture-link{min-height:44px;padding:8px 12px}
.capture-camera[data-stage="2"] .capture-count{font-size:14px;line-height:20px;min-height:20px}
.capture-camera[data-stage="2"].is-recording .capture-three{display:none}
@media(max-height:600px){.capture-camera[data-stage="2"]{gap:10px;padding-top:max(76px,calc(env(safe-area-inset-top) + 64px))}.capture-camera[data-stage="2"] .capture-script{padding:16px}.capture-camera[data-stage="2"] .capture-script p{font-size:20px;line-height:1.42}}
@media(min-aspect-ratio:4/3) and (max-height:600px){.capture-camera[data-stage="2"]{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:auto minmax(24px,1fr) auto;column-gap:20px;row-gap:8px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.capture-camera[data-stage="2"] .capture-center{grid-column:1;grid-row:1}.capture-camera[data-stage="2"] .capture-script{grid-column:2;grid-row:1/-1}.capture-camera[data-stage="2"] .voice-meter{grid-column:1;grid-row:2}.capture-camera[data-stage="2"] .capture-bottom{grid-column:1;grid-row:3}.capture-camera[data-stage="2"] .capture-prompt h1{font-size:20px}}

/* Setup is shown before a body or voice camera starts, with one clear action. */
.capture-setup-symbol{color:var(--mint);font-size:64px;line-height:1;margin:12px 0 28px}
.capture-setup>p{font-size:clamp(21px,5.5vw,28px);line-height:1.45;color:#f0edf8;max-width:24ch}
.capture-setup .capture-fine{max-width:38ch}
.capture-setup .capture-welcome-actions{max-width:400px}
.capture-camera[data-stage="2"] .capture-script p{font-size:clamp(23px,6vw,32px);line-height:1.48}
@media(max-height:600px){.capture-camera[data-stage="2"] .capture-script p{font-size:22px}}

/* Spoken directions finish naturally; a separate committed-capture signal is brief. */
.capture-controls{display:flex;align-items:center;gap:10px}
.capture-sound{display:grid;place-items:center;width:46px;height:46px;padding:11px;border:1px solid #ffffff30;border-radius:50%;background:#10101580;color:#fff;cursor:pointer}
.capture-sound svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.capture-sound[aria-pressed="true"] .sound-muted,.capture-sound[aria-pressed="false"] .sound-waves{display:none}
.capture-sound[aria-pressed="false"]{color:#c2bacd}
.capture-confirmation{position:absolute;z-index:5;top:max(88px,calc(env(safe-area-inset-top) + 72px));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;border:1px solid #79e5cb77;border-radius:99px;padding:10px 18px;background:#102621ed;box-shadow:0 6px 30px #0004;color:#d6fff4;font-size:18px;font-weight:600;pointer-events:none;animation:confirmation-in .18s ease-out both}
.capture-confirmation>span{display:grid;place-items:center;width:24px;height:24px;background:var(--mint);color:#11352b;border-radius:50%;font-size:16px}
.capture-camera[data-feedback="saving"] #adaptive-outline .contour-progress{filter:drop-shadow(0 0 9px #79e5cb88)}
.capture-camera[data-stage="1"] .capture-prompt h1{font-size:clamp(25px,5vw,32px);line-height:1.18}
.capture-camera[data-stage="1"] .capture-prompt{padding:10px 16px;border-radius:20px;background:#101015a8;backdrop-filter:blur(8px);max-width:min(100%,420px)}
.capture-camera[data-stage="1"] .capture-prompt p:empty{display:none}
@keyframes confirmation-in{from{opacity:0;transform:translate(-50%,5px)}to{opacity:1;transform:translate(-50%,0)}}

/* Real backup progress accompanies the first look; orbit motion never implies completion. */
.capture-preparing{isolation:isolate;gap:0;max-width:560px}.capture-preparing h1{max-width:12ch;font-size:clamp(32px,8vw,44px);line-height:1.12}.capture-preparing #capture-status{max-width:28ch;font-size:16px;margin:18px 0 28px;min-height:48px}.capture-preparing .capture-send-progress{height:3px;max-width:280px;margin:12px 0}.capture-preparing .capture-fine{font-size:13px!important}.double-orbit{position:relative;display:grid;place-items:center;width:200px;height:200px;margin:0 0 36px}.double-orbit:before{content:'';position:absolute;inset:32px;border-radius:50%;background:radial-gradient(circle,#b6a6ff44 0,#79e5cb14 45%,transparent 72%);filter:blur(10px);animation:breathe 4s ease-in-out infinite}.double-orbit>span{color:#d0c5ff;font-size:50px;line-height:1;animation:double-glow 4s ease-in-out infinite}.double-orbit>i{position:absolute;inset:12px;border:1px solid #b6a6ff28;border-radius:50%;border-top-color:#cbbdff;border-right-color:#79e5cb66;animation:spin 6s linear infinite}.double-orbit>i:nth-child(2){inset:27px;border-color:#79e5cb22;border-bottom-color:#9beedb;animation-direction:reverse;animation-duration:9s}.double-orbit>i:nth-child(3){inset:0;border-style:dashed;border-color:#b6a6ff20;animation-duration:24s}@keyframes double-glow{50%{transform:scale(1.12);opacity:.7}}@media(prefers-reduced-motion:reduce){.double-orbit,.double-orbit:before,.double-orbit>i,.double-orbit>span{animation:none!important;transition:none!important}}@media(max-height:600px){.double-orbit{width:140px;height:140px;margin-bottom:20px}.capture-preparing{padding-top:80px}.capture-preparing #capture-status{margin:12px 0}}
/* Activity stays animated; fill and counts remain tied to real current files. */
.capture-preparing .capture-send-progress{position:relative;height:5px;border-radius:8px}
.capture-preparing .capture-send-progress:before{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent 15%,#c4b5ff55 50%,transparent 85%);transform:translateX(-100%);animation:finish-sweep 2.4s ease-in-out infinite}
.capture-preparing .capture-send-progress>i{position:relative;z-index:1;box-shadow:0 0 12px #79e5cb55;transition:width .45s ease}
.capture-saved-count{display:block;min-height:18px;margin:2px 0 18px;color:#b9b5c9;font-size:13px;font-variant-numeric:tabular-nums}
.double-orbit>span{display:grid;place-items:center;width:82px;height:82px;border:1px solid #d2c4ff38;border-radius:24px;background:linear-gradient(135deg,#b6a6ff18,#79e5cb08);box-shadow:inset 0 1px #ffffff1c,0 14px 45px #9b7dff15;animation:double-lift 4s ease-in-out infinite}
.double-orbit>i:after{content:'';position:absolute;top:23px;right:19px;width:5px;height:5px;border-radius:50%;background:#d1c4ff;box-shadow:0 0 12px #b6a6ff88}
.double-scan{position:absolute;z-index:2;left:37px;right:37px;top:38px;height:1px;background:linear-gradient(90deg,transparent,#adf6e4,transparent);opacity:0;animation:double-scan 3.6s ease-in-out infinite;pointer-events:none}
.capture-finish[data-activity=paused] .double-orbit *,.capture-finish[data-activity=paused] .capture-send-progress:before{animation-play-state:paused}
.capture-finish[data-activity=reconnecting] .double-orbit>i{animation-duration:3s}
@keyframes finish-sweep{to{transform:translateX(100%)}}
@keyframes double-lift{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-7px) rotate(3deg)}}
@keyframes double-scan{10%,90%{opacity:0}25%,70%{opacity:.8}85%,100%{transform:translateY(125px)}}
@media(prefers-reduced-motion:reduce){.capture-preparing .capture-send-progress:before,.double-scan,.double-orbit>span{animation:none!important}}

.capture-preparing .capture-time{display:block;min-height:22px;margin:-10px 0 16px;color:#ded8ec;font-size:14px;font-variant-numeric:tabular-nums;letter-spacing:.01em}
.capture-preparing .capture-time[hidden]{display:none}

/* Ari's Stunt Double palette for non-camera steps. */
body.capture-v2{--font:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--ink:#1a1a2e;--muted:#71717a;--accent:#7b61ff;--mint:#0f766e;background:#fff;color:var(--ink)}
.capture-v2 main{background:#fff}
.capture-v2 h1{font-family:"Plus Jakarta Sans",var(--font);font-weight:700;letter-spacing:-.5px}
.capture-welcome .capture-primary{background:#7b61ff;color:#fff}
.capture-welcome .capture-primary:hover:not(:disabled){background:#6950ed}
.capture-welcome .capture-link{color:#4a2d6b}
.capture-welcome .capture-privacy p{background:#f7f7fa}
.capture-emblem:before{background:#7b61ff18}
.capture-emblem svg{stroke:#7b61ff}
.capture-emblem ellipse{stroke:#bcb0ff}
.capture-camera{--ink:#f7f5ff;--muted:#aaa6bb;--accent:#b6a6ff;--mint:#79e5cb;color:#fff}
.capture-camera .capture-prompt h1{color:#fff}
.capture-setup>p{color:#1a1a2e}
.capture-welcome .capture-review-step{background:#fafafa;border-color:#e4e4e7;color:#1a1a2e}
.capture-welcome .capture-send-progress{background:#e4e4e7}
.capture-welcome .capture-loader{border-color:#e4e4e7;border-top-color:#7b61ff}
.capture-welcome .capture-saved-count,.capture-preparing .capture-time{color:#71717a}
.capture-welcome .double-orbit>span{color:#7b61ff}

/* Fill the screen while keeping the full camera frame and tracking geometry visible. */
.capture-viewfinder #capture-backdrop{object-fit:cover;filter:blur(28px) brightness(.48);transform:scaleX(-1) scale(1.12);z-index:0}
.capture-viewfinder #capture-video{object-fit:contain;background:transparent;z-index:1}

.capture-body-details form{width:100%;margin-top:22px}.capture-measurements{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:22px;text-align:left}.capture-measurements label{font-size:13px;color:#4a2d6b;font-weight:600}.capture-measurements input{display:block;width:100%;height:52px;margin-top:8px;padding:10px;border:1px solid #d7d4e4;border-radius:12px;color:#1a1a2e;background:#fff;font-size:16px}.capture-body-details .capture-link{margin-top:12px}.capture-body-details #capture-status{font-size:14px;min-height:22px}

/* Celebrate only after the saved approval is confirmed. */
.trial-confetti{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:50}
.trial-confetti i{position:absolute;top:-5%;width:8px;height:14px;background:#7b61ff;border-radius:2px;animation:trial-confetti-fall 2.8s ease-in both}
.trial-confetti i:nth-child(3n){background:#efb247}.trial-confetti i:nth-child(3n + 1){background:#22a58c}
@keyframes trial-confetti-fall{to{transform:translateY(110vh) rotate(700deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.trial-confetti{display:none}}
.trial-gallery{width:min(100%,560px);margin:auto;text-align:center}.trial-gallery-frame{position:relative;overflow:hidden;touch-action:pan-y;border-radius:22px;background:#f4f3f9}.trial-gallery-frame img{display:block;width:100%;max-height:55dvh;object-fit:contain}.trial-gallery-frame button{position:absolute;top:45%;border:0;border-radius:50%;width:44px;height:44px;background:#ffffffe6;color:#4a2d6b;font-size:30px}.trial-gallery-frame [data-gallery-prev]{left:10px}.trial-gallery-frame [data-gallery-next]{right:10px}.trial-gallery fieldset{border:1px solid #e4e4e7;border-radius:16px;text-align:left;margin:20px 0;padding:16px}.trial-gallery fieldset label{display:block;margin:10px 0;color:#1a1a2e}.trial-gallery audio{width:100%;height:42px}.trial-gallery-actions{display:flex;gap:10px}.trial-gallery-actions button,.trial-gallery [data-gallery-send]{flex:1;padding:14px;border:1px solid #7b61ff;border-radius:14px;background:#7b61ff;color:white;font-weight:700}.trial-gallery-actions [data-gallery-decline]{background:white;color:#4a2d6b}.trial-gallery [data-gallery-feedback]{text-align:left;margin-top:20px}.trial-gallery textarea{width:100%;min-height:110px;border:1px solid #d7d4e4;border-radius:12px;padding:12px}.trial-gallery input[type=file]{display:block;margin:10px 0}.trial-gallery-success{text-align:center;padding:50px 10px}

/* Private preview progress */
.trial-wait{text-align:center;padding:36px 20px;display:grid;justify-items:center;gap:14px}.trial-wait h2{margin:0}.trial-wait p{margin:0;font-size:1.05rem}.trial-wait small{color:#716e7b;max-width:300px}.trial-wait-orbit{height:112px;width:112px;border:2px solid #e6e0ff;border-top-color:#765cff;border-radius:50%;display:grid;place-items:center;animation:trial-orbit 1.4s linear infinite}.trial-wait-orbit span{font-size:38px;color:#765cff;animation:trial-orbit 1.4s linear infinite reverse}@keyframes trial-orbit{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.trial-wait-orbit,.trial-wait-orbit span{animation:none}}video::-webkit-media-controls-start-playback-button{display:none!important;-webkit-appearance:none}

.capture-body-details form>label{display:block;text-align:left;font-size:13px;font-weight:600;color:#4a2d6b;margin-bottom:18px}.capture-body-details select{display:block;width:100%;height:52px;margin-top:8px;padding:10px 14px;border:1px solid #d7d4e4;border-radius:12px;color:#1a1a2e;background:#fff;font-size:16px}.trial-voice-pending{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;margin:10px 0;background:#f7f5ff;border-radius:12px;color:#282238;font-size:14px}.trial-voice-pending span{color:#776f8e;font-size:12px}.trial-gallery h1{letter-spacing:-.04em}.trial-gallery fieldset legend{font-weight:700;padding:0 6px}.trial-gallery-actions button:disabled{opacity:.5}

.trial-photo-loading{min-height:300px;display:grid;place-items:center;color:#776f8e;background:linear-gradient(120deg,#f8f7fc,#ede9ff,#f8f7fc);background-size:200% 100%;animation:photo-shimmer 2s ease-in-out infinite}.trial-photo-loading[hidden]{display:none}@keyframes photo-shimmer{50%{background-position:100% 0}}@media(prefers-reduced-motion:reduce){.trial-photo-loading{animation:none}}

.trial-gallery fieldset label{display:flex;align-items:center;gap:10px;font-weight:600}.trial-gallery input[type=radio]{display:inline-block;width:18px;height:18px;margin:0;flex:none;accent-color:#765cff}
/* Stunt Double reveal: a calm, tactile Creator Genius finish. */
.capture-meet{max-width:620px;margin:auto;padding:28px 18px 56px}.trial-gallery{max-width:520px;color:#17152d}.trial-gallery-kicker{color:#765cff;letter-spacing:.16em;font-size:11px;font-weight:800;margin:6px 0 12px}.trial-gallery h1{font-size:clamp(32px,8vw,44px);line-height:1.05;margin:0;letter-spacing:-.045em}.trial-gallery>p{color:#777381;margin:11px 0 20px;line-height:1.45}.trial-gallery-frame{border-radius:26px;background:linear-gradient(145deg,#f1edff,#f8f7fc);box-shadow:0 12px 36px #34217512;min-height:280px;isolation:isolate}.trial-gallery-frame img{max-height:55dvh;animation:cg-photo-in .35s ease both}.trial-gallery-frame button{display:grid;place-items:center;top:50%;transform:translateY(-50%);box-shadow:0 4px 18px #2417611c;font-weight:500;z-index:2}.trial-look-picks{display:flex;justify-content:center;gap:10px;margin:18px 0 4px}.trial-look-picks button{width:42px;height:42px;border-radius:14px;border:1px solid #e2dced;background:#fff;color:#6c647e;font-weight:800;transition:background .2s,border-color .2s,transform .2s}.trial-look-picks button[aria-pressed=true]{background:#ede8ff;border:2px solid #765cff;color:#6547e8;box-shadow:0 3px 12px #765cff20;transform:translateY(-2px)}.trial-gallery .trial-gallery-count{font-size:12px;color:#858092;margin:4px 0 20px}.trial-gallery fieldset{background:#faf9ff;border:1px solid #ede9f7;border-radius:22px;padding:18px;margin:0 0 18px}.trial-gallery fieldset legend{color:#201b31;font-size:18px;letter-spacing:-.02em}.trial-voice-intro{margin:0 0 12px;color:#817b8e;font-size:13px}.trial-voice-card{display:flex;align-items:center;gap:12px;min-height:70px;padding:12px;margin:9px 0;background:#fff;border:1px solid #eeeaf6;border-radius:17px;box-shadow:0 3px 10px #3f286008}.trial-voice-card audio{display:none}.trial-voice-play,.trial-voice-orb{display:grid;place-items:center;width:46px;height:46px;flex:none;border:0;border-radius:50%;color:#fff;background:#765cff;box-shadow:0 5px 15px #765cff35;font-size:15px}.trial-voice-orb{background:#ede8ff;color:#765cff;box-shadow:none;animation:cg-pulse 1.8s ease-in-out infinite}.trial-voice-copy{display:grid;gap:4px;flex:1;text-align:left;min-width:0}.trial-voice-copy strong{font-size:14px}.trial-voice-copy small{font-size:12px;color:#888193}.trial-gallery .trial-voice-choice{display:flex;align-items:center;gap:5px;margin:0;color:#6552a5;font-size:12px;font-weight:700}.trial-gallery .trial-voice-choice input{width:18px;height:18px;accent-color:#765cff;margin:0}.trial-gallery-actions{display:grid;grid-template-columns:1fr;gap:10px}.trial-gallery-actions button,.trial-gallery [data-gallery-send]{min-height:54px;border-radius:16px;font-size:15px}.trial-gallery [data-gallery-feedback]{padding:18px;background:#faf9ff;border-radius:20px}.trial-gallery-success{position:relative;overflow:hidden;min-height:55vh;display:grid;align-content:center;justify-items:center;gap:18px;padding:40px 15px}.trial-gallery-success h1{margin:0}.trial-gallery-success p{max-width:300px;line-height:1.55;color:#756f82;margin:0}.trial-success-orb{display:grid;place-items:center;width:104px;height:104px;border-radius:50%;background:radial-gradient(circle,#fff 0%,#e4d9ff 56%,#cabaff 100%);color:#765cff;font-size:48px;box-shadow:0 0 70px #b9a4ff80;animation:cg-celebrate .7s cubic-bezier(.2,1.6,.4,1) both}.trial-wait{min-height:55vh;align-content:center}.trial-wait-art{position:relative;width:170px;height:170px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle,#fff 10%,#eee8ff 62%,#fff 73%);box-shadow:0 0 70px #b9a4ff50}.trial-wait-art i{position:absolute;width:6px;height:6px;border-radius:50%;background:#a38dff;animation:cg-pulse 1.8s ease-in-out infinite}.trial-wait-art i:nth-of-type(1){top:25%;left:15%}.trial-wait-art i:nth-of-type(2){top:17%;right:22%;animation-delay:.4s}.trial-wait-art i:nth-of-type(3){bottom:20%;right:13%;animation-delay:.8s}.trial-wait-time{font-size:12px;color:#938d9e}.trial-wait button{background:transparent;color:#6e58c7;border:0;min-height:44px;font-weight:700}.trial-photo-loading{min-height:300px}@keyframes cg-pulse{50%{opacity:.5;transform:scale(.88)}}@keyframes cg-celebrate{from{opacity:0;transform:scale(.55)}to{opacity:1;transform:scale(1)}}@keyframes cg-photo-in{from{opacity:.35;transform:scale(1.015)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.trial-voice-orb,.trial-wait-art i,.trial-success-orb,.trial-gallery-frame img{animation:none}.trial-look-picks button{transition:none}}

.trial-wait-art{width:min(340px,86vw);height:210px;overflow:hidden;border-radius:28px;background:#fbfaff;box-shadow:0 14px 48px #765cff1a;isolation:isolate}.trial-halftone{position:absolute;inset:-30%;z-index:-1;background-image:radial-gradient(circle,#a995ff 0 2px,transparent 2.4px);background-size:11px 11px;opacity:.62;mask-image:radial-gradient(ellipse 42% 45% at 40% 50%,#000,transparent 90%);animation:cg-dots 5s ease-in-out infinite alternate}.trial-wait-art:before,.trial-wait-art:after{content:"";position:absolute;width:130px;height:130px;border-radius:50%;filter:blur(35px);background:#d5c8ff;opacity:.5;z-index:-2;animation:cg-aurora 6s ease-in-out infinite alternate}.trial-wait-art:after{background:#f1dcff;animation-delay:-3s;transform:translate(75px,25px)}.trial-wait-progress{width:min(280px,76vw);height:6px;border-radius:99px;background:#ece8f8;overflow:hidden}.trial-wait-progress span{display:block;height:100%;width:40%;border-radius:inherit;background:linear-gradient(90deg,#bba7ff,#765cff,#bba7ff);animation:cg-progress 1.8s ease-in-out infinite}.trial-wait-time{font-variant-numeric:tabular-nums}@keyframes cg-dots{to{transform:translate(12%,3%) rotate(8deg);mask-position:30px 0}}@keyframes cg-aurora{to{transform:translate(80px,-35px) scale(1.2)}}@keyframes cg-progress{from{transform:translateX(-110%)}to{transform:translateX(260%)}}@media(prefers-reduced-motion:reduce){.trial-halftone,.trial-wait-art:before,.trial-wait-art:after,.trial-wait-progress span{animation:none}.trial-wait-progress span{width:100%;opacity:.5}}

.trial-favorite{display:block;width:100%;min-height:52px;margin:14px auto 0;border:2px solid #8d6cf2;border-radius:16px;background:#fff;color:#5530a1;font-family:inherit;font-weight:700;font-size:16px;cursor:pointer;transition:transform .18s,background .18s,color .18s}.trial-favorite[aria-pressed="true"]{background:#6942d6;color:white;box-shadow:0 8px 22px #6942d633}.trial-favorite:active{transform:scale(.98)}.trial-favorite-hint{margin:7px 0 18px;text-align:center;color:#6f6882;font-size:13px}

.trial-look-picks button{width:auto;min-width:78px;padding:0 14px}

/* Readable capture countdown and precise measurements. */
.capture-camera.is-counting .capture-count,.capture-camera[data-countdown="true"] .capture-count{font-size:clamp(72px,18vw,112px);line-height:1.05;min-height:118px;font-weight:850;color:#fff;text-shadow:0 3px 24px #0009}.capture-camera .capture-count.is-countdown{font-size:clamp(72px,18vw,112px);line-height:1.05;min-height:118px;font-weight:850;color:#fff}.capture-bottom .capture-primary,.capture-bottom button{min-height:56px}.measurement-entry{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:10px}.measurement-entry input,.measurement-entry select{min-width:0;min-height:52px}.capture-measurements{display:grid;grid-template-columns:1fr;gap:18px}.trial-wait h2{min-height:2.4em}.trial-wait p{min-height:3.2em;max-width:340px}.trial-wait small{min-height:4.2em}.trial-wait-time{display:block;min-height:24px;min-width:160px}.personal-upload{display:grid;gap:8px;margin:18px 0}.personal-upload progress{width:100%;height:12px;accent-color:#7654ac}.personal-upload span{font-size:14px;color:#6e627a}

/* Voice comparisons remain usable at narrow phone widths. */
.trial-voice-card{min-width:0;flex-wrap:wrap}.trial-voice-copy strong{overflow-wrap:anywhere;line-height:1.35}.trial-voice-choice{min-height:44px;padding:4px}.studio-provider-permission{width:min(480px,calc(100vw - 32px));box-sizing:border-box;max-height:85dvh;overflow:auto;border:1px solid #e4ddf3;border-radius:24px;padding:24px;color:#251c38;background:#fff}.studio-provider-permission::backdrop{background:#1a102c99}.studio-provider-permission p{line-height:1.5;font-size:14px}.studio-provider-permission button{min-height:48px;width:100%;margin-top:10px}@media(max-width:360px){.trial-voice-card{gap:8px;padding:10px}.trial-voice-copy strong{font-size:13px}.trial-voice-choice span{font-size:11px}}

.delivery-upload-status{margin:12px 0;padding:12px 16px;border-radius:16px;background:#f2eeff;color:#5e4b84;text-align:left;font-size:13px;line-height:1.45}.delivery-upload-status p{margin:0}.delivery-upload-status button{min-height:44px}
