.chat-uploads{border-top:1px solid var(--line);margin-top:8px;padding-top:4px}
.chat-uploads .actions{justify-content:flex-start;flex-wrap:wrap}
#chat-photo-queue{max-height:130px;overflow:auto;font-size:12px}
#chat-photo-queue p{color:var(--muted);margin:8px 0}
.chat-upload-item{display:flex;align-items:center;justify-content:space-between;gap:8px}
.chat-upload-item span{overflow-wrap:anywhere;min-width:0}
.chat-upload-item button{min-height:44px;flex-shrink:0}
.image-editor{width:min(920px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);overflow:auto}
.image-editor::backdrop{background:#102a26b3}
.image-editor-form{padding:20px;display:flex;flex-direction:column;gap:16px}
.image-editor header,.image-editor footer{display:flex;gap:16px;justify-content:space-between;align-items:center}
.image-editor h2{font-size:22px}
.image-editor p,.image-editor small{font-size:13px;color:var(--muted)}
.image-edit-stage{position:relative;align-self:center;max-width:100%;line-height:0;touch-action:none;cursor:crosshair;overflow:hidden;border-radius:8px;background:#182421}
.image-edit-stage img{display:block;max-width:100%;max-height:44dvh;width:auto;height:auto;user-select:none;pointer-events:none}
.image-edit-marker{position:absolute;display:grid;place-items:center;transform:translate(-50%,-50%);height:28px;width:28px;border:1px solid #fff;border-radius:50%;background:#172c28aa;color:#fff;pointer-events:none;font-size:24px;line-height:1}
.image-edit-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.image-edit-controls label{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0}
.image-text-label{grid-column:1 / -1}
.image-edit-controls textarea{width:100%;resize:vertical}
.image-edit-controls input{width:100%;min-height:44px;accent-color:var(--accent)}
.image-edit-controls input[type=color]{padding:4px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.image-editor button:focus-visible,.image-editor input:focus-visible,.image-editor textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.image-editor footer small{max-width:480px}
#image-edit-restore{align-self:flex-start;max-width:100%;white-space:normal;min-height:44px}
@media(max-width:720px){.image-editor-form{padding:14px;gap:12px}.image-edit-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.image-editor footer{align-items:stretch;flex-direction:column}.image-edit-controls textarea{font-size:16px}.image-edit-stage img{max-height:34dvh}.message-form{flex-shrink:0}.chat-uploads .btn{min-height:44px}.image-editor h2{font-size:19px}}
.viewer-stage .viewer-back{min-height:44px;padding:8px 12px;background:#172522;color:#fff;border-color:#637a72}
.viewer-stage .viewer-back:hover{background:#354c44}
.viewer-top{gap:12px}
.viewer-top small{margin-left:auto;white-space:nowrap}
.viewer-stage>img{touch-action:manipulation;user-select:none;-webkit-user-select:none}
.comments-panel{min-width:0}
.photo-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.photo-info .photo-meta .eyebrow{min-width:0;margin:0;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.photo-meta>time{flex-shrink:0;font-size:11px;color:var(--muted);white-space:nowrap}
.photo-tools{flex-wrap:wrap}
.photo-tools .icon-btn,.photo-description>.icon-btn,.comment>.icon-btn{width:44px;height:44px}
.photo-description{position:relative;min-height:44px;padding-right:52px}
.photo-description>p{margin:0}
.photo-description>.icon-btn,.comment>[data-action="edit-comment"]{position:absolute;top:0;right:0}
.comment{position:relative;min-height:44px}
.comment-header{min-height:44px;padding-right:52px}
.photo-tools .icon-btn:focus-visible,.photo-description>.icon-btn:focus-visible,.comment>.icon-btn:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media(min-width:721px){.viewer-layout{grid-template-columns:minmax(0,calc(80% - 272px)) minmax(0,1fr)}}
@media(min-width:721px) and (max-width:1100px){.viewer-layout{grid-template-columns:minmax(0,calc(80% - 240px)) minmax(0,1fr)}}
