.gpt-tool-card {
  margin-top: 1.5rem;
  overflow: hidden;
}
.gpt-tool-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 1.5rem;
  background: radial-gradient(circle at 15% 0%, hsl(215 100% 60% / 0.24), transparent 34%), radial-gradient(circle at 90% 10%, hsl(260 100% 70% / 0.18), transparent 32%);
  pointer-events: none;
}
.gpt-tool-inner {
  position: relative;
  z-index: 1;
}
.gpt-tool-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border) / 0.65);
  background: hsl(var(--background) / 0.35);
  color: hsl(var(--primary));
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.gpt-tool-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .gpt-tool-grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}
.gpt-upload-box,
.gpt-details-panel {
  border: 1px dashed hsl(var(--border) / 0.85);
  border-radius: 1.25rem;
  padding: 1rem;
  background: hsl(var(--muted) / 0.25);
}
.gpt-details-panel {
  display: none;
  border-style: solid;
}
.gpt-upload-btn,
.gpt-start-btn,
.gpt-action-btn,
.gpt-send-wide {
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.gpt-upload-btn:hover,
.gpt-start-btn:hover,
.gpt-action-btn:hover,
.gpt-send-wide:hover {
  transform: translateY(-1px);
}
.gpt-upload-btn,
.gpt-start-btn,
.gpt-send-wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 999px;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 0 28px hsl(215 100% 60% / 0.28);
}
.gpt-start-btn {
  margin-top: 1rem;
}
.gpt-start-btn:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
  box-shadow: none;
}
.gpt-selected-file {
  margin-top: .85rem;
  min-height: 1.25rem;
  font-size: .8rem;
  color: hsl(var(--muted-foreground));
  word-break: break-word;
}
.gpt-preview {
  margin-top: 1rem;
  display: none;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.55);
  background: hsl(var(--background) / .45);
}
.gpt-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}
.gpt-details-heading h4 {
  margin-top: .35rem;
  margin-bottom: .95rem;
  font-size: 1.05rem;
  color: hsl(var(--silver));
  font-weight: 750;
}
.gpt-form-stack {
  display: grid;
  gap: .8rem;
}
.gpt-field {
  display: grid;
  gap: .4rem;
}
.gpt-field span {
  font-size: .78rem;
  font-weight: 700;
  color: hsl(var(--silver));
}
.gpt-field input,
.gpt-field textarea,
.gpt-field select,
.gpt-prompt-box {
  width: 100%;
  border-radius: .95rem;
  border: 1px solid hsl(var(--border) / .75);
  background: hsl(var(--muted) / .35);
  color: hsl(var(--foreground));
  padding: .78rem .9rem;
  font-size: .86rem;
  line-height: 1.5;
  outline: none;
}
.gpt-field textarea,
.gpt-prompt-box {
  resize: vertical;
}
.gpt-field input:focus,
.gpt-field textarea:focus,
.gpt-field select:focus,
.gpt-prompt-box:focus {
  box-shadow: 0 0 0 2px hsl(var(--primary) / .55);
}
.gpt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
}
.gpt-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.65rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.gpt-action-primary {
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 28px hsl(215 100% 60% / 0.28);
}
.gpt-action-secondary {
  border: 1px solid hsl(var(--border) / 0.65);
  background: hsl(var(--muted) / 0.35);
  color: hsl(var(--silver));
}
.gpt-prompt-box {
  margin-top: .95rem;
  min-height: 210px;
}
.gpt-send-wide {
  margin-top: .75rem;
}
.gpt-note,
.gpt-status {
  margin-top: .8rem;
  font-size: .78rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}
.gpt-status {
  color: hsl(var(--primary));
}
@media (max-width: 640px) {
  .gpt-tool-card {
    padding: 1.25rem !important;
  }
  .gpt-actions {
    display: grid;
  }
  .gpt-action-btn {
    width: 100%;
  }
}
