@font-face{font-family:Manrope;src:url('assets/manrope.woff2') format('woff2');font-weight:200 800;font-display:swap}
:root{--paper:#f6f5ef;--ink:#21221e;--muted:#67685f;--line:#d9dad1;--soft:#e8e9df;--lilac:#cdb5f7;--acid:#dfff00;color-scheme:light;font-family:Manrope,Arial,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
body{margin:0;min-height:100dvh;display:flex;flex-direction:column}
h1,h2,p,figure{margin:0}
button,input{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;color:inherit}
a{color:inherit;text-underline-offset:4px}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #7150bd;outline-offset:5px}
button:disabled{opacity:.4;cursor:not-allowed}
img{display:block;max-width:100%}
[hidden]{display:none!important}
.wrap{width:min(1180px,calc(100% - 96px));margin-inline:auto}
.header{height:106px;display:flex;align-items:center}
.wordmark{display:inline-flex;align-items:center;gap:5px;font-size:34px;font-weight:800;letter-spacing:-2.2px;text-decoration:none;line-height:1}
.wordmark>span{font-size:36px;font-weight:400}
main{flex:1;display:flex;align-items:center;padding-block:35px 65px}
.hero{display:grid;width:100%;grid-template-columns:1fr 1fr;grid-template-areas:"intro art" "selection art";column-gap:90px;row-gap:38px;align-items:center}
.hero-copy{grid-area:intro;align-self:end}
h1{font-size:clamp(68px,6.5vw,94px);font-weight:800;letter-spacing:-.075em;line-height:1.04}
h1>span{font-weight:500}
.hero-copy>p{font-size:15px;line-height:1.8;margin-top:26px}
.hero-art{grid-area:art;min-width:0}
.hero-art>img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:150px 150px 8px 8px;background:#000}
.hero-art.is-composition>img{border-radius:14px}
.hero-art>figcaption{font-size:10px;line-height:1.6;color:var(--muted);margin-top:12px}
.selection-panel{grid-area:selection;align-self:start;max-width:410px}
.motif-picker{display:flex;border-bottom:1px solid #bfc1b5}
.motif-picker button{flex:1;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:transparent;padding:14px 5px;font-size:14px;color:var(--muted)}
.motif-picker button[aria-pressed=true]{color:var(--ink);font-weight:800;border-bottom-color:var(--ink)}
.configuration-row{display:flex;align-items:center;justify-content:space-between;min-height:79px;gap:12px}
.variant-picker{display:flex;align-items:center;gap:7px}
.variant-picker>span{font-size:11px;color:var(--muted);margin-right:5px}
.variant-picker button{height:34px;min-width:40px;padding:6px 10px;border:1px solid #c9cbc0;background:transparent;border-radius:6px;font-size:11px}
.variant-picker button[aria-pressed=true]{color:var(--paper);background:var(--ink);border-color:var(--ink)}
.variant-detail{font-size:12px;line-height:1.6}
.price{display:flex;flex-direction:column;align-items:flex-end;white-space:nowrap}
.price strong{font-size:23px;letter-spacing:-.05em}
.price small{font-size:9px;color:var(--muted);margin-top:3px}
.selection-detail{font-size:11px;line-height:1.7;color:var(--muted);margin:-4px 0 22px;min-height:19px}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;border:0;border-radius:99px;padding:15px 25px;font-size:13px;line-height:1.5;font-weight:700;text-align:center;text-decoration:none;transition:background .15s}
.dark{background:var(--ink);color:var(--paper)}
.dark:hover{background:#3a3c32}
.full{width:100%}
.payment-note{font-size:10px;line-height:1.7;color:var(--muted);margin-top:13px}
.footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-block:23px 28px;font-size:10px;color:var(--muted)}
.footer nav{display:flex;gap:25px}
.footer a{text-decoration:none}
.footer a:hover{text-decoration:underline}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
body.flow-open{overflow:hidden}
dialog{border:0;border-radius:20px;background:var(--paper);color:var(--ink);width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;box-shadow:0 20px 100px #0004}
dialog::backdrop{background:#15170faf;backdrop-filter:blur(6px)}
.dialog-header{display:flex;align-items:center;gap:17px;padding:20px 27px;border-bottom:1px solid var(--line)}
.dialog-header .wordmark{font-size:27px;letter-spacing:-1.8px}
.dialog-header .wordmark>span{font-size:28px}
.dialog-demo{font-size:10px;color:var(--muted)}
.close-button{margin-left:auto;border:0;background:transparent;min-width:40px;min-height:40px;font-size:28px}
#flow-content{padding:28px 30px 32px}
.flow-kicker{font-size:10px;font-weight:700;letter-spacing:.07em;color:var(--muted);margin-bottom:12px}
.flow-title{font-size:32px;line-height:1.18;font-weight:700;letter-spacing:-.05em;outline:none}
.flow-intro{font-size:12px;line-height:1.8;color:#5b6052;margin-top:15px;margin-bottom:22px}
.flow-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:26px}
.flow-actions .button{max-width:74%}
.flow-back{font-size:11px;line-height:1.6;min-height:42px;border:0;background:transparent;padding:9px 0;text-decoration:none}
.capture-progress{display:flex;gap:7px;margin:24px 0}
.capture-progress>span{flex:1;height:4px;border-radius:4px;background:#d8dace}
.capture-progress>span.done{background:#828c60}
.capture-progress>span.active{background:var(--ink)}
.capture-help{padding:16px 18px;border-radius:12px;background:var(--soft);margin:20px 0}
.capture-help summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px;font-weight:700;cursor:pointer}
.capture-help summary::-webkit-details-marker{display:none}
.capture-help summary:after{content:'+';font-size:19px;line-height:1;font-weight:400}
.capture-help[open] summary:after{content:'−'}
.capture-help>div{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:17px}
.capture-help p{font-size:11px;line-height:1.7}
.capture-help strong{display:block;margin-bottom:4px}
.capture-area{height:240px;border-radius:14px;background:#1f231d;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;margin:20px 0}
.capture-area:before{content:'';position:absolute;width:155px;height:155px;border:2px dashed #dedfcc;border-radius:50%;pointer-events:none;z-index:1}
.capture-area>span{font-size:68px;color:#c5c9b3}
.capture-area>img{width:100%;height:100%;object-fit:contain}
.capture-area>small{position:absolute;bottom:13px;padding:5px 9px;border-radius:5px;background:#1f231dcf;color:#e1e2d6;font-size:10px;z-index:2}
.capture-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.file-label{display:flex;align-items:center;justify-content:center;min-height:47px;border-radius:99px;background:var(--ink);color:var(--paper);font-size:12px;font-weight:700;cursor:pointer}
.file-label.secondary{background:#e1e4d8;color:var(--ink)}
.file-label:focus-within{outline:3px solid #7150bd;outline-offset:3px}
.file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.demo-button{display:block;border:0;background:transparent;font-size:10px;color:var(--muted);text-decoration:underline;text-underline-offset:4px;margin:17px auto}
.field-help{font-size:10px;line-height:1.8;color:var(--muted);margin-top:10px}
.notice{padding:17px 19px;background:#eae1f8;border-radius:12px;font-size:11px;line-height:1.8;margin:22px 0}
.notice strong{display:block;margin-bottom:5px}
.photo-strip{display:flex;flex-wrap:wrap;gap:8px;margin:25px 0}
.photo-strip img{width:60px;height:60px;border-radius:9px;background:#151515;object-fit:cover}
.summary-box{display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--soft);border-radius:13px;padding:20px;margin:22px 0;font-size:13px;line-height:1.8}
.summary-box strong{font-size:22px;letter-spacing:-.04em;white-space:nowrap}
.buyer-fieldset{border:0;padding:0;margin:0}
.field-label{display:block;font-size:11px;font-weight:700;margin:19px 0 8px}
.choice-row{display:flex;gap:18px;align-items:center;font-size:11px;margin:15px 0}
.choice-row input{accent-color:var(--ink)}
.text-input{display:block;width:100%;min-height:48px;padding:11px 13px;border:1px solid #bfc4b4;border-radius:9px;background:#fffef7;color:var(--ink);font-size:13px}
.check-row{display:flex;gap:11px;font-size:11px;line-height:1.8;margin:20px 0}
.check-row input{width:18px;height:18px;flex:0 0 18px;accent-color:var(--ink);margin:2px 0 0}
.error{font-size:12px;line-height:1.7;color:#9c193d;margin-top:14px}
.demo-controls{border-top:1px solid #c7bdd2;padding-top:22px;margin-top:30px}
.demo-controls p{font-size:11px;line-height:1.8;color:var(--muted);margin:11px 0 19px}
.demo-controls .flow-back{display:block;margin:12px auto 0}
@media(max-width:1000px){.wrap{width:calc(100% - 60px)}.hero{column-gap:45px}.hero h1{font-size:72px}.hero-copy>p{font-size:13px}.hero-art>img{border-radius:110px 110px 8px 8px}}
@media(max-width:700px){
  .wrap{width:calc(100% - 44px)}.header{height:75px}.wordmark{font-size:30px}.wordmark>span{font-size:31px}
  main{display:block;padding-block:12px 40px}.hero{grid-template-columns:1fr;grid-template-areas:"intro" "art" "selection";gap:22px}
  .hero h1{font-size:clamp(55px,15vw,76px)}.hero-copy>p{font-size:13px;line-height:1.75;margin-top:16px}
  .hero-art{max-width:400px}.hero-art>img{max-height:320px;aspect-ratio:1.12;height:auto;border-radius:110px 110px 8px 8px}.hero-art.is-composition>img{border-radius:12px}
  .hero-art>figcaption{font-size:9px;margin-top:8px}.selection-panel{max-width:none}.motif-picker button{font-size:13px;padding-top:10px}
  .configuration-row{min-height:68px}.payment-note{font-size:10px}.selection-detail{margin-bottom:14px}.price strong{font-size:22px}
  .footer{padding-block:21px 25px;align-items:flex-start;gap:18px;font-size:9px}.footer nav{gap:14px}
  dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}.dialog-header{padding:15px 20px}
  #flow-content{padding:24px 22px 26px}.flow-title{font-size:29px}.flow-actions{gap:12px}.flow-actions .button{font-size:11px;padding:13px 18px}
  .capture-area{height:215px}.capture-help{padding:15px}.capture-help p{font-size:10px}.choice-row{gap:11px;font-size:10px}
}
@media(max-width:360px){.hero-art>img{max-height:270px}.hero{gap:24px}.variant-picker{gap:5px}.variant-picker button{min-width:34px;padding:6px 8px}.variant-detail{font-size:10px}.price strong{font-size:20px}.footer{flex-direction:column}.capture-help>div{grid-template-columns:1fr}.flow-actions .button{padding:12px 14px;font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Front camera: same palette and type; only the capture flow is extended. */
.camera-light-guide{background:var(--soft);padding:18px 20px;border-radius:12px;margin:20px 0;font-size:12px;line-height:1.7}
.camera-light-guide>strong{display:block;font-size:14px;margin-bottom:10px}
.camera-light-guide ol{padding-left:19px;margin:0;display:grid;gap:12px}
.camera-light-guide b{font-weight:800}
.camera-alternative{text-align:center;margin-top:9px}.camera-alternative label{position:relative;display:inline-flex;align-items:center;cursor:pointer}
.camera-stage{height:clamp(240px,39dvh,380px);position:relative;overflow:hidden;border-radius:16px;background:#161813;margin:20px 0 12px}
.camera-stage video{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transform:scaleX(-1)}
.iris-target{position:absolute;left:50%;top:50%;width:32%;max-width:145px;aspect-ratio:1;transform:translate(-50%,-50%);border:2px solid var(--paper);border-radius:50%;box-shadow:0 0 0 700px #10120b66;pointer-events:none}
.iris-target:before,.iris-target:after{content:'';position:absolute;left:50%;top:50%;background:#f6f5efb3;transform:translate(-50%,-50%)}
.iris-target:before{width:10px;height:1px}.iris-target:after{width:1px;height:10px}
.camera-ring-label{position:absolute;left:12px;right:12px;bottom:14px;text-align:center;font-size:11px;font-weight:700;color:var(--paper);text-shadow:0 1px 3px #000}
.camera-countdown{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:48px;height:48px;background:var(--paper);color:var(--ink);border-radius:50%;font-size:27px;font-weight:800}
.camera-status{font-size:12px;line-height:1.7;font-weight:700}
.camera-small-hint{font-size:11px;line-height:1.7;color:var(--muted);margin-top:9px}
.camera-cancel{display:block;margin:8px auto 0}.capture-area.has-photo:before{display:none}
.selfie-preview{transform:scaleX(-1)}
.file-label{border:0;padding:8px 12px;text-align:center}

.iris-target[data-state=adjust]{border-color:#ffbd63}
.iris-target[data-state=ready]{border-color:#69ed9b;border-width:3px;box-shadow:0 0 0 700px #10120b66,0 0 0 5px #69ed9b33}
.camera-checks{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;list-style:none;padding:0;margin:12px 0;font-size:11px;font-weight:700;color:var(--muted)}
.camera-checks li[data-state=pass]{color:#24683b}

.result-art{margin:22px auto;max-width:340px;background:#000;border-radius:14px;overflow:hidden}.result-art img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}

/* Guided front camera r010: instructions outside the iris, reachable centered shutter. */
dialog.camera-view{max-width:620px}.camera-view #flow-content{padding:14px 18px 20px}.camera-view .flow-kicker{margin-bottom:5px}.camera-view .flow-title{font-size:25px;letter-spacing:-.045em}
.camera-view .camera-stage{height:clamp(440px,62dvh,560px);margin:14px 0 10px;border-radius:18px;isolation:isolate}
.camera-view .camera-stage video{position:absolute;inset:0;z-index:0}
.camera-coach{position:absolute;z-index:3;top:15px;left:14px;right:14px;display:grid;gap:6px;padding:13px 15px;border:1px solid #ffffff20;border-radius:14px;background:#161813d9;color:#fff8df;pointer-events:none;text-align:center;backdrop-filter:blur(8px)}
.camera-coach-kicker{font-size:9px;line-height:1.4;letter-spacing:.12em;font-weight:800;color:#dedfd0}
.camera-coach strong{font-size:clamp(20px,5.3vw,27px);font-weight:800;line-height:1.2;letter-spacing:-.045em;color:#ffe295;text-wrap:balance}
.camera-coach>span:last-child{font-size:11px;line-height:1.5;font-weight:600;text-wrap:balance}
.camera-coach[data-tone=ready] strong{color:#91f3b3}.camera-coach[data-tone=countdown] strong{color:var(--lilac)}
.camera-aim{position:absolute;z-index:1;left:50%;top:48%;width:32%;max-width:145px;aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none}
.camera-view .iris-target{inset:0;max-width:none;width:100%;height:100%;transform:none;border-color:#ffcf73}
.camera-view .iris-target[data-state=ready]{border-color:#69ed9b}
.camera-view .camera-ring-label{z-index:2;top:calc(100% + 10px);bottom:auto;left:50%;right:auto;width:240px;transform:translateX(-50%);font-size:10px;color:#fff8df;text-shadow:0 1px 4px #000}
.camera-pose{position:absolute;z-index:3;left:14px;right:14px;bottom:103px;text-align:center;color:var(--paper);font-size:13px;font-weight:600;line-height:1.5;text-shadow:0 1px 5px #000,0 1px 10px #000;pointer-events:none}.camera-pose strong{color:#e4d0ff;font-weight:800}
.camera-shutter-bar{position:absolute;z-index:4;left:0;right:0;bottom:14px;height:76px;display:flex;align-items:center;justify-content:center;gap:14px}
.camera-shutter{width:72px;height:72px;flex:0 0 72px;position:relative;border-radius:50%;border:3px solid #f6f5ef;background:#ffffff20;padding:5px;box-shadow:0 3px 20px #0006;touch-action:manipulation}
.camera-shutter-inner{display:block;width:100%;height:100%;border-radius:50%;background:var(--paper)}
.camera-shutter:not(:disabled){border-color:#91f3b3}.camera-shutter:not(:disabled) .camera-shutter-inner{background:#91f3b3}.camera-shutter:disabled{opacity:.65}
.camera-timer-label{position:absolute;left:calc(50% + 48px);right:8px;max-width:95px;font-size:10px;line-height:1.5;font-weight:700;color:var(--paper);text-shadow:0 1px 3px #000}
.camera-view .camera-countdown{position:absolute;left:50%;right:auto;top:2px;transform:translateX(-50%);width:72px;height:72px;background:var(--lilac);color:var(--ink);font-size:38px;line-height:1;border:3px solid var(--paper);box-shadow:0 3px 20px #0006;pointer-events:none}
.camera-view .camera-checks{margin:9px 0;font-size:11px;gap:5px}.camera-view .camera-checks li{background:var(--soft);border-radius:99px;padding:5px 10px}.camera-view .camera-checks li[data-state=pass]{background:#dfeee0}
.camera-view .camera-status{font-size:11px;line-height:1.55;font-weight:600;min-height:34px}.camera-tools{display:flex;justify-content:space-between;gap:14px;margin-top:3px}.camera-tools .flow-back{font-size:11px}.camera-privacy{font-size:9px;line-height:1.6;color:var(--muted)}
@media(max-width:700px){dialog.camera-view{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);margin:6px auto}.camera-view .dialog-header{padding:8px 15px}.camera-view .dialog-header .wordmark{font-size:23px}.camera-view .dialog-header .wordmark>span{font-size:24px}.camera-view #flow-content{padding:10px 12px 14px}.camera-view .flow-title{font-size:23px}.camera-view .camera-stage{height:clamp(440px,60dvh,540px);margin-top:10px}}
@media(max-width:360px){.camera-coach{left:10px;right:10px;padding:12px 10px}.camera-coach strong{font-size:20px}.camera-view .camera-checks li{font-size:10px;padding:5px 8px}}

/* Capture remains available with amber guidance; only verified green gets green styling. */
.camera-shutter:not(:disabled)[data-quality=adjust]{border-color:var(--paper)}
.camera-shutter:not(:disabled)[data-quality=adjust] .camera-shutter-inner{background:var(--paper)}
.camera-timer-label b{font-weight:800}

/* Only the local preview is cropped; uploads keep the original image bytes. */
.capture-area.eye-preview{height:clamp(280px,45dvh,390px);background:#161813}
.capture-area.eye-preview>img{width:100%;height:100%;object-fit:contain}
.eye-preview-note{font-size:11px;line-height:1.7;color:var(--muted);margin-top:-8px}

/* Camera typography revision: fragment cues above a double-sized iris ring. */
.camera-view .flow-title{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.camera-view .flow-kicker{font-size:10px;letter-spacing:.1em;margin-bottom:5px}
.camera-view .camera-stage{margin-top:8px}
.camera-view .camera-coach{top:18px;left:12px;right:12px;padding:5px 10px;gap:7px;background:none;border:0;border-radius:0;backdrop-filter:none;text-shadow:0 2px 8px #000,0 1px 18px #0008}
.camera-view .camera-coach-kicker{font-size:10px;font-weight:700;letter-spacing:.14em;color:#f6f5ef}
.camera-view .camera-coach strong{font-size:clamp(25px,6.4vw,33px);font-weight:800;line-height:1.12;letter-spacing:-.045em;color:#ffe295}
.camera-view .camera-coach>span:last-child{font-size:12px;font-weight:700;line-height:1.4;color:#e4d0ff}
.camera-view .camera-coach[data-tone=ready] strong{color:#91f3b3}.camera-view .camera-coach[data-tone=countdown] strong{color:#e4d0ff}
.camera-view .camera-aim{top:52%;width:64%;max-width:290px}
.camera-view .camera-ring-label{display:none}
.camera-view .camera-shutter-bar{height:76px;bottom:14px}
.camera-view .camera-shutter-inner{display:grid;place-items:center;color:var(--ink)}
.camera-idle-timer{font-size:25px;line-height:1;font-weight:800;letter-spacing:-.06em}.camera-idle-timer>span{font-size:12px;letter-spacing:0;margin-left:2px}
.camera-view .camera-countdown{inset:5px;transform:none;width:calc(100% - 10px);height:calc(100% - 10px);border:0;box-shadow:none;font-size:31px;background:var(--lilac);color:var(--ink)}
.camera-view .camera-checks,.camera-view .camera-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.camera-view .camera-tools{margin-top:4px}.camera-view .camera-privacy{font-size:9px;text-align:center;letter-spacing:.015em}
@media(max-width:360px){.camera-view .camera-coach strong{font-size:25px}.camera-view .camera-coach>span:last-child{font-size:11px}}

.review-wait{margin:20px 0;padding:17px 19px;border-radius:13px;background:var(--soft)}
.review-wait strong{font-size:18px;line-height:1.4;letter-spacing:-.03em}.review-wait p{margin-top:7px;font-size:11px;line-height:1.7;color:var(--muted)}

/* r014: opt-in screen fill. Camera pixels and quality gates are unaffected. */
.camera-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:32px}
.camera-heading .flow-kicker{margin:0}
.camera-light-toggle{display:inline-flex;align-items:center;gap:9px;min-height:34px;padding:6px 11px;border:1px solid #22251e33;border-radius:99px;background:transparent;color:var(--ink);font:inherit;font-size:11px;font-weight:700;touch-action:manipulation}
.camera-light-toggle span{min-width:24px;color:var(--muted)}
.camera-light-toggle[aria-pressed=true]{background:#fff;border-color:var(--ink)}
.camera-light-toggle[aria-pressed=true] span{color:var(--ink)}
.camera-light-toggle:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.camera-light-toggle:disabled{opacity:.6}
.camera-view[data-selfie-light=on]{background:#fff}
.camera-view[data-selfie-light=on] .iris-target{box-shadow:0 0 0 100vmax #fff;border-color:#a96700}
.camera-view[data-selfie-light=on] .iris-target[data-state=ready]{border-color:#167b42;box-shadow:0 0 0 100vmax #fff,0 0 0 5px #167b4222}
.camera-view[data-selfie-light=on] .camera-coach{text-shadow:none}
.camera-view[data-selfie-light=on] .camera-coach-kicker{color:#55594d}
.camera-view[data-selfie-light=on] .camera-coach strong{color:#875100}
.camera-view[data-selfie-light=on] .camera-coach>span:last-child{color:#69458f}
.camera-view[data-selfie-light=on] .camera-coach[data-tone=ready] strong{color:#167b42}
.camera-view[data-selfie-light=on] .camera-coach[data-tone=countdown] strong{color:#69458f}
.camera-view[data-selfie-light=on] .camera-shutter{border-color:var(--ink);background:#fff;box-shadow:none}
.camera-view[data-selfie-light=on] .camera-shutter-inner{background:var(--ink);color:#fff}
.camera-view[data-selfie-light=on] .camera-shutter[data-quality=ready] .camera-shutter-inner{background:#167b42}

/* r015: neutral white camera surround, rear-camera controls, distinct shutter. */
.camera-front-option{margin-top:9px;border:1px solid var(--ink);background:transparent;color:var(--ink)}
.camera-view[data-camera-facing=environment] .camera-stage video{transform:none}
.camera-view .camera-heading{min-height:36px}
.camera-view[data-selfie-light=on] .iris-target{border-color:#a96700;border-width:2px}
.camera-view[data-selfie-light=on] .iris-target[data-state=ready]{border-color:#167441;border-width:3px}
.camera-view[data-selfie-light=on] .camera-coach strong{color:#181b15}
.camera-view[data-selfie-light=on] .camera-coach>span:last-child{color:#55594f}
.camera-view[data-selfie-light=on] .camera-coach[data-tone=ready] strong{color:#167441}
.camera-view[data-selfie-light=on] .camera-coach[data-tone=countdown] strong{color:#181b15}
.camera-view .camera-shutter{width:76px;height:76px;flex-basis:76px;border-width:3px;padding:5px}
.camera-view[data-selfie-light=on] .camera-shutter-inner{background:#181b15;color:#fff}
.camera-view[data-selfie-light=on] .camera-shutter[data-quality=ready] .camera-shutter-inner{background:#181b15}
.camera-view[data-selfie-light=on] .camera-countdown{background:#181b15;color:#fff}
.camera-device-controls{margin:2px 4px 8px}
.camera-zoom-row{display:flex;align-items:center;gap:12px;font-size:11px;font-weight:700;min-height:32px}
.camera-zoom-row[hidden]{display:none}
.camera-zoom-row input{min-width:0;flex:1;accent-color:#181b15;touch-action:pan-y}
.camera-zoom-row output{min-width:38px;text-align:right;font-variant-numeric:tabular-nums}
.camera-control-note{font-size:10px;line-height:1.5;color:#55594f;margin:3px 0;text-align:center}
.camera-control-note:empty{display:none}
.camera-view .camera-tools{gap:10px;align-items:center}
.camera-view .camera-tools .flow-back{font-size:10px}

.camera-view[data-selfie-light=on] .camera-shutter:not(:disabled)[data-quality=adjust] .camera-shutter-inner{background:#181b15;color:#fff}
.camera-view .camera-light-toggle{border-color:#181b1570}

/* r016: explicit recovery for reported-on but physically dark torch. */
.camera-light-retry{display:block;margin:4px auto 0;font-size:10px;text-decoration:underline;text-underline-offset:3px}
.camera-light-retry[hidden]{display:none}

/* r018: native photo capture, preserving the existing brand and browser camera. */
.native-photo-guide{margin:20px 0 22px;padding:22px;border:1px solid #d9dbd0;border-radius:16px;background:#fff}
.native-photo-guide>span{display:block;color:#667147;font-size:10px;font-weight:800;letter-spacing:.12em;margin-bottom:12px}
.native-photo-guide>strong{display:block;font-size:clamp(24px,6vw,32px);line-height:1.13;letter-spacing:-.045em}
.native-photo-guide p{font-size:12px;line-height:1.6;color:#606554;margin:14px 0 0;max-width:34ch}
.native-photo-button{position:relative;min-height:54px;font-size:14px}
.native-photo-hint{font-size:11px;line-height:1.6;text-align:center;max-width:36ch;margin:11px auto 14px;color:#5b6052}
.native-photo-help{margin:12px 0 20px;text-align:center;font-size:11px;line-height:1.7;color:#5b6052}
.native-photo-help summary,.browser-photo-options summary{cursor:pointer}
.native-photo-help p{padding:0 12px;text-align:left}
.browser-photo-options{padding-top:17px;margin-top:18px;border-top:1px solid #d9dbd0;font-size:12px;line-height:1.6}
.browser-photo-options summary{font-weight:700}
.browser-photo-options p{font-size:11px;color:#5b6052}
.native-photo-privacy{font-size:10px;line-height:1.7;margin-top:20px}
.camera-native-fallback{width:100%;min-height:40px;font-size:11px;margin-top:8px}
.camera-view .camera-light-toggle{max-width:145px;white-space:normal;text-align:center}

/* r019: larger touch target and quieter camera controls. */
.camera-device-controls{margin:10px 0 12px}
.camera-zoom-row{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:10px 16px 4px;border:1px solid #dedfd8;border-radius:16px;background:#fff;min-height:0;font-size:12px}
.camera-zoom-row output{min-width:48px;padding:3px 8px;border-radius:9px;background:#f1f2ed;color:#181b15;font-size:14px;text-align:center;line-height:1.5}
.camera-zoom-row input{grid-column:1/-1;display:block;appearance:none;-webkit-appearance:none;box-sizing:border-box;width:100%;height:48px;margin:0;background:transparent;cursor:pointer;border:0;touch-action:pan-y}
.camera-zoom-row input::-webkit-slider-runnable-track{height:8px;border-radius:99px;background:#d8dbd0}
.camera-zoom-row input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:32px;height:32px;margin-top:-12px;border:3px solid #fff;border-radius:50%;background:#181b15;box-shadow:0 0 0 1px #181b15,0 2px 5px #0002}
.camera-zoom-row input::-moz-range-track{height:8px;border-radius:99px;background:#d8dbd0}
.camera-zoom-row input::-moz-range-thumb{box-sizing:border-box;width:32px;height:32px;border:3px solid #fff;border-radius:50%;background:#181b15;box-shadow:0 0 0 1px #181b15,0 2px 5px #0002}
.camera-zoom-row input:focus-visible{outline:2px solid #52683c;outline-offset:2px;border-radius:10px}
.camera-zoom-row input:disabled{opacity:.45;cursor:default}
.camera-control-note:empty{display:none}
.camera-extra-options{margin:10px 4px 0;font-size:11px;line-height:1.6;color:#555c49}
.camera-extra-options summary{cursor:pointer}
.camera-extra-options .camera-light-retry{margin:10px 0 0}
.camera-view .camera-tools{margin-top:10px;margin-bottom:8px}

/* r020: one manual light control, explicit Auto/On/Off intent. */
.camera-light-panel{display:flex;align-items:center;gap:8px;flex-shrink:0}
.camera-light-modes{display:flex;align-items:center;padding:2px;border:1px solid #dedfd8;border-radius:11px;background:#f5f5f0}
.camera-light-modes button{width:34px;height:40px;border:0;border-radius:8px;padding:0;background:transparent;color:#55594f;font:inherit;font-size:10px;font-weight:700;cursor:pointer}
.camera-light-modes button[aria-pressed=true]{background:#181b15;color:#fff}
.camera-torch-button{flex:0 0 64px;width:64px;height:64px;border:2px solid #b73c31;border-radius:50%;background:#fff3f1;color:#a32e25;font:inherit;font-size:12px;font-weight:800;line-height:1.25;cursor:pointer;touch-action:manipulation}
.camera-torch-button[aria-pressed=true]{background:#b73c31;color:#fff}
.camera-torch-button:focus-visible,.camera-light-modes button:focus-visible{outline:2px solid #181b15;outline-offset:3px}
.camera-torch-button:disabled,.camera-light-modes button:disabled{opacity:.5;cursor:default}
.camera-view[data-camera-facing=environment] .camera-heading{min-height:64px}
@media(max-width:700px){.camera-view[data-camera-facing=environment] .camera-stage{height:clamp(390px,calc(60dvh - 32px),508px)}}

/* r021: a single manual light control, retaining the established camera layout. */
.camera-light-panel{gap:0}

/* r022: measured space belongs to the cue, iris and shutter in separate rows.
   The iris reads both dimensions of its grid cell, so short screens cannot
   push it into the text or the shutter. The video still fills the stage;
   live-check geometry reads the actual target bounds on every frame. */
dialog.camera-view[open]{display:flex;flex-direction:column;container-type:inline-size;width:min(620px,calc(100vw - 16px));height:min(920px,calc(100dvh - 16px));max-height:calc(100dvh - 16px);margin:auto;overflow:hidden;border-radius:18px}
.camera-view .dialog-header{flex:0 0 auto;padding:10px 16px;min-height:50px;gap:12px}
.camera-view .dialog-header .wordmark{font-size:clamp(22px,5.8cqi,27px);line-height:1.1}
.camera-view .dialog-header .wordmark>span{font-size:1em}
.camera-view .close-button{min-width:40px;min-height:40px}
.camera-view #flow-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;gap:10px;padding:10px 14px 12px;overflow:auto;scrollbar-width:thin}
.camera-view .camera-heading,.camera-view[data-camera-facing=environment] .camera-heading{flex:0 0 auto;min-height:0;gap:12px}
.camera-view .flow-kicker{font-size:clamp(10px,2.7cqi,12px);margin:0;line-height:1.3}
.camera-view .camera-torch-button{width:56px;height:56px;flex-basis:56px;font-size:12px}
.camera-view .camera-stage,.camera-view[data-camera-facing=environment] .camera-stage{display:grid;grid-template-rows:auto minmax(160px,1fr) auto;flex:1 1 0;min-height:326px;min-height:min-content;height:auto;margin:0;padding:14px 12px;gap:12px;border-radius:16px}
.camera-view .camera-coach{position:relative;inset:auto;width:100%;padding:0;margin:0;gap:5px;min-width:0;align-self:start}
.camera-view .camera-coach-kicker{font-size:clamp(9px,2.5cqi,11px);line-height:1.3}
.camera-view .camera-coach strong{font-size:clamp(21px,6.2cqi,30px);line-height:1.13;overflow-wrap:anywhere}
.camera-view .camera-coach>span:last-child{font-size:clamp(12px,3.1cqi,14px);line-height:1.35}
.camera-view .camera-aim{position:relative;inset:auto;transform:none;display:grid;place-items:center;width:100%;height:100%;max-width:none;min-width:0;min-height:0;aspect-ratio:auto;container-type:size}
.camera-view .iris-target{position:relative;inset:auto;transform:none;display:block;width:min(82cqw,100cqh,360px);height:auto;max-width:none;aspect-ratio:1}
.camera-view .camera-shutter-bar{position:relative;inset:auto;flex:none;height:72px;min-height:72px;width:100%;gap:0}
.camera-view .camera-shutter{width:72px;height:72px;flex-basis:72px}
.camera-view .camera-idle-timer{font-size:25px}
.camera-view .camera-device-controls{flex:0 0 auto;margin:0}
.camera-view .camera-zoom-row{padding:7px 14px 2px;gap:0 10px;border-radius:14px;font-size:12px}
.camera-view .camera-zoom-row output{padding:2px 8px;font-size:14px}
.camera-view .camera-zoom-row input{height:48px}
.camera-view .camera-extra-options{margin:6px 3px 0;line-height:1.5}
.camera-view .camera-extra-options summary{padding:3px 0}
.camera-view .camera-tools{flex:0 0 auto;display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;margin:0}
.camera-view .camera-tools .flow-back{font-size:11px;min-height:32px;line-height:1.35;flex:0 1 auto}
.camera-view #camera-error{flex:0 0 auto;margin:0;font-size:12px}
@media(max-height:720px){
 .camera-view #flow-content{gap:7px;padding-block:7px 9px}
 .camera-view .dialog-header{padding-block:5px;min-height:46px}
 .camera-view .camera-torch-button{width:48px;height:48px;flex-basis:48px;font-size:11px}
 .camera-view .camera-stage,.camera-view[data-camera-facing=environment] .camera-stage{padding:9px 10px;gap:9px}
 .camera-view .camera-coach{gap:3px}
 .camera-view .camera-coach strong{font-size:clamp(20px,5.8cqi,27px)}
 .camera-view .camera-shutter-bar{height:64px;min-height:64px}
 .camera-view .camera-shutter{width:64px;height:64px;flex-basis:64px}
}
@supports not (width:1cqh){
 .camera-view .camera-stage,.camera-view[data-camera-facing=environment] .camera-stage{flex:0 0 auto;min-height:0;grid-template-rows:auto auto auto}
 .camera-view .camera-aim{container-type:normal;height:auto;width:min(62vw,270px);aspect-ratio:1;justify-self:center}
 .camera-view .iris-target{width:100%}
}
