/* ◐ run-status card (run_pop.js) — the header badge's hover as a small panel.
   Colour, border and shadow follow the same tokens as #tipbox so every skin and
   both themes carry it; tone classes reuse the badge's own fills. */
#run-badge { cursor: pointer; }
#run-badge.rp-pinned { box-shadow: 0 0 0 2px var(--accent-soft), 0 0 0 3px var(--accent); }
#run-pop {
  position: fixed; z-index: 96;
  width: min(430px, calc(100vw - 16px));
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 12px; line-height: 1.4;
  overflow: hidden auto;
}
:root[data-theme="dark"] #run-pop { box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6); }
#run-pop[hidden] { display: none; }

/* verdict strip: the badge's colour, one phrase, the stranded count as a pill */
.rp-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-weight: 700; font-size: 12.5px; }
.rp-head.ok      { color: var(--bull);      background: var(--bull-bg); }
.rp-head.warn    { color: var(--amber);     background: var(--amber-bg); }
.rp-head.failed  { color: var(--bear);      background: var(--bear-bg); }
.rp-head.running { color: var(--blue-chip); background: var(--blue-chip-bg); }
.rp-head.skipped { color: var(--grey-chip); background: var(--grey-chip-bg); }
.rp-head .rp-ic { font-size: 14px; line-height: 1; }
.rp-head .rp-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-head .rp-pill {
  margin-left: auto; flex: none; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  color: var(--bear); background: var(--panel); border: 1px solid var(--bear); white-space: nowrap;
}

/* three stat tiles */
.rp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.rp-tile { padding: 9px 12px 8px; min-width: 0; }
.rp-tile + .rp-tile { border-left: 1px solid var(--border); }
.rp-k { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.rp-v { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.rp-v.ok   { color: var(--bull); }
.rp-v.warn { color: var(--amber); }
.rp-v.bad  { color: var(--bear); }
.rp-v.run  { color: var(--blue-chip); }
.rp-s { font-size: 11px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }

/* stranded feeds */
.rp-sec { padding: 9px 12px 10px; }
.rp-sec-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.rp-sec-h b { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bear); }
.rp-sec-h span { margin-left: auto; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.rp-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 5px; }
.rp-date { flex: none; min-width: 66px; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rp-chip {
  font: 600 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 0 7px; border-radius: 999px; color: var(--bear); background: var(--bear-bg); white-space: nowrap;
}
.rp-more { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.rp-fix { display: flex; gap: 6px; margin-top: 7px; font-size: 11.5px; color: var(--text); }
.rp-fix .rp-arrow { flex: none; color: var(--accent); font-weight: 700; }
.rp-fix code {
  font: 600 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--grey-chip-bg); color: var(--grey-chip); padding: 1px 5px; border-radius: 4px; white-space: nowrap;
}
.rp-msg { padding: 10px 12px; color: var(--muted); }

@media (max-width: 480px) {
  .rp-tiles { grid-template-columns: 1fr 1fr; }
  .rp-tile:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); }
}
