.pill {
  display: inline-block;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border, #ddd5c8);
  background: #f7f4ee;
  margin: 0 3px 2px 0;
  vertical-align: middle;
  text-decoration: none;
  color: inherit;
}
a.pill:hover {
  border-color: var(--accent, #1e4d6b);
  background: #eef4f8;
}
.pill.ok { background: #e5f3ea; border-color: #9cc9ad; color: var(--ok, #1f6b3a); }
.pill.bad { background: #f8e8e8; border-color: #e0b0b0; color: var(--bad, #8a2f2f); }
.pill.has-tip {
  position: relative;
  cursor: help;
}
a.pill.has-tip { cursor: pointer; }
.pill.has-tip:hover::after,
th.has-tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 40;
  left: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  max-width: min(420px, 70vw);
  padding: 8px 10px;
  background: #1a1a1a;
  color: #f5f5f5;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  white-space: pre-wrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}
th.has-tip { position: relative; cursor: help; }
