/* /timeline — chronological event feed */

.timeline-page main {
  padding: 0;
  max-width: none;
  margin: 0;
}

.timeline-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 10px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.toolbar-stat {
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}

.timeline-main {
  padding: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.timeline-loading,
.timeline-empty {
  color: var(--text-muted);
  text-align: center;
  margin-top: 60px;
  font-size: 13px;
}

/* Each hour group */
.timeline-hour {
  margin-bottom: 26px;
}

.timeline-hour-header {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 12px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.timeline-hour-header::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border);
}

/* Each event */
.timeline-event {
  display: grid;
  grid-template-columns: 70px 22px 1fr;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  align-items: start;
  border-left: 2px solid var(--border);
  transition: background 0.12s ease, border-left-color 0.12s ease;
  margin-bottom: 4px;
}
.timeline-event:hover {
  background: var(--bg-card);
}

.timeline-event.severity-info    { border-left-color: var(--text-muted); }
.timeline-event.severity-notable { border-left-color: var(--accent); }
.timeline-event.severity-warn    { border-left-color: var(--warn); }
.timeline-event.severity-bad     { border-left-color: var(--bad); }

.te-time {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}

.te-icon {
  font-size: 14px;
  text-align: center;
  line-height: 1;
  padding-top: 2px;
}

.te-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
}

.te-source {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
  font-weight: 500;
}

.te-source.src-vps     { color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.te-source.src-nas     { color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
.te-source.src-ha      { color: #a78bfa; border-color: rgba(167, 139, 250, 0.3); }
.te-source.src-cf      { color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
.te-source.src-public  { color: #94a3b8; border-color: rgba(148, 163, 184, 0.3); }
.te-source.src-nextdns { color: #fb923c; border-color: rgba(251, 146, 60, 0.3); }

.te-detail {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* Severity buttons reuse network filter style + warn variant */
.severity-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.severity-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-card-hover); }
.severity-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(56, 189, 248, 0.08); }

@media (max-width: 700px) {
  .timeline-event { grid-template-columns: 56px 18px 1fr; }
  .te-time { font-size: 10px; }
  .te-body { font-size: 12px; }
  .timeline-toolbar { padding: 8px 12px; }
}
