#toolDetailView.gbc-mode {
  gap: 10px;
}

.gbc-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  transition: all 0.2s ease;
}

.gbc-back-link:hover {
  background: #f1f5f9;
  color: #334155;
}

.gbc-back-link:active {
  background: #e2e8f0;
}

.gbc-back-link svg {
  width: 18px;
  height: 18px;
  color: #22c55e;
}

#toolDetailView.gbc-mode #greenBubbleCloneIntro.tool-form,
#toolDetailView.gbc-mode #greenBubbleCloneIntro.panel-card,
#toolDetailView.gbc-mode #greenBubbleCloneIntro.tool-form-card {
  padding: 0 12px 24px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}

.green-bubble-root {
  display: block;
}

.gbc-page,
.gbc-form-card,
.gbc-meta-grid,
.gbc-choice-grid,
.gbc-mini-grid,
.gbc-summary-grid,
.gbc-result,
.gbc-result-card,
.gbc-result-grid,
.gbc-result-meta,
.gbc-result-actions {
  display: grid;
  gap: 14px;
}

.gbc-form-card,
.gbc-option-card,
.gbc-summary-card,
.gbc-result-card,
.gbc-note-card,
.gbc-meta-item,
.gbc-empty-box,
.gbc-summary-link {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.gbc-form-card,
.gbc-option-card,
.gbc-summary-card,
.gbc-result-card,
.gbc-note-card,
.gbc-empty-box,
.gbc-summary-link {
  padding: 16px;
}

.gbc-form-header,
.gbc-option-head,
.gbc-summary-head,
.gbc-result-header,
.gbc-result-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gbc-form-header,
.gbc-result-header,
.gbc-summary-head,
.gbc-option-head {
  justify-content: space-between;
}

.gbc-form-icon,
.gbc-result-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gbc-form-icon {
  background: #dcfce7;
  color: #16a34a;
}

.gbc-result-icon {
  background: #f0fdf4;
  color: #16a34a;
}

.gbc-form-icon svg,
.gbc-result-icon svg {
  width: 20px;
  height: 20px;
}

.gbc-form-copy,
.gbc-result-copy,
.gbc-summary-head,
.gbc-option-head,
.gbc-summary-item,
.gbc-meta-item,
.gbc-note-card {
  display: grid;
  gap: 6px;
}

.gbc-form-copy h3,
.gbc-result-copy h3,
.gbc-option-head strong,
.gbc-summary-item strong,
.gbc-meta-item strong,
.gbc-summary-link strong,
.gbc-note-card strong,
.gbc-empty-box strong {
  margin: 0;
  color: #1e293b;
}

.gbc-form-copy p,
.gbc-field-hint,
.gbc-option-head span,
.gbc-summary-head span,
.gbc-summary-item span,
.gbc-meta-item span,
.gbc-summary-link span,
.gbc-note-card span,
.gbc-empty-box p,
.gbc-result-copy p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.gbc-field {
  display: grid;
  gap: 8px;
}

.gbc-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.gbc-input-wrap {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.gbc-input-wrap:focus-within {
  background: #ffffff;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.gbc-input-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: none;
  outline: none;
  background: transparent;
  color: #1e293b;
  font-size: 0.88rem;
  box-sizing: border-box;
}

.gbc-input-wrap input::placeholder {
  color: #94a3b8;
}

.gbc-meta-grid,
.gbc-result-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.gbc-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.gbc-mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.gbc-choice-btn,
.gbc-mini-btn,
.gbc-submit-btn,
.gbc-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.gbc-choice-btn,
.gbc-mini-btn {
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #dbe4ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #475569;
  text-align: left;
}

.gbc-choice-btn strong,
.gbc-mini-btn strong {
  width: 100%;
  color: #1e293b;
  font-size: 0.88rem;
  text-align: left;
}

.gbc-choice-btn span,
.gbc-mini-btn span {
  width: 100%;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.6;
  text-align: left;
}

.gbc-choice-btn.is-active,
.gbc-mini-btn.is-active {
  border-color: rgba(34, 197, 94, 0.5);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.gbc-summary-body {
  display: grid;
}

.gbc-summary-grid,
.gbc-result-meta {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.gbc-summary-item,
.gbc-meta-item {
  padding: 14px;
}

.gbc-result-media,
.gbc-result-side {
  display: grid;
  gap: 14px;
}

.gbc-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.gbc-result-badge.is-success {
  background: #dcfce7;
  color: #166534;
}

.gbc-result-badge.is-pending {
  background: #e0f2fe;
  color: #0369a1;
}

.gbc-result-badge.is-failed {
  background: #fee2e2;
  color: #b91c1c;
}

.gbc-result-image {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.gbc-result-image img {
  display: block;
  width: 100%;
  height: auto;
}

.gbc-empty-box {
  display: grid;
  place-items: center;
  min-height: 260px;
  text-align: center;
}

.gbc-empty-box.is-failed {
  border-color: #fecaca;
  background: #fff7f7;
}

.gbc-note-card strong {
  font-size: 0.88rem;
  line-height: 1.7;
}

.gbc-submit-btn,
.gbc-download-btn {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
}

.gbc-submit-btn:disabled,
.gbc-download-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .gbc-result-header,
  .gbc-result-title,
  .gbc-form-header {
    flex-direction: column;
  }

  .gbc-result-badge {
    width: fit-content;
  }

  .gbc-choice-grid,
  .gbc-mini-grid,
  .gbc-summary-grid,
  .gbc-result-meta,
  .gbc-meta-grid,
  .gbc-result-grid {
    grid-template-columns: 1fr;
  }
}
