/* Team templates: saved roster snapshots. Members appear as a row of agent marks. */
.template-view .template-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.template-view .template-actions h2 { margin-right:auto; font-size:20px; }
.template-view .template-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); gap:16px; }
.template-view .template-card { display:flex; flex-direction:column; align-items:flex-start; gap:8px; min-width:0; padding:20px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-panel); }
.template-view .template-card h2 { font-size:16px; overflow-wrap:anywhere; }
.template-view .template-card .template-prose { color:var(--muted); font-size:13.5px; line-height:1.55; }
.template-view .template-card .button { margin-top:10px; }
.template-members { display:flex; align-items:center; flex-wrap:wrap; gap:4px; margin-top:4px; }
.template-members .muted { margin-left:6px; font-size:12.5px; }
.template-view .template-empty { grid-column:1/-1; padding:28px; background:var(--surface); border:1px dashed var(--line-strong); }
.template-view .template-empty h2 { font-size:16px; margin-bottom:6px; }
.template-view .template-empty .button { margin-top:18px; }
.template-view .template-editor,.template-view .template-result { padding:24px; margin-bottom:28px; max-width:900px; }
.template-view .template-result { border-left:3px solid var(--done); }
.template-view .template-result h2 { font-size:16px; margin-bottom:4px; }
.template-view .template-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:16px; border:0; padding:16px 0; margin:0; min-width:0; }
.template-view .template-field { display:flex; flex-direction:column; gap:6px; min-width:0; margin:0; }
.template-view .template-field input,.template-view .template-field select { width:100%; min-width:0; }
.template-view .template-preview { margin:4px 0 20px; max-height:60vh; overflow:auto; }
.template-view .template-preview>h3 { font-family:var(--font-display); font-size:16px; font-weight:620; margin-top:8px; }
.template-view .template-preview>.muted { font-size:13px; }
.template-view .template-preview>.template-prose { margin:4px 0 12px; max-width:75ch; }
.template-view .template-member { padding:14px 0; border-top:1px solid var(--line); }
.template-view .template-member h4 { display:flex; align-items:center; gap:10px; margin:0 0 6px; font-family:var(--font-display); font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.template-view .template-member .template-prose { max-width:75ch; padding-left:30px; font-size:13.5px; }
.template-view .template-member>.template-skill,.template-view .template-member>.muted { padding-left:30px; margin-top:6px; }
.template-view .template-prose { white-space:pre-wrap; overflow-wrap:anywhere; }
.template-view .template-skill { color:var(--faint); overflow-wrap:anywhere; }
@media(max-width:700px) {
  .template-view .page-heading { align-items:flex-start; flex-direction:column; gap:12px; }
  .template-view .template-editor,.template-view .template-result { padding:18px; }
}
