.ai-agent-panel-empty-history {
  position: relative;
  display: flex;
  order: 3;
  flex: 0 0 calc(100% / 3);
  min-height: 120px;
  flex-direction: column;
  overflow: hidden;
  margin: 0 8px 8px;
  border-radius: 0;
  background: var(--ms-color-background);
}

.ai-agent-panel-empty-history-divider {
  position: relative;
  height: 14px;
  flex: 0 0 14px;
  cursor: row-resize;
}

.ai-agent-panel-empty-history-divider::before {
  position: absolute;
  top: 6px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--ms-color-border);
  content: "";
}

.ai-agent-panel-empty-history-divider::after {
  position: absolute;
  top: 5px;
  right: 40%;
  left: 40%;
  height: 3px;
  border-radius: var(--ms-radius-full);
  background: color-mix(in srgb, var(--ms-color-border) 86%, transparent);
  content: "";
  opacity: 0;
  transition:
    background-color var(--ms-duration-fast) var(--ms-easing-standard),
    opacity var(--ms-duration-fast) var(--ms-easing-standard);
}

.ai-agent-panel-empty-history-divider:hover::after,
.ai-agent-panel-empty-history-divider:focus-visible::after,
.ai-agent-panel-main[data-history-resizing="true"] .ai-agent-panel-empty-history-divider::after {
  opacity: 1;
}

.ai-agent-panel-empty-history-divider:hover::after,
.ai-agent-panel-empty-history-divider:focus-visible::after {
  background: var(--ms-color-accent);
}

.ai-agent-panel-empty-history-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ms-color-muted-foreground);
  padding: 8px 2px 6px;
  font-size: var(--ms-text-tiny);
  line-height: 14px;
}

.ai-agent-panel-empty-history-list {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  gap: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 2px 2px;
}

.ai-agent-panel-empty-history-item {
  min-height: 44px;
}

.ai-agent-panel-empty-history-more {
  min-height: 32px;
  justify-content: center;
  gap: 6px;
}

.ai-agent-panel-empty-history-more-row {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  padding: 4px 2px 0;
}

.ai-agent-panel-empty-history-empty {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: var(--ms-radius-sm);
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-label);
  line-height: 18px;
}

.ai-agent-panel-empty-history-close {
  color: color-mix(in srgb, var(--ms-color-muted-foreground) 55%, transparent);
  opacity: 0;
  transition:
    color var(--ms-duration-fast) var(--ms-easing-standard),
    opacity var(--ms-duration-fast) var(--ms-easing-standard);
}

.group:hover > .ai-agent-panel-empty-history-close,
.group:focus-within > .ai-agent-panel-empty-history-close {
  opacity: 1;
}

.ai-agent-panel-empty-history-close:hover,
.ai-agent-panel-empty-history-close:focus-visible {
  color: var(--ms-color-danger);
}
