.ms-agent-composer {
  --ms-agent-composer-border: color-mix(in srgb, var(--ms-color-border) 62%, transparent);
  --ms-agent-composer-fill: var(--ms-color-background);
  --ms-agent-composer-control-fill: color-mix(in srgb, var(--ms-color-background) 72%, transparent);
  --ms-agent-composer-control-border: color-mix(in srgb, var(--ms-color-border) 58%, transparent);
  gap: 0;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--ms-agent-composer-border);
  border-radius: 24px;
  background: var(--ms-agent-composer-fill);
  padding: 6px 0;
  box-shadow:
    0 16px 38px color-mix(in srgb, var(--ms-color-foreground) 7%, transparent),
    0 1px 0 color-mix(in srgb, white 5%, transparent) inset;
}

.ms-agent-shell--compact .ms-agent-composer {
  margin: 0 0 12px;
  padding: 6px 0;
}

.ms-agent-composer:focus-within {
  border-color: color-mix(in srgb, var(--ms-color-focus) 36%, var(--ms-agent-composer-border));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--ms-color-focus) 10%, transparent),
    0 18px 44px color-mix(in srgb, var(--ms-color-foreground) 8%, transparent);
}

.ms-agent-composer__field {
  width: 100%;
  min-width: 0;
  max-height: 180px;
  resize: vertical;
  border: 0;
  background: transparent;
  color: var(--ms-color-foreground);
  padding: 14px 18px 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  font-size: var(--ms-text-label);
  font-weight: 400;
  line-height: var(--ms-leading-label);
}

.ms-agent-composer__field:focus {
  outline: none;
}

.ms-agent-composer__toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--ms-color-border) 52%, transparent);
  padding: 9px 14px 11px;
}

.ms-agent-composer__workspace-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-top: 1px solid color-mix(in srgb, var(--ms-color-border) 44%, transparent);
  padding: 10px 18px 0;
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}

.ms-agent-composer__workspace-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 2px;
  white-space: nowrap;
}

.ms-agent-composer__workspace-select,
.ms-agent-composer .ms-select__trigger {
  border-color: var(--ms-agent-composer-control-border);
  background: var(--ms-agent-composer-control-fill);
  box-shadow: none;
}

.ai-agent-model-select {
  width: min(180px, 48vw);
  border-color: var(--ms-agent-composer-control-border);
  background: var(--ms-agent-composer-control-fill);
  padding-inline: 10px 8px;
}

.ai-agent-model-select__value,
.ai-agent-model-select__option {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.ai-agent-model-select__value {
  flex: 1 1 auto;
}

.ai-agent-model-select .ms-identity-mark,
.ai-agent-model-select__option .ms-identity-mark {
  width: 12px;
  height: 12px;
}

.ai-agent-model-select__option-copy {
  display: inline-flex;
  min-width: 0;
  flex-direction: column;
}

.ai-agent-model-select__id,
.ai-agent-model-select__meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-agent-model-select__id {
  color: var(--ms-color-foreground);
  font-family: var(--ms-font-mono);
  font-size: var(--ms-text-tiny);
  font-weight: 650;
  line-height: 14px;
}

.ai-agent-model-select__meta {
  color: var(--ms-color-muted-foreground);
  font-size: 10px;
  line-height: 12px;
}

.ms-agent-composer__drop-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed color-mix(in srgb, var(--ms-color-accent) 40%, transparent);
  border-radius: var(--ms-radius-composer);
  background: color-mix(in srgb, var(--ms-color-accent) 8%, transparent);
  color: var(--ms-color-accent);
  font-size: var(--ms-text-caption);
  font-weight: 600;
  line-height: 16px;
}

.ms-agent-composer__action {
  width: 26px;
  height: 26px;
  border-radius: var(--ms-radius-full);
  background: transparent;
  color: var(--ms-color-muted-foreground);
}

.ms-agent-shell--compact .ms-agent-composer__action {
  width: 24px;
  height: 24px;
}

.ms-agent-composer__action:hover,
.ms-agent-composer__action[data-active="true"] {
  border-color: transparent;
  background: color-mix(in srgb, var(--ms-color-muted) 72%, transparent);
  color: var(--ms-color-foreground);
}

.ms-agent-composer__submit {
  width: 30px;
  height: 30px;
  border-radius: var(--ms-radius-full);
  background: var(--ms-color-foreground);
  color: var(--ms-color-background);
  border-color: transparent;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--ms-color-foreground) 16%, transparent);
}

.ms-agent-composer__submit-group {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.ms-agent-composer__approval-trigger {
  height: 28px;
  min-width: 4.75rem;
  padding-inline: 0.5rem;
  border-color: var(--ms-agent-composer-control-border);
  border-radius: var(--ms-radius-full);
  background: var(--ms-agent-composer-control-fill);
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}

.ms-agent-composer__approval-trigger:hover {
  background: color-mix(in srgb, var(--ms-color-muted) 70%, transparent);
  color: var(--ms-color-foreground);
}

.ms-agent-shell--compact .ms-agent-composer__submit {
  width: 28px;
  height: 28px;
}

.ms-agent-shell--compact .ms-agent-composer__approval-trigger {
  height: 28px;
  min-width: 4.25rem;
}

.ms-agent-composer__submit:hover {
  background: color-mix(in srgb, var(--ms-color-foreground) 88%, var(--ms-color-background));
  transform: translateY(-1px);
}

.ms-agent-composer__submit[data-running="true"] {
  background: var(--ms-color-danger);
  color: var(--ms-color-danger-foreground);
}

.ms-agent-composer__action svg,
.ms-agent-composer__submit svg,
.ms-agent-composer__approval-trigger svg {
  width: 12px;
  height: 12px;
}

.ms-agent-composer__action svg,
.ms-agent-composer__submit svg {
  width: 12px;
  height: 12px;
}
