.photo-attach{position:relative;display:grid;place-items:center;width:32px;flex:none;color:var(--muted);cursor:pointer;border-radius:9px}.photo-attach:hover{color:var(--text);background:var(--surface-hover)}.photo-attach input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.photo-attach:focus-within{outline:2px solid var(--accent);outline-offset:2px}.chat-photo-open{display:flex;align-items:center;gap:10px;min-width:190px;max-width:100%;border:1px solid var(--line);background:var(--surface-raised);border-radius:10px;padding:15px;color:var(--text);cursor:pointer}.chat-photo-open span{display:grid;text-align:left;gap:4px}.chat-photo-open small{margin:0;color:var(--muted)}.chat-photo-unavailable{display:inline-flex;align-items:center;min-height:42px;padding:10px 13px;border:1px solid var(--line-soft);border-radius:10px;background:var(--surface-raised);color:var(--muted);font-size:calc(12px * var(--text-scale,1))}.chat-photo-unavailable:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.photo-backdrop{z-index:95}.photo-dialog{width:min(720px,100%);padding:14px}.photo-dialog>img{display:block;max-width:100%;max-height:65dvh;object-fit:contain;margin:auto;border-radius:10px}.photo-dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:14px}.photo-dialog>p{color:var(--muted);font-size:13px}.photo-dialog>p:empty{display:none}.chat-photo-review{max-width:100%;max-height:480px;object-fit:contain;border-radius:10px}dialog.private-photo-viewer{position:fixed;inset:8px;width:calc(100vw - 16px);height:calc(100dvh - 16px);max-width:none;max-height:none;margin:auto;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--text)}dialog.private-photo-viewer::backdrop{background:#000000d1}.private-photo-viewer-shell{display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px;width:100%;height:100%;min-width:0;min-height:0}.private-photo-viewer-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:8px}.private-photo-viewer-toolbar>button,.private-photo-viewer-actions>button{min-width:40px;min-height:40px}.private-photo-viewer-actions{display:flex;gap:8px}.private-photo-viewer-stage{display:grid;place-items:center;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain}.private-photo-viewer-stage>img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;cursor:zoom-in}.private-photo-viewer-stage.is-zoomed{display:block}.private-photo-viewer-stage.is-zoomed>img{max-width:none;max-height:none;margin:auto;cursor:zoom-out}.private-photo-viewer-unavailable{margin:auto;padding:20px;color:var(--muted);text-align:center}.private-photo-viewer-unavailable[hidden]{display:none}
