/* Tools-specific components. */

.tool-workspace {
  display: grid;
  gap: 1rem;
}

.tool-workspace--stack {
  grid-template-columns: 1fr;
}

.tool-panel {
  padding: 1rem;
}

.tool-panel__input {
  width: 100%;
}

.tool-panel__actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}

.tool-analysis-section {
  padding: 1rem;
}

.tool-analysis-title {
  margin-bottom: .75rem;
}

.tool-analysis-submit {
  min-width: 220px;
}

.tool-upload-wrapper {
  position: relative;
}

.tool-upload-label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.tool-upload-file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.tool-upload-text {
  font-weight: 600;
}

.tool-upload-formats {
  color: var(--text-secondary);
  font-size: .875rem;
}

.tool-upload-remove {
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  line-height: 1;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
}

.tool-upload-label.drag-over {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--brand-1) 22%, transparent);
}

.tool-result-section {
  margin-top: 1rem;
}

.tool-result-title {
  margin-bottom: .5rem;
}

.tool-result-content {
  margin-bottom: .75rem;
}

.tool-result-meta {
  color: var(--text-secondary);
  font-size: .875rem;
}

.tools-chooser-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tools-chooser-modal__intro {
  color: var(--muted-fg);
}

.tools-chooser-modal__actions {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.tools-chooser-modal__actions .btn {
  justify-content: center;
  text-align: center;
}

