@layer components {
  .badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    background: var(--line-faint);
    color: var(--muted);
  }
  .badge--success  { background: var(--action-soft); color: var(--action-dark); }
  .badge--pending  { background: var(--warning-bg); color: var(--warning-fg); }
  .badge--attention { background: var(--danger-bg); color: var(--danger-fg); }
  .badge--scheduled { background: var(--ink); color: var(--white); }

  /* In a row (next to buttons or links), center it like everything else. */
  .cluster > .badge, .split > .badge, .session-row > .badge { align-self: center; }

  .tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--line-faint);
    color: var(--body);
  }

  .tag--removable {
    gap: 6px;
    min-height: 32px;
    padding: 0 6px 0 12px;
    border-radius: 16px;
    font-size: 13px;
    background: var(--ink);
    color: var(--white);
  }
  .tag__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  /* Small status dot in task lists */
  .dot { width: 10px; height: 10px; margin-top: 6px; flex-shrink: 0; border-radius: 50%; background: var(--placeholder); }
  .dot--attention { background: var(--brand); }
  .dot--pending { background: #B45309; }
}
