/* صفحات مساحة التاجر التي لم يُعَد بناؤها بعد. كل صفحة تنتقل لملفها عند إعادة بنائها، ويُحذف قسمها من هنا. */
.check-circle.done {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: var(--accent-line);
}
.channel-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--brand);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.channel-logo img {
  display: block;
  width: min(24px, 70%);
  height: min(24px, 70%);
  object-fit: contain;
}
.channel-logo.ig {
  color: #516b92;
}
.channel-logo.tt,
.channel-logo.x {
  color: #111111;
}
.channel-logo.sc {
  color: #5f4200;
}
.channel-logo.wa {
  color: #267b50;
}
.channel-logo.fb {
  color: #4d71a6;
}
.channel-logo.yt {
  color: #c04c54;
}
.channel-logo.gads,
.channel-logo.gbp,
.channel-logo.ga4,
.channel-logo.gsc {
  color: #536888;
}
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.channel-card {
  padding: 19px;
}
.channel-card h3 {
  font-size: 14px;
}
.channel-card p {
  font-size: 11px;
  min-height: 38px;
  margin: 15px 0;
  color: var(--muted);
}
.channel-card .btn {
  font-size: 12px;
  min-height: 36px;
}
.channel-select {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
}
.channel-select:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.channel-select input {
  width: 16px;
  height: 16px;
}
.channel-select strong {
  font-size: 13px;
}
.channel-select small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.view-enter {
  animation: enter 0.18s ease-out;
}
@keyframes enter {
  from {
    opacity: 0.4;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1150px) {
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .channel-grid {
    grid-template-columns: 1fr 1fr;
  }
  .channel-card {
    padding: 14px;
  }
  .channel-card .row {
    gap: 9px;
    align-items: flex-start;
  }
  .channel-card .channel-logo {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .channel-card h3 {
    font-size: 12px;
  }
  .selection-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 410px) {
  .channel-grid {
    grid-template-columns: 1fr;
  }
}
/* Onboarding slot on the overview and the post-template picker in the composer. */
.template-list {
  display: grid;
  gap: 10px;
  max-height: 55vh;
  overflow: auto;
  margin-top: 14px;
}
.template-item {
  display: grid;
  gap: 6px;
  text-align: start;
  padding: 14px 16px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.template-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.template-item:hover,
.template-item:focus-visible {
  border-color: var(--brand);
  background: var(--brand-soft);
  outline: none;
}
.tpl-var {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 6px;
  padding: 0 5px;
}
