/*
 * timeline.css — Team Portal UI primitive: generic vertical timeline.
 *
 * Companion to lib/timeline.js (block 9 of task radar-os--464-history-tab-all-modes).
 *
 * Dot colors via `--badge-{variant}-color` from status-badge.css palette.
 * Graceful degradation when CSS-vars missing (fallback colors hardcoded).
 *
 * No emojis (memory rule).
 */

.tl-container {
  display: flex;
  flex-direction: column;
}

.tl-event {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  position: relative;
  padding-bottom: 12px;
}

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 6px;
  margin-left: 2px;
  background: var(--badge-color, #9ca3af);
  flex-shrink: 0;
}

.tl-dot--success { background: var(--badge-success-color, #22c55e); }
.tl-dot--danger  { background: var(--badge-danger-color,  #ef4444); }
.tl-dot--warning { background: var(--badge-warning-color, #f4a300); }
.tl-dot--info    { background: var(--badge-info-color,    #38bdf8); }
.tl-dot--muted   { background: var(--badge-muted-color,   #9ca3af); }

.tl-connector {
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--border, rgba(255, 255, 255, 0.08));
}

.tl-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.12s;
}

.tl-card--clickable {
  cursor: pointer;
}

.tl-card--clickable:hover {
  background: rgba(58, 167, 226, 0.06);
}

.tl-time {
  font-size: 11px;
  color: var(--hint, #9ca3af);
}

.tl-actor {
  font-size: 12px;
  color: var(--hint, #9ca3af);
}

.tl-label {
  font-size: 13px;
  color: var(--fg, #e8edf5);
}

.tl-status {
  font-size: 11px;
  color: var(--hint, #9ca3af);
  font-style: italic;
}

.tl-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.tl-channel,
.tl-badge {
  font-size: 10px;
  color: var(--hint, #9ca3af);
  padding: 1px 6px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 4px;
}

.tl-empty {
  font-size: 13px;
  color: var(--hint, #9ca3af);
  font-style: italic;
  text-align: center;
  padding: 24px 12px;
}
