.hs-tpl-workspace {
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  align-items: start;
}
@media (max-width: 1024px) {
  .hs-tpl-workspace { grid-template-columns: 1fr; }
}
.hs-tpl-arch-btn, .hs-tpl-opt-btn {
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: #334155;
  width: 100%;
}
.hs-tpl-arch-btn.active, .hs-tpl-opt-btn.active {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}
.hs-tpl-arch-count {
  float: right;
  font-size: 0.75rem;
  opacity: 0.85;
}
.hs-tpl-var-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.hs-tpl-var-chip {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  color: #334155;
}
.hs-tpl-var-chip:hover { background: #e0f2fe; border-color: #0284c7; }
.hs-tpl-text {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.45;
  font-family: inherit;
  min-height: 220px;
}
.hs-tpl-preview-phone {
  background: #0f172a;
  border-radius: 16px;
  padding: 12px;
  color: #e2e8f0;
  min-height: 280px;
}
.hs-tpl-preview-head {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hs-tpl-preview-bubble {
  background: #dcf8c6;
  color: #0f172a;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-top: 8px;
  white-space: pre-wrap;
}
.hs-tpl-preview-bubble.muted {
  background: #1e293b;
  color: #94a3b8;
  font-style: italic;
}
.hs-tpl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
