/* Gigxie — workforce blueprints catalog + my workforces.
   Loads after tokens.css, components.css and app.css. */

.wf-page { padding: 40px 0 96px; }
.wf-page .breadcrumbs { margin-bottom: 20px; }

.wf-head { margin-bottom: 28px; }
.wf-head h1 { font-size: 36px; margin-bottom: 8px; }
.wf-head p { max-width: 68ch; }

.wf-section-h { margin: 40px 0 16px; }
.wf-section-h h2 { font-size: 24px; margin-bottom: 4px; }
.wf-section-h p { font-size: 14px; color: var(--muted); max-width: 70ch; }

/* ---------- Blueprint catalog ---------- */
.bp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; }
.bp-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bp-card h3 { font-size: 18px; }
.bp-obj { font-size: 14px; color: var(--body); overflow-wrap: anywhere; }
.bp-roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.role-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--body);
  border: 1px solid var(--line);
}
.role-chip[data-kind="ai"] { background: var(--brand-tint); color: var(--brand-dark); border-color: var(--brand-wash); }
.bp-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.bp-create { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-create input {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  padding: 8px 12px;
  font-size: 14px;
}

/* ---------- My workforces ---------- */
.wf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; padding: 0; }
.wf-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  box-shadow: var(--shadow-card);
  padding: 20px;
}
.wf-card-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.wf-card-top h3 { font-size: 18px; overflow-wrap: anywhere; }
.wf-card-obj { font-size: 14px; color: var(--body); margin-bottom: 12px; overflow-wrap: anywhere; }
.wf-members { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.wf-member {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  padding: 10px 12px;
  font-size: 14px;
}
.wf-member-role { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.wf-member-who { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.wf-kind {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--muted);
}
.wf-kind[data-kind="ai"] { background: var(--brand-tint); color: var(--brand-dark); }

/* ---------- Open seats ----------
   A seat is deliberately NOT styled like a member card: no avatar slot, no
   name column, a dashed outline that reads as "still to fill". It must never
   be mistaken for a person who has agreed to anything. */
.wf-member[data-kind="seat"] {
  border-style: dashed;
  background: var(--bg-soft);
}
.wf-kind[data-kind="seat"] {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line);
}
.wf-seat-cat { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.wf-seat-browse { font-size: 13px; font-weight: 600; white-space: nowrap; }
.wf-seat-summary { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

/* Same treatment as .ai-note: a statement of fact, never an error. */
.seat-note {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--muted);
}

/* The honesty note under an AI member on a server with no model configured.
   Never styled as an error — it is a statement of fact, not a fault. */
.ai-note {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: var(--r-input);
  padding: 8px 10px;
}

/* Workforce status pills reuse .status-pill from app.css */
.status-pill[data-status="paused"] { background: #FFF4E0; color: #8A5200; }
.status-pill[data-status="ended"] { background: var(--bg-soft); color: var(--muted); }
.status-pill[data-status="invited"] { background: var(--brand-tint); color: var(--brand-dark); }

.wf-fineprint { font-size: 13px; color: var(--muted); margin-top: 16px; max-width: 76ch; }

.act-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.act-note.is-ok { color: var(--success-ink); }
.act-note.is-bad { color: var(--danger-ink); }

@media (max-width: 900px) {
  .bp-grid { grid-template-columns: repeat(2, 1fr); }
  .wf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bp-grid { grid-template-columns: 1fr; }
}
