/* DSTE Agent reference-style entry and compact conversation navigation. */
body.dste-agent-mode {
  --agent-home-max: 820px;
}

.agent-home-header,
.agent-home-suggestions {
  display: none;
}

/* Keep the professional Agent switcher light in active conversations. */
body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-picker.product-workbench-surface {
  margin: 0 auto 16px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-card {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-card small {
  display: none;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-card b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #53677f;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-card:hover {
  background: #f2f5f9;
  box-shadow: none;
  transform: none;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-card.active {
  background: var(--premium-primary-soft);
  box-shadow: none;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-card.active b {
  color: var(--premium-primary);
}

.agent-home-icon {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: currentColor;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
}

/* Reference-style centered entry mode. */
body.dste-agent-home-mode .canvas {
  min-height: calc(100vh - 1px);
  background: #fbfcfe;
}

body.dste-agent-home-mode #agentWorkbench.product-page-shell--agent {
  display: block !important;
  max-width: 1040px !important;
  min-height: calc(100vh - 80px);
  margin: 0 auto !important;
  padding-top: 112px;
}

body.dste-agent-home-mode .agent-session-panel,
body.dste-agent-home-mode .agent-context-panel,
body.dste-agent-home-mode #chatPanel,
body.dste-agent-home-mode #emptyState,
body.dste-agent-home-mode #agentToggle {
  display: none !important;
}

body.dste-agent-home-mode .agent-conversation-pane {
  min-width: 0;
}

body.dste-agent-home-mode #chatAgentPicker.product-workbench-surface {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.dste-agent-home-mode .agent-home-header {
  display: block;
  margin-bottom: 24px;
  text-align: center;
}

body.dste-agent-home-mode .agent-home-header h1 {
  margin: 0;
  color: #17263d;
  font-size: 28px;
  font-weight: 720;
  line-height: 1.35;
  letter-spacing: 0;
}

body.dste-agent-home-mode .agent-home-header p {
  margin: 9px 0 0;
  color: #7a889a;
  font-size: 12px;
}

body.dste-agent-home-mode #chatAgentGrid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
  width: min(700px, 100%);
}

body.dste-agent-home-mode #chatAgentGrid .chat-agent-card {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body.dste-agent-home-mode #chatAgentGrid .chat-agent-card b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #46576d;
  font-size: 13px;
  font-weight: 620;
  white-space: nowrap;
}

body.dste-agent-home-mode #chatAgentGrid .chat-agent-card small {
  display: none;
}

body.dste-agent-home-mode #chatAgentGrid .chat-agent-card:hover {
  background: #f1f4f8;
  box-shadow: none;
}

body.dste-agent-home-mode #chatAgentGrid .chat-agent-card.active {
  background: var(--premium-primary);
  box-shadow: 0 5px 14px rgba(59, 105, 167, .18);
}

body.dste-agent-home-mode #chatAgentGrid .chat-agent-card.active b {
  color: #ffffff;
}

body.dste-agent-home-mode .composer {
  top: 340px;
  right: auto;
  bottom: auto;
  left: calc(246px + (100vw - 246px) / 2);
  width: min(var(--agent-home-max), calc(100vw - 246px - 96px));
  max-width: none;
  min-height: 116px;
  margin: 0;
  padding: 14px 16px 12px;
  border: 1px solid #e1e6ed;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(28, 45, 68, .10);
  transform: translateX(-50%);
}

body.collapsed.dste-agent-home-mode .composer {
  left: calc(76px + (100vw - 76px) / 2);
  width: min(var(--agent-home-max), calc(100vw - 76px - 96px));
}

body.dste-agent-home-mode .composer textarea {
  min-height: 58px;
  padding: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

body.dste-agent-home-mode .composer textarea::placeholder {
  color: #9aa7b7;
}

body.dste-agent-home-mode .composer-foot {
  min-height: 32px;
  margin-top: 5px;
}

body.dste-agent-home-mode .agent-select {
  color: #5e6d80;
  font-size: 12px;
}

body.dste-agent-home-mode .send {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
}

body.dste-agent-home-mode .send::before {
  content: "↑";
  font-size: 17px;
  font-weight: 700;
}

body.dste-agent-home-mode .send:disabled {
  border-color: #d9e0e8;
  background: #edf1f5;
  color: #9aa7b7;
}

body.dste-agent-home-mode .agent-home-suggestions {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  display: flex;
  justify-content: center;
  gap: 8px;
  width: min(940px, calc(100vw - 320px));
  transform: translateX(-50%);
}

body.dste-agent-home-mode .agent-home-suggestions button {
  min-height: 34px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 17px;
  background: #ffffff;
  color: #526176;
  font-size: 12px;
  line-height: 32px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dste-agent-home-mode .agent-home-suggestions button:hover {
  border-color: #a9bed9;
  background: var(--premium-primary-soft);
  color: var(--premium-primary);
}

@media (max-width: 1180px) {
  body.dste-agent-home-mode #agentWorkbench.product-page-shell--agent {
    padding-top: 80px;
  }

  body.dste-agent-home-mode .composer {
    top: 330px;
    width: min(760px, calc(100vw - 246px - 48px));
  }

  body.dste-agent-home-mode .agent-home-suggestions {
    width: min(780px, calc(100vw - 294px));
  }
}

/* Conversation controls follow the reference interaction: history and new chat stay available in both states. */
.agent-home-toolbar,
.agent-history-scrim {
  display: none;
}

body.dste-agent-mode .agent-home-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: min(1040px, 100%);
  margin: 0 auto 8px;
}

body.dste-agent-mode .agent-home-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe3ed;
  border-radius: 6px;
  background: #ffffff;
  color: #506176;
  font-size: 12px;
  font-weight: 650;
}

body.dste-agent-mode .agent-home-toolbar button:hover {
  border-color: #a9bed9;
  background: #f5f8fc;
  color: var(--premium-primary);
}

body.dste-agent-mode .agent-home-toolbar .agent-new-chat {
  border-color: var(--premium-primary);
  background: var(--premium-primary);
  color: #ffffff;
}

body.dste-agent-mode .agent-home-toolbar .agent-new-chat:hover {
  border-color: #24548f;
  background: #24548f;
  color: #ffffff;
}

body.dste-agent-home-mode #agentWorkbench.product-page-shell--agent {
  position: relative;
}

body.dste-agent-home-mode .agent-home-toolbar {
  position: absolute;
  top: 34px;
  right: 0;
  z-index: 3;
  width: auto;
  margin: 0;
}

body.dste-agent-mode .agent-original-mode > .agent-session-panel {
  position: fixed;
  top: 70px;
  bottom: 20px;
  left: 266px;
  z-index: 222;
  display: block !important;
  visibility: hidden;
  width: 300px;
  overflow: auto;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(19, 36, 58, .16);
  opacity: 0;
  transform: translateX(-18px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

body.collapsed.dste-agent-mode .agent-original-mode > .agent-session-panel {
  left: 96px;
}

body.dste-agent-mode.dste-agent-history-open .agent-original-mode > .agent-session-panel {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

body.dste-agent-mode.dste-agent-history-open .agent-history-scrim {
  position: fixed;
  inset: 0 0 0 246px;
  z-index: 218;
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(20, 34, 52, .14);
}

body.collapsed.dste-agent-mode.dste-agent-history-open .agent-history-scrim {
  left: 76px;
}
/* Keep conversation-level controls available while a long answer scrolls. */
body.dste-agent-mode:not(.dste-agent-home-mode) .agent-home-toolbar {
  position: sticky;
  top: 10px;
  z-index: 40;
  pointer-events: none;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .agent-home-toolbar button {
  pointer-events: auto;
}

body.dste-agent-mode .agent-original-mode > .agent-session-panel {
  background: #ffffff !important;
}
/* Keep the DSTE Agent identity and professional Agent catalog fixed above the conversation. */
body.dste-agent-mode:not(.dste-agent-home-mode) #chatAgentPicker.product-workbench-surface {
  position: sticky;
  top: 52px;
  z-index: 36;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 16px;
  padding: 12px 18px 14px;
  border-bottom: 1px solid #dfe6ef;
  background: rgba(251, 252, 254, .98);
  box-shadow: 0 8px 18px rgba(32, 53, 79, .05);
  backdrop-filter: blur(10px);
}

body.dste-agent-mode:not(.dste-agent-home-mode) .agent-home-header {
  display: block;
  margin: 0 0 10px;
  text-align: center;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .agent-home-header h1 {
  margin: 0;
  color: #17263d;
  font-size: 20px;
  font-weight: 720;
  line-height: 1.35;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .agent-home-header p {
  margin: 4px 0 0;
  color: #7a889a;
  font-size: 11px;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-grid {
  width: min(980px, 100%);
}
/* Fixed 12-Agent shell: six columns, two rows, and an independently scrolling conversation. */
body.dste-agent-mode {
  overflow: hidden;
}

body.dste-agent-mode .workspace,
body.dste-agent-mode .canvas {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

body.dste-agent-mode #agentWorkbench.product-page-shell--agent,
body.dste-agent-home-mode #agentWorkbench.product-page-shell--agent {
  position: relative;
  width: min(1120px, 100%);
  max-width: 1120px !important;
  height: 100vh;
  min-height: 0;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: hidden;
}

body.dste-agent-mode .agent-conversation-pane {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.dste-agent-mode .agent-home-toolbar,
body.dste-agent-mode:not(.dste-agent-home-mode) .agent-home-toolbar,
body.dste-agent-home-mode .agent-home-toolbar {
  position: absolute !important;
  top: 10px;
  right: 0;
  z-index: 52;
  width: auto;
  margin: 0;
}

body.dste-agent-mode #chatAgentPicker.product-workbench-surface,
body.dste-agent-mode:not(.dste-agent-home-mode) #chatAgentPicker.product-workbench-surface,
body.dste-agent-home-mode #chatAgentPicker.product-workbench-surface {
  position: absolute !important;
  top: 52px;
  right: 0;
  left: 0;
  z-index: 44;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 16px 12px;
  border: 0;
  border-bottom: 1px solid #dfe6ef;
  border-radius: 0;
  background: rgba(251, 252, 254, .98);
  box-shadow: 0 8px 18px rgba(32, 53, 79, .05);
  backdrop-filter: blur(10px);
}

body.dste-agent-mode .agent-home-header,
body.dste-agent-mode:not(.dste-agent-home-mode) .agent-home-header,
body.dste-agent-home-mode .agent-home-header {
  display: block;
  margin: 0 0 10px;
  text-align: center;
}

body.dste-agent-mode .agent-home-header h1,
body.dste-agent-mode:not(.dste-agent-home-mode) .agent-home-header h1,
body.dste-agent-home-mode .agent-home-header h1 {
  margin: 0;
  color: #17263d;
  font-size: 22px;
  font-weight: 720;
  line-height: 1.35;
}

body.dste-agent-mode .agent-home-header p,
body.dste-agent-mode:not(.dste-agent-home-mode) .agent-home-header p,
body.dste-agent-home-mode .agent-home-header p {
  margin: 4px 0 0;
  color: #7a889a;
  font-size: 11px;
}

body.dste-agent-mode #chatAgentGrid,
body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-grid,
body.dste-agent-home-mode #chatAgentGrid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-rows: 40px;
  gap: 8px 10px;
  width: min(1080px, 100%);
}

body.dste-agent-mode #chatAgentGrid .chat-agent-card,
body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-card,
body.dste-agent-home-mode #chatAgentGrid .chat-agent-card {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body.dste-agent-mode #chatAgentGrid .chat-agent-card b,
body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-card b,
body.dste-agent-home-mode #chatAgentGrid .chat-agent-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  color: #46576d;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

body.dste-agent-mode #chatAgentGrid .chat-agent-card small,
body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-card small,
body.dste-agent-home-mode #chatAgentGrid .chat-agent-card small {
  display: none;
}

body.dste-agent-mode #chatAgentGrid .chat-agent-card:hover {
  border-color: #d9e3ef;
  background: #f2f6fb;
}

body.dste-agent-mode #chatAgentGrid .chat-agent-card.active,
body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-card.active,
body.dste-agent-home-mode #chatAgentGrid .chat-agent-card.active {
  border-color: var(--premium-primary);
  background: var(--premium-primary);
  box-shadow: 0 5px 14px rgba(59, 105, 167, .16);
}

body.dste-agent-mode #chatAgentGrid .chat-agent-card.active b {
  color: #ffffff;
}

body.dste-agent-mode .agent-conversation-pane #chatPanel,
body.dste-agent-mode .agent-conversation-pane #emptyState {
  position: absolute;
  top: 250px;
  bottom: 156px;
  left: 50%;
  width: min(920px, calc(100% - 40px));
  max-width: none;
  height: auto;
  margin: 0;
  transform: translateX(-50%);
}

body.dste-agent-mode .agent-conversation-pane #chatPanel {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 8px 12px 30px !important;
  scroll-behavior: smooth;
}

body.dste-agent-mode .agent-conversation-pane #emptyState {
  overflow: hidden;
}

body.dste-agent-home-mode .composer {
  top: 272px;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .composer {
  bottom: 22px;
}

body.dste-agent-mode .agent-conversation-pane #chatPanel::-webkit-scrollbar {
  width: 8px;
}

body.dste-agent-mode .agent-conversation-pane #chatPanel::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: #c8d3e0;
  background-clip: padding-box;
}
/* Reference-style centered Agent entry while preserving the fixed 12-Agent shell. */
body.dste-agent-mode #chatAgentGrid,
body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-grid,
body.dste-agent-home-mode #chatAgentGrid {
  grid-auto-rows: 32px;
  gap: 14px 10px;
  width: min(960px, 100%);
}

body.dste-agent-mode #chatAgentGrid .chat-agent-card,
body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-card,
body.dste-agent-home-mode #chatAgentGrid .chat-agent-card {
  position: relative;
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 16px;
}

body.dste-agent-mode #chatAgentGrid .chat-agent-card::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -5px;
  width: 1px;
  background: #e4e9ef;
  content: "";
}

body.dste-agent-mode #chatAgentGrid .chat-agent-card:nth-child(6n + 1)::before {
  display: none;
}

body.dste-agent-mode #chatAgentGrid .chat-agent-card:hover {
  border: 0;
  background: #f2f4f7;
}

body.dste-agent-mode #chatAgentGrid .chat-agent-card.active,
body.dste-agent-mode:not(.dste-agent-home-mode) .product-page-shell--agent .chat-agent-card.active,
body.dste-agent-home-mode #chatAgentGrid .chat-agent-card.active {
  border: 0;
  border-radius: 16px;
  background: var(--premium-primary);
  box-shadow: 0 5px 14px rgba(59, 105, 167, .16);
}

body.dste-agent-mode #chatAgentGrid .chat-agent-card.active::before {
  display: none;
}

body.dste-agent-mode .agent-home-icon {
  width: 15px;
  height: 15px;
  font-size: 12px;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .agent-home-header h1 {
  font-size: 24px;
}

/* Keep the complete Agent entry group comfortably below the fixed product header. */
body.dste-agent-home-mode #chatAgentPicker.product-workbench-surface {
  top: 180px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.dste-agent-home-mode .agent-home-header {
  margin-bottom: 32px;
}

body.dste-agent-home-mode .agent-home-header h1 {
  font-size: 28px;
}

body.dste-agent-home-mode .composer {
  top: 412px;
  width: min(800px, calc(100vw - 246px - 96px));
  min-height: 120px;
  padding: 15px 18px 12px;
  border-color: #e4e9ef;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(31, 45, 65, .10);
}

body.collapsed.dste-agent-home-mode .composer {
  width: min(800px, calc(100vw - 76px - 96px));
}

body.dste-agent-home-mode .composer textarea {
  min-height: 62px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.dste-agent-mode .agent-home-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
body.dste-agent-mode #chatAgentGrid .agent-pending-count {
  display: none;
}

/* Keep the entry screen visually calm while giving the Agent space a distinct identity. */
body.dste-agent-mode.dste-agent-home-mode .workspace {
  background-color: #f4f7fb;
  background-image: url("assets/dste-agent-strategy-network-bg-v6.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.dste-agent-mode.dste-agent-home-mode .canvas {
  background-color: transparent;
  background-image: none;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .workspace,
body.dste-agent-mode:not(.dste-agent-home-mode) .canvas {
  background-image: none;
}
/* Conversation detail: keep Agent selection in the composer instead of a fixed catalog. */
body.dste-agent-mode:not(.dste-agent-home-mode) #chatAgentPicker.product-workbench-surface {
  display: none !important;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .agent-conversation-pane #chatPanel,
body.dste-agent-mode:not(.dste-agent-home-mode) .agent-conversation-pane #emptyState {
  top: 56px;
}

.composer-agent-select-wrap {
  position: relative;
  min-width: 0;
}

button.agent-select {
  display: inline-flex;
  align-items: center;
  max-width: 260px;
  min-height: 30px;
  padding: 4px 24px 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--agent-blue-text);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

button.agent-select::after {
  position: absolute;
  right: 8px;
  color: #64748b;
  content: "⌄";
  font-size: 14px;
  line-height: 1;
}

button.agent-select:hover,
button.agent-select[aria-expanded="true"] {
  border-color: #c9d8ea;
  background: #f3f7fc;
  color: #1f519e;
}

button.agent-select:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.composer-agent-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(620px, calc(100vw - 360px));
  max-height: 280px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #d7e0eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(23, 43, 70, .18);
}

.composer-agent-menu[hidden] {
  display: none !important;
}

.composer-agent-option {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 28px 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f8fafc;
  color: #344054;
  text-align: left;
  cursor: pointer;
}

.composer-agent-option span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-agent-option small {
  overflow: hidden;
  color: #7a889a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-agent-option:hover,
.composer-agent-option:focus-visible {
  border-color: #b9cbe2;
  background: #eef4fb;
  outline: none;
}

.composer-agent-option.active {
  border-color: #7ea4d4;
  background: #eaf2fc;
  color: #1f519e;
}

.composer-agent-option.active::after {
  position: absolute;
  top: 14px;
  right: 10px;
  color: #1f519e;
  content: "✓";
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .composer-agent-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(480px, calc(100vw - 180px));
  }
}
/* Hide the composer Agent selector once a detailed conversation is open. */
body.dste-agent-mode:not(.dste-agent-home-mode) .composer-agent-select-wrap {
  display: none !important;
}

/* detail-scrollbar-hidden-v1 */
body.dste-agent-mode:not(.dste-agent-home-mode) .agent-conversation-pane #chatPanel {
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.dste-agent-mode:not(.dste-agent-home-mode) .agent-conversation-pane #chatPanel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.agent-project-context-card {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #d7e1ee;
  border-left: 3px solid #3b6fae;
  border-radius: 6px;
  background: #f7f9fc;
  color: #172b4d;
}

.agent-project-context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #65748a;
  font-size: 12px;
}

.agent-project-context-head b {
  color: #345d91;
  font-size: 12px;
}

.agent-project-context-card h4 {
  margin: 0;
  color: #102a4f;
  font-size: 15px;
  line-height: 1.5;
}

.agent-project-context-grid {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(210px, 1.35fr) minmax(90px, .55fr) minmax(240px, 1.6fr);
  gap: 10px;
  min-width: 0;
}

.agent-project-context-grid > div {
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid #e1e7ef;
}

.agent-project-context-grid small,
.agent-project-context-grid strong {
  display: block;
}

.agent-project-context-grid small {
  margin-bottom: 4px;
  color: #7a889b;
  font-size: 11px;
}

.agent-project-context-grid strong {
  overflow-wrap: anywhere;
  color: #243b5a;
  font-size: 12px;
  line-height: 1.55;
}
