/* Stream A styles (docs/PHASE-1-PLAN.md). Use vm-* tokens from studio.css. */

/* templates/agency/tabs/team.html */
  .team-who b { display: block; }
  .team-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
  .team-actions { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
  .team-actions form { margin: 0; }
  .team-remove > summary { list-style: none; cursor: pointer; }
  .team-remove > summary::-webkit-details-marker { display: none; }
  .team-remove[open] > summary { display: none; }
  .team-confirm { display: flex; flex-direction: column; gap: 8px; max-width: 240px; padding: 10px 12px; border: 1px solid var(--vm-crit); border-radius: 10px; background: var(--vm-crit-soft); color: var(--vm-navy); font-size: 13px; }
  .team-confirm .vm-btn.danger { background: var(--vm-crit); border-color: var(--vm-crit); color: #fff; }
  .team-add { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(140px, 1.5fr) auto auto; gap: 10px; align-items: end; }
  .team-add label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
  .team-add select.vm-field { width: 100%; padding: 9px 12px; font-size: 14px; }
  @media (max-width: 640px) { .team-add { grid-template-columns: 1fr; } .team-add .vm-btn { width: 100%; } }
  /* templates/agency/analysts.html: email + button only */
  .team-add.one { grid-template-columns: minmax(220px, 360px) auto; justify-content: start; }
  @media (max-width: 640px) { .team-add.one { grid-template-columns: 1fr; } }

/* templates/client/team.html */
  .tm-who b { display: block; }
  .tm-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
  .tm-notes b { margin-right: 6px; }
  @media (max-width: 640px) { .tm-added { display: none; } }

/* templates/client/settings.html */
  .st-form { display: grid; gap: 16px; }
  .st-f { display: flex; flex-direction: column; gap: 4px; }
  .st-f label { font-weight: 700; font-size: 14px; }
  .st-f input.vm-field { max-width: 160px; }
  .st-f .vm-field[disabled] { background: var(--vm-mist); color: var(--vm-muted); cursor: not-allowed; }
  .st-err { color: var(--vm-crit); font-size: 13px; font-weight: 600; }
  .st-f.bad .vm-field { border-color: var(--vm-crit); }
  .st-actions { display: flex; justify-content: flex-end; }
  @media (max-width: 640px) { .st-f input.vm-field { max-width: none; } .st-actions .vm-btn { width: 100%; } }

/* templates/agency/usage.html */
  .us-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
  .us-head p { margin: 4px 0 0; }
  .us-pick label { font-size: 13px; font-weight: 700; color: var(--vm-muted); }
  .us-total .vm-big { font-size: 30px; }
  .us-table th.r, .us-table td.r { text-align: right; white-space: nowrap; }
  .us-table td.r { font-variant-numeric: tabular-nums; }
  .us-table tfoot td { border-top: 2px solid var(--vm-line); border-bottom: 0; font-weight: 800; }
  .us-table td.dim { color: var(--vm-muted); }
  .us-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  @media (max-width: 900px) { .us-split { grid-template-columns: minmax(0, 1fr); } }
  @media (max-width: 600px) { .us-table td:first-child { min-width: 140px; } }
/* templates/agency/clients.html */
  .client-add > summary { list-style: none; cursor: pointer; }
  .client-add > summary::-webkit-details-marker { display: none; }
  .client-add[open] > summary .vm-btn { visibility: hidden; }
  .client-add .team-add { grid-template-columns: minmax(180px, 2fr) minmax(160px, 2fr) minmax(140px, 1.5fr) auto; }
  @media (max-width: 640px) { .client-add .team-add { grid-template-columns: 1fr; } }
/* templates/agency/tabs/overview.html */
  a.vm-card.ov-card { flex-direction: column; }
  a.vm-card.ov-usage { flex-direction: row; flex-wrap: wrap; gap: 16px 40px; align-items: flex-start; }
  .ov-usage-lines { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; }
  .ov-usage-lines dt { font-size: 12px; color: var(--vm-muted); }
  .ov-usage-lines dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; }
  .ov-check { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
  .ov-check li { display: flex; align-items: center; gap: 8px; color: var(--vm-muted); }
  .ov-check li::before { content: ""; width: 14px; height: 14px; border: 1.5px solid #9aa1bb; border-radius: 50%; flex: none; }
  .ov-check li.done { color: var(--vm-navy); font-weight: 600; }
  .ov-check li.done::before { border-color: var(--vm-blue); background: var(--vm-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") center/10px no-repeat; }
/* templates/agency/tabs/reports.html */
  .rp-grid { gap: 16px; }
  .rp-open { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
  .rp-older { margin-top: 10px; }
  .rp-older > summary { cursor: pointer; }

/* templates/agency/tabs/context.html */
  .cx-block { border-top: 1px solid var(--vm-line); padding-top: 12px; }
  .cx-block h3 { font-size: 15px; margin: 0 0 6px; }
  .cx-campaign { border: 1px solid var(--vm-line); border-radius: 12px; padding: 12px 14px; }
  .cx-campaign > summary { cursor: pointer; list-style: none; }
  .cx-campaign > summary::-webkit-details-marker { display: none; }
  .cx-campaign[open] > summary { margin-bottom: 10px; }

/* templates/agency/agents.html (GM WP 0.7) */
  .ag-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
  .ag-head h2 { margin: 0; }
  .ag-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
  .ag-off td { color: var(--vm-muted); }
  .ag-new { border: 2px solid var(--vm-blue); }
  .ag-secret { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
  .ag-secret .vm-field { font-size: 13px; letter-spacing: .01em; background: var(--vm-mist); }
  .ag-issue > summary { list-style: none; cursor: pointer; display: inline-flex; }
  .ag-issue > summary::-webkit-details-marker { display: none; }
  .ag-issue[open] > summary { margin-bottom: 12px; }
  .ag-form { display: grid; gap: 14px; max-width: 560px; }
  .ag-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; border: 0; padding: 0; margin: 0; }
  .ag-f legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
  .ag-check { display: flex; align-items: baseline; gap: 6px; font-weight: 400; font-size: 14px; }
  .ag-days .vm-field { max-width: 140px; }
