    #imageViewerDialog {
      width: min(96vw, 1280px);
      max-width: none;
      height: min(92vh, 1000px);
      max-height: 92vh;
      overflow: hidden;
    }

    .image-viewer {
      height: 100%;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
    }

    .image-viewer-toolbar {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 7px;
      padding: 10px;
      border-bottom: 1px solid var(--line);
      background: var(--panel);
    }

    .image-viewer-toolbar button {
      width: auto;
      min-width: 42px;
      min-height: 36px;
      padding: 6px 10px;
    }

    .image-viewer-scale {
      min-width: 58px;
      text-align: center;
      font-size: 12px;
      color: var(--muted);
    }

    .image-viewer-spacer {
      flex: 1;
    }

    .image-viewer-stage {
      min-width: 0;
      min-height: 0;
      overflow: auto;
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      padding: 16px;
      background: var(--bg);
      overscroll-behavior: contain;

      /* 모바일 스크롤/핀치 대신 아래 Pointer Event 로직이 직접 처리 */
      touch-action: none;

      cursor: grab;
    }

    .image-viewer-stage.dragging {
      cursor: grabbing;
    }

    .image-viewer-stage img {
      display: block;
      max-width: none;
      max-height: none;
      flex: 0 0 auto;
      border-radius: 6px;
      user-select: none;
      -webkit-user-drag: none;
      pointer-events: none;
    }
