/* 任务描述图片：保留缩略展示，原图在独立预览区滚动。 */
.task-description img, .agent-description img { max-width: min(600px, 100%); cursor: zoom-in; }
body.task-image-preview-open { overflow: hidden; }
.task-image-preview {
  position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh;
  max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(18, 19, 23, .96); color: #fff;
}
.task-image-preview[open] { display: flex; flex-direction: column; }
.task-image-preview::backdrop { background: rgba(18, 19, 23, .7); }
.task-image-preview-head {
  flex: none; display: flex; align-items: center; gap: 14px; padding: 14px 24px;
  background: rgba(0, 0, 0, .22); border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.task-image-preview-head h2 { margin: 0; font: 600 16px/1.5 var(--font); }
.task-image-preview-size { font-size: 12px; color: #c3c6cd; }
.task-image-preview-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.task-image-preview-mode, .task-image-preview-close { color: #fff; background: rgba(255, 255, 255, .1); border-radius: 8px; }
.task-image-preview-mode { min-height: 36px; padding: 0 14px; font-size: 13px; }
.task-image-preview-close { width: 38px; height: 38px; font: 26px/1 Arial, sans-serif; }
.task-image-preview-mode:hover, .task-image-preview-close:hover { background: rgba(255, 255, 255, .2); }
.task-image-preview-mode:disabled { opacity: .45; cursor: default; }
.task-image-preview :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.task-image-preview-stage { flex: 1; min-height: 0; min-width: 0; display: flex; overflow: auto; padding: 24px; overscroll-behavior: contain; }
.task-image-preview-picture { display: block; flex: none; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; }
.task-image-preview.is-original .task-image-preview-picture { max-width: none; max-height: none; cursor: zoom-out; }
.task-image-preview-error { margin: auto; padding: 24px; text-align: center; color: #e1e2e6; }
@media (max-width: 600px) {
  .task-image-preview-head { gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
  .task-image-preview-head h2 { font-size: 14px; }
  .task-image-preview-size { font-size: 11px; }
  .task-image-preview-tools { gap: 8px; }
  .task-image-preview-mode { min-height: 34px; padding: 0 10px; }
  .task-image-preview-close { width: 34px; height: 34px; }
  .task-image-preview-stage { padding: 12px; }
}
