#talkingspace-app {
  font-family: Arial, Helvetica, sans-serif;
  max-width: 960px;
  margin: 0 auto;
  color: #1f2937;
}
.talkingspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.ts-card, .ts-panel {
  border: 1px solid #d7dde7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
  padding: 18px;
}
.ts-card h3, .ts-panel h2, .ts-panel h3 {
  margin-top: 0;
}
.ts-btn, .ts-link-btn {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}
.ts-btn.alt, .ts-link-btn.alt {
  background: #334155;
}
.ts-btn.light {
  background: #e5e7eb;
  color: #111827;
}
.ts-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.ts-row {
  margin-bottom: 16px;
}
.ts-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.ts-input, .ts-textarea, .ts-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-sizing: border-box;
}
.ts-textarea {
  min-height: 110px;
}
.ts-meta {
  font-size: 14px;
  color: #475569;
}
.ts-stepper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ts-step {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  font-size: 13px;
}
.ts-step.active {
  background: #0f766e;
  color: #fff;
}
.ts-chat-log {
  border: 1px solid #d7dde7;
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px;
  min-height: 280px;
  max-height: 460px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.ts-msg {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 85%;
}
.ts-msg.user {
  background: #d1fae5;
  margin-left: auto;
}
.ts-msg.assistant {
  background: #fff;
  border: 1px solid #d7dde7;
}
.ts-flex {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ts-status, .ts-banner {
  font-size: 14px;
  padding: 10px 12px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 10px;
  margin-bottom: 12px;
}
.ts-banner {
  background: #f0fdf4;
  border-color: #86efac;
}
.ts-danger {
  background: #fef2f2;
  border-color: #fecaca;
}
.ts-list, .ts-ordered-list {
  margin: 0;
  padding-left: 20px;
}
.ts-inline-note {
  font-size: 13px;
  color: #64748b;
}
.ts-review-item {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}
.ts-review-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
@media (max-width: 640px) {
  .ts-flex {
    flex-direction: column;
  }
  .ts-btn, .ts-link-btn {
    width: 100%;
    text-align: center;
  }
}

/* Country tabs: native radio controls keep the country selection reliable. */
.ts-country-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}
.ts-country-tabs-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ts-country-tab {
  position: relative;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  margin: 0;
  border-right: 1px solid #cbd5e1;
  color: #334155;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
}
.ts-country-tab:last-child {
  border-right: 0;
}
.ts-country-tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ts-country-tab small {
  display: block;
  margin-top: 2px;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
}
.ts-country-tab.active {
  color: #fff;
  background: #0f766e;
}
.ts-country-tab:focus-within {
  outline: 3px solid #93c5fd;
  outline-offset: -3px;
}
.ts-country-tab.locked {
  cursor: not-allowed;
  opacity: .8;
}
@media (max-width: 640px) {
  .ts-country-tabs {
    flex-direction: column;
  }
  .ts-country-tab,
  .ts-country-tab:last-child {
    border-right: 0;
    border-bottom: 1px solid #cbd5e1;
  }
  .ts-country-tab:last-child {
    border-bottom: 0;
  }
}
