.feed {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* ── Toolbar: search + filter pills ──────────────────── */

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.searchWrap {
  position: relative;
  flex: 0 1 200px;
  min-width: 120px;
}

.searchInput {
  width: 100%;
  height: 28px;
  padding: 0 26px 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}

.searchInput::placeholder {
  color: var(--text-faint);
}

.searchInput:focus {
  border-color: var(--amber);
}

.searchClear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 0;
  line-height: 1;
  transition: color 0.1s, background 0.1s;
}

.searchClear:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.clearBtn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.1s;
}

.clearBtn:hover {
  color: var(--text-primary);
}

/* ── Event list ──────────────────────────────────────── */

.list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 16px;
  transition: background 0.1s;
}

.item:hover {
  background: var(--bg-hover);
}

/* ── Icon circle ─────────────────────────────────────── */

.icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.icon_error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error-border);
}

.icon_warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.icon_success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.icon_running {
  background: var(--running-bg);
  color: var(--running);
  border: 1px solid var(--running-border);
}

/* ── Body: message + timestamp stacked ───────────────── */

.body {
  flex: 1;
  min-width: 0;
}

.message {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-word;
}

.time {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 1px;
}

/* ── Inline highlight classes for rich messages ──────── */

.agent {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.highlightDead {
  color: var(--error);
  font-weight: 600;
}

.highlightStale {
  color: var(--warning);
  font-weight: 600;
}

.highlightStart {
  color: var(--success);
  font-weight: 600;
}

.highlightRunning {
  color: var(--running);
  font-weight: 600;
}

/* ── Empty + resume ──────────────────────────────────── */

.empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

.resumeBtn {
  flex-shrink: 0;
  padding: 6px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-light);
  border-radius: 0;
  color: var(--amber-deep);
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  text-align: center;
  transition: background 0.1s;
}

.resumeBtn:hover {
  background: var(--amber-light);
}
