/* Same-page private photo workflow. Scoped to the existing crop root. */
.cosmic-universe #crop-root.unified-upload{padding:clamp(16px,4vw,30px);border:1px solid #ddd5ee;border-radius:24px;background:linear-gradient(145deg,#fffcf5,#f4f0fc);color:#29233c;overflow:hidden}
#crop-root .unified-head{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}#crop-root .unified-head h2{margin:.2em 0;font-size:clamp(26px,5vw,38px);line-height:1.2}#crop-root .unified-head p{margin:.4em 0}#crop-root .unified-primary{min-height:54px;font-size:15px;font-weight:800;letter-spacing:.04em}
.cosmic-universe #crop-root button{min-height:48px;padding:12px 18px;border-radius:14px;cursor:pointer;white-space:normal;line-height:1.35;touch-action:manipulation}.cosmic-universe #crop-root button:disabled{opacity:.5;cursor:default}.cosmic-universe #crop-root button:focus-visible,.cosmic-universe #crop-root input:focus-visible,.cosmic-universe #crop-root select:focus-visible{outline:3px solid #3a86b9;outline-offset:3px}
#crop-root .unified-collection{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:22px 0 12px;font-weight:700}#crop-root .unified-collection select,#crop-root .unified-workspace>input{box-sizing:border-box;min-height:48px;max-width:100%;padding:11px 14px;border:1px solid #c9bfdc;border-radius:12px;background:#fff;color:#29233c;font-size:16px}#crop-root .unified-collection select{flex:1;min-width:180px}#crop-root .unified-status{padding:14px 16px;border-radius:14px;background:#e9e2f7;color:#413358;line-height:1.55;overflow-wrap:anywhere}#crop-root .unified-workspace[hidden]{display:none}
#crop-root .unified-editor-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:22px 0 12px}#crop-root .unified-editor-head h3{font-size:18px;margin:0;overflow-wrap:anywhere}#crop-root .unified-editor-head strong{white-space:nowrap;font-size:14px}
#crop-root .unified-original{position:relative;isolation:isolate;width:min(100%,760px);margin:0 auto;background:#171626;border-radius:16px;box-shadow:0 10px 30px #2f244826;overflow:visible}#crop-root .unified-original>img{display:block;width:100%;height:auto;max-height:none;border-radius:16px;image-orientation:from-image}#crop-root .unified-original[style*="aspect-ratio"]>img{height:100%;position:absolute;inset:0}#crop-root .unified-original>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;overflow:visible}#crop-root .unified-original polygon{fill:#21e8cc15;stroke:#54f7d5;stroke-width:4;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.cosmic-universe #crop-root button.unified-corner{position:absolute;z-index:2;transform:translate(-50%,-50%);width:48px;height:48px;min-height:48px;padding:0;border:3px solid #fff;border-radius:50%;background:#20685f;color:white;font-size:18px;font-weight:800;box-shadow:0 2px 10px #0008;touch-action:none;user-select:none}.cosmic-universe #crop-root button.unified-corner:disabled{opacity:.6}
#crop-root .unified-tools{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}#crop-root .unified-tools>button{flex:1 1 140px}#crop-root .unified-inspection{margin-top:24px;padding-top:18px;border-top:1px solid #d6cde6}#crop-root .unified-inspection>h3{font-size:22px;margin:0 0 14px}#crop-root .unified-preview{position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden;isolation:isolate;background:#161724;border:1px solid #383348;border-radius:18px;width:100%;height:min(70vh,720px);min-height:300px;touch-action:none;user-select:none}#crop-root .unified-preview>img{display:block;max-width:100%;max-height:100%;object-fit:contain;transform-origin:center;will-change:transform;pointer-events:none}#crop-root .unified-preview>img:not([src]){visibility:hidden}#crop-root .unified-inspection>.unified-primary{display:block;width:100%;margin:12px 0}#crop-root .hint{line-height:1.55;color:#62576f;font-size:14px}#crop-root .unified-saved{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:20px}#crop-root .unified-saved-card{display:flex;flex-direction:column;gap:12px;padding:16px;background:#e7f4ee;border:1px solid #b3d7c7;border-radius:18px}#crop-root .unified-saved-card>img{width:100%;height:280px;object-fit:contain;background:#fff;border-radius:10px}#crop-root .unified-saved-card>strong{color:#245c48}
#crop-root .unified-recovery{margin-top:28px;border-top:1px solid #d6cde6;padding-top:20px}#crop-root .unified-recovery>summary{cursor:pointer;min-height:48px;font-weight:700;line-height:1.5;padding:10px 0}#crop-root .unified-recovery-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid #e0d9eb}#crop-root .unified-recovery-row>span{overflow-wrap:anywhere;flex:1;min-width:120px}#crop-root .unified-recovery-list{margin-bottom:12px}
@media(max-width:600px){.cosmic-universe #crop-root.unified-upload{padding:20px 16px}#crop-root .unified-head>.unified-primary{width:100%}#crop-root .unified-original{width:calc(100% - 24px);margin:22px 12px}#crop-root .unified-tools{gap:8px}#crop-root .unified-tools>button{font-size:12px;padding:11px 9px;flex-basis:120px}#crop-root .unified-preview{height:62vh;min-height:320px}#crop-root .unified-editor-head{align-items:flex-start}#crop-root .unified-editor-head h3{max-width:65%}}
@media(prefers-reduced-motion:reduce){#crop-root *{scroll-behavior:auto!important;transition:none!important}}

.upload-founder-admin{margin:32px 0 12px;padding-top:20px;border-top:1px solid #d6c4e0}
.upload-founder-admin>summary{min-height:48px;display:list-item;cursor:pointer;font-size:13px;font-weight:750;color:#694486;padding:12px 0}
.upload-founder-admin #crop-admin-root{margin-top:24px}
#crop-root.unified-upload{scroll-margin-top:16px}
#crop-root .unified-workspace{scroll-margin-top:18px}
