.photo-poster{position:relative!important;height:auto!important;aspect-ratio:4/5;overflow:hidden;padding:0!important;isolation:isolate}.photo-poster>canvas{display:block;width:100%;height:100%}.portrait-sticker{position:absolute;width:42%;aspect-ratio:4/5;touch-action:none;cursor:grab;user-select:none;transform-origin:center;z-index:2;outline:none}.portrait-sticker[hidden]{display:none}.portrait-sticker:active{cursor:grabbing}.portrait-sticker:focus-visible{outline:3px dashed #4b376f;border-radius:50%}.portrait-sticker canvas{width:100%;height:100%;display:block;pointer-events:none;filter:drop-shadow(0 5px 4px #0003)}.portrait-tools{margin:18px 0}.portrait-tools p{font-size:11px;line-height:1.7;margin:12px 0;color:#5f6557}.portrait-tools .portrait-privacy{font-size:10px;color:#797c71}.camera-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.camera-top h2{font-size:29px!important}.camera-top button{background:#ece9df;border:0;border-radius:50%;width:40px;height:40px;cursor:pointer;font-size:26px}#portrait-camera{max-width:480px;width:calc(100% - 28px);max-height:92dvh;overflow:auto;padding:24px;border:0;border-radius:22px;background:#f8f6ee;color:#24331d;box-sizing:border-box}#portrait-camera::backdrop{background:#19172caa;backdrop-filter:blur(4px)}#portrait-camera p{font-size:13px;line-height:1.6}.camera-view{position:relative;margin:16px 0;aspect-ratio:4/5;max-height:45dvh;overflow:hidden;border-radius:16px;background:#24272a}.camera-view video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}.camera-oval{position:absolute;width:68%;height:78%;left:16%;top:11%;border-radius:50%;border:3px dashed #fff;box-shadow:0 0 0 150px #0005;pointer-events:none}.camera-file{display:block;font-size:12px;margin-top:18px}.camera-file input{display:block;margin-top:9px;max-width:100%}#capture-portrait:disabled{opacity:.45;cursor:not-allowed}@media(max-width:760px){.photo-poster{max-width:380px;margin:auto}.portrait-tools p{font-size:12px}}
.camera-view{width:min(100%,36dvh);margin-left:auto;margin-right:auto}.camera-oval{box-sizing:border-box;height:auto;aspect-ratio:4/5;left:50%;top:50%;transform:translate(-50%,-50%)}

/* A guide only: the actual outline follows the detected head and hair. */
.camera-oval{width:80%;aspect-ratio:4/5;border-radius:24px;box-shadow:none;border:2px dashed #ffffffaa}.portrait-sticker:focus-visible{border-radius:18px}.portrait-sticker canvas{filter:drop-shadow(0 3px 0 #fff7) drop-shadow(0 8px 9px #17221530)}#camera-status{min-height:3em}.camera-file input:disabled{opacity:.5}

/* Transparent text layer stays in front without blocking portrait gestures. */
.photo-poster>#poster-text{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none}

/* Palette directly below the poster, with comfortable touch targets. */
.poster-widget>.swatches{justify-content:center;align-self:auto;gap:12px;margin:16px 0 20px;padding:0}.poster-widget>.swatches button{width:38px;height:38px;flex:0 0 38px;border:3px solid #fff9;box-shadow:0 2px 5px #25213412}.poster-widget>.swatches button[aria-pressed=true]{outline:2px solid #353649;outline-offset:3px}
/* Keep the captured photo visible while a cancellable worker cuts out the head. */
.camera-view canvas{display:block;width:100%;height:100%;object-fit:contain;background:#eae5f0}.camera-view [hidden],#portrait-camera [hidden]{display:none!important}.has-snapshot .camera-oval{display:none}#camera-progress{width:100%;height:8px;accent-color:#7962ac;display:block;margin:16px 0 12px}#cancel-portrait{margin:8px 0 0 8px}#portrait-camera[aria-busy=true] .camera-view{outline:2px solid #b2a1ce;outline-offset:3px}#camera-status{overflow-wrap:anywhere}#portrait-camera .camera-file{padding-bottom:8px}
