.dc-left-chat-root {
  --dc-left-chat-width: 430px;
  position: fixed;
  inset: 68px auto 18px 0;
  z-index: 11800;
  color: #f8fafc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}

.dc-left-chat-panel {
  width: var(--dc-left-chat-width);
  max-width: calc(100vw - 72px);
  height: 100%;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(13, 15, 17, 0.92);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(1.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.06);
  pointer-events: auto;
  transition: transform 0.18s ease, opacity 0.18s ease;
  box-sizing: border-box;
}

.dc-left-chat-panel,
.dc-left-chat-panel * {
  pointer-events: auto;
}

.dc-left-chat-root.is-collapsed .dc-left-chat-panel {
  transform: translateX(calc(-1 * var(--dc-left-chat-width) - 64px));
  opacity: 0;
  pointer-events: none;
}

.dc-left-chat-tab {
  position: absolute;
  left: 0;
  top: 72px;
  width: 38px;
  min-width: 38px;
  min-height: 92px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: rgba(19, 21, 24, 0.94);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 850;
  writing-mode: vertical-rl;
  letter-spacing: 0;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.dc-left-chat-root.is-collapsed .dc-left-chat-tab {
  display: flex;
  left: 0;
}

.dc-left-chat-root.is-collapsed .dc-left-chat-resize,
.dc-left-chat-root.is-collapsed .dc-left-chat-resize-outer {
  display: none !important;
}

.dc-left-chat-rail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.dc-left-chat-rail-head {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 9px 0 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.dc-left-chat-rail-head strong,
.dc-left-chat-head strong {
  min-width: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-left-chat-rail-head button,
.dc-left-chat-head button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.dc-left-chat-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.dc-left-chat-list-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 4px;
  align-items: stretch;
  margin-bottom: 6px;
}

.dc-left-chat-conversation {
  min-width: 0;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.dc-left-chat-conversation:hover,
.dc-left-chat-conversation.active {
  border-color: rgba(124, 232, 255, 0.22);
  background: rgba(124, 232, 255, 0.11);
  color: #e9fdff;
}

.dc-left-chat-conversation span,
.dc-left-chat-conversation small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-left-chat-conversation span {
  font-size: 12px;
  font-weight: 780;
}

.dc-left-chat-conversation small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  font-weight: 600;
}

.dc-left-chat-delete {
  align-self: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.dc-left-chat-delete:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 95, 95, 0.16);
  color: rgba(255, 255, 255, 0.9);
}

.dc-left-chat-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.dc-left-chat-head {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.dc-left-chat-model-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dc-left-chat-model-fixed {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid rgba(124, 232, 255, 0.18);
  border-radius: 8px;
  background: rgba(124, 232, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  box-sizing: border-box;
}

.dc-left-chat-model-fixed span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-left-chat-model-fixed strong {
  flex: 0 0 auto;
  color: #d9fbff;
  font-size: 12px;
  font-weight: 850;
}

.dc-left-chat-model-row select,
.dc-left-chat-compose textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
  box-sizing: border-box;
}

.dc-left-chat-model-row select {
  height: 32px;
  padding: 0 9px;
  font-size: 12px;
}

.dc-left-chat-model-row button,
.dc-left-chat-compose button {
  min-width: 0;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
}

.dc-left-chat-model-row button:hover:not(:disabled),
.dc-left-chat-compose button:hover:not(:disabled),
.dc-left-chat-rail-head button:hover,
.dc-left-chat-head button:hover,
.dc-left-chat-tab:hover {
  border-color: rgba(124, 232, 255, 0.34);
  background: rgba(124, 232, 255, 0.16);
  color: #e9fdff;
}

.dc-left-chat-model-row button:disabled,
.dc-left-chat-compose button:disabled,
.dc-left-chat-model-row select:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.dc-left-chat-settings-popover {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 122px;
  max-height: calc(100% - 170px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 24;
  border: 1px solid rgba(124, 232, 255, 0.2);
  border-radius: 10px;
  background: rgba(13, 15, 17, 0.97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.dc-left-chat-settings-popover[data-panel="skills"] {
  height: min(66vh, 720px);
}

.dc-left-chat-settings-window-head {
  height: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dc-left-chat-settings-window-head strong {
  min-width: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-left-chat-settings-window-head button {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.dc-left-chat-settings-window-head button:hover {
  border-color: rgba(124, 232, 255, 0.34);
  background: rgba(124, 232, 255, 0.16);
  color: #e9fdff;
}

.dc-left-chat-settings-popover .dc-left-chat-skill-panel,
.dc-left-chat-settings-popover .dc-left-chat-memory-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-bottom: 0;
  background: transparent;
}

.dc-left-chat-settings-popover[data-panel="skills"] .dc-left-chat-skill-panel {
  overflow: hidden;
}

.dc-left-chat-settings-popover[data-panel="skills"] .dc-left-chat-skill-grid {
  flex: 1;
  min-height: 0;
  max-height: none;
  align-content: start;
  grid-auto-rows: 40px;
}

.dc-left-chat-settings-popover[data-panel="skills"] .dc-left-chat-skill-row {
  align-self: start;
}

.dc-left-chat-settings-popover[data-panel="skills"] .dc-left-chat-skill {
  height: 40px;
}

.dc-left-chat-settings-popover[data-panel="skills"] .dc-left-chat-skill-compose {
  grid-template-columns: minmax(0, 1fr) 92px;
}

.dc-left-chat-settings-popover[data-panel="skills"] .dc-left-chat-skill-compose textarea {
  height: 108px;
}

.dc-left-chat-skill-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(124, 232, 255, 0.025);
}

.dc-left-chat-skill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dc-left-chat-skill-head strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 850;
}

.dc-left-chat-skill-head small {
  min-width: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-left-chat-skill-grid {
  max-height: 112px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  overflow: auto;
}

.dc-left-chat-skill-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  position: relative;
}

.dc-left-chat-skill-row.custom,
.dc-left-chat-skill-row.builtin {
  grid-template-columns: minmax(0, 1fr) 22px 22px;
}

.dc-left-chat-skill-row.editing .dc-left-chat-skill {
  border-color: rgba(124, 232, 255, 0.5);
  background: rgba(124, 232, 255, 0.18);
  color: #e9fdff;
}

.dc-left-chat-skill {
  min-width: 0;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  cursor: pointer;
}

.dc-left-chat-skill.active {
  border-color: rgba(124, 232, 255, 0.34);
  background: rgba(124, 232, 255, 0.16);
  color: #e9fdff;
}

.dc-left-chat-skill span,
.dc-left-chat-skill small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-left-chat-skill span {
  font-size: 11px;
  font-weight: 820;
}

.dc-left-chat-skill small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 620;
}

.dc-left-chat-skill-edit,
.dc-left-chat-skill-delete {
  width: 22px;
  min-width: 22px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  cursor: pointer;
}

.dc-left-chat-skill-edit:hover {
  border-color: rgba(124, 232, 255, 0.34);
  background: rgba(124, 232, 255, 0.16);
  color: #e9fdff;
}

.dc-left-chat-skill-delete:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 95, 95, 0.16);
  color: rgba(255, 255, 255, 0.9);
}

.dc-left-chat-skill-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 7px;
}

.dc-left-chat-skill-compose textarea {
  width: 100%;
  min-width: 0;
  height: 46px;
  resize: none;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.38;
  outline: none;
}

.dc-left-chat-skill-compose textarea:focus {
  border-color: rgba(124, 232, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 232, 255, 0.12);
}

.dc-left-chat-skill-compose div {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}

.dc-left-chat-skill-compose div.editing {
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.dc-left-chat-skill-compose button {
  min-width: 0;
  min-height: 0;
  padding: 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.dc-left-chat-skill-compose button:hover {
  border-color: rgba(124, 232, 255, 0.34);
  background: rgba(124, 232, 255, 0.16);
  color: #e9fdff;
}

.dc-left-chat-memory-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.dc-left-chat-memory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dc-left-chat-memory-head strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 850;
}

.dc-left-chat-memory-head small {
  min-width: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-left-chat-context-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 9px;
  border: 1px solid rgba(124, 232, 255, 0.14);
  border-radius: 8px;
  background: rgba(124, 232, 255, 0.07);
}

.dc-left-chat-context-panel[data-kind="warn"] {
  border-color: rgba(255, 220, 124, 0.24);
  background: rgba(255, 220, 124, 0.08);
}

.dc-left-chat-context-panel[data-kind="error"] {
  border-color: rgba(255, 160, 160, 0.28);
  background: rgba(255, 160, 160, 0.08);
}

.dc-left-chat-context-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.dc-left-chat-context-head strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 850;
}

.dc-left-chat-context-head small {
  min-width: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-left-chat-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.dc-left-chat-context-grid div {
  min-width: 0;
  padding: 6px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.dc-left-chat-context-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.44);
  font-size: 9px;
  font-weight: 650;
}

.dc-left-chat-context-grid strong {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 850;
}

.dc-left-chat-context-note {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  line-height: 1.45;
}

.dc-left-chat-context-note.warn {
  color: #ffe6a3;
}

.dc-left-chat-memory-list {
  max-height: 116px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
}

.dc-left-chat-messages,
.dc-left-chat-memory-list,
.dc-left-chat-skill-grid,
.dc-left-chat-list {
  scrollbar-width: auto;
  scrollbar-color: rgba(124, 232, 255, 0.6) rgba(255, 255, 255, 0.08);
}

.dc-left-chat-messages::-webkit-scrollbar,
.dc-left-chat-memory-list::-webkit-scrollbar,
.dc-left-chat-skill-grid::-webkit-scrollbar,
.dc-left-chat-list::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.dc-left-chat-messages::-webkit-scrollbar-track,
.dc-left-chat-memory-list::-webkit-scrollbar-track,
.dc-left-chat-skill-grid::-webkit-scrollbar-track,
.dc-left-chat-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.dc-left-chat-messages::-webkit-scrollbar-thumb,
.dc-left-chat-memory-list::-webkit-scrollbar-thumb,
.dc-left-chat-skill-grid::-webkit-scrollbar-thumb,
.dc-left-chat-list::-webkit-scrollbar-thumb {
  background: rgba(124, 232, 255, 0.6);
  border: 3px solid rgba(13, 15, 17, 0.92);
  border-radius: 999px;
}

.dc-left-chat-messages::-webkit-scrollbar-thumb:hover,
.dc-left-chat-memory-list::-webkit-scrollbar-thumb:hover,
.dc-left-chat-skill-grid::-webkit-scrollbar-thumb:hover,
.dc-left-chat-list::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 232, 255, 0.82);
}

.dc-left-chat-memory-empty {
  padding: 7px 8px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
}

.dc-left-chat-memory-item {
  padding: 7px 8px;
  border: 1px solid rgba(124, 232, 255, 0.14);
  border-radius: 8px;
  background: rgba(124, 232, 255, 0.08);
}

.dc-left-chat-memory-text {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dc-left-chat-memory-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.dc-left-chat-memory-meta button,
.dc-left-chat-message-tools button {
  min-width: 0;
  min-height: 22px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 760;
  cursor: pointer;
}

.dc-left-chat-memory-meta button:hover,
.dc-left-chat-message-tools button:hover {
  border-color: rgba(124, 232, 255, 0.28);
  background: rgba(124, 232, 255, 0.14);
  color: #e9fdff;
}

.dc-left-chat-memory-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 7px;
}

.dc-left-chat-memory-compose textarea {
  width: 100%;
  min-width: 0;
  height: 52px;
  resize: none;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.38;
  outline: none;
}

.dc-left-chat-memory-compose textarea:focus {
  border-color: rgba(124, 232, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 232, 255, 0.12);
}

.dc-left-chat-memory-compose div {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}

.dc-left-chat-memory-compose button {
  min-width: 0;
  min-height: 0;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.dc-left-chat-memory-compose button:hover {
  border-color: rgba(124, 232, 255, 0.34);
  background: rgba(124, 232, 255, 0.16);
  color: #e9fdff;
}

.dc-left-chat-messages {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 13px 12px;
  text-align: left;
  box-sizing: border-box;
}

.dc-left-chat-empty {
  margin: auto;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

.dc-left-chat-message {
  max-width: 94%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dc-left-chat-message.user {
  align-self: flex-end;
  align-items: flex-end;
}

.dc-left-chat-message.assistant,
.dc-left-chat-message.system {
  align-self: flex-start;
  align-items: flex-start;
}

.dc-left-chat-message-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 800;
}

.dc-left-chat-message-tools {
  display: none;
  gap: 4px;
}

.dc-left-chat-message:hover .dc-left-chat-message-tools {
  display: inline-flex;
}

.dc-left-chat-message-content {
  max-width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.58;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  user-select: text;
  -webkit-user-select: text;
}

.dc-left-chat-message.streaming .dc-left-chat-message-content::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 4px;
  border-right: 2px solid rgba(124, 232, 255, 0.82);
  vertical-align: -2px;
  animation: dc-left-chat-caret 0.9s steps(1) infinite;
}

@keyframes dc-left-chat-caret {
  50% {
    opacity: 0;
  }
}

.dc-left-chat-message.user .dc-left-chat-message-content {
  border-color: rgba(124, 232, 255, 0.22);
  background: rgba(124, 232, 255, 0.15);
  color: #f3feff;
}

.dc-left-chat-message.system .dc-left-chat-message-content {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.dc-left-chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 8px;
  padding: 10px 12px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.dc-left-chat-compose textarea {
  height: 70px;
  resize: none;
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.45;
}

.dc-left-chat-compose textarea:focus,
.dc-left-chat-model-row select:focus {
  border-color: rgba(124, 232, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 232, 255, 0.12);
}

.dc-left-chat-compose button {
  height: 70px;
  align-self: stretch;
  background: rgba(124, 232, 255, 0.15);
}

.dc-left-chat-footer {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 10px;
  box-sizing: border-box;
}

.dc-left-chat-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dc-left-chat-tool-button {
  height: 26px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
}

.dc-left-chat-tool-button small {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 850;
}

.dc-left-chat-tool-button:hover,
.dc-left-chat-tool-button.active {
  border-color: rgba(124, 232, 255, 0.34);
  background: rgba(124, 232, 255, 0.16);
  color: #e9fdff;
}

.dc-left-chat-tool-button.active small {
  background: rgba(124, 232, 255, 0.2);
  color: #d9fbff;
}

.dc-left-chat-status {
  flex: 1;
  min-width: 0;
  min-height: 22px;
  padding: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}

.dc-left-chat-status[data-kind="ok"] {
  color: #9ff7d1;
}

.dc-left-chat-status[data-kind="warn"] {
  color: #ffe6a3;
}

.dc-left-chat-status[data-kind="error"] {
  color: #ffb6b6;
}

.dc-left-chat-panel > .dc-left-chat-resize {
  display: none;
}

.dc-left-chat-resize {
  position: absolute;
  top: 9%;
  right: -28px;
  width: 30px;
  height: 82%;
  cursor: ew-resize;
  background: rgba(18, 20, 23, 0.96);
  z-index: 12;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

.dc-left-chat-resize::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 78px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.dc-left-chat-resize:hover::after,
body.dc-left-chat-resizing .dc-left-chat-resize::after {
  background: rgba(126, 211, 255, 0.72);
}

body.dc-left-chat-resizing {
  cursor: ew-resize !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.dc-left-chat-root * {
  box-sizing: border-box;
}

.dc-left-chat-root textarea,
.dc-left-chat-root select,
.dc-left-chat-root button {
  font-family: inherit;
}

@media (max-width: 820px) {
  .dc-left-chat-root {
    inset: 62px 0 12px 0;
    --dc-left-chat-width: min(92vw, 430px);
  }

  .dc-left-chat-panel {
    width: min(92vw, var(--dc-left-chat-width));
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
