/* Agent setup: profiles & teams, and the owner-private workstation inventory.
   Agents are the outlined periwinkle side of the language: dashed-ring marks,
   display-face names, provider as a quiet tag, skills as small chips. */

.roster-view { margin-bottom:32px; }
.roster-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.roster-summary { margin:-12px 0 24px; color:var(--muted); font-size:13px; }
.roster-layout { display:grid; grid-template-columns:minmax(200px,240px) minmax(0,1fr); gap:32px; align-items:start; }
.roster-section-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.roster-section-heading h2 { overflow-wrap:anywhere; }

/* Team rail: a plain list beside the roster, no box. */
.roster-sidebar { min-width:0; }
.roster-sidebar>.roster-section-heading { padding:0 0 10px 10px; }
.roster-sidebar>.roster-section-heading h2 { font-size:14px; font-family:var(--font-ui); font-weight:600; color:var(--muted); }
.roster-teams { display:grid; gap:2px; }
.roster-team-choice { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:40px; padding:8px 10px; border:0; border-radius:var(--radius-control); background:transparent; color:var(--muted); text-align:left; font-size:13.5px; font-weight:540; overflow-wrap:anywhere; }
.roster-team-choice:hover { background:var(--surface-hover); color:var(--ink); }
.roster-team-choice[aria-pressed="true"] { background:var(--surface-hover); color:var(--ink); }
.roster-count { flex-shrink:0; min-width:22px; padding:1px 7px; border-radius:999px; background:var(--surface-hover); color:var(--muted); font-size:12px; text-align:center; font-variant-numeric:tabular-nums; }
.roster-team-choice[aria-pressed="true"] .roster-count { background:var(--surface); }
.roster-marks { display:inline-flex; gap:3px; flex-shrink:0; }
.roster-marks .mark { width:16px; height:16px; }
.roster-marks .mark::after { width:4px; height:4px; }
.roster-sidebar-note { padding:10px; }

/* Context: the selected team's purpose, as page text rather than a box. */
.roster-content { min-width:0; }
.roster-context { margin-bottom:20px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.roster-context h2 { font-size:20px; }
.roster-context>.roster-prose { margin:6px 0 8px; max-width:75ch; color:var(--ink); }
.roster-prose { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; font-size:14px; }
.roster-help { font-size:12.5px; line-height:1.55; color:var(--muted); overflow-wrap:anywhere; }

/* Profile cards: one surface per agent, rows divided by spacing. */
.roster-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); gap:16px; }
.roster-card { display:flex; flex-direction:column; min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-panel); }
.roster-card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:20px 20px 12px; }
.roster-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.roster-identity h3 { font-family:var(--font-display); font-size:16px; font-weight:620; line-height:1.3; overflow-wrap:anywhere; }
.roster-avatar.mark { width:40px; height:40px; border-width:1.5px; color:var(--agent); font-size:13px; font-weight:650; letter-spacing:.02em; }
.roster-avatar.mark::after { display:none; }
.roster-role { margin-top:2px; font-size:13px; color:var(--muted); overflow-wrap:anywhere; }
.roster-provider { flex-shrink:0; padding:1px 8px; border:1px solid var(--line-strong); border-radius:999px; color:var(--muted); font-size:12px; font-weight:500; }
.roster-instructions { margin:0 20px 12px; font-size:13px; }
.roster-instructions summary { padding:4px 0; color:var(--muted); }
.roster-instructions summary:hover { color:var(--ink); }
.roster-instructions .roster-prose { margin-top:6px; padding:10px 12px; max-height:320px; overflow:auto; border-left:2px solid var(--agent); background:var(--surface-subtle); font-size:13px; }
.roster-chips { display:flex; flex-wrap:wrap; gap:6px; padding:0 20px 16px; }
.roster-chip { padding:2px 8px; border-radius:var(--radius-control); background:var(--agent-soft); color:var(--ink); font-size:12px; overflow-wrap:anywhere; }
.roster-card-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding:8px 12px 8px 20px; border-top:1px solid var(--line); }
.roster-card-footer>.roster-help { font-size:12px; }

.roster-empty { grid-column:1/-1; padding:28px; background:var(--surface); border:1px dashed var(--line-strong); border-radius:var(--radius-panel); }
.roster-empty-icon.mark { width:32px; height:32px; margin-bottom:14px; }
.roster-empty h3 { font-family:var(--font-display); font-size:16px; font-weight:620; margin-bottom:6px; }
.roster-empty .button { margin-top:18px; margin-right:10px; }

/* Editor */
.roster-editor { padding:24px; margin-bottom:28px; max-width:820px; }
.roster-editor>.roster-section-heading { margin-bottom:20px; }
.roster-fields { border:0; padding:0; margin:0; min-width:0; }
.roster-field { display:block; margin-bottom:18px; font-weight:400; }
.roster-label { display:block; font-size:13px; font-weight:550; color:var(--ink); margin-bottom:6px; }
.roster-field>.roster-help { display:block; margin-top:6px; }
.roster-editor input:not([type="checkbox"]),.roster-editor textarea,.roster-editor select { display:block; width:100%; }
.roster-options { border:0; border-top:1px solid var(--line); border-radius:0; padding:14px 0 0; margin:0 0 20px; min-width:0; }
.roster-options legend { padding:0 8px 0 0; margin:0; }
.roster-option { display:grid; grid-template-columns:minmax(0,1fr) minmax(140px,240px); gap:12px; align-items:center; padding:6px 0; }
.roster-check { display:flex; gap:10px; align-items:center; margin:0; font-size:13.5px; font-weight:400; line-height:1.5; overflow-wrap:anywhere; }
.roster-check input[type="checkbox"] { width:16px; height:16px; margin:0; flex-shrink:0; }
.roster-member { padding:6px 0; }
.roster-saved { margin:16px 0; padding:14px 16px; background:var(--surface-subtle); border-left:3px solid var(--line-strong); border-radius:var(--radius-control); }
.roster-saved pre { max-height:340px; overflow:auto; margin-top:10px; font-family:var(--font-mono); font-size:12px; }

/* On my workstation: owner-private, local. Quiet sunk wells, no shared-looking cards. */
#workstation-view .page-heading .muted { max-width:68ch; }
.ws-status { margin:0 0 20px; padding:10px 14px; border:1px dashed var(--line-strong); border-radius:var(--radius-control); color:var(--muted); font-size:13px; overflow-wrap:anywhere; }
.ws-providers { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); gap:16px; margin-bottom:28px; }
.ws-providers:empty { display:none; }
.ws-provider { display:grid; gap:4px; align-content:start; min-width:0; padding:18px 20px; background:var(--sunk); border:1px solid var(--line); border-radius:var(--radius-panel); }
.ws-provider h2 { font-size:16px; }
.ws-state { display:inline-flex; align-items:center; gap:7px; font-size:13px; color:var(--muted); }
.ws-state::before { content:""; width:7px; height:7px; border-radius:50%; border:1.5px solid currentColor; }
.ws-state.good { color:var(--done); }
.ws-state.good::before { background:currentColor; }
.ws-version { color:var(--ink); margin-top:6px; }
.ws-path { color:var(--muted); overflow-wrap:anywhere; }
.ws-provider .help { margin-top:8px; }
.ws-inventory { min-width:0; max-width:900px; }
.ws-inventory:empty { display:none; }
.ws-inventory>h2 { font-size:16px; }
.ws-inventory>h2:not(:first-child) { margin-top:32px; }
.ws-inventory>.help { max-width:75ch; }
.ws-list { list-style:none; margin:12px 0 0; padding:0; }
.ws-list li { padding:12px 0; border-top:1px solid var(--line); font-size:13.5px; overflow-wrap:anywhere; }
.ws-list strong { font-weight:600; }
.ws-list .muted { font-size:12.5px; }
.ws-list p { margin:4px 0; color:var(--muted); font-size:13px; line-height:1.55; max-width:75ch; }
.ws-list code { font-size:12px; color:var(--faint); }

@media(max-width:960px) { .roster-layout { grid-template-columns:190px minmax(0,1fr); gap:20px; } }
@media(max-width:700px) {
  .roster-view .page-heading { flex-direction:column; align-items:flex-start; }
  .roster-summary { margin-top:0; }
  .roster-layout { grid-template-columns:1fr; gap:20px; }
  .roster-teams { display:flex; gap:6px; overflow-x:auto; padding-bottom:4px; }
  .roster-team-choice { width:auto; flex-shrink:0; white-space:nowrap; }
  .roster-editor { padding:18px; }
  .roster-option { grid-template-columns:1fr; gap:6px; }
  .roster-option select { margin-left:26px; width:calc(100% - 26px); }
  .roster-card-footer { flex-wrap:wrap; }
  #workstation-view .page-heading { flex-direction:column; align-items:flex-start; }
}
