.shell.openclaw-theme {
  --revamp-canvas: #f5f7fa;
  --revamp-surface: #ffffff;
  --revamp-surface-soft: #f8fafc;
  --revamp-surface-muted: #f1f5f9;
  --revamp-text: #0f172a;
  --revamp-text-muted: #475569;
  --revamp-text-soft: #64748b;
  --revamp-blue: #2563eb;
  --revamp-blue-strong: #1d4ed8;
  --revamp-blue-soft: #eff6ff;
  --revamp-blue-border: rgba(59, 130, 246, 0.48);
  --revamp-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --revamp-gradient-soft: linear-gradient(135deg, rgba(239, 246, 255, 0.92) 0%, rgba(248, 250, 252, 0.9) 100%);
  --revamp-cyber-blue: #0f6eea;
  --revamp-cyber-cyan: #19b6d9;
  --revamp-cyber-glow: rgba(37, 99, 235, 0.18);
  --revamp-border: rgba(148, 163, 184, 0.24);
  --revamp-border-strong: rgba(148, 163, 184, 0.38);
  --revamp-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  --revamp-shadow-soft: 0 8px 18px rgba(15, 23, 42, 0.04);
  background: var(--revamp-canvas);
  color: var(--revamp-text);
}

.shell.openclaw-theme button,
.shell.openclaw-theme [role="button"],
.shell.openclaw-theme summary,
.shell.openclaw-theme select {
  cursor: pointer;
}

.shell.openclaw-theme button:disabled,
.shell.openclaw-theme [aria-disabled="true"] {
  cursor: not-allowed;
}

.shell.openclaw-theme button:not(.home-showcase-card):hover:not(:disabled),
.shell.openclaw-theme .catalog-item:hover,
.shell.openclaw-theme .plugin-flat-card:hover,
.shell.openclaw-theme .settings-section-card:hover,
.shell.openclaw-theme .model-config-card:hover {
  transform: none;
}

.shell.openclaw-theme button:focus-visible,
.shell.openclaw-theme input:focus-visible,
.shell.openclaw-theme textarea:focus-visible,
.shell.openclaw-theme select:focus-visible,
.shell.openclaw-theme a:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.56);
  outline-offset: 2px;
}

.shell.openclaw-theme > .sidebar {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #dbeafe 0%, #c7ddf8 100%);
  border-right: 1px solid rgba(37, 99, 235, 0.14);
  border-bottom: 0;
  box-shadow: none;
}

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

.shell.openclaw-theme > .sidebar::before {
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%, rgba(37, 99, 235, 0.06) 100%);
}

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

.shell.openclaw-theme .conversation-sidebar-layout {
  isolation: isolate;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px 14px;
}

.shell.openclaw-theme .sidebar-brand {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.shell.openclaw-theme .sidebar-brand-logo {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.shell.openclaw-theme .sidebar-header-content {
  min-width: 0;
  flex: 1 1 auto;
}

.shell.openclaw-theme .sidebar-search {
  position: relative;
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  color: #41657f;
}

.shell.openclaw-theme .sidebar-search input {
  width: 100%;
  height: 34px;
  min-width: 0;
  padding: 0 32px 0 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.4);
  color: #12355f;
  font: inherit;
  font-size: 13px;
  outline: none;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.shell.openclaw-theme .sidebar-search input::placeholder {
  color: #6b87a0;
}

.shell.openclaw-theme .sidebar-search input:focus {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.shell.openclaw-theme .sidebar-search-icon {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  color: currentColor;
  left: 11px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.shell.openclaw-theme .sidebar-search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell.openclaw-theme .sidebar-collapse-button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #1d4ed8;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.shell.openclaw-theme .sidebar-collapse-button:hover:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(255, 255, 255, 0.7);
  color: #0f6eea;
  box-shadow: none;
}

.shell.openclaw-theme .sidebar-collapse-button svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell.openclaw-theme .sidebar-top {
  position: relative;
  z-index: 1;
  gap: 10px;
}

.shell.openclaw-theme .nav-list {
  grid-template-columns: 1fr;
  gap: 6px;
}

.shell.openclaw-theme .nav-item {
  position: relative;
  min-height: 42px;
  padding: 0 12px 0 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #2e516c;
  justify-content: flex-start;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.shell.openclaw-theme .nav-item-icon svg {
  width: 18px;
  height: 18px;
}

.shell.openclaw-theme .nav-item-label {
  letter-spacing: 0;
}

.shell.openclaw-theme .nav-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(96, 165, 250, 0.22);
  color: var(--revamp-blue-strong);
  box-shadow: none;
}

.shell.openclaw-theme .nav-item.active {
  background: #ffffff;
  border-color: var(--revamp-blue-border);
  color: var(--revamp-blue-strong);
  box-shadow:
    inset 3px 0 0 var(--revamp-blue),
    0 4px 12px rgba(37, 99, 235, 0.08);
}

.shell.openclaw-theme .nav-item.active::before {
  content: none;
}

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

.shell.openclaw-theme .sidebar-new-session.conversation-new-session {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  padding: 0 16px;
  border-radius: 14px;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #0f6eea);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.shell.openclaw-theme .sidebar-new-session.conversation-new-session:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #075bd8);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.shell.openclaw-theme .conversation-new-session-plus {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.shell.openclaw-theme .conversation-new-session-label {
  letter-spacing: 0;
}

.shell.openclaw-theme .sidebar-bottom {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 56fr) minmax(150px, 44fr);
  gap: 12px;
  overflow: hidden;
  padding-right: 0;
}

.shell.openclaw-theme .conversation-new-session,
.shell.openclaw-theme .sidebar-experts-entry,
.shell.openclaw-theme .sidebar-session-section,
.shell.openclaw-theme .expert-category-item,
.shell.openclaw-theme .sidebar-session-card {
  border-color: var(--revamp-border);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.shell.openclaw-theme .sidebar-experts-entry {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(59, 130, 246, 0.16);
  box-shadow: none;
}

.shell.openclaw-theme .sidebar-session-section {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(59, 130, 246, 0.16);
  box-shadow: none;
}

.shell.openclaw-theme.sidebar-collapsed .conversation-sidebar-layout {
  grid-template-rows: auto 1fr;
  justify-items: center;
  gap: 12px;
  padding: 16px 10px;
}

.shell.openclaw-theme.sidebar-collapsed .sidebar-brand {
  width: 44px;
  justify-content: center;
}

.shell.openclaw-theme.sidebar-collapsed .sidebar-header-content,
.shell.openclaw-theme.sidebar-collapsed .sidebar-brand-logo,
.shell.openclaw-theme.sidebar-collapsed .conversation-sidebar-action,
.shell.openclaw-theme.sidebar-collapsed .sidebar-bottom {
  display: none;
}

.shell.openclaw-theme.sidebar-collapsed .sidebar-collapse-button {
  width: 38px;
  height: 38px;
  min-width: 38px;
}

.shell.openclaw-theme.sidebar-collapsed .sidebar-top {
  width: 44px;
  align-content: start;
  justify-items: center;
}

.shell.openclaw-theme.sidebar-collapsed .nav-list {
  width: 44px;
  justify-items: center;
}

.shell.openclaw-theme.sidebar-collapsed .nav-item {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.shell.openclaw-theme.sidebar-collapsed .nav-item.active {
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

.shell.openclaw-theme.sidebar-collapsed .nav-item-label {
  display: none;
}

.shell.openclaw-theme .sidebar-digital-workers-title {
  min-height: 28px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
  letter-spacing: 0;
}

.shell.openclaw-theme .sidebar-section-icon {
  font-size: 14px;
  line-height: 1;
}

.shell.openclaw-theme .sidebar-section-title {
  color: #0f2f59;
  font-size: 13px;
  font-weight: 800;
}

.shell.openclaw-theme .sidebar-section-label,
.shell.openclaw-theme .sidebar-session-main span {
  color: #486985;
}

.shell.openclaw-theme .sidebar-section-head-subtle {
  min-height: 28px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
}

.shell.openclaw-theme .sidebar-section-label {
  font-size: 13px;
  font-weight: 800;
  color: #0f2f59;
}

.shell.openclaw-theme .expert-category-item:hover,
.shell.openclaw-theme .expert-category-header:hover,
.shell.openclaw-theme .expert-category-expert-item:hover,
.shell.openclaw-theme .sidebar-session-card:hover,
.shell.openclaw-theme .sidebar-session-main:hover {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(96, 165, 250, 0.34);
  color: var(--revamp-blue-strong);
  box-shadow: none;
}

.shell.openclaw-theme .expert-category-list {
  gap: 7px;
}

.shell.openclaw-theme .sidebar-expert-scroll,
.shell.openclaw-theme .sidebar-session-list {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.shell.openclaw-theme .sidebar-expert-scroll {
  padding-right: 2px;
}

.shell.openclaw-theme .sidebar-session-list {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-right: 2px;
}

.shell.openclaw-theme .expert-category-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.shell.openclaw-theme .expert-category-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--revamp-cyber-cyan), var(--revamp-cyber-blue));
  opacity: 0;
  transition: opacity 180ms ease;
}

.shell.openclaw-theme .expert-category-item:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: none;
}

.shell.openclaw-theme .expert-category-item:hover::before {
  opacity: 1;
}

.shell.openclaw-theme .expert-category-item.expanded {
  border-color: rgba(37, 99, 235, 0.52);
  background: #f8fbff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.08);
}

.shell.openclaw-theme .expert-category-item.expanded::before {
  opacity: 1;
}

.shell.openclaw-theme .expert-category-header {
  min-height: 40px;
  padding: 0 10px 0 12px;
  transition: background 180ms ease, color 180ms ease;
}

.shell.openclaw-theme .expert-category-item.expanded .expert-category-header {
  background: #eaf2ff;
}

.shell.openclaw-theme .expert-category-icon,
.shell.openclaw-theme .expert-category-toggle {
  color: var(--revamp-cyber-blue);
}

.shell.openclaw-theme .expert-category-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  box-shadow: none;
}

.shell.openclaw-theme .expert-category-name {
  color: #183b66;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.shell.openclaw-theme .expert-category-toggle {
  transition: transform 180ms ease, color 180ms ease;
}

.shell.openclaw-theme .expert-category-content {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 0;
  background: rgba(241, 247, 255, 0.78);
  box-shadow: none;
  transform-origin: top center;
  animation: expertPanelReveal 220ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

.shell.openclaw-theme .expert-category-experts {
  gap: 8px;
  padding: 7px 7px 8px 10px;
}

.shell.openclaw-theme .expert-category-expert-item {
  min-height: 34px;
  padding: 6px 9px 6px 12px;
  border-radius: 8px;
  border-color: transparent;
  background: transparent;
  color: #31516f;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.shell.openclaw-theme .expert-category-expert-item:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: transparent;
  color: #104eae;
  box-shadow: none;
}

.shell.openclaw-theme .expert-category-expert-item.active,
.shell.openclaw-theme .sidebar-session-card.active {
  background: #ffffff;
  border-color: var(--revamp-blue-border);
  color: var(--revamp-blue-strong);
  box-shadow:
    inset 3px 0 0 rgba(37, 99, 235, 0.86),
    0 4px 12px rgba(37, 99, 235, 0.06);
}

.shell.openclaw-theme .expert-category-expert-item.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(224, 237, 255, 0.92));
  box-shadow:
    inset 2px 0 0 var(--revamp-cyber-blue),
    0 2px 8px rgba(37, 99, 235, 0.06);
}

.shell.openclaw-theme .expert-category-expert-icon {
  color: currentColor;
}

.shell.openclaw-theme .expert-category-expert-name {
  color: currentColor;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
}

.shell.openclaw-theme .sidebar-session-card {
  height: 50px;
  min-height: 50px;
  padding: 3px;
  border-radius: 14px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.shell.openclaw-theme .sidebar-session-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.shell.openclaw-theme .sidebar-session-card.active {
  border-color: rgba(37, 99, 235, 0.42);
  background: #ffffff;
  box-shadow:
    inset 3px 0 0 var(--revamp-blue),
    0 4px 12px rgba(37, 99, 235, 0.06);
}

.shell.openclaw-theme .sidebar-session-main {
  min-height: 42px;
  padding: 0 8px 0 14px;
  border-radius: 8px;
}

.shell.openclaw-theme .sidebar-session-main strong {
  color: #12355f;
  font-size: 13px;
  line-height: 1.35;
}

.shell.openclaw-theme .sidebar-session-close {
  width: 24px;
  height: 24px;
  color: #64748b;
  opacity: 0.72;
  background: #f1f5f9;
  box-shadow: none;
}

.shell.openclaw-theme .sidebar-session-close svg {
  width: 12px;
  height: 12px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

@keyframes expertPanelReveal {
  from {
    opacity: 0;
    transform: translateY(-5px) scaleY(0.96);
    filter: saturate(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    filter: saturate(1);
  }
}

.shell.openclaw-theme .main-shell {
  background: var(--revamp-canvas);
}

.shell.openclaw-theme .content-area {
  background: transparent;
}

.shell.openclaw-theme .plugin-page-topbar,
.shell.openclaw-theme .settings-page-topbar {
  border-color: var(--revamp-border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.shell.openclaw-theme .panel,
.shell.openclaw-theme .plugin-flat-card,
.shell.openclaw-theme .settings-section-card,
.shell.openclaw-theme .model-config-card,
.shell.openclaw-theme .settings-panel,
.shell.openclaw-theme .bind-entry,
.shell.openclaw-theme .scroll-panel {
  border-color: var(--revamp-border);
  background: var(--revamp-surface);
  box-shadow: var(--revamp-shadow-soft);
}

.shell.openclaw-theme .bind-entry {
  position: relative;
  overflow: hidden;
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(147, 197, 253, 0.42);
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(248, 250, 252, 0.94) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94));
  box-shadow: var(--revamp-shadow);
}

.shell.openclaw-theme .bind-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.shell.openclaw-theme .bind-entry-copy,
.shell.openclaw-theme .bind-entry-benefits,
.shell.openclaw-theme .bind-row {
  position: relative;
  z-index: 1;
}

.shell.openclaw-theme .bind-entry-copy strong {
  color: #0f2f59;
  font-size: 26px;
  font-weight: 800;
}

.shell.openclaw-theme .bind-entry-copy p {
  max-width: 560px;
  color: #536b88;
}

.shell.openclaw-theme .bind-entry-kicker {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: var(--revamp-blue-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}

.shell.openclaw-theme .bind-entry-benefit {
  border-color: rgba(147, 197, 253, 0.38);
  background: rgba(255, 255, 255, 0.72);
  color: #23466d;
  box-shadow: var(--revamp-shadow-soft);
}

.shell.openclaw-theme .bind-entry-benefit-index {
  background: var(--revamp-gradient);
  box-shadow: var(--revamp-shadow-soft);
}

.shell.openclaw-theme .bind-row {
  align-items: stretch;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(147, 197, 253, 0.42);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.shell.openclaw-theme .bind-row input {
  min-height: 46px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.shell.openclaw-theme .bind-row input:focus {
  box-shadow: none;
}

.shell.openclaw-theme .bind-row button {
  min-height: 46px;
  border-radius: 12px;
  background: var(--revamp-gradient);
  box-shadow: var(--revamp-shadow-soft);
}

.shell.openclaw-theme .status-chip {
  border-color: var(--revamp-border);
  background: var(--revamp-surface-soft);
  color: var(--revamp-text-muted);
  box-shadow: none;
}
.shell.openclaw-theme .status-chip.positive {
  background: rgba(16, 185, 129, 0.14);
  color: #0f7f59;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.conversation-shell .conversation-panel-kicker {
  border-color: var(--revamp-border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--revamp-text-muted);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.conversation-shell .conversation-workspace {
  padding: 18px 20px 20px;
  border-radius: 22px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.conversation-shell .message-list {
  min-height: 0;
  height: 100%;
  overflow: auto;
  gap: 22px;
  padding: 10px 6px 20px 0;
  align-content: start;
  background: transparent;
  scrollbar-color: rgba(148, 163, 184, 0.52) transparent;
}

.conversation-shell .message-list-home:has(.home-empty-state) {
  align-content: center;
}

.conversation-shell :is(
  .message-list-home,
  .conversation-panel-body,
  .conversation-workspace,
  .chat-panel,
  .conversation-panel,
  .content-area,
  .conversation-content-area,
  .main-shell,
  .conversation-main-layout
):has(.home-empty-state) {
  overflow: visible;
}

.conversation-shell .message-list-xiaohongshu-empty:has(.expert-empty-state-xiaohongshu) {
  display: grid;
  place-items: center;
  place-content: center;
  padding: 20px 0 28px;
}

.conversation-shell .home-empty-state {
  width: min(100%, 760px);
  justify-self: center;
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 26px;
  padding: 16px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.conversation-shell .home-empty-copy {
  display: grid;
  justify-items: center;
  gap: 9px;
  width: min(100%, 620px);
  text-align: center;
}

.conversation-shell .home-empty-title {
  color: #3b82f6;
  font-size: 24px;
  line-height: 1.28;
  letter-spacing: 0;
  background: linear-gradient(92deg, #60a5fa 0%, #7dd3fc 28%, #bfdbfe 52%, #3b82f6 76%, #60a5fa 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: home-title-flow 5.6s ease-in-out infinite;
  text-shadow: 0 10px 24px rgba(59, 130, 246, 0.1);
}

.conversation-shell .home-empty-state .starter-prompt-list {
  width: min(100%, 680px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.conversation-shell .home-empty-state .starter-prompt {
  min-height: 90px;
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 15px 16px 14px;
  border-radius: 12px;
  border-color: rgba(191, 219, 254, 0.62);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9));
  color: var(--revamp-text);
  line-height: 1.5;
  overflow: hidden;
  box-shadow:
    var(--revamp-shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.conversation-shell .home-empty-state .starter-prompt::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.88), rgba(56, 189, 248, 0.42));
  opacity: 0.72;
}

.conversation-shell .home-empty-state .starter-prompt::after {
  content: none;
}

.conversation-shell .home-empty-state .starter-prompt:hover {
  border-color: rgba(96, 165, 250, 0.88);
  background: linear-gradient(180deg, #ffffff, rgba(248, 251, 255, 0.96));
  box-shadow:
    var(--revamp-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.conversation-shell .home-empty-state .starter-prompt:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.62);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(147, 197, 253, 0.28);
}

.conversation-shell .expert-empty-state-xiaohongshu {
  width: min(720px, 100%);
  margin: auto;
  min-height: auto;
  align-content: center;
  justify-items: center;
  gap: 28px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.conversation-shell .expert-empty-state-douyin {
  border: 0;
}

.conversation-shell .expert-empty-state-xiaohongshu .empty-state-kicker {
  color: #e44f7a;
  font-weight: 700;
}

.conversation-shell .xiaohongshu-empty-copy {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 620px;
}

.conversation-shell .xiaohongshu-empty-title {
  color: #e44f7a;
  background: linear-gradient(90deg, #e11d48, #fb7185, #be123c, #f43f5e, #e11d48);
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 760;
  animation: xiaohongshu-title-flow 4s ease-in-out infinite;
}

@keyframes xiaohongshu-title-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.conversation-shell .expert-empty-state-xiaohongshu .xiaohongshu-empty-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--revamp-text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.conversation-shell .expert-empty-state-xiaohongshu .starter-prompt-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.conversation-shell .expert-empty-state-xiaohongshu .starter-prompt {
  min-height: 90px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(244, 166, 185, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 249, 0.96));
  color: #243044;
  box-shadow: 0 16px 36px rgba(225, 82, 126, 0.1);
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.conversation-shell .expert-empty-state-xiaohongshu .starter-prompt:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 80, 121, 0.64);
  background: linear-gradient(180deg, #ffffff, #fff1f5);
  box-shadow: 0 20px 42px rgba(225, 82, 126, 0.16);
}

.conversation-shell .expert-empty-state-xiaohongshu .starter-prompt:focus-visible {
  outline: 3px solid rgba(229, 80, 121, 0.28);
  outline-offset: 3px;
}

.conversation-shell .expert-empty-state-xiaohongshu .starter-prompt-title {
  color: #9f1239;
}

/* ── Role Team Panel ───────────────────────────────────────────── */

.conversation-shell .role-team-panel {
  width: 100%;
  max-width: 840px;
  display: grid;
  gap: 14px;
}

.conversation-shell .role-team-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.conversation-shell .role-team-label {
  font-size: 13px;
  font-weight: 600;
  color: #9f1239;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.conversation-shell .role-team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.conversation-shell .role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(244, 166, 185, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 249, 0.9));
  color: #243044;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  position: relative;
}

.conversation-shell .role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 80, 121, 0.6);
  background: linear-gradient(180deg, #ffffff, #fff1f5);
  box-shadow: 0 12px 28px rgba(225, 82, 126, 0.14);
}

.conversation-shell .role-card:focus-visible {
  outline: 3px solid rgba(229, 80, 121, 0.28);
  outline-offset: 3px;
}

.conversation-shell .role-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 245, 245, 0.96), rgba(255, 228, 230, 0.9));
  color: #e11d48;
}

.conversation-shell .role-card-body {
  display: grid;
  gap: 3px;
}

.conversation-shell .role-card-name {
  font-size: 14px;
  font-weight: 650;
  color: #1f2937;
  line-height: 1.3;
}

.conversation-shell .role-card-desc {
  font-size: 11px;
  color: #667794;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Status dot — base positioning, state classes control color */
.conversation-shell .role-status-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: background 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

/* Status dot — idle (grey, static) */
.conversation-shell .role-status-dot.idle {
  background: #94a3b8;
  opacity: 0.5;
  box-shadow: none;
}

/* Status dot — active (green, pulsing) */
.conversation-shell .role-status-dot.active {
  background: #22c55e;
  opacity: 1;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: role-pulse 2s ease-in-out infinite;
}

@keyframes role-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .conversation-shell .xiaohongshu-empty-title {
    animation: none;
  }
  .conversation-shell .role-status-dot.active {
    animation: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
  }
}

/* Responsive: 3+2 grid on tablet */
@media (max-width: 900px) {
  .conversation-shell .role-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Responsive: 2 columns on small tablet */
@media (max-width: 640px) {
  .conversation-shell .role-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .conversation-shell .role-card {
    padding: 12px 8px 10px;
  }
}

.conversation-shell .starter-prompt-title {
  display: block;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.conversation-shell .starter-prompt-desc {
  display: block;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.65;
}

@keyframes home-title-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ── Home Showcase Grid (Digital Employees) ──────────────────── */

.conversation-shell .home-showcase-grid {
  width: min(100%, 780px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* Brand colour tokens per expert */
.conversation-shell .home-showcase-card[data-visual="geo"] {
  --brand: #3b82f6;
  --brand-soft: rgba(59, 130, 246, 0.12);
  --brand-glow: rgba(59, 130, 246, 0.18);
}
.conversation-shell .home-showcase-card[data-visual="xiaohongshu"] {
  --brand: #f43f5e;
  --brand-soft: rgba(244, 63, 94, 0.1);
  --brand-glow: rgba(244, 63, 94, 0.16);
}
.conversation-shell .home-showcase-card[data-visual="douyin"] {
  --brand: #06b6d4;
  --brand-soft: rgba(6, 182, 212, 0.1);
  --brand-glow: rgba(6, 182, 212, 0.16);
}
.conversation-shell .home-showcase-card[data-visual="planner"] {
  --brand: #a855f7;
  --brand-soft: rgba(168, 85, 247, 0.1);
  --brand-glow: rgba(168, 85, 247, 0.16);
}
.conversation-shell .home-showcase-card[data-visual="wechat"] {
  --brand: #22c55e;
  --brand-soft: rgba(34, 197, 94, 0.1);
  --brand-glow: rgba(34, 197, 94, 0.16);
}

.conversation-shell .home-showcase-card {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 10px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, #cbd5e1);
  background: #ffffff;
  color: #243044;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Bottom micro-glow bar */
.conversation-shell .home-showcase-card::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.38;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scaleX(0.52);
  transform-origin: center;
}

.conversation-shell .home-showcase-card:hover {
  transform: scale(1.2);
  z-index: 10;
  border-color: color-mix(in srgb, var(--brand) 52%, transparent);
  background: #ffffff;
  box-shadow: 0 16px 40px var(--brand-glow), 0 0 0 1px var(--brand-soft);
}

.conversation-shell .home-showcase-card:hover::after {
  opacity: 0.72;
  transform: scaleX(0.76);
}

.conversation-shell .home-showcase-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--brand-soft);
}

/* ── Icon ──────────────────────────────────────────────────── */

.conversation-shell .home-showcase-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.9));
  transition: box-shadow 0.28s ease;
}

.conversation-shell .home-showcase-icon svg {
  width: 28px;
  height: 28px;
}

/* Per-brand icon backgrounds */
.conversation-shell .home-showcase-card[data-visual="xiaohongshu"] .home-showcase-icon {
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.97), rgba(255, 228, 230, 0.92));
}
.conversation-shell .home-showcase-card[data-visual="douyin"] .home-showcase-icon {
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.97), rgba(207, 250, 254, 0.92));
}
.conversation-shell .home-showcase-card[data-visual="wechat"] .home-showcase-icon {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.97), rgba(220, 252, 231, 0.92));
}
.conversation-shell .home-showcase-card[data-visual="planner"] .home-showcase-icon {
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.97), rgba(237, 233, 254, 0.92));
}
/* Icon glow on card hover */
.conversation-shell .home-showcase-card:hover .home-showcase-icon {
  box-shadow: 0 0 18px var(--brand-glow);
}

/* ── Name ──────────────────────────────────────────────────── */

.conversation-shell .home-showcase-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ─────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .conversation-shell .home-empty-state {
    width: min(100%, 620px);
  }

  .conversation-shell .home-empty-state .starter-prompt-list {
    grid-template-columns: 1fr;
    width: min(100%, 520px);
  }

  .conversation-shell .expert-empty-state-xiaohongshu .starter-prompt-list {
    grid-template-columns: 1fr;
  }

  .conversation-shell .home-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .conversation-shell .home-showcase-card {
    padding: 18px 8px;
  }
}

@media (max-height: 820px) {
  .conversation-shell .home-empty-state {
    gap: 20px;
    padding-block: 10px;
  }

  .conversation-shell .home-empty-copy {
    gap: 7px;
  }

  .conversation-shell .home-empty-title {
    font-size: 22px;
  }

  .conversation-shell .home-empty-state .starter-prompt {
    min-height: 82px;
    padding: 12px 14px;
  }

  .conversation-shell .expert-empty-state-xiaohongshu {
    gap: 20px;
    padding: 0;
  }

  .conversation-shell .xiaohongshu-empty-title {
    font-size: 22px;
  }

  .conversation-shell .expert-empty-state-xiaohongshu .starter-prompt-list {
    grid-template-columns: 1fr;
  }

  .conversation-shell .home-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .conversation-shell .home-empty-title {
    animation: none;
    background-position: 50% 50%;
  }
}

.conversation-shell .message-card {
  position: relative;
  width: 100%;
  display: flex;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-bottom: 16px;
}

.conversation-shell .message-card.user {
  width: 100%;
  justify-content: flex-end;
}

.conversation-shell .message-card.assistant {
  justify-content: flex-start;
}

.conversation-shell .message-card-body {
  width: auto;
  max-width: min(72%, 760px);
}

.conversation-shell .message-card-body-user {
  margin-left: auto;
}

.conversation-shell .message-card-body-assistant {
  max-width: min(100%, 880px);
}

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

.conversation-shell .message-bubble {
  width: auto;
  display: grid;
  gap: var(--space-3);
  max-width: min(72%, 760px);
  padding: var(--space-4) var(--space-5);
  border-radius: 12px;
  border-color: rgba(147, 197, 253, 0.28);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    var(--revamp-shadow-soft);
}

.conversation-shell .message-bubble-user {
  margin-left: auto;
  border-color: rgba(96, 165, 250, 0.42);
  background: linear-gradient(135deg, #eaf3ff 0%, #f2f7ff 100%);
  color: var(--revamp-text);
}

.conversation-shell .message-bubble-assistant {
  width: auto;
  max-width: min(100%, 880px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.conversation-shell .message-card.assistant .markdown-body {
  min-width: 0;
  padding: var(--space-5) var(--space-6);
  border-radius: 12px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    var(--revamp-shadow-soft);
  overflow-wrap: anywhere;
}

.conversation-shell .message-card.user .message-plain-text,
.conversation-shell .message-card.user p {
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  color: var(--color-text-primary);
  font-size: 15px;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.conversation-shell .message-card.assistant .generation-status-card,
.conversation-shell .message-card.assistant .message-trace {
  max-width: min(100%, 880px);
}

.conversation-shell .message-card.assistant .generation-status-card {
  border-radius: 12px;
  border-color: rgba(37, 99, 235, 0.24);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: var(--revamp-shadow-soft);
}

.conversation-shell .message-card.assistant .message-trace.streaming {
  margin-bottom: 12px;
}

.conversation-shell .message-card.assistant .reasoning-strip.waiting {
  min-height: 36px;
}

.conversation-shell .message-card.assistant .reasoning-strip {
  border: 1px solid rgba(203, 213, 225, 0.62);
  background: rgba(248, 250, 252, 0.88);
}

.conversation-shell .message-card.assistant .reasoning-strip.streaming .reasoning-strip-action {
  color: #64748b;
}

.conversation-shell .message-timestamp {
  position: static;
  color: #7c8da3;
  font-size: 11px;
  line-height: 1;
  opacity: 1;
  pointer-events: none;
  white-space: nowrap;
}

.conversation-shell .message-card-actions {
  margin-right: 0;
}

.conversation-shell .composer-shell {
  --composer-textarea-height: 96px;
  --composer-textarea-min-height: 48px;
  --composer-textarea-max-height: 188px;
  position: relative;
  gap: 0;
  padding: 13px 4px 0;
  margin-top: auto;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0), rgba(248, 251, 255, 0.92) 24px);
  box-shadow: none;
  border: 0;
  border-top: 1px solid rgba(147, 197, 253, 0.22);
}

.conversation-shell .composer-shell.resizing,
.conversation-shell .composer-shell.resizing * {
  cursor: ns-resize;
}

.conversation-shell .composer-resize-handle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
  z-index: 2;
}

.conversation-shell .composer-resize-handle span {
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
  opacity: 0.72;
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.conversation-shell .composer-resize-handle:hover span,
.conversation-shell .composer-resize-handle:focus-visible span,
.conversation-shell .composer-shell.resizing .composer-resize-handle span {
  background: rgba(37, 99, 235, 0.38);
  opacity: 1;
  transform: scaleX(1.12);
}

.conversation-shell .composer-resize-handle:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.32);
  outline-offset: 2px;
}

.conversation-shell .composer-surface {
  display: grid;
  gap: 10px;
  padding: 12px 14px 11px;
  border-radius: 20px;
  border: 1px solid rgba(147, 197, 253, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    var(--revamp-shadow-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.conversation-shell .composer-surface:focus-within {
  border-color: rgba(37, 99, 235, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 3px rgba(37, 99, 235, 0.08),
    var(--revamp-shadow-soft);
}

.conversation-shell .composer-field textarea,
.conversation-shell .composer-textarea {
  height: var(--composer-textarea-height);
  min-height: var(--composer-textarea-min-height);
  max-height: var(--composer-textarea-max-height);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  resize: none;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.55;
  outline: none;
  box-shadow: none;
}

.conversation-shell .composer-field {
  gap: 0;
}

.conversation-shell .composer-field textarea::placeholder,
.conversation-shell .composer-textarea::placeholder {
  color: #8f9fbe;
}

.conversation-shell .composer-attachment-strip {
  padding-top: 2px;
  min-width: 0;
}

.conversation-shell .composer-field textarea:focus,
.conversation-shell .composer-field textarea:focus-visible,
.conversation-shell .composer-textarea:focus,
.conversation-shell .composer-textarea:focus-visible {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}

.conversation-shell .attachment-trigger.icon-only,
.conversation-shell .skill-trigger,
.conversation-shell .skill-chip,
.conversation-shell .composer-attachment-chip {
  min-width: 0;
  max-width: min(100%, 320px);
  border-color: rgba(147, 197, 253, 0.34);
  background: rgba(239, 246, 255, 0.78);
  color: var(--revamp-blue);
  box-shadow: none;
}

.conversation-shell .attachment-trigger.icon-only,
.conversation-shell .skill-trigger,
.conversation-shell .skill-chip {
  min-height: 32px;
  border-radius: 10px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.conversation-shell .attachment-trigger.icon-only,
.conversation-shell .skill-trigger {
  width: 32px;
  min-width: 32px;
}

.conversation-shell .skill-chip {
  padding: 0 11px;
}

.conversation-shell .composer-attachment-chip {
  min-height: 27px;
}

.conversation-shell .composer-attachment-chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-shell .composer-attachment-remove {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.92);
  color: #63728d;
}

.conversation-shell .composer-footer {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: none;
}

.conversation-shell .composer-left-tools {
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
  gap: 6px;
}

.conversation-shell .attachment-trigger.icon-only:hover:not(:disabled),
.conversation-shell .skill-trigger:hover:not(:disabled),
.conversation-shell .skill-chip:hover:not(:disabled),
.conversation-shell .composer-attachment-remove:hover:not(:disabled) {
  background: var(--revamp-blue-soft);
  color: var(--revamp-blue-strong);
  box-shadow: none;
}

.conversation-shell .composer-submit {
  width: 35px;
  min-width: 35px;
  height: 35px;
  padding: 0;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--revamp-gradient);
  color: #ffffff;
  font-size: 0;
  box-shadow: var(--revamp-shadow-soft);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.conversation-shell .composer-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: var(--revamp-shadow);
}

.conversation-shell .composer-submit:disabled {
  background: #dbe4ec;
  color: #64748b;
}

.conversation-shell .composer-submit svg {
  width: 16px;
  height: 16px;
}

.conversation-shell .composer-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #8392af;
}

@media (prefers-reduced-motion: reduce) {
  .shell.openclaw-theme *,
  .shell.openclaw-theme *::before,
  .shell.openclaw-theme *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* home expert switch suggestion */
.conversation-shell .home-intent-suggestion {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.42);
  background: linear-gradient(180deg, #e8f1ff 0%, #dbeafe 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    var(--revamp-shadow-soft);
}

.conversation-shell .home-intent-suggestion-leading {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: grid;
  place-items: center;
}

.conversation-shell .home-intent-suggestion-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: var(--revamp-blue);
  box-shadow: var(--revamp-shadow-soft);
}

.conversation-shell .home-intent-suggestion-icon svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  display: block;
}

.conversation-shell .home-intent-suggestion-icon-xiaohongshu,
.conversation-shell .home-intent-suggestion-icon-xhs,
.conversation-shell .home-intent-suggestion-icon-rednote {
  border-color: rgba(248, 113, 113, 0.34);
  background: #fff1f2;
  color: #dc2626;
}

.conversation-shell .home-intent-suggestion-icon-douyin {
  border-color: rgba(56, 189, 248, 0.42);
  background: #ecfeff;
  color: #0891b2;
}

.conversation-shell .home-intent-suggestion-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.conversation-shell .home-intent-suggestion-copy strong {
  color: #0f2f63;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 700;
}

.conversation-shell .home-intent-suggestion-copy p,
.conversation-shell .home-intent-suggestion-copy span {
  color: #294b78;
  font-size: 12px;
  line-height: 1.55;
}

.conversation-shell .home-intent-suggestion-copy span {
  color: var(--revamp-text-soft);
}

.conversation-shell .home-intent-suggestion-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.conversation-shell .home-intent-suggestion-actions button {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.conversation-shell .home-intent-suggestion-actions .secondary {
  border: 1px solid rgba(37, 99, 235, 0.32);
  background: rgba(255, 255, 255, 0.82);
  color: #1e40af;
}

.conversation-shell .home-intent-suggestion-actions .secondary:hover:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.48);
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: var(--revamp-shadow-soft);
}

.conversation-shell .home-intent-suggestion-actions button:not(.secondary) {
  border: 1px solid rgba(29, 78, 216, 0.78);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: var(--revamp-shadow-soft);
}

.conversation-shell .home-intent-suggestion-actions button:not(.secondary):hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: var(--revamp-shadow);
}

@media (max-width: 820px) {
  .conversation-shell .home-intent-suggestion {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .conversation-shell .home-intent-suggestion-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .conversation-shell .home-intent-suggestion {
    align-items: start;
    padding: 12px;
  }

  .conversation-shell .home-intent-suggestion-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .conversation-shell .home-intent-suggestion-actions button {
    width: 100%;
    white-space: normal;
  }
}

/* UI Component Styles */
