.photo-dialog{width:min(1120px,94vw);max-height:92vh;border:1px solid #c1d8e4;padding:0;border-radius:20px;background:#f5f9fc;color:var(--ink);box-shadow:0 20px 80px #001d4760}.photo-dialog::backdrop{background:#001c3eaf;backdrop-filter:blur(4px)}.photo-dialog-head{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;gap:20px;background:white;padding:20px 25px;border-bottom:1px solid var(--line);z-index:2}.photo-dialog-head h2{margin:5px 0 0}.photo-dialog-head .eyebrow{margin:0}.photo-dialog-body{padding:25px}.photo-upload{background:white;border:1px dashed #a6c7d8;border-radius:14px;padding:20px;margin:20px 0}.photo-upload input{background:#f2f8fa}.photo-upload>label{max-width:550px}.photo-library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.photo-library-card{border:1px solid var(--line);border-radius:12px;background:white;overflow:hidden}.photo-image-button{display:block;width:100%;padding:0;border:0;background:#d9e9ed;cursor:zoom-in}.photo-image-button img{display:block;width:100%;aspect-ratio:1.4;object-fit:cover}.photo-library-card>div{padding:15px}.photo-kind{display:inline-block;font-size:10px;color:#057981;background:#e5f3f2;border-radius:20px;padding:5px 9px}.photo-library-card h3{font-size:16px;margin:10px 0}.photo-library-card p{font-size:12px;color:#617d8f;white-space:pre-wrap;overflow-wrap:anywhere}.photo-library-card small{display:block;margin-bottom:10px}.photo-library-card .tools-inline{margin-top:14px}.staged-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.staged-grid figure{margin:0}.staged-grid img{width:100%;aspect-ratio:1.3;object-fit:cover;border-radius:8px}.staged-grid figcaption{font-size:11px;overflow-wrap:anywhere;margin-top:5px}.photo-viewer{margin:25px 0 0}.photo-viewer>img{display:block;max-height:60vh;max-width:100%;margin:auto;object-fit:contain;border-radius:12px}.photo-viewer figcaption{padding:22px;background:white;border-radius:12px;margin-top:15px}.photo-viewer p{white-space:pre-wrap}.photo-meta{max-width:750px;margin:25px auto}.dive-photo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.dive-photo-grid article{border:1px solid var(--line);border-radius:10px;overflow:hidden}.dive-photo-grid article>div{padding:12px}.dive-photo-grid strong{display:block;font-size:14px;margin:8px 0}.dive-photo-grid p{font-size:12px;color:#617d8f;white-space:pre-wrap}.map-stage .pin.photo-pin{rotate:0;border-radius:50%;width:48px;height:48px;overflow:hidden;transform:translate(-50%,-50%);padding:0}.map-stage .pin .photo-pin-image{width:100%;height:100%;object-fit:cover;rotate:0}.pin-list-photo{width:42px;height:42px;object-fit:cover;border-radius:8px}.thumb .mini-pin img{width:28px;height:28px;object-fit:cover;border-radius:50%;border:2px solid white}.photo-dialog .tools-inline{gap:6px}@media(max-width:800px){.photo-library-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.photo-dialog{width:96vw;max-height:96vh;border-radius:14px}.photo-dialog-head{padding:16px}.photo-dialog-body{padding:16px}.photo-dialog h2{font-size:20px}.photo-library-grid{grid-template-columns:1fr}.staged-grid{grid-template-columns:repeat(3,1fr)}.dive-photo-grid{grid-template-columns:1fr}.map-stage .pin.photo-pin{width:39px;height:39px}}

.photo-dialog{--ink:#092849;--line:#d6e4ec;font:14px 'DM Sans','Noto Sans Thai',sans-serif}.photo-dialog .btn,#dive-album .btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #bad0dc;background:white;color:#092849;padding:9px 13px;border-radius:9px;font:600 12px inherit;cursor:pointer}.photo-dialog .btn.primary,#dive-album .btn.primary{background:#1764d9;color:white}.photo-dialog label{display:flex;flex-direction:column;gap:8px;font-size:13px}.photo-dialog input,.photo-dialog select,.photo-dialog textarea{padding:11px;border:1px solid #cadce5;border-radius:8px;font:inherit;width:100%;box-sizing:border-box}.photo-dialog .fields{display:grid;grid-template-columns:1fr 1fr;gap:17px}.photo-dialog .wide{grid-column:1/-1}.photo-dialog .muted{color:#62788a;font-size:13px;line-height:1.6}.photo-dialog .tools-inline{display:flex;flex-wrap:wrap;gap:6px}.photo-dialog .notice{padding:15px;background:#e5f2f6;border-radius:10px}.photo-dialog .notice.error{background:#ffede9}.photo-dialog .empty{text-align:center;padding:25px}.photo-dialog .back{border:0;background:none;color:#1262d5;cursor:pointer}.photo-dialog .eyebrow{font-size:10px;color:#1764d9;letter-spacing:2px}.photo-dialog .btn:disabled{opacity:.5}#dive-album{margin:25px 0 50px}#dive-album .panel{padding:25px;background:white;border:1px solid #dde7ee;border-radius:16px}#dive-album .section-row{display:flex;justify-content:space-between;align-items:center;gap:16px}#dive-album .muted{font-size:13px;color:#62788a}.pin-photo-panel{padding:20px}.pin-photo-panel>img{width:100%;max-height:180px;object-fit:contain;border-radius:8px;margin:10px 0}.pin-bubble.has-photo{padding:0;overflow:hidden}.pin-bubble .pin-photo{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}.photo-dashboard-actions{display:flex;gap:12px;align-items:center}
