    .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-select {
      width: 100%;
      border: none;
      background: transparent;
      font-size: 0.86rem;
      color: var(--text);
      outline: none;
      padding: 0;
      font-family: inherit;
      min-width: 0;
    }

    .tool-choice-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .tool-choice-chip {
      border: 1px solid var(--border);
      background: #ffffff;
      color: var(--text-muted);
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 0.8rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      line-height: 1;
    }

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

    .tool-choice-chip.is-active {
      background: #4f46e5;
      border-color: #4f46e5;
      color: #ffffff;
    }

    .tool-outline-list {
      margin-top: 12px;
      border-radius: var(--radius-md);
      border: 1px solid #e5e7eb;
      background: #f9fafb;
      max-height: 420px;
      overflow-y: auto;
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

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

    .tool-outline-item {
      border: 1px solid var(--border);
      background: #ffffff;
      border-radius: 12px;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

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

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

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

    .tool-outline-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }

    .tool-outline-title-wrap {
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
    }

    .tool-outline-title {
      font-size: 0.92rem;
      font-weight: 600;
      color: var(--text);
      word-break: break-word;
    }

    .tool-outline-meta {
      font-size: 0.76rem;
      color: var(--text-muted);
    }

    .tool-outline-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 22px;
      height: 22px;
      border-radius: 999px;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 0 7px;
      color: #ffffff;
      background: #4f46e5;
      line-height: 1;
      flex-shrink: 0;
    }

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

    .tool-outline-note {
      font-size: 0.74rem;
      color: var(--text-muted);
    }

    .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;
      flex-wrap: wrap;
    }

    .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;
      }
    }