:root{color-scheme:dark;--bg:#141019;--panel:#211927;--line:#3c3044;--text:#fff7ef;--muted:#c0adc6;--pink:#ed4caa;--teal:#63e4d4}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,a,input{-webkit-tap-highlight-color:transparent}button,a,label{touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid var(--teal);outline-offset:3px}main{max-width:1260px;margin:auto;padding:20px 32px}header{display:flex;align-items:center;justify-content:space-between;margin:0 0 24px}.brand{text-decoration:none;color:var(--text);line-height:.86;display:block}.brand small{font-size:10px;letter-spacing:.5em;display:block;margin-bottom:6px}.brand strong{font-size:29px;letter-spacing:-1px;font-weight:950}.brand span{color:var(--pink);margin-left:5px}.edition{font-size:10px;letter-spacing:.13em;color:var(--muted)}.edition b{display:block;margin-top:5px;text-align:right;color:var(--teal);font-weight:600}.workspace{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,1fr);gap:30px}.stage-wrap{position:relative;aspect-ratio:4/5;border-radius:24px;overflow:hidden;background:#2a2530;border:1px solid var(--line);min-width:0}#stage{width:100%;height:100%;display:block;touch-action:none}.stage-top,.stage-bottom{position:absolute;left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;gap:8px}.stage-top{top:18px}.stage-top span{font-size:9px;letter-spacing:.15em;border-radius:20px;padding:8px 12px;background:#19131acf}.stage-top button{pointer-events:auto}.stage-bottom{bottom:16px;font-size:10px;text-shadow:0 1px 4px #000}.privacy-dot{color:var(--teal);white-space:nowrap}.glass{border:1px solid #ffffff40;border-radius:20px;background:#19131aad;padding:8px 12px;font-size:11px}#welcome{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:24px;pointer-events:none}#welcome>*{pointer-events:auto}.welcome-title{font-size:clamp(25px,3.2vw,46px);line-height:1.1;font-weight:800;letter-spacing:-1px}.welcome-title em{font-style:normal;color:var(--teal)}#welcome p{font-size:14px;line-height:1.6;color:#d1c6d7;margin:17px 0 24px}.primary,.secondary{border:0;border-radius:12px;min-height:48px;padding:13px 20px;font-weight:750;text-decoration:none;text-align:center;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:10px}.primary{background:var(--pink);color:#1b0a17}.primary:hover{background:#ff71bf}.secondary{background:#35283c;color:var(--text);border:1px solid #56405f}.photo-link{font-size:12px;text-decoration:underline;text-underline-offset:4px;margin-top:16px;cursor:pointer}.photo-link input{position:absolute;width:1px;height:1px;opacity:0}.tool-heading{display:flex;align-items:center;justify-content:space-between;margin-top:10px}small{font-size:10px;letter-spacing:.18em;color:var(--teal)}h1{font-size:32px;line-height:1.2;letter-spacing:-1.2px;margin:6px 0 20px}.quiet{background:transparent;border:0;font-size:12px;color:var(--muted);padding:8px}.quiet:hover{color:white}.asset-tray{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.asset{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:10px 7px 12px;text-align:left}.asset:hover{border-color:var(--teal);background:#2c2333}.asset img{width:100%;height:118px;object-fit:contain;display:block;margin-bottom:10px}.asset span{font-size:10px;font-weight:600;display:flex;justify-content:space-between;gap:3px}.asset b{font-size:16px;color:var(--teal);line-height:12px}.selection{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin-top:18px}.selection-row,.small-controls{display:flex;align-items:center;justify-content:space-between;gap:8px}.selection-row strong{font-size:13px}.sliders{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:12px}.sliders label{font-size:11px;color:var(--muted)}input[type=range]{width:100%;accent-color:var(--teal);display:block;margin:12px 0;height:18px}.toggle{font-size:11px;color:var(--muted);display:flex;gap:6px;align-items:center}.toggle input{accent-color:var(--teal);width:16px;height:16px}.capture-row{display:flex;gap:8px;margin-top:20px}.capture-row .primary{flex:1}.capture-row .secondary{font-size:11px;padding:10px}#status{min-height:32px;color:var(--teal);font-size:12px;line-height:1.5;margin:15px 0 10px}.explanation{font-size:11px;line-height:1.65;color:var(--muted);margin:0;max-width:390px}footer{display:flex;justify-content:space-between;font-size:9px;color:#a18baa;letter-spacing:.06em;margin-top:24px;padding-bottom:12px}dialog{max-width:min(580px,95vw);width:100%;max-height:94dvh;background:#211927;border:1px solid #66506f;border-radius:20px;color:white;padding:20px;overflow:auto}dialog::backdrop{background:#08050dcf}.result-head{display:flex;justify-content:space-between;align-items:center}.result-head h2{font-size:18px}.result-head button{border:0;background:none;font-size:22px}#resultImage{width:100%;max-height:62dvh;object-fit:contain;border-radius:10px;background:#18121d}.result-actions{display:flex;gap:10px;margin-top:15px;flex-wrap:wrap}dialog p{font-size:12px;color:var(--muted);line-height:1.5}[hidden]{display:none!important}
@media(max-width:760px){main{padding:max(12px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom))}header{margin-bottom:14px}.brand strong{font-size:24px}.workspace{grid-template-columns:1fr;gap:15px}.stage-wrap{aspect-ratio:3/4;max-height:58dvh;border-radius:18px}.tools{min-width:0}.tool-heading{margin-top:0}h1{font-size:23px;margin-bottom:12px}.asset img{height:74px;margin-bottom:6px}.asset{padding:7px 8px 10px}.asset span{font-size:10px}.selection{margin-top:10px;padding:8px 12px}.sliders{margin-top:3px}.sliders input{margin:6px 0}.capture-row{margin-top:12px}.stage-bottom{font-size:9px;left:12px;right:12px}.stage-top{left:12px;right:12px;top:12px}#status{min-height:0;margin:10px 0}.explanation{max-width:none}footer{gap:15px;line-height:1.5;margin-top:18px}.welcome-title{font-size:31px}.edition{font-size:8px}.selection-row strong{font-size:12px}}@media(max-height:500px) and (orientation:landscape){.workspace{grid-template-columns:1fr 1fr}.stage-wrap{max-height:78dvh;aspect-ratio:4/3}header{margin-bottom:8px}.asset img{height:55px}.selection{margin-top:8px}.welcome-title{font-size:22px}#welcome p{font-size:11px;margin:8px 0}footer{display:none}}

.record-row{display:flex;gap:12px;align-items:center;margin-top:10px}.record-row .secondary{min-width:155px}.record-row span{font-size:11px;color:var(--muted)}#record.recording{background:#92204e;border-color:#ff79b5;color:white}#resultVideo{width:100%;max-height:62dvh;border-radius:10px;background:#18121d}.small-controls{flex-wrap:wrap}.small-controls .toggle{white-space:nowrap}

.collection-picker{margin:0 0 15px}.collection-picker label{display:block;color:var(--muted);font-size:12px;margin-bottom:7px}.collection-picker select{font:inherit;font-size:14px;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px;width:100%;min-height:46px}.collection-picker p{font-size:11px;color:var(--muted);line-height:1.5;margin:7px 0 0}.asset-tray{display:flex;overflow-x:auto;gap:9px;padding:2px 1px 8px;scroll-snap-type:x proximity}.asset{flex:0 0 113px;scroll-snap-align:start}.asset span{align-items:center;min-height:25px}.asset-tray[aria-busy=true]{opacity:.65}.theme-error{font-size:12px;line-height:1.5;color:var(--muted)}@media(max-width:760px){.asset{flex-basis:104px}.collection-picker{margin-bottom:10px}.tool-heading h1{margin-bottom:8px}.stage-wrap{max-height:55dvh}.collection-picker select{font-size:16px}.collection-picker p{font-size:11px}}
/* Warm, playful page chrome. The camera viewport stays dark for contrast. */
:root{color-scheme:light;--bg:#fff8ed;--panel:#fffdf8;--line:#dddccf;--text:#243b3a;--muted:#5b6c68;--pink:#bc287c;--teal:#087f78}body{background:var(--bg)}header{border-bottom:1px solid #dedfce;padding-bottom:17px}.brand span{color:var(--pink)}.primary{color:#fff;background:var(--pink)}.primary:hover{background:#a81d6b}.secondary{background:#e8f5ef;color:#21504c;border-color:#bdcec4}.quiet:hover{color:#153f3b}.asset:hover{background:#fff0f7;border-color:var(--pink)}.selection{box-shadow:0 3px 0 #efeddf}.asset{box-shadow:0 3px 0 #efeddf}.stage-wrap{border-color:#284b49;box-shadow:0 5px 0 #e5e5d9}.stage-top,.stage-bottom,#welcome{color:#fff8ef}.stage-top .glass{color:#fff8ef}.stage-top span{color:#fff8ef}.stage-bottom .privacy-dot{color:#86efdc}#welcome .welcome-title em{color:#89efdf}#welcome p{color:#e0d5e3}.photo-link{color:#fff8ef}#status{color:#14665e}footer{color:#64746e}.edition b{color:#0a746e}dialog{background:#fff8ed;color:#243b3a;border-color:#c4d5cb}dialog::backdrop{background:#12322ed4}#resultImage,#resultVideo{background:#25242c}.result-head button{color:#243b3a}

/* Fall wedding only: warm cream, gold and burnt-orange chrome. */
:root[data-scene-theme="fall-wedding"]{--bg:#fff8e9;--panel:#fffdf5;--line:#e3d2ad;--text:#48351f;--muted:#786044;--pink:#a34716;--teal:#8b6218}
:root[data-scene-theme="fall-wedding"] .primary:hover{background:#85390f}
:root[data-scene-theme="fall-wedding"] .secondary{background:#fff0cf;color:#674717;border-color:#dcbf7d}
:root[data-scene-theme="fall-wedding"] .asset:hover{background:#fff0d3;border-color:#a34716}
:root[data-scene-theme="fall-wedding"] .quiet:hover{color:#683b17}
:root[data-scene-theme="fall-wedding"] #status,:root[data-scene-theme="fall-wedding"] .edition b{color:#805313}
:root[data-scene-theme="fall-wedding"] #welcome .welcome-title em,:root[data-scene-theme="fall-wedding"] .stage-bottom .privacy-dot{color:#ffda86}
:root[data-scene-theme="fall-wedding"] .stage-wrap{border-color:#76572b;box-shadow:0 5px 0 #e9ddc3}
:root[data-scene-theme="fall-wedding"] dialog{background:#fff8e9;color:#48351f;border-color:#dcbf7d}
:root[data-scene-theme="fall-wedding"] .result-head button{color:#48351f}

.mobile-capture:empty{display:none}@media(max-width:700px){.mobile-capture{position:sticky;top:0;z-index:15;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:8px 10px;box-shadow:0 4px 12px #0002}.mobile-capture .capture-row,.mobile-capture .record-row{margin:0;gap:8px}.mobile-capture .record-row{margin-top:6px}.mobile-capture button{min-height:42px;padding:9px 12px;font-size:12px}.mobile-capture #recordInfo{font-size:10px}}

.camera-choice{display:block;font-size:12px;margin:12px auto;color:#fff}.camera-choice select{display:block;width:100%;max-width:280px;margin:6px auto;font-size:16px;padding:9px;border-radius:8px}.explanation{max-width:900px;margin:22px auto;padding:0 16px}

.secondary:not(:disabled){background:#ed9c3b;color:#482912;border-color:#b97429}
