/* ============================================================
   Provider Portal — inbox (the stack of paid opportunities)
   A premium, scannable stack: each offer is a resting card with
   one clear primary action; navy leads, color is always paired
   with a label, two shadow tiers only.
   ============================================================ */
.inbox-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ha-space-4);
}

/* Opportunity card — internal vertical rhythm on the 4px grid. */
.opp-card {
  display: flex;
  flex-direction: column;
  gap: var(--ha-space-3);
  transition: box-shadow 160ms ease-out;
}
.opp-card:hover { box-shadow: var(--ha-shadow-sheet); }

/* Title row — bold-navy vertical name leads, status tag trails. */
.opp-card .opp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ha-space-3);
  flex-wrap: wrap;
}
.opp-card h3 {
  font-size: var(--ha-fs-h3);
  line-height: var(--ha-lh-h3);
  font-weight: var(--ha-weight-bold);
  color: var(--ha-blue-primary);
  margin: 0;
}

/* Scope snippet — quiet supporting line. */
.opp-card .opp-scope {
  font-size: var(--ha-fs-small);
  line-height: var(--ha-lh-small);
  color: var(--ha-ink-muted);
  margin: 0;
}

/* Value line — market + the price anchor; the figure is navy-bold. */
.opp-card .opp-value {
  font-size: var(--ha-fs-small);
  line-height: var(--ha-lh-small);
  color: var(--ha-ink-muted);
  margin: 0;
}
.opp-card .opp-value strong {
  color: var(--ha-blue-primary);
  font-weight: var(--ha-weight-bold);
}

/* CTA — full-width pill, comfortable phone tap; a little breathing room above. */
.opp-card .opp-cta { margin-top: var(--ha-space-1); }

/* Filled — present, not punished: quiet neutral line, no CTA, resting flat. */
.opp-card-filled { background: var(--ha-surface-subtle); }
.opp-card-filled:hover { box-shadow: var(--ha-shadow-card); }
.opp-card .filled-note {
  font-size: var(--ha-fs-small);
  line-height: var(--ha-lh-small);
  color: var(--ha-ink-muted);
  margin: 0;
}

/* Empty state — warm, calm, centered. */
.inbox-empty {
  margin-top: var(--ha-space-6);
  padding: var(--ha-space-10) var(--ha-space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ha-space-4);
  text-align: center;
}
.inbox-empty-icon {
  width: 40px;
  height: 40px;
  color: var(--ha-ink-muted);
  opacity: 0.7;
}
.inbox-empty-line {
  margin: 0;
  max-width: 28ch;
  color: var(--ha-ink-muted);
  font-size: var(--ha-fs-body-lg);
  line-height: var(--ha-lh-body-lg);
}

/* Loading skeleton (shown via [hidden] toggle if ever needed) */
.inbox-skeleton .opp-card { gap: var(--ha-space-3); }
.skeleton-line {
  height: 16px;
  border-radius: var(--ha-radius-xs);
  background: var(--ha-border-strong);
  animation: portal-pulse 1.4s ease-in-out infinite;
}
.skeleton-line.w-half { width: 50%; }
.skeleton-line.w-third { width: 33%; }
.skeleton-line.tall { height: 28px; }
@keyframes portal-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.inbox-footer { margin-top: var(--ha-space-8); text-align: center; }
