.member-tabs{max-width:500px}.crop-upload-controls{display:flex;gap:15px;align-items:center;margin:18px 0}.crop-upload-controls label{margin:0;white-space:nowrap}.crop-upload-controls select,.crop-dialog select{background:#152022;color:var(--ink);border:1px solid #354340;border-radius:12px;font:inherit;font-size:14px;min-height:46px;padding:10px;width:100%;min-width:0}.crop-progress{font-size:12px;color:var(--mint);line-height:1.6;margin:20px 0;overflow-wrap:anywhere}.crop-queue-list{display:grid;gap:15px;margin:25px 0}.crop-queue-item{display:flex;gap:20px;border:1px solid var(--line);border-radius:20px;background:#172223;padding:18px;min-width:0}.queue-thumb{width:100px;flex-shrink:0;aspect-ratio:1;border-radius:13px;background:#10191b;display:grid;place-items:center;overflow:hidden;color:var(--muted);font-size:10px}.queue-thumb img{width:100%;height:100%;object-fit:contain}.queue-copy{min-width:0;flex:1}.queue-copy h3{margin:10px 0;overflow-wrap:anywhere;font-size:15px}.queue-copy .muted{font-size:11px}.queue-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.queue-status{font-size:9px;font-weight:700;letter-spacing:1px;padding:5px 8px;border-radius:6px;background:#2b3735;color:var(--muted)}.status-READY{color:var(--mint);background:#2b432d}.status-Processed{color:#aed6ec;background:#253b43}.status-Needs-Review{color:var(--gold);background:#423b28}.crop-local-item{border:1px solid #9f834c;border-radius:12px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;font-size:11px;overflow-wrap:anywhere}.crop-dialog{width:min(96vw,900px)}.crop-stage{position:relative;touch-action:pan-x pan-y pinch-zoom;background:#0c1617;border:1px solid var(--line);border-radius:12px;margin:25px 14px;isolation:isolate}.crop-stage canvas{display:block;width:100%;height:auto;border-radius:12px}.crop-overlay{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:#c7f1b422;stroke:#c7f1b4;stroke-width:3;pointer-events:none}.crop-overlay polygon{pointer-events:auto;cursor:pointer;vector-effect:non-scaling-stroke;stroke-width:2}.crop-overlay polygon.selected{fill:#c7f1b433;stroke:#f1e69b;stroke-width:3}.crop-handle{position:absolute;z-index:2;transform:translate(-50%,-50%);border:2px solid #eaf4db;background:#2c4930;color:#fff;border-radius:50%;width:38px;height:38px;font-size:12px;font-weight:700;touch-action:none;padding:0}.crop-handle::after{content:'';position:absolute;inset:-5px}.crop-card-tabs,.crop-tools{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.crop-dialog .primary,.crop-dialog>.secondary{width:100%;margin-top:18px}.crop-dialog .dialog-close{font-size:24px}.crop-dialog .hint{line-height:1.7}.crop-dialog .crop-progress{min-height:38px}.crop-dialog .dialog-heading{position:sticky;top:-26px;background:#182425;z-index:5;padding:12px 0}.crop-dialog select:focus,.crop-upload-controls select:focus{outline:2px solid var(--mint);outline-offset:2px}
@media(max-width:600px){.member-tabs button{font-size:11px;min-width:0}.crop-queue-item{gap:12px;padding:14px}.queue-thumb{width:70px}.queue-actions .library-chip{font-size:10px;padding:9px 11px}.crop-upload-controls{display:block}.crop-upload-controls label{margin-bottom:9px;display:block}.crop-dialog{padding:20px 14px}.crop-dialog .dialog-heading{top:-20px}.crop-handle{width:34px;height:34px}.crop-tools .library-chip{font-size:10px}.crop-stage{margin:20px 13px}.crop-progress{font-size:11px}.crop-card-tabs{gap:5px}.crop-card-tabs .library-chip{padding:9px 12px}}

.crop-viewport{width:100%;max-height:55dvh;overflow:auto;overscroll-behavior:contain}.crop-preview{text-align:center}.crop-preview img{display:block;max-width:220px;max-height:300px;object-fit:contain;margin:14px auto;border-radius:12px;border:1px solid var(--line)}
.crop-auto-item{display:block}.crop-auto-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:14px;margin-top:16px}.crop-auto-card{margin:0;min-width:0;text-align:center;font-size:12px}.crop-auto-card img{display:block;width:100%;height:220px;object-fit:contain;background:#10191b;border-radius:12px}.crop-auto-card figcaption{margin-top:8px;color:var(--muted)}


/* Pokémon-only mobile crop queue: no sideways page expansion. */
#crop-root,#crop-root .library-intro,#crop-root .crop-upload-controls,#crop-root .crop-queue-list,
#crop-root .crop-queue-item,#crop-root .queue-copy{max-width:100%;min-width:0}
#crop-root .library-intro>*{min-width:0}
#crop-root .library-intro>.primary{width:auto;min-width:140px;flex:0 0 auto;margin:0}
#crop-root .crop-upload-controls select{flex:1 1 auto;width:auto;min-width:0}
#crop-root .crop-queue-list{grid-template-columns:minmax(0,1fr)}
#crop-root .crop-auto-gallery{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0}
#crop-root .crop-auto-card{min-width:0}
#crop-root .crop-auto-open{display:block;width:100%;max-width:100%;border:1px solid var(--line);border-radius:13px;
 background:#10191b;color:var(--ink);padding:5px;cursor:zoom-in;overflow:hidden}
#crop-root .crop-auto-open:focus-visible{outline:3px solid var(--mint);outline-offset:2px}
#crop-root .crop-auto-open img{display:block;width:100%;height:auto;max-height:360px;aspect-ratio:5/7;object-fit:contain;margin:auto}
#crop-root .crop-auto-card figcaption{font-size:11px;line-height:1.35;overflow-wrap:anywhere}
#crop-root .crop-queue-item .hint{overflow-wrap:anywhere}
#crop-root .crop-local-item{min-width:0;flex-wrap:wrap}
#crop-root .queue-actions{max-width:100%;min-width:0}
#crop-root .queue-actions>*{max-width:100%;overflow-wrap:anywhere}
#crop-root .library-chip-row{min-width:0;max-width:100%;overflow-x:auto;flex-wrap:nowrap;
 scroll-behavior:smooth;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding-bottom:5px}
#crop-root .library-chip-row>.library-chip{flex:0 0 auto;white-space:nowrap}
@media(max-width:600px){
 #crop-root .library-intro>.primary{width:100%;margin:12px 0 0}
 #crop-root .crop-upload-controls select{width:100%}
 #crop-root .crop-auto-gallery{gap:10px}
 #crop-root .crop-queue-item{padding:12px}
 #crop-root .crop-auto-open img{max-height:320px}
}
@media(max-width:360px){#crop-root .crop-auto-gallery{gap:7px}}

/* Full-screen, finger-friendly photo inspection and original-image editing. */
.crop-inspect-dialog{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:100vw;
 height:100dvh;max-height:100dvh;margin:0;padding:12px 12px calc(12px + env(safe-area-inset-bottom));
 border:0;border-radius:0;background:#10181a;color:#eef2e9;overflow-y:auto;overscroll-behavior:contain}
.crop-inspect-dialog::backdrop{background:#050807f2}
.crop-inspect-dialog .crop-inspect-header{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.crop-inspect-dialog .crop-inspect-header strong{overflow-wrap:anywhere;font-size:15px}
.crop-inspect-dialog .crop-inspect-image{display:block;max-width:100%;width:auto;height:auto;max-height:72dvh;
 object-fit:contain;margin:10px auto 12px;border:1px solid #354340;border-radius:8px}
.crop-inspect-dialog .crop-inspect-note{font-size:12px;line-height:1.5;color:var(--muted)}
.crop-inspect-dialog .crop-inspect-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.crop-inspect-dialog .crop-inspect-actions .button{flex:1 1 130px;min-width:0;max-width:100%;margin:0}
.crop-inspect-dialog .crop-inspect-close{min-width:45px;min-height:45px;padding:5px 10px}
.crop-edit-scroller{max-height:61dvh;overflow:auto;overscroll-behavior:contain;margin:12px auto;
 border:1px solid #43544a;border-radius:12px;background:#0b1314}
.crop-edit-stage{position:relative;width:100%;max-width:740px;margin:auto;line-height:0}
.crop-edit-stage>img{display:block;width:100%;height:auto}
.crop-edit-outline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.crop-edit-outline polygon{fill:#c7f1b422;stroke:#c7f1b4;stroke-width:2;vector-effect:non-scaling-stroke}
.crop-edit-handle{position:absolute;width:32px;height:32px;min-height:32px;min-width:32px;
 border-radius:50%;border:2px solid #fff;background:#376248;color:#fff;
 transform:translate(-50%,-50%);z-index:2;touch-action:none;padding:0;cursor:grab}
.crop-edit-handle:active{cursor:grabbing;background:#a2c682}

/* Recovery remains in the existing private photo queue. */
#crop-root .crop-recovery-title{font-size:14px;letter-spacing:.04em;color:var(--ink);margin:18px 0 8px}
#crop-root .queue-actions .library-chip{min-height:48px;display:inline-flex;align-items:center;justify-content:center;font-size:12px}
#crop-root .crop-full-fallback{min-height:48px;font-size:12px;white-space:normal}
.crop-inspect-dialog .crop-edit-progress{font-size:14px;line-height:1.6;padding:10px 0;min-height:24px;color:#c4ede1;overflow-wrap:anywhere}
.crop-inspect-dialog .crop-edit-scroller{padding:24px 22px;box-sizing:border-box}
.cosmic-universe .crop-inspect-dialog .crop-edit-handle,.crop-inspect-dialog .crop-edit-handle{width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border-radius:50%;font-size:15px;background:#265a4d;color:white;border:2px solid #f4fff7;touch-action:none;box-shadow:0 2px 8px #0006}
.crop-inspect-dialog .crop-inspect-actions .button{min-height:48px;font-size:13px}
.crop-inspect-dialog .crop-inspect-note{color:#d1dfd7;font-size:14px}
@media(max-width:600px){#crop-root .crop-full-fallback{width:100%}.crop-inspect-dialog .crop-edit-scroller{max-height:56dvh}}
