    .tool-options {
      margin-top: 14px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      align-items: start;
    }

    .tool-option-item {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
    }

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

    .tool-select,
    .tool-input {
      width: 100%;
      border: none;
      background: transparent;
      font-size: 0.85rem;
      color: var(--text-muted);
      outline: none;
      padding: 0;
      font-family: inherit;
    }

    .tool-tabs {
      margin-top: 14px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .tool-tab-btn {
      border: 1px solid var(--border);
      background: #fff;
      color: var(--text-muted);
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 0.82rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

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

    .tool-tab-btn.is-active {
      color: #fff;
      background: #4f46e5;
      border-color: #4f46e5;
    }

    .signature-pane {
      margin-top: 12px;
      border: 1px solid #e5e7eb;
      background: #f9fafb;
      border-radius: var(--radius-md);
      padding: 12px;
    }

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

    .signature-draw-wrap {
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #fff;
      overflow: hidden;
    }

    html[data-theme="dark"] .signature-draw-wrap {
      background: #fff;
      border-color: #1f2937;
    }

    .signature-draw-canvas {
      display: block;
      width: 100%;
      height: 180px;
      cursor: crosshair;
      touch-action: none;
    }

    .signature-type-preview {
      min-height: 120px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      text-align: center;
      overflow: hidden;
    }

    .signature-type-preview-text {
      color: #111;
      line-height: 1.1;
      word-break: break-word;
    }

    .tool-preview-card {
      margin-top: 12px;
      border-radius: var(--radius-md);
      border: 1px solid #e5e7eb;
      background: #f9fafb;
      padding: 12px;
    }

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

    .tool-preview-head {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 10px;
      align-items: center;
      margin-bottom: 10px;
    }

    .tool-preview-title {
      font-size: 0.82rem;
      color: var(--text-muted);
    }

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

    .tool-preview-page-indicator {
      font-size: 0.8rem;
      color: var(--text-muted);
      min-width: 120px;
      text-align: center;
    }

    .tool-preview-stage {
      position: relative;
      display: block;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #ffffff;
      padding: 10px;
      height: 560px;
      overflow: auto;
    }

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

    .tool-preview-sheet {
      position: relative;
      display: block;
      width: fit-content;
      margin: 0 auto;
      line-height: 0;
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    }

    .tool-preview-canvas {
      display: block;
      height: auto;
      border: 1px solid #e5e7eb;
      background: #fff;
    }

    .signature-overlay-item {
      position: absolute;
      cursor: move;
      user-select: none;
      transform-origin: center center;
      z-index: 4;
      border: 1px dashed transparent;
    }

    .signature-overlay-item.is-selected {
      border-color: #4f46e5;
      box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.16);
    }

    .signature-overlay-item canvas {
      display: block;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    .signature-resize-handle {
      position: absolute;
      right: -8px;
      bottom: -8px;
      width: 16px;
      height: 16px;
      border-radius: 999px;
      background: #4f46e5;
      border: 2px solid #fff;
      cursor: nwse-resize;
      z-index: 6;
    }

    .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-options {
        grid-template-columns: 1fr;
      }

      .tool-preview-head {
        flex-direction: column;
        align-items: flex-start;
      }

      .tool-preview-stage {
        height: 460px;
      }

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