.pipeline-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.pipeline-summary article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
}
.pipeline-summary span, .pipeline-summary strong { display: block; }
.pipeline-summary span { color: var(--muted); font-size: 13px; }
.pipeline-summary strong { font-size: 24px; margin-top: 7px; }
.callout {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #f2d27c;
  border-radius: 13px;
  background: #fff9e8;
  color: #765b13;
}
.pipeline-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 16px;
  align-items: start;
  overflow-x: auto;
}
.pipeline-column {
  min-width: 230px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #edf2fa;
  overflow: hidden;
}
.pipeline-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  background: white;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.pipeline-column > header b {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 9px;
  background: #eaf0ff;
  color: #2949bc;
}
.pipeline-column > div { padding: 12px; display: grid; gap: 11px; }
.pipeline-empty { color: var(--muted); text-align: center; padding: 22px 8px; margin: 0; font-size: 13px; }
.opportunity-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
  box-shadow: 0 5px 16px rgba(20,43,88,.06);
}
.opportunity-card > strong, .opportunity-card > small, .opportunity-card time { display: block; }
.opportunity-card > small { color: var(--muted); margin-top: 4px; }
.opportunity-card > div { display: flex; align-items: center; justify-content: space-between; margin: 15px 0 9px; }
.opportunity-card > div span { color: #2949bc; background: #edf2ff; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 800; }
.opportunity-card time { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.opportunity-card button { width: 100%; }
.closed-opportunities { margin-top: 28px; }
.closed-opportunities h2 { font-size: 23px; }
.opportunities-table .thead, .opportunities-table .trow { grid-template-columns: 2fr 1fr 1fr auto; }
button:disabled { cursor: not-allowed; opacity: .55; }

@media (max-width: 900px) {
  .pipeline-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .pipeline-summary { grid-template-columns: 1fr 1fr; }
  .pipeline-board { grid-template-columns: repeat(3, 82vw); }
  .opportunities-table .thead, .opportunities-table .trow { grid-template-columns: 1fr auto; }
  .opportunities-table .thead span:nth-child(2), .opportunities-table .thead span:nth-child(3),
  .opportunities-table .trow > span:nth-child(2), .opportunities-table .trow > span:nth-child(3) { display: none; }
}
