/* ============================================================================
   Branding Templates — the shared "💾 Templates" pill + manager card used by
   every studio that has a branding step (see static/js/branding_templates.js).

   Deliberately SELF-CONTAINED: only `.bt-*` selectors, and its own button / input
   styles rather than a studio's (`.st-btn`, `.btn`, `.vm-btn`). The three studios
   style their buttons differently, so leaning on any one of them would make the
   same feature look like a different feature in each studio — the exact drift
   the shared module exists to prevent.
   ============================================================================ */

/* ---- the pill + hint a studio drops into its branding panel ---- */
.bt-section { margin: 0 0 14px; }
.bt-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  color: #4338ca; background: #eef2ff; border: 1px solid #c7d2fe;
  transition: background-color .15s ease, border-color .15s ease;
}
.bt-pill:hover { background: #e0e7ff; border-color: #a5b4fc; }
.bt-hint { font-size: 11.5px; color: var(--text-3, #94a3b8); margin-top: 6px; line-height: 1.5; }

/* ---- the manager card ---- */
.bt-manage { min-width: 0; }
.bt-save {
  padding: 12px; margin-bottom: 12px;
  border: 1px solid var(--border, #e2e8f0); border-radius: 12px;
  background: var(--surface-2, #f8fafc);
}
.bt-savehead { font-size: 13px; font-weight: 700; color: var(--text-2, #334155); margin-bottom: 8px; }
.bt-saverow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bt-in {
  flex: 1 1 180px; min-width: 0; padding: 8px 10px;
  border: 1px solid var(--border, #e2e8f0); border-radius: 8px;
  font-family: inherit; font-size: 13px; color: var(--text, #0f172a); background: #fff;
}
.bt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 700;
  color: var(--text-2, #334155); background: #fff; border: 1px solid var(--border, #e2e8f0);
  transition: background-color .15s ease, border-color .15s ease;
}
.bt-btn:hover { background: var(--surface-2, #f8fafc); border-color: #cbd5e1; }
.bt-primary { color: #fff; background: var(--brand-600, #4f46e5); border-color: var(--brand-600, #4f46e5); }
.bt-primary:hover { background: var(--brand-700, #4338ca); border-color: var(--brand-700, #4338ca); }
.bt-new { width: 100%; }
.bt-done { width: 100%; margin-top: 10px; }

.bt-listhead {
  margin: 12px 0 6px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; color: var(--text-3, #64748b);
}
.bt-list { display: flex; flex-direction: column; gap: 8px; }
.bt-empty {
  padding: 16px 10px; text-align: center; font-size: 12.5px; line-height: 1.55;
  color: var(--text-3, #64748b); border: 1px dashed var(--border, #e2e8f0); border-radius: 12px;
}
.bt-row { display: flex; align-items: center; gap: 8px; }
.bt-use {
  flex: 1 1 auto; min-width: 0; text-align: start; cursor: pointer;
  font-family: inherit; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border, #e2e8f0); background: #fff;
  transition: background-color .15s ease, border-color .15s ease;
}
.bt-use:hover { background: #fbfbff; border-color: var(--brand-500, #6366f1); }
.bt-name { display: block; font-size: 13.5px; font-weight: 700; color: var(--text, #0f172a); }
.bt-bits { display: block; font-size: 11.5px; color: var(--text-3, #94a3b8); margin-top: 2px; }
.bt-icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 14px; line-height: 1;
  color: var(--text-2, #334155); background: #fff; border: 1px solid var(--border, #e2e8f0);
}
.bt-icon:hover { background: var(--surface-2, #f8fafc); }
.bt-del { color: #b91c1c; border-color: #fecaca; }
.bt-del:hover { background: #fef2f2; }

@media (max-width: 520px) {
  /* The name and the two icon buttons stop competing for one row on a phone. */
  .bt-saverow .bt-btn { flex: 1 1 auto; }
}
