    .tool-options {
      align-items: start;
    }

    .tool-option-item {
      display: flex;
      flex-direction: column;
      align-self: start;
      gap: 4px;
    }

    .tool-option-note {
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-top: 2px;
    }

    .tool-image-grid {
      margin-top: 12px;
      border-radius: var(--radius-md);
      border: 1px solid #e5e7eb;
      background: #f9fafb;
      padding: 10px;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
      gap: 10px;
      max-height: 600px;
      overflow-y: auto;
    }

    html[data-theme="dark"] .tool-image-grid {
      border-color: #1f2937;
      background: #020617;
    }

    .tool-image-card {
      border: 1px solid var(--border);
      background: #ffffff;
      border-radius: 12px;
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-width: 0;
      transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
    }

    html[data-theme="dark"] .tool-image-card {
      background: #0b1220;
      border-color: #1f2937;
    }

    .tool-image-card.is-selected {
      border-color: #4f46e5;
      box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.18);
      background: #eef2ff;
    }

    html[data-theme="dark"] .tool-image-card.is-selected {
      background: rgba(79, 70, 229, 0.12);
      border-color: #6366f1;
    }

    .tool-image-thumb {
      aspect-ratio: 1 / 1;
      border-radius: 8px;
      overflow: hidden;
      background: #ffffff;
      border: 1px solid #e5e7eb;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 6px;
    }

    html[data-theme="dark"] .tool-image-thumb {
      background: #ffffff;
      border-color: #1f2937;
    }

    .tool-image-thumb img {
      max-width: 100%;
      max-height: 100%;
      display: block;
      object-fit: contain;
    }

    .tool-image-meta {
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
    }

    .tool-image-title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .tool-image-title {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .tool-image-state {
      font-size: 0.72rem;
      color: var(--text-muted);
      white-space: nowrap;
    }

    .tool-image-card.is-selected .tool-image-state {
      color: #4f46e5;
      font-weight: 600;
    }

    .tool-image-sub {
      font-size: 0.74rem;
      color: var(--text-muted);
      line-height: 1.35;
    }

    .tool-image-actions {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      align-items: center;
    }

    .tool-file-order {
      width: 22px;
      flex: 0 0 22px;
      font-size: 0.78rem;
      color: var(--text-muted);
      text-align: center;
    }

    .tool-file-name-wrap {
      min-width: 0;
      display: flex;
      align-items: baseline;
      gap: 8px;
      flex-wrap: nowrap;
    }

    .tool-file-pages {
      font-size: 0.78rem;
      color: var(--text-muted);
      white-space: nowrap;
    }

    .tool-file-actions {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .tool-icon-btn {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: #ffffff;
      color: var(--text-muted);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      padding: 0;
    }

    html[data-theme="dark"] .tool-icon-btn {
      background: #020617;
      border-color: #1f2937;
    }

    .tool-icon-btn:hover {
      color: var(--text);
      border-color: #cbd5e1;
    }

    html[data-theme="dark"] .tool-icon-btn:hover {
      border-color: #334155;
    }

    .tool-file-status.is-ready {
      color: var(--text-muted);
    }

    .tool-file-status.is-done {
      color: #16a34a;
    }

    .tool-file-status.is-error {
      color: #dc2626;
    }

    @media (max-width: 640px) {
      .tool-file-row {
        align-items: flex-start;
      }

      .tool-file-right {
        align-items: flex-start;
      }

      .tool-file-name-wrap {
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
      }

      .tool-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
      }
    }