.manage-shell {
  --row: #0f2438;
  --row-alt: #0d2033;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px 16px 22px;
}

.manage-shell.manage-shell--panel-scroll .manage-tags {
  flex: 0 0 auto;
}

.manage-shell.manage-shell--panel-scroll.manage-shell--knowledge-create .manage-content {
  overflow: visible;
}

.manage-shell.manage-shell--panel-scroll.manage-shell--knowledge-create .manage-nav {
  height: auto;
  max-height: none;
}

.manage-shell.manage-shell--panel-scroll.manage-shell--knowledge-create .manage-content > .manage-knowledge-create {
  height: auto;
  max-height: none;
  overflow: visible;
}

.manage-tag--ask-dave {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.03em;
  min-width: 0 !important;
}

.manage-tag--ask-dave:hover,
.manage-tag--ask-dave:focus-visible {
  color: #f8fdff;
  border-color: rgba(91, 209, 215, 0.55);
  background: linear-gradient(135deg, rgba(19, 38, 64, 0.95), rgba(15, 23, 42, 0.9));
  transform: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  outline: none;
}

.manage-tag__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.manage-tag__icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.manage-hero {
  background: linear-gradient(135deg, rgba(91, 209, 215, 0.12), rgba(38, 94, 217, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.manage-hero h1 {
  margin: 6px 0;
  font-size: 28px;
}

.hero-metrics {
  display: grid;
  grid-auto-flow: column;
  gap: 16px;
}

.hero-metrics div {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  min-width: 90px;
}

.metric {
  display: block;
  font-size: 26px;
  font-weight: 700;
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(234, 242, 255, 0.8);
  margin: 0;
}

.manage-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: flex-start;
  min-height: 0;
}

.manage-shell--knowledge-create .manage-body {
  align-items: flex-start;
}

.manage-shell--knowledge-create {
  --knowledge-create-shell-height: calc(100dvh - 140px);
}

.manage-shell--knowledge-create .manage-content {
  min-height: 0;
}

.manage-shell--knowledge-create .manage-content > .manage-knowledge-create {
  flex: 0 0 auto;
  height: var(--knowledge-create-shell-height);
  max-height: var(--knowledge-create-shell-height);
  overflow: hidden;
}

.manage-shell--knowledge-create .manage-nav {
  align-self: flex-start;
  height: var(--knowledge-create-shell-height);
  max-height: var(--knowledge-create-shell-height);
  overflow-y: auto;
}

.manage-nav {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 209, 215, 0.4) transparent;
}

.manage-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.manage-card {
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bot-manage-header h2 {
  margin: 6px 0 4px;
  font-size: 28px;
}

.bot-manage-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.bot-manage-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.bot-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bot-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.bot-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bot-action--primary {
  border: none;
  background: linear-gradient(135deg, #6bc8ff, #32c9ad);
  color: #03131a;
}

.bot-action--ghost {
  background: var(--panel-2);
}

.bot-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.bot-action__icon svg {
  width: 16px;
  height: 16px;
}

.manage-knowledge-card .manage-knowledge-actions {
  margin-bottom: 6px;
  margin-top: 6px;
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 2px;
  border-bottom: none;
}

.manage-card.manage-knowledge-card {
  padding-top: 14px;
  gap: 0 !important;
}

.manage-knowledge-card .new-client-button {
  gap: 0.4rem;
}

.manage-knowledge-card .manage-knowledge-actions .text-action {
  width: auto;
  min-width: 0 !important;
  flex: 0 0 auto;
  justify-content: flex-start;
  border: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.manage-knowledge-card .manage-knowledge-actions .text-action:hover,
.manage-knowledge-card .manage-knowledge-actions .text-action:focus-visible,
.manage-knowledge-card .manage-knowledge-actions .text-action:active {
  background: transparent;
  box-shadow: none;
  transform: none;
  font-weight: 700;
}

.manage-knowledge-card .bot-manage-table-wrapper {
  margin-top: 0;
  border-top: none;
}

.manage-knowledge-card .manage-table-wrapper,
.manage-knowledge-card .knowledge-table-wrapper {
  border: none;
  border-radius: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
}

.bot-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bot-search__field {
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: width 0.2s ease, opacity 0.2s ease;
}

.bot-search.is-open .bot-search__field {
  width: 220px;
  opacity: 1;
  pointer-events: auto;
}

.bot-icon-button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel-2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bot-icon-button svg {
  width: 18px;
  height: 18px;
}

.bot-manage-table-wrapper {
  margin-top: 14px;
  position: relative;
  overflow: visible;
}

.bot-chat-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2200;
}

.bot-chat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.7);
}

.bot-chat-modal__panel {
  position: relative;
  width: 80vw;
  height: 80vh;
  display: flex;
  flex-direction: column;
  background: rgba(12, 18, 34, 0.96);
  border: 1px solid rgba(91, 209, 215, 0.3);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: width 220ms ease;
}

.bot-chat-modal.bot-chat-modal--artifacts .bot-chat-modal__panel {
  width: min(96vw, 1800px);
  height: min(94vh, 1100px);
}

.bot-chat-modal:not(.bot-chat-modal--artifacts) .bot-chat-modal__panel {
  width: min(520px, calc(100vw - 32px));
  height: auto;
  max-height: 85vh;
}

.bot-chat-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(91, 209, 215, 0.16), rgba(37, 99, 235, 0.18));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bot-chat-modal__title {
  margin: 0;
}

.bot-chat-modal__close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #eaf2ff;
  border-radius: 10px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.bot-chat-identity {
  padding: 16px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.bot-chat-identity__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bot-chat-layout {
  flex: 1;
  display: grid;
  --bot-chat-divider-width: 12px;
  --bot-chat-chat-width: 42%;
  grid-template-columns: minmax(240px, var(--bot-chat-chat-width)) var(--bot-chat-divider-width) minmax(240px, 1fr);
  min-height: 0;
  transition: grid-template-columns 220ms ease;
}

.bot-chat-modal:not(.bot-chat-modal--artifacts) .bot-chat-layout {
  grid-template-columns: minmax(240px, 1fr) 0px 0px;
}

.bot-chat__pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bot-chat__pane--chat {
  background: rgba(10, 16, 30, 0.95);
}

.bot-chat__conversation {
  flex: 0 0 70%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.bot-chat__pane--chat.bot-chat__pane--no-files .bot-chat__conversation {
  flex: 1 1 auto;
}

.bot-chat__files {
  flex: 0 0 30%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 22, 0.88);
}

.bot-chat__files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bot-chat__files-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bot-chat__files-title {
  margin: 0 0 2px;
  font-size: 14px;
}

.bot-chat__files-subtitle {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.bot-chat__files-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 12px;
}

.bot-chat__files-error {
  margin: 8px 14px 0;
  font-size: 12px;
  color: var(--danger);
}

.bot-chat__upload-button {
  position: relative;
  font-size: 12px;
  line-height: 1;
  min-height: 32px;
  padding: 6px 14px;
}

.bot-chat__update-button {
  font-size: 12px;
  line-height: 1;
  min-height: 32px;
  padding: 6px 14px;
}

.bot-chat__upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}

.bot-chat__files .knowledge-source-header,
.bot-chat__files .knowledge-tree-node {
  grid-template-columns: minmax(200px, 1fr) minmax(70px, 90px);
  column-gap: 6px;
}

.knowledge-tree-cell--size {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.knowledge-tree-cell--enabled {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.bot-chat__files .knowledge-tree-cell--enabled {
  justify-content: flex-start;
}

.bot-chat__files .knowledge-tree-cell--name {
  justify-content: flex-end;
  text-align: right;
}

.bot-chat__files .knowledge-tree-node.is-root .knowledge-tree-cell--name,
.bot-chat__files .knowledge-tree-node.folder .knowledge-tree-cell--name {
  justify-content: flex-start;
  text-align: left;
}

.bot-chat__file-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bot-chat__file-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.bot-chat__file-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.bot-chat__file-delete:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bot-chat__pane--artifacts {
  background: rgba(8, 12, 22, 0.92);
  transition: opacity 200ms ease, transform 200ms ease;
}

.bot-chat-modal:not(.bot-chat-modal--artifacts) .bot-chat__pane--artifacts {
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  overflow: hidden;
}

.bot-chat__divider {
  position: relative;
  width: var(--bot-chat-divider-width);
  background: rgba(255, 255, 255, 0.04);
  transition: opacity 200ms ease;
  cursor: col-resize;
  touch-action: none;
}

.bot-chat__divider::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.bot-chat-modal:not(.bot-chat-modal--artifacts) .bot-chat__divider {
  opacity: 0;
  pointer-events: none;
}

body.bot-chat--resizing {
  cursor: col-resize;
  user-select: none;
}

.bot-chat__body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
}

.bot-chat__message {
  display: flex;
}

.bot-chat__message--user {
  justify-content: flex-end;
}

.bot-chat__message--bot .bot-chat__bubble {
  background: rgba(91, 209, 215, 0.15);
  border: 1px solid rgba(91, 209, 215, 0.35);
}

.bot-chat__message--note .bot-chat__bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bot-chat__message--user .bot-chat__bubble {
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(37, 99, 235, 0.45);
}

.bot-chat__bubble {
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.4;
  max-width: 85%;
  white-space: pre-wrap;
}

.bot-chat__footer {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.9);
}

.bot-chat__avatar {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  flex-shrink: 0;
  align-self: center;
  background: rgba(255, 255, 255, 0.08);
}

.bot-chat__input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #eaf2ff;
  padding: 10px 12px;
  min-height: 54px;
  resize: none;
  line-height: 1.4;
}

.bot-chat__send {
  border-radius: 10px;
  border: 1px solid rgba(91, 209, 215, 0.5);
  background: linear-gradient(135deg, rgba(91, 209, 215, 0.3), rgba(37, 99, 235, 0.25));
  color: #eaf2ff;
  padding: 10px 14px;
  font-weight: 600;
}

.bot-chat__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bot-chat__artifact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 0;
}

.bot-chat__artifact-title {
  margin: 0 0 4px;
  font-size: 16px;
}

.bot-chat__artifact-subtitle {
  margin: 0;
  color: rgba(226, 232, 240, 0.7);
  font-size: 12px;
}

.bot-chat__artifact-tabs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 0;
  flex-wrap: nowrap;
}

.bot-chat__artifact-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.bot-chat__artifact-tab {
  border: 1px solid rgba(91, 209, 215, 0.3);
  background: rgba(91, 209, 215, 0.08);
  color: rgba(226, 232, 240, 0.86);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.bot-chat__artifact-tab.is-active {
  background: linear-gradient(135deg, rgba(91, 209, 215, 0.22), rgba(37, 99, 235, 0.2));
  border-color: rgba(91, 209, 215, 0.55);
  color: #eaf2ff;
}

.bot-chat__artifact-tabs-row .bot-chat__activate-button {
  margin-left: auto;
  border-color: rgba(34, 197, 94, 0.65);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.9), rgba(34, 197, 94, 0.85));
  color: #f0fff6;
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.2);
  white-space: nowrap;
}

.bot-chat__artifact-tabs-row .bot-chat__activate-button:hover:not(:disabled),
.bot-chat__artifact-tabs-row .bot-chat__activate-button:focus-visible:not(:disabled) {
  border-color: rgba(74, 222, 128, 0.8);
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.95), rgba(22, 163, 74, 0.9));
  color: #f0fff6;
}

.bot-chat__artifact-tabs-row .bot-chat__activate-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.bot-chat__artifact-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px 18px;
}

.bot-chat__profile-tab {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-chat__edit-banner {
  border: 1px solid rgba(91, 209, 215, 0.35);
  background: linear-gradient(135deg, rgba(91, 209, 215, 0.12), rgba(37, 99, 235, 0.1));
  color: rgba(234, 242, 255, 0.92);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.bot-chat__profile-summary {
  display: grid;
  gap: 10px;
}

.bot-chat__profile-summary .botbuilder-identity__row,
.bot-chat__personality-grid .botbuilder-identity__row {
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
}

.bot-chat__profile-summary .botbuilder-input.botbuilder-input--short,
.bot-chat__personality-grid .botbuilder-input.botbuilder-input--short {
  width: 100%;
  max-width: none;
}

.bot-chat__personality-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.45);
}

.bot-chat__personality-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bot-chat__personality-title {
  margin: 0;
  font-size: 14px;
}

.bot-chat__personality-subtitle {
  margin: 0;
  color: rgba(226, 232, 240, 0.7);
  font-size: 12px;
  line-height: 1.35;
}

.bot-chat__profile-job-description {
  min-height: 120px;
  resize: vertical;
}

.bot-chat__personality-grid {
  display: grid;
  gap: 10px;
}

.bot-chat__job-description-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 14px 10px;
  background: rgba(15, 23, 42, 0.45);
}

.bot-chat__job-description-summary {
  margin: 0 0 12px;
  color: rgba(234, 242, 255, 0.9);
  line-height: 1.45;
}

.bot-chat__job-description-list {
  margin: 0 0 0 18px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.bot-chat__job-description-list li {
  color: rgba(234, 242, 255, 0.86);
  line-height: 1.4;
}

.bot-chat__knowledge-tab {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-chat__knowledge-center {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  background: rgba(12, 18, 32, 0.68);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-chat__knowledge-center-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bot-chat__knowledge-center-title {
  margin: 2px 0 4px;
  color: rgba(244, 248, 255, 0.96);
  font-size: 15px;
}

.bot-chat__knowledge-center-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.bot-chat__knowledge-center-stat {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(8, 12, 22, 0.6);
  display: grid;
  gap: 4px;
}

.bot-chat__knowledge-center-stat-label {
  color: rgba(189, 205, 229, 0.8);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bot-chat__knowledge-center-stat-value {
  color: rgba(244, 248, 255, 0.98);
  font-size: 19px;
  line-height: 1;
}

.bot-chat__knowledge-center-last-updated {
  margin: 0;
}

.bot-chat__knowledge-center-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 10px;
}

.bot-chat__knowledge-center-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.58);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}

.bot-chat__knowledge-center-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bot-chat__knowledge-center-panel-header h5 {
  margin: 0;
  font-size: 13px;
  color: rgba(240, 246, 255, 0.95);
}

.bot-chat__knowledge-center-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.bot-chat__knowledge-center-list--sources {
  gap: 7px;
}

.bot-chat__knowledge-center-list--memory {
  gap: 8px;
}

.bot-chat__knowledge-center-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 9px;
  display: grid;
  gap: 5px;
}

.bot-chat__knowledge-center-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bot-chat__knowledge-center-item-title {
  margin: 0;
  color: rgba(243, 248, 255, 0.96);
  font-size: 13px;
  line-height: 1.35;
}

.bot-chat__knowledge-center-item-details {
  margin: 0;
  color: rgba(218, 228, 244, 0.86);
  font-size: 12px;
  line-height: 1.35;
}

.bot-chat__knowledge-center-item-meta {
  margin: 0;
  color: rgba(169, 186, 210, 0.82);
  font-size: 11px;
}

.bot-chat__knowledge-center-item-provenance {
  margin: 0;
  color: rgba(191, 206, 228, 0.9);
  font-size: 11px;
}

.bot-chat__knowledge-center-time {
  color: rgba(180, 195, 217, 0.78);
  font-size: 11px;
  white-space: nowrap;
}

.bot-chat__knowledge-center-badge,
.bot-chat__knowledge-center-source-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bot-chat__knowledge-center-badge {
  color: rgba(223, 233, 248, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-chat__knowledge-center-badge--profile {
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(96, 165, 250, 0.35);
}

.bot-chat__knowledge-center-badge--knowledge {
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(74, 222, 128, 0.3);
}

.bot-chat__knowledge-center-badge--chat {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.28);
}

.bot-chat__knowledge-center-badge--memory {
  color: #fce7f3;
  background: rgba(236, 72, 153, 0.16);
  border-color: rgba(244, 114, 182, 0.28);
}

.bot-chat__knowledge-center-badge--system {
  color: #ede9fe;
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(129, 140, 248, 0.28);
}

.bot-chat__knowledge-center-source-badge {
  color: rgba(217, 228, 246, 0.9);
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.bot-chat__knowledge-center-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.bot-chat__knowledge-center-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  color: rgba(215, 225, 241, 0.9);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.bot-chat__knowledge-center-empty {
  margin: 0;
}

.bot-chat__knowledge-center-loading {
  min-height: 120px;
}

.bot-chat__knowledge-toolbar {
  margin-bottom: 0;
}

.bot-chat__knowledge-search-input {
  min-width: 220px;
  max-width: 320px;
  height: 34px;
  min-height: 34px;
  line-height: 1.2;
  font-size: 13px;
}

.bot-chat__knowledge-table-wrapper {
  min-height: 280px;
}

.bot-chat__knowledge-select-col {
  width: 74px;
  max-width: 74px;
}

.bot-chat__knowledge-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.bot-chat__knowledge-hint {
  margin: 6px 2px 0;
}

.bot-chat__knowledge-tab .knowledge-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 220px;
  color: var(--muted);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(8, 12, 22, 0.62);
}

.bot-chat__knowledge-tab .new-client-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bot-chat__knowledge-tab .new-client-button svg {
  width: 14px;
  height: 14px;
}

.bot-chat__connectors-tab {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-chat__connectors-toolbar {
  margin-bottom: 0;
}

.bot-chat__connectors-search-input {
  min-width: 220px;
  max-width: 320px;
  height: 34px;
  min-height: 34px;
  line-height: 1.2;
  font-size: 13px;
}

.bot-chat__connectors-table-wrapper {
  min-height: 280px;
}

.bot-chat__connectors-select-col {
  width: 74px;
  max-width: 74px;
}

.bot-chat__connectors-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.bot-chat__connectors-hint {
  margin: 6px 2px 0;
}

.bot-chat__artifact-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-chat__profile-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-chat__profile-toolbar--header {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
}

.bot-chat__profile-editor {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #eaf2ff;
  padding: 10px 12px;
  min-height: 180px;
  resize: vertical;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.bot-chat__profile-status {
  font-size: 12px;
  color: rgba(234, 242, 255, 0.7);
}

.bot-chat__profile-preview {
  margin-top: 6px;
}

.bot-chat__artifact-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(91, 209, 215, 0.3);
  background: rgba(91, 209, 215, 0.08);
}

.bot-chat__artifact-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  animation: bot-manage-spin 0.9s linear infinite;
  flex-shrink: 0;
}

.bot-chat__artifact-loading-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bot-chat__artifact-loading-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #eaf2ff;
}

.bot-chat__artifact-loading-subtitle {
  margin: 0;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.72);
}

.bot-chat__artifact-placeholder {
  color: rgba(226, 232, 240, 0.6);
  font-size: 13px;
}

.bot-chat__artifact-content h1,
.bot-chat__artifact-content h2,
.bot-chat__artifact-content h3,
.bot-chat__artifact-content h4 {
  margin: 12px 0 8px;
  color: #eaf2ff;
}

.bot-chat__artifact-content p {
  margin: 0 0 10px;
  color: rgba(226, 232, 240, 0.85);
}

.bot-chat__artifact-content ul {
  margin: 0 0 12px 18px;
}

.bot-chat__artifact-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 4px;
  border-radius: 6px;
  font-size: 12px;
}

.bot-chat__artifact-content pre {
  background: rgba(8, 12, 22, 0.8);
  padding: 10px 12px;
  border-radius: 10px;
  overflow-x: auto;
}

.bot-manage-table-scroll {
  overflow: visible;
}

.bot-manage-table {
  min-width: 640px;
  table-layout: auto;
  width: 100%;
}

.bot-manage-table-wrapper .host-actions__menu {
  z-index: 999;
}

.hosts-table-wrapper .host-actions__menu {
  z-index: 999;
}

.hosts-table-wrapper .host-actions__menu {
  z-index: 999;
}

.bot-manage-table thead th {
  font-size: 12px;
  letter-spacing: 0.06em;
}

.bot-manage-row {
  background: var(--row);
  cursor: pointer;
}

.bot-manage-row:nth-child(even) {
  background: var(--row-alt);
}

.bot-manage-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.bot-cell {
  font-weight: 600;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-manage-table th.bot-column--numeric,
.bot-manage-table td.bot-cell--numeric {
  text-align: center;
}

.bot-manage-table th.bot-column--numeric .manage-sort-button {
  justify-content: center;
  width: 100%;
}

.knowledge-set {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.knowledge-health-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.knowledge-health-ready {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.knowledge-health-ready svg {
  width: 18px;
  height: 18px;
  display: block;
}

.bot-empty-state {
  margin-top: 16px;
  padding: 12px 0;
  border: none;
  background: transparent;
  text-align: center;
}

.bot-empty-state__label {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bot-empty-state__value {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.bot-manage-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(6, 10, 20, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.bot-manage-table-wrapper.is-loading .bot-manage-loading {
  opacity: 1;
  pointer-events: auto;
}

.bot-manage-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  animation: bot-manage-spin 0.9s linear infinite;
}

@keyframes bot-manage-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.grid-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.1rem;
}

.action-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.host-count {
  gap: 0.4rem;
  cursor: default;
}

.host-count svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.text-action.host-count {
  cursor: default;
}

.grid-divider {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0.2rem 0 0.35rem;
}

.locations-table-wrapper {
  position: relative;
  min-height: 240px;
}

.locations-loading-scrim {
  position: absolute;
  inset: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(6, 10, 20, 0.65);
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.locations-table-wrapper.is-loading .locations-loading-scrim {
  opacity: 1;
  pointer-events: auto;
}

.locations-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  animation: bot-manage-spin 0.9s linear infinite;
}

.hosts-table-wrapper {
  position: relative;
  min-height: 240px;
  overflow: visible;
}

.hosts-table-scroll {
  overflow: visible;
}

.hosts-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 12px;
  color: var(--text);
  flex-wrap: wrap;
}

.hosts-pagination__summary {
  font-size: 12px;
  color: var(--muted);
}

.hosts-pagination__controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hosts-pagination__current {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hosts-loading-scrim {
  position: absolute;
  inset: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(6, 10, 20, 0.65);
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.hosts-table-wrapper.is-loading .hosts-loading-scrim {
  opacity: 1;
  pointer-events: auto;
}

.hosts-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  animation: bot-manage-spin 0.9s linear infinite;
}

.manage-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
}

.manage-modal--over-chat {
  z-index: 2300;
}

.manage-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.7);
}

.manage-modal__panel {
  position: relative;
  width: min(680px, 92vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--panel);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.manage-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.manage-modal__title {
  margin: 0;
}

.manage-modal__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
}

.manage-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.manage-bot-learning-modal__panel {
  width: min(940px, 94vw);
}

.manage-bot-learning-modal__body {
  display: grid;
  gap: 12px;
  align-content: start;
}

.manage-bot-learning-modal__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.manage-bot-learning-modal__stat {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 10px;
  display: grid;
  gap: 3px;
}

.manage-bot-learning-modal__stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(189, 205, 229, 0.8);
}

.manage-bot-learning-modal__stat-value {
  font-size: 18px;
  line-height: 1;
  color: rgba(244, 248, 255, 0.96);
}

.manage-bot-learning-modal__section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  display: grid;
  gap: 10px;
}

.manage-bot-learning-modal__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.manage-bot-learning-modal__section-header h4 {
  margin: 0;
  font-size: 14px;
}

.manage-bot-learning-modal__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.manage-bot-learning-modal__item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.015);
  padding: 8px 9px;
  display: grid;
  gap: 5px;
}

.manage-bot-learning-modal__item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.manage-bot-learning-modal__item-header strong {
  color: rgba(243, 248, 255, 0.96);
  line-height: 1.35;
}

.manage-bot-learning-modal__item-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(221, 230, 243, 0.88);
  white-space: pre-wrap;
}

.manage-bot-learning-modal__item-meta {
  margin: 0;
  font-size: 11px;
  color: rgba(171, 187, 209, 0.86);
}

.host-deactivate-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  min-height: 32px;
}

.host-deactivate-status .is-complete {
  color: var(--accent);
}

.host-deactivate-body {
  max-height: none;
  overflow: visible;
}

.host-deactivate-footer {
  border-top: none;
  min-height: 44px;
  align-items: center;
}

.host-deactivate-footer.is-hidden .platform-save-button {
  visibility: hidden;
  pointer-events: none;
}

.botbuilder-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.botbuilder-stepper__item {
  flex: 1 1 0;
  min-width: 180px;
}

.botbuilder-step.is-error {
  border-radius: 16px;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.7);
  background: rgba(248, 113, 113, 0.05);
}

.botbuilder-identity {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.botbuilder-avatar-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.botbuilder-avatar {
  width: 128px;
  height: 128px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, #32c9ad, #6bc8ff);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.botbuilder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.botbuilder-avatar__change {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.botbuilder-avatar__change:hover,
.botbuilder-avatar__change:focus-visible {
  text-decoration: underline;
  outline: none;
}

.botbuilder-identity__form {
  display: grid;
  gap: 12px;
  align-self: center;
}

.botbuilder-identity__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.botbuilder-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.botbuilder-identity__row .botbuilder-label {
  font-size: 18px;
  letter-spacing: 0;
}

.botbuilder-input.botbuilder-input--short {
  max-width: 240px;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  line-height: 36px;
  font-size: 18px;
  border-radius: 8px;
}

.bot-edit-panel-card .botbuilder-identity {
  grid-template-columns: 128px minmax(280px, 420px) minmax(0, 1fr);
}

.bot-edit-panel-card .botbuilder-avatar-tile {
  grid-column: 1;
  grid-row: 1;
}

.bot-edit-panel-card .botbuilder-identity__form {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.bot-edit-panel-card .botbuilder-identity__core {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.bot-edit-panel-card .botbuilder-identity__core h3 {
  margin: 0;
}

.bot-edit-panel-card .botbuilder-identity__core .botbuilder-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bot-edit-panel-card .botbuilder-identity__core .botbuilder-input {
  width: 100%;
  max-width: none;
}

.botbuilder-input.botbuilder-input--two-lines {
  overflow-y: auto;
  resize: none;
  min-height: 72px;
}

.botbuilder-input.botbuilder-input--single {
  min-height: 36px;
  height: 36px;
  line-height: 36px;
}

.botbuilder-input.botbuilder-input--select-single,
.botbuilder-input.botbuilder-input--select-readable,
.input-group select {
  min-height: 36px;
  height: 36px;
  font-size: 16px;
}

.knowledge-field-group {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.manage-connectors-create .knowledge-field-group {
  grid-template-columns: minmax(0, 1fr);
}

.manage-connectors-create__provider-well {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 375px);
  max-width: 375px;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(7, 12, 24, 0.55);
}

.manage-connectors-create__provider-well .eyebrow {
  margin-bottom: 2px;
}

.manage-connectors-create .knowledge-field-group > .knowledge-field {
  width: min(100%, 375px);
  max-width: 375px;
}

.manage-connectors-create .knowledge-field .botbuilder-input,
.manage-connectors-create .knowledge-field .knowledge-input--full,
.manage-connectors-create .knowledge-field .platform-save-button {
  width: 100%;
  max-width: none;
}

.manage-knowledge-create .knowledge-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: stretch;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.knowledge-field-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.manage-knowledge-create .knowledge-create-layout .knowledge-field-column--details {
  grid-column: 1;
}

.manage-knowledge-create .knowledge-create-layout .knowledge-field-column--sources {
  grid-column: 2;
}

.manage-knowledge-create .knowledge-create-layout .knowledge-field-column {
  height: auto;
  min-height: 0;
}

.manage-knowledge-create .knowledge-create-layout .knowledge-field-column--sources .knowledge-field {
  flex: 1 1 auto;
  min-height: 0;
}

.manage-knowledge-create > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.knowledge-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.knowledge-field-row--split .botbuilder-input {
  max-width: none;
  width: 100%;
}

.knowledge-input--full {
  max-width: none;
  width: 100%;
}

.knowledge-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.knowledge-tree-panel {
  position: relative;
  width: 100%;
  min-height: 260px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 12, 24, 0.55);
}

.manage-knowledge-create .knowledge-create-layout .knowledge-tree-panel {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
}

.manage-knowledge-create .knowledge-create-layout .knowledge-field-column--details .knowledge-field:last-child {
  flex: 1 1 auto;
  min-height: 0;
}

.manage-knowledge-create .knowledge-create-layout .knowledge-field-column--details .knowledge-field:last-child .botbuilder-input--two-lines {
  min-height: 0;
  height: 100%;
}

.knowledge-tree-panel.is-disabled {
  cursor: not-allowed;
}

.knowledge-source-header {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(200px, 2fr) minmax(180px, 1.4fr) minmax(120px, 0.9fr);
  gap: 12px;
  padding: 6px 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
  color: rgba(234, 242, 255, 0.65);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.knowledge-source-header__cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-tree {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.knowledge-tree-node {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr);
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 13px;
  transition: background 0.08s ease, border-color 0.08s ease;
  cursor: pointer;
}

.knowledge-tree-node:hover {
  background: rgba(255, 255, 255, 0.05);
}

.knowledge-tree-node.is-selected {
  background: rgba(91, 209, 215, 0.12);
  border-color: rgba(91, 209, 215, 0.25);
}

.knowledge-tree-node.is-root .tree-label,
.knowledge-tree-node.folder .tree-label {
  font-weight: 600;
}

.manage-knowledge-create .knowledge-tree-node.folder .tree-label,
.manage-knowledge-create .knowledge-tree-node.is-root .tree-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.knowledge-tree-node.source {
  color: rgba(234, 242, 255, 0.9);
}

.manage-knowledge-create .knowledge-tree-node.is-added .knowledge-tree-cell--name {
  color: #79d89a;
}

.manage-knowledge-create .knowledge-tree-node.is-added .knowledge-tree-cell--name .tree-label {
  color: inherit;
}

.manage-knowledge-create .knowledge-tree-node.is-deleted .knowledge-tree-cell {
  color: #f38c8c;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.manage-knowledge-create .knowledge-tree-node.is-deleted .tree-icon,
.manage-knowledge-create .knowledge-tree-node.is-deleted .tree-toggle {
  color: #f38c8c;
}

.knowledge-tree-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.knowledge-tree-cell--name {
  font-weight: 600;
}

.manage-knowledge-create .knowledge-tree-cell--name.has-inline-editor {
  align-items: center;
  flex-wrap: wrap;
  column-gap: 6px;
  row-gap: 4px;
}

.manage-knowledge-create .tree-inline-editor {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 240px;
  width: auto;
  min-width: 0;
}

.manage-knowledge-create .tree-inline-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 26px;
  height: 26px;
  line-height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 12, 28, 0.6);
  color: var(--text);
  padding: 0 8px;
  font-size: 12px;
}

.manage-knowledge-create .tree-inline-input:focus,
.manage-knowledge-create .tree-inline-input:focus-visible {
  outline: none;
  border-color: rgba(91, 209, 215, 0.8);
}

.manage-knowledge-create .tree-inline-action {
  width: 24px;
  height: 24px;
  min-width: 0 !important;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(7, 20, 44, 0.9);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.manage-knowledge-create .tree-inline-action:hover,
.manage-knowledge-create .tree-inline-action:focus-visible {
  border-color: rgba(91, 209, 215, 0.8);
  color: rgba(91, 209, 215, 0.95);
  outline: none;
}

.manage-knowledge-create .tree-inline-error {
  flex-basis: 100%;
  margin-left: 38px;
  font-size: 11px;
  line-height: 1.2;
  color: #f38c8c;
}

.manage-knowledge-create .knowledge-tree-validation {
  margin: 6px 0 0;
}

.knowledge-tree-cell--description {
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}

.knowledge-tree-cell--source {
  font-size: 12px;
  color: rgba(234, 242, 255, 0.9);
}

.knowledge-tree-cell--date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.knowledge-tree-cell--source-type {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.knowledge-tree-cell--status {
  font-size: 12px;
  color: rgba(234, 242, 255, 0.9);
  white-space: nowrap;
}

.manage-knowledge-create .knowledge-tree-cell--status.status-added {
  color: #79d89a;
}

.manage-knowledge-create .knowledge-tree-cell--status.status-uploading {
  color: #67d4f4;
}

.manage-knowledge-create .knowledge-tree-cell--status.status-indexing {
  color: #f3c77d;
}

.manage-knowledge-create .knowledge-tree-cell--status.status-ready {
  color: #79d89a;
}

.manage-knowledge-create .knowledge-tree-cell--status.status-uploaded {
  color: var(--muted);
}

.manage-knowledge-create .knowledge-tree-cell--status.status-failed,
.manage-knowledge-create .knowledge-tree-cell--status.status-deleted {
  color: #f38c8c;
}

.knowledge-tree-children {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.knowledge-tree-empty {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
}

.manage-knowledge-create .tree-toggle {
  width: 16px;
  height: 16px;
  min-width: 0 !important;
  max-width: 16px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: rgba(234, 242, 255, 0.62);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.manage-knowledge-create .tree-toggle:hover,
.manage-knowledge-create .tree-toggle:focus-visible {
  background: transparent;
  color: rgba(234, 242, 255, 0.98);
  outline: none;
}

.manage-knowledge-create .tree-toggle__icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 3px 0 3px 5px;
  border-color: transparent transparent transparent currentColor;
  transition: transform 0.08s ease, border-left-color 0.08s ease;
}

.tree-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tree-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.manage-knowledge-create .tree-toggle.is-expanded .tree-toggle__icon {
  transform: rotate(90deg);
}

.tree-icon--root {
  color: #b794f4;
}

.tree-icon--folder {
  color: #f6c453;
}

.tree-icon--source {
  color: #cbd5f5;
}

.tree-icon--document {
  color: #cbd5f5;
}

.tree-icon--doc-markdown {
  color: #519aba;
}

.tree-icon--doc-json {
  color: #cbcb41;
}

.tree-icon--doc-yaml {
  color: #ce9178;
}

.tree-icon--doc-xml {
  color: #e37933;
}

.tree-icon--doc-code {
  color: #42a5f5;
}

.tree-icon--doc-csv {
  color: #89d185;
}

.tree-icon--doc-text {
  color: #9aa5ce;
}

.tree-icon--doc-pdf {
  color: #f14c4c;
}

.tree-icon--doc-image {
  color: #a074c4;
}

.tree-icon--doc-archive {
  color: #d19a66;
}

.tree-icon--url {
  color: #5bd1d7;
}

.tree-icon--database {
  color: #d4a5ff;
}

.tree-icon--cloudstorage {
  color: #7dd3fc;
}

.manage-knowledge-create .tree-spacer {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.knowledge-tree-panel.is-disabled .knowledge-tree {
  opacity: 0.35;
  filter: grayscale(0.2);
  pointer-events: none;
}

.knowledge-tree-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border-radius: 14px;
  background: rgba(5, 8, 16, 0.78);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.botbuilder-input--readonly {
  background: var(--input-readonly-bg, rgba(7, 12, 24, 0.58));
  border: 1px solid var(--input-readonly-border, rgba(255, 255, 255, 0));
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  min-height: 72px;
}

.knowledge-file-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.knowledge-file-picker .botbuilder-input {
  flex: 1;
}

.knowledge-file-picker__button {
  position: relative;
  padding: 6px 14px;
  font-size: 12px;
  line-height: 1;
  min-height: 32px;
}

.knowledge-file-picker__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}

.knowledge-context-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 2090;
}

.knowledge-context-menu {
  position: fixed;
  z-index: 2091;
  min-width: 210px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.knowledge-context-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

.knowledge-context-item--fileupload {
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
  text-align: left;
}

.knowledge-context-item--fileupload > span {
  width: auto;
  text-align: left;
}

.knowledge-context-item__file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.knowledge-context-item:hover,
.knowledge-context-item:focus-visible {
  background: rgba(91, 209, 215, 0.12);
  outline: none;
  box-shadow: none !important;
  transform: none !important;
}

.knowledge-context-item:active {
  box-shadow: none !important;
  transform: none !important;
}

.knowledge-context-item.danger {
  color: var(--danger);
}

.knowledge-context-item--submenu {
  position: relative;
}

.knowledge-context-item--submenu::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 8px;
  height: 100%;
}

.knowledge-context-caret {
  margin-left: auto;
  color: var(--muted);
}

.knowledge-context-submenu {
  position: absolute;
  top: -6px;
  left: 100%;
  min-width: 210px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity 0.08s ease;
}

.knowledge-context-item--submenu:hover .knowledge-context-submenu,
.knowledge-context-item--submenu:focus-within .knowledge-context-submenu,
.knowledge-context-submenu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.knowledge-modal--compact {
  width: min(420px, 92vw);
}

@media (max-width: 640px) {
  .knowledge-field-group {
    grid-template-columns: 1fr;
  }

  .knowledge-field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .manage-knowledge-create .knowledge-create-layout {
    grid-template-columns: 1fr;
  }

  .manage-knowledge-create .knowledge-create-layout .knowledge-field-column--details,
  .manage-knowledge-create .knowledge-create-layout .knowledge-field-column--sources {
    grid-column: 1;
  }
}

.botbuilder-checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 12px;
}

.botbuilder-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
}

.botbuilder-checkbox input {
  accent-color: var(--accent);
}

.botbuilder-helper {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
}

.botbuilder-helper:hover,
.botbuilder-helper:focus-visible {
  text-decoration: underline;
  outline: none;
}

.botbuilder-field--wide .botbuilder-input {
  max-width: 680px;
}

.botbuilder-avatar-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2400;
}

.botbuilder-avatar-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.7);
}

.botbuilder-avatar-modal__panel {
  position: relative;
  width: min(960px, 94vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--panel);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.botbuilder-avatar-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.botbuilder-avatar-carousel__nav {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.botbuilder-avatar-carousel__nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.botbuilder-avatar-carousel__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 4px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.botbuilder-avatar-choice {
  flex: 0 0 auto;
  width: 128px;
  height: 128px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  scroll-snap-align: center;
  overflow: hidden;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.botbuilder-avatar-choice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.botbuilder-avatar-choice.is-selected {
  border-color: rgba(91, 209, 215, 0.95);
  box-shadow:
    0 0 0 2px rgba(91, 209, 215, 0.95),
    0 0 0 5px rgba(91, 209, 215, 0.22),
    0 12px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.botbuilder-avatar-choice:focus-visible {
  border-color: rgba(91, 209, 215, 0.95);
  box-shadow:
    0 0 0 2px rgba(91, 209, 215, 0.85),
    0 0 0 5px rgba(91, 209, 215, 0.18);
  outline: none;
}

.badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel-2);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.input-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.input-group label {
  font-size: 12px;
  color: var(--muted);
}

.input-group input,
.input-group textarea {
  background: var(--input-bg, rgba(7, 12, 24, 0.72));
  border: 1px solid var(--input-border, rgba(255, 255, 255, 0));
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--input-text, var(--text));
  font-family: inherit;
}

.stack-form button {
  background: linear-gradient(135deg, #7dd3fc, #2563eb);
  border: none;
  color: #041018;
  padding: 10px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.stack-form button:hover,
.stack-form button:focus-visible {
  opacity: 0.95;
  outline: none;
  transform: translateY(-1px);
}

.validation {
  color: var(--danger);
  font-size: 12px;
}

.compact-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.manage-table-wrapper {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  overflow-x: auto;
}

.manage-table-wrapper.bot-manage-table-wrapper {
  overflow: visible;
}

.manage-table-wrapper.hosts-table-wrapper {
  overflow: visible;
}

.manage-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.manage-table th,
.manage-table td {
  padding: 12px 14px;
  text-align: left;
}

.manage-table thead th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.manage-table tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.manage-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.host-actions-cell {
  width: 48px;
  text-align: right;
}

.bot-summary-cell {
  max-width: none;
}

.host-actions {
  position: relative;
  display: inline-flex;
}

.host-actions-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 10;
}

.host-actions__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 240px;
  background: rgba(5, 8, 16, 0.95);
  border: 1px solid rgba(91, 209, 215, 0.35);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(91, 209, 215, 0.2);
  display: none;
  z-index: 22;
}

.host-actions.is-open .host-actions__menu {
  display: block;
}

.host-actions__item {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  text-shadow: none;
  filter: none;
  white-space: nowrap;
}

.host-actions__item:hover,
.host-actions__item:focus-visible,
.host-actions__item:active {
  background: transparent;
  box-shadow: none;
  filter: none;
  text-shadow: none;
  color: var(--accent);
  outline: none;
}

.host-actions__item.danger {
  color: var(--danger);
}

.host-actions__item.danger:hover,
.host-actions__item.danger:focus-visible,
.host-actions__item.danger:active {
  background: transparent;
  box-shadow: none;
  filter: none;
  text-shadow: none;
  color: var(--danger);
}

.compact-list__title {
  display: block;
  text-align: center;
  margin: 0 0 6px 0;
  width: 100%;
}

.bot-pause-button.bot-pause-button--paused {
  background: #facc15;
  color: #0f172a;
  border-color: rgba(250, 204, 21, 0.9);
}

.compact-list ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.account-row {
  align-items: flex-start;
}

.account-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list-title {
  font-weight: 600;
}

.list-sub {
  font-size: 12px;
  color: var(--muted);
}

.list-sub--host {
  margin-left: 6px;
}

.pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text);
}

.pill.status {
  padding: 6px 10px;
  font-weight: 700;
}

.pill.status.pending {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.7);
  background: rgba(251, 191, 36, 0.12);
}

.pill.status.approved {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(52, 211, 153, 0.12);
}

.pill.status.declined {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.6);
  background: rgba(248, 113, 113, 0.12);
}

.pill.status.active {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(52, 211, 153, 0.12);
}

.pill.status.unactivated {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.7);
  background: rgba(251, 191, 36, 0.12);
}

.pill.status.disabled {
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.7);
  background: rgba(249, 115, 22, 0.12);
}

.manage-runtime-card .runtime-trigger-pill {
  text-transform: lowercase;
}

.manage-runtime-card .runtime-bot-id {
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.manage-runtime-card .runtime-latest-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.manage-runtime-card .manage-runtime-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.pill.status.decommissioned {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.6);
  background: rgba(248, 113, 113, 0.12);
}

.role-picker {
  gap: 8px;
}

.role-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 12px;
}

.role-chip input {
  accent-color: var(--accent);
}

.role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.text-right {
  text-align: right;
}

.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}

.ghost:hover,
.ghost:focus-visible {
  border-color: rgba(91, 209, 215, 0.6);
}

.ghost.danger {
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.5);
}

.org-requests .empty {
  color: var(--muted);
}

.org-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-toolbar {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: rgba(91, 209, 215, 0.7);
  background: rgba(91, 209, 215, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.icon-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
  transform: none;
}

.icon-button.danger {
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.45);
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 14px;
  align-items: flex-start;
}

.account-list-panel {
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-tile {
  width: 100%;
  text-align: left;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.account-tile:hover,
.account-tile:focus-visible {
  border-color: rgba(91, 209, 215, 0.55);
  outline: none;
}

.account-tile.active {
  border-color: rgba(91, 209, 215, 0.8);
  background: rgba(91, 209, 215, 0.12);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.account-tile-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.last-seen {
  margin-left: auto;
}

.account-form {
  height: 100%;
}

.empty {
  color: var(--muted);
}

.subscription-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.subscription-kpi {
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subscription-kpi strong {
  font-size: 1.35rem;
}

.kpi-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.subscription-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.subscription-panel {
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
}

.subscription-panel h3 {
  margin: 0 0 10px;
}

.subscription-detail-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px 12px;
}

.subscription-detail-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.subscription-detail-grid dd {
  margin: 0;
  font-weight: 600;
}

.subscription-id {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.subscription-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subscription-meter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subscription-meter__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
}

.subscription-meter__track {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.subscription-meter__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5bd1d7, #3b82f6);
}

.subscription-pill-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1024px) {
  .manage-body {
    grid-template-columns: 1fr;
  }

  .manage-shell--knowledge-create .manage-nav,
  .manage-shell--knowledge-create .manage-content > .manage-knowledge-create {
    height: auto;
    max-height: none;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .subscription-two-col {
    grid-template-columns: 1fr;
  }

  .manage-nav {
    position: sticky;
    top: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    gap: 12px;
    padding: 10px;
    scroll-snap-type: x proximity;
    background: linear-gradient(135deg, rgba(16, 24, 43, 0.95), rgba(16, 24, 43, 0.85));
    z-index: 20;
  }

  .nav-pill {
    min-width: 220px;
  }
}

@media (max-width: 960px) {
  .bot-chat__artifact-tabs-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .botbuilder-stepper {
    gap: 12px;
  }

  .botbuilder-stepper__item {
    min-width: 160px;
  }

  .botbuilder-identity {
    grid-template-columns: 1fr;
  }

  .bot-edit-panel-card .botbuilder-identity {
    grid-template-columns: 1fr;
  }

  .bot-edit-panel-card .botbuilder-avatar-tile,
  .bot-edit-panel-card .botbuilder-identity__form,
  .bot-edit-panel-card .botbuilder-identity__core {
    grid-column: auto;
    grid-row: auto;
  }

  .botbuilder-identity__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .bot-chat__profile-summary .botbuilder-identity__row,
  .bot-chat__personality-grid .botbuilder-identity__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .bot-chat__knowledge-center-header {
    flex-wrap: wrap;
  }

  .bot-chat__knowledge-center-grid {
    grid-template-columns: 1fr;
  }

  .botbuilder-input.botbuilder-input--short {
    max-width: 100%;
    height: 36px;
    min-height: 36px;
    line-height: 36px;
    font-size: 18px;
  }

  .botbuilder-identity__form {
    align-self: stretch;
  }

  .botbuilder-avatar-modal__panel {
    width: min(760px, 94vw);
    max-height: 80vh;
  }

  .manage-bot-learning-modal__panel {
    width: min(96vw, 940px);
    max-height: 90vh;
  }

  .manage-bot-learning-modal__item-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .botbuilder-avatar-carousel__nav {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 640px) {
  .manage-shell {
    padding: 14px 12px 20px;
  }

  .manage-hero {
    padding: 18px;
    flex-direction: column;
  }

  .hero-metrics {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .stack-form {
    padding: 12px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .subscription-detail-grid {
    grid-template-columns: 1fr;
  }
}
