/* Overview rail: coming dates, the agent, links. */
.rail-panel h2 {
  font-size: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rail-panel h3 {
  margin: 16px 0 6px;
  font-size: 15px;
  color: var(--ink-2);
}
.dates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.date-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
}
.date-block {
  display: grid;
  justify-items: center;
  padding: 5px 0 6px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  line-height: 1;
}
.date-dow,
.date-mon {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
}
.date-num {
  font: 760 21px/1.1 var(--display);
  color: var(--ink);
}
.date-text {
  display: grid;
  gap: 2px;
  font-size: 14.5px;
  line-height: 1.35;
}
.date-kind {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}
.date-text a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.date-text a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.date-owner {
  font-size: 13px;
  color: var(--ink-3);
}
.rail-more {
  margin: 12px 0 0;
  font-size: 14.5px;
  font-weight: 650;
}
.phases {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}
.phase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 14.5px;
}
.phase-list time {
  display: block;
  font-weight: 700;
  color: var(--ink-2);
  font-size: 13px;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--good) 60%, transparent);
}
.agent-card.is-failed .pulse {
  background: var(--bad);
}
.agent-card.is-stale .pulse {
  background: var(--warn);
}
.run-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
}
.run-date {
  font-weight: 700;
}
.run-files {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14.5px;
}
.history summary {
  cursor: pointer;
  font-size: 14.5px;
  color: var(--ink-2);
  margin-top: 8px;
}
.link-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.link-cards li {
  display: grid;
  gap: 2px;
}
.link-cards a {
  font-weight: 700;
}
.link-desc {
  font-size: 13.5px;
  color: var(--ink-3);
}
@media (prefers-reduced-motion: no-preference) {
  .agent-card.is-ok .pulse {
    animation: pulse 2.4s ease-out infinite;
  }
  @keyframes pulse {
    70% {
      box-shadow: 0 0 0 10px transparent;
    }
  }
}

