.tch-card {
  direction: rtl;
  text-align: right;
  border-top: 4px solid var(--brand);
  padding: 20px;
  color: var(--text);
}
.tch-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tch-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.tch-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.tch-guide-link {
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tch-guide-link:hover,
.tch-guide-link:focus-visible {
  color: var(--accent-text);
  text-decoration: underline;
}
.tch-banner {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.tch-banner--success {
  background: var(--success-soft);
  border-color: var(--success);
  color: var(--success);
}
.tch-banner--error {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}
.tch-banner--info {
  background: var(--surface-2);
  border-color: var(--brand-soft);
  color: var(--brand);
}
.tch-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.tch-account-email {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  direction: ltr;
  unicode-bidi: embed;
}
.tch-confirm {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  margin-bottom: 14px;
}
.tch-confirm-text {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--accent-text);
}
.tch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.tch-item-main {
  min-width: 0;
  flex: 1;
}
.tch-item-name {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.tch-item-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.tch-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tch-notice {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
@media (max-width: 375px) {
  .tch-card {
    padding: 14px;
  }
  .tch-item {
    flex-direction: column;
    align-items: stretch;
  }
  .tch-item-meta {
    justify-content: space-between;
  }
  .tch-actions .tch-btn {
    width: 100%;
  }
}
.google-connect-hub {
  margin: 16px 0 20px;
}
.google-connect-hub:empty {
  display: none;
}
/* Per-tool connections: each row shows its own Google account and actions. */
.tch-item {
  flex-wrap: wrap;
}
.tch-item .tch-confirm {
  flex-basis: 100%;
  margin: 4px 0 0;
}
.tch-item-account {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.tch-item-meta {
  flex-wrap: wrap;
  gap: 8px;
}
/* One list for every channel: logo, details, status/actions, and the content-plan toggle. */
.tch-item > .channel-logo {
  flex: none;
}
.tch-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}
.tch-plan input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}
@media (max-width: 640px) {
  .tch-item-meta {
    flex-basis: 100%;
  }
}
/* Owner request: the single channel list laid out three cards per row, like the old grid. */
.tch-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tch-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 10px 12px;
  padding: 16px;
}
.tch-item-meta {
  grid-column: 1 / -1;
  flex-basis: auto;
  align-self: end;
  margin-top: 4px;
}
.tch-item .tch-confirm {
  grid-column: 1 / -1;
}
@media (max-width: 1100px) {
  .tch-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .tch-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
