.ms-agent-sidebar {
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid color-mix(in srgb, var(--ms-color-border) 78%, transparent);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, color-mix(in srgb, var(--ms-color-muted) 72%, var(--ms-color-surface)) 86%, transparent),
      transparent 58%
    ),
    var(--ms-color-background);
}

.ms-agent-sidebar__header {
  min-height: 60px;
  gap: 10px;
  padding: 12px;
}

.ms-agent-shell--compact .ms-agent-sidebar__header {
  min-height: 48px;
  padding: 10px;
}

.ms-agent-sidebar__section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px;
}

.ms-agent-shell--compact .ms-agent-sidebar__section {
  padding: 9px;
}

.ms-agent-sidebar__title {
  margin: 0;
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-label);
  font-weight: 600;
  line-height: var(--ms-leading-label);
  letter-spacing: 0;
  text-transform: uppercase;
}

.ms-agent-nav-item {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: var(--ms-radius-md);
  background: transparent;
  color: var(--ms-color-muted-foreground);
  padding: 6px 8px;
  font-size: var(--ms-text-item);
  line-height: var(--ms-leading-item);
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--ms-duration-fast) var(--ms-easing-standard),
    color var(--ms-duration-fast) var(--ms-easing-standard);
}

.ms-agent-nav-item[data-density="compact"] {
  min-height: 24px;
  gap: 6px;
  padding: 4px 8px;
  font-size: var(--ms-text-label);
  line-height: var(--ms-leading-label);
}

.ms-agent-nav-item:hover {
  background: color-mix(in srgb, var(--ms-color-surface) 72%, transparent);
  color: var(--ms-color-foreground);
}

.ms-agent-nav-item[data-active="true"],
.ms-agent-nav-item--active {
  background: var(--ms-color-surface);
  color: var(--ms-color-foreground);
}

.ms-agent-nav-item > svg,
.ms-agent-nav-item__icon {
  flex-shrink: 0;
}

.ms-agent-nav-item__label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-agent-nav-item__meta {
  flex-shrink: 0;
  color: inherit;
  font-size: var(--ms-text-tiny);
  line-height: 14px;
}

.ms-agent-conversation {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--ms-radius-md);
  background: transparent;
  color: var(--ms-color-foreground);
  padding: 7px 9px 7px 7px;
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--ms-duration-fast) var(--ms-easing-standard),
    border-color var(--ms-duration-fast) var(--ms-easing-standard),
    box-shadow var(--ms-duration-fast) var(--ms-easing-standard);
}

.ms-agent-shell--compact .ms-agent-conversation {
  min-height: 48px;
  gap: 8px;
  padding: 6px 8px 6px 6px;
}

.ms-agent-conversation[data-has-icon="true"] {
  grid-template-columns: 4px auto minmax(0, 1fr) auto;
}

.ms-agent-conversation:hover {
  background: color-mix(in srgb, var(--ms-color-surface) 76%, transparent);
}

.ms-agent-conversation[data-active="true"] {
  border-color: color-mix(in srgb, var(--ms-color-border) 78%, transparent);
  background: var(--ms-color-surface);
  box-shadow: var(--ms-shadow-sm);
}

.ms-agent-conversation__indicator {
  width: 4px;
  height: 24px;
  border-radius: var(--ms-radius-full);
  background: transparent;
}

.ms-agent-conversation[data-active="true"] .ms-agent-conversation__indicator {
  background: var(--ms-color-accent);
}

.ms-agent-conversation__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.ms-agent-conversation__icon {
  display: inline-flex;
  align-self: start;
  margin-top: 2px;
  color: inherit;
}

.ms-agent-conversation__title {
  color: var(--ms-color-foreground);
  font-size: var(--ms-text-item);
  font-weight: 550;
  line-height: var(--ms-leading-item);
}

.ms-agent-conversation--editing {
  cursor: text;
}

.ms-agent-conversation__title-input {
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: var(--ms-radius-sm);
  background: color-mix(in srgb, var(--ms-color-background) 88%, var(--ms-color-foreground) 12%);
  color: var(--ms-color-foreground);
  padding: 1px 4px;
  font-size: var(--ms-text-item);
  font-weight: 550;
  line-height: var(--ms-leading-item);
  outline: 1px solid color-mix(in srgb, var(--ms-color-primary) 45%, transparent);
}

.ms-agent-conversation__description,
.ms-agent-conversation__meta {
  font-size: var(--ms-text-label);
  line-height: 16px;
}
