.composer-attachment-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.plugin-page-stack {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 16px;
}

.window-controls {
  display: none;
}

.conversation-shell {
  --conversation-blue-050: #f5fbff;
  --conversation-blue-100: #edf7ff;
  --conversation-blue-200: #deefff;
  --conversation-blue-300: #cae7ff;
  --conversation-blue-400: #9fd4f7;
  --conversation-blue-500: #67b7ed;
  --conversation-blue-600: #2487d2;
  --conversation-cyan-500: #3abfdb;
  --conversation-ink: #1d4059;
  --conversation-ink-soft: #58728d;
  --conversation-border: rgba(149, 201, 235, 0.48);
  --conversation-border-strong: rgba(111, 179, 223, 0.66);
  --conversation-shadow: 0 24px 48px rgba(79, 137, 182, 0.16);
  grid-template-columns: clamp(232px, 19vw, 280px) minmax(0, 1fr);
}

.conversation-shell .sidebar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(200, 232, 250, 0.97) 0%, rgba(224, 242, 253, 0.92) 42%, rgba(209, 235, 250, 0.96) 100%);
  border-right: 1px solid rgba(123, 185, 224, 0.62);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.conversation-shell .sidebar::before,
.conversation-shell .sidebar::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.conversation-shell .sidebar::before {
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 32%, rgba(66, 161, 221, 0.14) 100%);
}

.conversation-shell .sidebar::after {
  top: -14%;
  left: -18%;
  width: 72%;
  height: 34%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 72%);
  opacity: 0.78;
}

.conversation-sidebar-layout {
  position: relative;
  isolation: isolate;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px 16px;
}

.conversation-shell .sidebar-top {
  gap: 12px;
}

.conversation-shell .nav-list {
  gap: 10px;
}

.conversation-shell .nav-item {
  position: relative;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(242, 250, 255, 0.82), rgba(212, 236, 251, 0.74));
  color: #2e516c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 10px 22px rgba(63, 128, 173, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.conversation-shell .nav-item:hover:not(.active) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(228, 244, 255, 0.78));
  border-color: rgba(148, 199, 232, 0.46);
  color: #106bbf;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 24px rgba(89, 150, 194, 0.12);
  transform: translateY(-1px);
}

.conversation-shell .nav-item.active {
  background: linear-gradient(135deg, rgba(248, 253, 255, 0.96), rgba(204, 232, 249, 0.9) 52%, rgba(189, 222, 244, 0.94) 100%);
  border-color: rgba(103, 170, 216, 0.72);
  color: #0b63b8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 16px 30px rgba(55, 122, 169, 0.22);
}

.conversation-shell .nav-item.active::before {
  content: "";
  position: absolute;
  inset: 1px auto 1px 1px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #86d7ff 0%, #1490db 100%);
}

.conversation-shell .nav-item-label {
  letter-spacing: 0.01em;
}

.conversation-sidebar-action {
  display: grid;
  flex: 0 0 auto;
}

.conversation-sidebar-action .conversation-new-session {
  width: 100%;
  min-height: 46px;
  justify-content: flex-start;
  padding: 0 16px;
  border-radius: 16px;
  border-color: rgba(128, 192, 235, 0.58);
  background: linear-gradient(135deg, rgba(245, 252, 255, 0.92), rgba(199, 229, 248, 0.88));
  color: #0e6ec7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 16px 28px rgba(64, 129, 174, 0.18);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.conversation-shell .conversation-new-session:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(210, 238, 255, 0.92));
  border-color: rgba(103, 176, 230, 0.74);
  color: #075eaf;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 18px 30px rgba(76, 143, 193, 0.2);
  transform: translateY(-1px);
}

.conversation-shell .conversation-new-session-plus {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(200, 232, 255, 0.9));
  color: #0f7cd2;
  box-shadow: inset 0 0 0 1px rgba(133, 190, 229, 0.4);
}

.conversation-shell .conversation-new-session-label {
  letter-spacing: 0.01em;
}

.conversation-shell .sidebar-bottom {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  gap: 14px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 164, 216, 0.44) transparent;
}

.conversation-shell .sidebar-bottom::-webkit-scrollbar {
  width: 4px;
}

.conversation-shell .sidebar-bottom::-webkit-scrollbar-track {
  background: transparent;
}

.conversation-shell .sidebar-bottom::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(94, 164, 216, 0.44);
}

.conversation-shell .sidebar-experts-entry,
.conversation-shell .sidebar-session-section {
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(170, 213, 239, 0.54);
  background: linear-gradient(180deg, rgba(242, 250, 255, 0.82), rgba(213, 236, 249, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 20px 36px rgba(62, 126, 170, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.conversation-shell .sidebar-experts-entry {
  flex: 0 0 calc(55% - 6px);
  min-height: calc(55% - 6px);
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  align-content: start;
  overflow: visible;
}

.conversation-shell .sidebar-session-section {
  flex: 0 0 calc(45% - 6px);
  min-height: calc(45% - 6px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.conversation-shell .sidebar-digital-workers-title {
  min-height: 24px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1;
  background: transparent;
}

.conversation-shell .sidebar-section-label,
.conversation-shell .sidebar-session-main span {
  color: #6d87a0;
}

.conversation-shell .sidebar-section-title,
.conversation-shell .sidebar-session-main strong {
  color: var(--conversation-ink);
}

.conversation-shell .sidebar-inline-action {
  color: #0c73cc;
}

.conversation-shell .sidebar-expert-scroll {
  min-height: 0;
  overflow-y: visible;
  overflow-x: hidden;
  padding-right: 0;
}

.conversation-shell .expert-category-header:focus-visible,
.conversation-shell .expert-category-expert-item:focus-visible {
  outline: 2px solid rgba(21, 132, 209, 0.42);
  outline-offset: 2px;
}

.conversation-shell .sidebar-session-list {
  min-height: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 164, 216, 0.44) transparent;
}

.conversation-shell .sidebar-session-list::-webkit-scrollbar {
  width: 2px;
  opacity: 0;
}

.conversation-shell .sidebar-session-list::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 1px;
}

.conversation-shell .sidebar-session-list::-webkit-scrollbar-thumb {
  border-radius: 1px;
  background: rgba(94, 164, 216, 0.44);
  transition: background 0.3s ease;
}

.conversation-shell .sidebar-session-list:hover::-webkit-scrollbar-thumb,
.conversation-shell .sidebar-session-list:active::-webkit-scrollbar-thumb,
.conversation-shell .sidebar-session-list:focus::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
}

.conversation-shell .sidebar-session-list::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

.conversation-shell .expert-category-item {
  border-radius: 16px;
  border: 1px solid rgba(173, 214, 239, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(235, 247, 255, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 22px rgba(85, 147, 192, 0.08);
}

.conversation-shell .expert-category-item:hover {
  border-color: rgba(123, 188, 233, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 14px 26px rgba(78, 145, 194, 0.12);
}

.conversation-shell .expert-category-header {
  min-height: 44px;
  padding: 0 12px;
}

.conversation-shell .expert-category-header:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(228, 244, 255, 0.72));
}

.conversation-shell .expert-category-icon,
.conversation-shell .expert-category-toggle {
  color: #3188cf;
}

.conversation-shell .expert-category-name {
  color: #365772;
}

.conversation-shell .expert-category-content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(226, 242, 255, 0.4));
  border-top: 1px solid rgba(165, 210, 237, 0.4);
}

.conversation-shell .expert-category-experts {
  gap: 6px;
  padding: 7px;
}

.conversation-shell .expert-category-expert-item {
  min-height: 36px;
  padding: 7px 10px 7px 14px;
  border-radius: 12px;
  border: 1px solid rgba(174, 215, 239, 0.56);
  background: rgba(255, 255, 255, 0.66);
  color: #42617d;
}

.conversation-shell .expert-category-expert-item:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(229, 245, 255, 0.78));
  border-color: rgba(126, 191, 233, 0.58);
  color: #0e6cc3;
}

.conversation-shell .expert-category-expert-item.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(220, 241, 255, 0.9));
  border-color: rgba(116, 182, 230, 0.68);
  color: #0a68bc;
  box-shadow: 0 10px 18px rgba(82, 153, 203, 0.16);
}

.conversation-shell .expert-category-expert-name {
  color: currentColor;
}

.conversation-shell .sidebar-session-card {
  min-height: 54px;
  height: 54px;
  flex: 0 0 54px;
  align-self: start;
  padding: 4px;
  border-radius: 18px;
  border: 1px solid rgba(172, 214, 239, 0.48);
  background: linear-gradient(180deg, rgba(247, 252, 255, 0.84), rgba(215, 238, 251, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 24px rgba(66, 132, 177, 0.12);
}

.conversation-shell .sidebar-session-card:hover {
  background: linear-gradient(180deg, rgba(251, 254, 255, 0.9), rgba(206, 233, 249, 0.8));
  border-color: rgba(109, 178, 223, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 14px 26px rgba(64, 131, 176, 0.16);
}

.conversation-shell .sidebar-session-card.active {
  border-color: rgba(90, 165, 214, 0.76);
  background: linear-gradient(135deg, rgba(250, 254, 255, 0.98), rgba(196, 228, 248, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 18px 30px rgba(56, 123, 170, 0.2);
}

.conversation-shell .sidebar-session-main {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--conversation-ink);
}

.conversation-shell .sidebar-session-main:hover {
  background: rgba(228, 243, 255, 0.78);
}

.conversation-shell .sidebar-session-close {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(167, 209, 236, 0.72);
  color: #64809d;
}

.conversation-shell .sidebar-session-close:hover:not(:disabled) {
  background: rgba(240, 249, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(111, 179, 223, 0.68);
  color: #0f71ca;
}

.conversation-shell .conversation-main-layout,
.conversation-shell .conversation-content-area {
  min-height: 0;
}

.conversation-shell .conversation-content-area {
  height: 100%;
}

.conversation-shell .conversation-panel {
  height: 100%;
  min-height: 0;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.conversation-shell .conversation-panel-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
}

.conversation-shell .conversation-panel-copy {
  display: flex;
  align-items: flex-start;
  flex: 1 1 auto;
}

.conversation-shell .conversation-panel-copy,
.conversation-shell .conversation-panel-actions,
.conversation-shell .conversation-panel-body {
  min-width: 0;
}

.conversation-shell .expert-workspace-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.conversation-shell .expert-workspace-logo svg {
  width: 26px;
  height: 26px;
  display: block;
}

.conversation-shell .expert-workspace-logo-xiaohongshu {
  background: linear-gradient(135deg, rgba(255, 245, 245, 0.96), rgba(255, 228, 230, 0.9));
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.16);
}

.conversation-shell .expert-workspace-logo-douyin {
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.96), rgba(244, 244, 255, 0.92));
  box-shadow: 0 14px 28px rgba(109, 125, 255, 0.16);
}

.conversation-shell .conversation-panel-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.conversation-shell .conversation-panel-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--ui-color-border);
  background: rgba(255, 255, 255, 0.92);
  color: #496560;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.conversation-shell .conversation-workspace {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.conversation-shell .conversation-panel-body {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  align-content: stretch;
}

.conversation-shell .empty-state {
  padding: 28px;
  border-radius: 24px;
  border: 1px dashed var(--ui-color-border-strong);
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.08), transparent 34%),
    #ffffff;
}

.conversation-shell.conversation-shell-experts .conversation-panel-body > .message-list,
.conversation-shell.conversation-shell-experts .conversation-panel-body > .empty-state {
  min-height: 0;
  height: 100%;
}

.conversation-shell.conversation-shell-experts .expert-empty-state {
  min-height: 100%;
  align-content: center;
  padding: 32px;
}

@media (max-width: 1440px), (max-height: 820px) {
  .shell,
  .conversation-shell {
    grid-template-columns: clamp(232px, 18vw, 260px) minmax(0, 1fr);
  }

  .conversation-sidebar-layout {
    padding: 14px 12px;
    gap: 10px;
  }

  .sidebar-top {
    gap: 8px;
  }

  .nav-list {
    gap: 8px;
  }

  .nav-item {
    height: 40px;
  }

  .conversation-sidebar-action .conversation-new-session {
    min-height: 40px;
    padding: 0 12px;
  }

  .sidebar-bottom {
    gap: 10px;
  }

  .sidebar-experts-entry {
    flex-basis: calc(55% - 5px);
    min-height: calc(55% - 5px);
    padding: 10px;
    gap: 8px;
  }

  .sidebar-session-section {
    flex-basis: calc(45% - 5px);
    min-height: calc(45% - 5px);
    padding: 10px;
  }

  .expert-category-list {
    gap: 4px;
  }

  .expert-category-header {
    min-height: 36px;
    padding: 0 8px;
  }

  .expert-category-expert-item {
    min-height: 32px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .sidebar-session-card {
    min-height: 40px;
  }
}

@media (max-width: 960px) {
  .conversation-shell .conversation-workspace {
    padding: 18px;
  }

  .conversation-shell .message-bubble,
  .conversation-shell .message-bubble-assistant,
  .conversation-shell .message-card.assistant .message-bubble {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .conversation-shell .conversation-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .conversation-shell .conversation-panel-actions {
    justify-content: flex-start;
  }

  .conversation-shell .conversation-panel,
  .conversation-shell .conversation-workspace,
  .conversation-shell .composer-surface,
  .conversation-shell .empty-state {
    border-radius: 22px;
  }

  .conversation-shell .conversation-workspace {
    padding: 16px;
  }

  .conversation-shell .message-list {
    gap: 16px;
    padding-right: 0;
  }

  .conversation-shell .composer-footer {
    align-items: flex-end;
    flex-direction: row;
  }

  .conversation-shell .composer-left-tools {
    width: auto;
    flex: 1 1 auto;
  }

  .conversation-shell .composer-submit {
    width: 44px;
    min-width: 44px;
  }

  .conversation-shell.conversation-shell-experts .expert-empty-state {
    padding: 24px;
  }
}


