.rp-open{margin:1.2rem 0 0;width:100%;display:flex;align-items:center;justify-content:center;gap:.8rem}
.rp-open svg{width:2rem;height:2rem;flex:none}
.rp-dialog{width:min(96vw,110rem);max-height:94vh;padding:0;border:0;border-radius:1.2rem;background:rgb(var(--color-background));color:rgb(var(--color-foreground));box-shadow:0 1rem 4rem rgba(0,0,0,.25)}
.rp-dialog::backdrop{background:rgba(0,0,0,.55)}
.rp-inner{display:grid;grid-template-columns:1fr 30rem;min-height:60vh;max-height:94vh}
.rp-head{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:1.4rem 2rem;border-bottom:1px solid rgba(var(--color-foreground),.1)}
.rp-head h2{margin:0;font-size:1.9rem}
.rp-x{background:none;border:0;cursor:pointer;padding:.6rem;color:inherit;font-size:2.4rem;line-height:1}
.rp-stage-wrap{position:relative;background:#f4f1ec;display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:40vh}
.rp-stage{position:relative;max-width:100%;max-height:72vh;touch-action:none;perspective:900px;user-select:none;-webkit-user-select:none}
.rp-room{display:block;max-width:100%;max-height:72vh;width:auto;height:auto}
.rp-item{position:absolute;left:0;top:0;width:40%;cursor:grab;transform-origin:50% 50%;will-change:transform;outline-offset:4px}
.rp-item:focus-visible{outline:2px dashed rgb(var(--color-foreground))}
.rp-item.is-dragging{cursor:grabbing}
.rp-item img{display:block;width:100%;height:auto;pointer-events:none}
.rp-item{filter:drop-shadow(0 6px 10px rgba(0,0,0,.18))}
.rp-empty{text-align:center;padding:3rem 2rem;max-width:42rem}
.rp-empty p{margin:.8rem 0 1.6rem;font-size:1.5rem}
.rp-side{padding:1.6rem 2rem 2rem;overflow-y:auto;border-left:1px solid rgba(var(--color-foreground),.1);font-size:1.4rem}
.rp-side h3{font-size:1.4rem;margin:1.6rem 0 .8rem;letter-spacing:.02em}
.rp-side h3:first-child{margin-top:0}
.rp-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem}
.rp-thumb{padding:0;border:2px solid rgba(var(--color-foreground),.12);border-radius:.6rem;overflow:hidden;background:#fff;cursor:pointer;aspect-ratio:1}
.rp-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.rp-thumb[aria-pressed="true"]{border-color:rgb(var(--color-foreground))}
.rp-ctl{display:grid;gap:.4rem;margin:0 0 1.2rem}
.rp-ctl input[type=range]{width:100%;accent-color:rgb(var(--color-button))}
.rp-check{display:flex;gap:.8rem;align-items:flex-start;margin:0 0 1.2rem}
.rp-check input{margin-top:.3rem}
.rp-actions{display:grid;gap:.8rem;margin-top:1.6rem}
.rp-actions .button{width:100%}
.rp-note{margin-top:1.4rem;font-size:1.25rem;opacity:.75;line-height:1.5}
.rp-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
@media (max-width:749px){
  .rp-dialog{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0}
  .rp-inner{grid-template-columns:1fr;grid-template-rows:auto minmax(38vh,1fr) auto;max-height:100dvh;height:100dvh}
  .rp-stage,.rp-room{max-height:52vh}
  .rp-side{border-left:0;border-top:1px solid rgba(var(--color-foreground),.1);max-height:42vh}
}
.rp-flip{width:100%;margin:0 0 1.2rem}
.rp-ctl[hidden]{display:none}
