body{user-select:none;-webkit-user-select:none}
input,textarea,[contenteditable="true"]{user-select:text;-webkit-user-select:text}
img,.photo-view,.photo-enlarge{-webkit-touch-callout:none}
img{-webkit-user-drag:none}
button.photo-view{width:100%;border:0;padding:0;cursor:zoom-in}
button.photo-enlarge{padding:0;border:0;background:transparent;font:inherit;font-size:12px;font-weight:700;text-decoration:underline;cursor:zoom-in}
.photo-viewer{width:min(1100px,96vw);height:94vh;height:94dvh;max-width:100vw;max-height:100dvh;padding:0;border:0;border-radius:18px;background:#f8fbfd;color:#162433;box-shadow:0 20px 80px #102b4740}
.photo-viewer::backdrop{background:#102b47d9}
.photo-viewer[open]{display:flex;flex-direction:column}
.photo-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #cfe1ec;flex-shrink:0;background:#fff}
.photo-viewer-toolbar h2{margin:0;font-size:16px;color:#173f67}
.photo-viewer-actions{display:flex;align-items:center;gap:6px}
.photo-viewer-actions button{min-width:40px;min-height:40px;padding:6px 10px;border:1px solid #cfe1ec;border-radius:10px;background:#fff;color:#173f67;font:inherit;font-weight:700;cursor:pointer}
.photo-viewer-actions button:disabled{opacity:.4;cursor:default}
.photo-viewer button:focus-visible{outline:3px solid #347db8;outline-offset:2px}
.photo-viewer-stage{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:#fff}
.photo-viewer-canvas{width:max-content;min-width:100%;min-height:100%;display:grid;place-items:center;padding:16px}
.photo-viewer-image{display:block;max-width:none;height:auto;flex:none}
.photo-viewer-caption{margin:0;padding:10px 16px;border-top:1px solid #cfe1ec;font-size:13px;line-height:1.5;flex-shrink:0}
@media(max-width:540px){.photo-viewer{width:100vw;height:100vh;height:100dvh;margin:0;border-radius:0}.photo-viewer-toolbar{padding:8px 10px;gap:6px}.photo-viewer-toolbar h2{font-size:14px}.photo-viewer-actions{gap:4px}.photo-viewer-actions button{padding:6px 8px}.photo-viewer-caption{padding:8px 10px;font-size:12px}}
