.logCard {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 420px;
}

/*
 * Flatten the internal scroll of @cameleer/design-system's LogViewer and
 * EventFeed so their containing InfiniteScrollArea owns the scroll — one
 * scrollbar per panel, IntersectionObserver sentinels stay meaningful.
 */
.flatScroll,
.flatScroll * {
  overflow: visible !important;
  max-height: none !important;
}

/* EventFeed root is flex column with height:100% and its .list child has
   flex:1 + overflow-y:auto. Breaking the height chain lets content size
   to itself so the InfiniteScrollArea wrapper scrolls once. */
.flatScroll {
  height: auto !important;
  min-height: 0 !important;
}

.logHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.logToolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.logSearchWrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

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

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

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

.logSearchClear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0 4px;
  line-height: 1;
}

.logClearFilters {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  white-space: nowrap;
}

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

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

.sortBtn,
.refreshBtn {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  line-height: 1;
}

.sortBtn:hover,
.refreshBtn:hover {
  color: var(--text-primary);
  border-color: var(--amber);
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Timeline: EventFeed owns its own scroll (so its internal search/filter
   toolbar stays pinned). Give it a bounded height and let its .list scroll.
   Pagination via the explicit "Load older" button below, not scroll. */
.eventFeedContainer {
  display: flex;
  flex-direction: column;
  max-height: 360px;
  min-height: 0;
  overflow: hidden;
}

.loadOlderBtn {
  padding: 8px 12px;
  border: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-body);
}

.loadOlderBtn:hover:not(:disabled) {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.loadOlderBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
