/* Core wrapper */
.ttb-gex-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  box-sizing: border-box;
}
.ttb-gex-card {
  width: 100%;
  max-width: 760px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  box-sizing: border-box;
}

/* Typography */
.ttb-gex-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
}
.ttb-gex-sub {
  margin: 0 0 16px;
  text-align: center;
  color: #666666;
}
.ttb-gex-label {
  display: inline-block;
  margin: 8px 0;
  font-weight: 600;
}

/* Inputs */
.ttb-gex-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  resize: vertical;
  outline: none;
}
.ttb-gex-input:focus {
  border-color: #9fd3ff;
  box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.15);
}

/* Actions */
.ttb-gex-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 8px;
}
.ttb-gex-btn {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 16px;
  background: linear-gradient(180deg, #64b5f6, #1e88e5);
  color: #fff;
  box-shadow: 0 6px 14px rgba(30,136,229,0.25);
  transition: transform 0.06s ease;
}
.ttb-gex-btn:active {
  transform: translateY(1px);
}
.ttb-gex-btn.small {
  padding: 8px 14px;
  font-size: 14px;
}

/* Messages */
.ttb-gex-msg {
  text-align: center;
  margin: 6px 0 4px;
  min-height: 20px;
  color: #c62828;
  font-weight: 600;
}

/* Output */
.ttb-gex-output {
  margin-top: 18px;
  text-align: center; /* center the section and its children */
}
.ttb-gex-output-title {
  margin: 0 0 12px;
  font-size: 22px;
}
.ttb-gex-pairs {
  display: inline-flex; /* shrink to content and center */
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Each pair row */
.ttb-gex-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  background: #fafafa;
  min-width: min(560px, 90vw);
}
.ttb-gex-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.ttb-gex-sep {
  font-size: 18px;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 520px) {
  .ttb-gex-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ttb-gex-sep {
    display: none;
  }
}

.ttb-gex-extra-actions { margin-top: 10px; }