:root {
  --bean-chat-cyan: #68efff;
  --bean-chat-violet: #b56cff;
  --bean-chat-pink: #ff5abf;
  --bean-chat-ink: #f7fbff;
  --bean-chat-muted: #aebdca;
  --bean-chat-ease: cubic-bezier(.16, 1, .3, 1);
}

.universe-bean-chat-trigger {
  position: absolute;
  z-index: 46;
  right: 8px;
  bottom: 6px;
  width: 90px;
  height: 90px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
}

.universe-bean-chat-trigger::before,
.universe-bean-chat-trigger::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border: 1px solid rgba(105, 238, 255, .5);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.7);
  animation: bean-chat-invite 3.2s ease-out infinite;
}

.universe-bean-chat-trigger::after {
  border-color: rgba(255, 91, 196, .42);
  animation-delay: 1.6s;
}

.universe-bean-chat-trigger .universe-bean {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(104, 239, 255, .24));
  transform: translateZ(0);
  transition: transform 180ms ease-out, filter 180ms ease-out;
}

.universe-bean-chat-trigger:hover .universe-bean,
.universe-bean-chat-trigger:focus-visible .universe-bean {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 0 9px rgba(104, 239, 255, .4));
}

.universe-bean-chat-trigger:focus,
.universe-bean-chat-trigger:focus-visible {
  outline: none;
}

.bean-chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: transparent;
  transition: opacity 260ms ease, visibility 0s linear 260ms;
}

.bean-chat-backdrop.is-mobile { background: rgba(0, 0, 0, .62); }

.bean-chat-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.bean-chat-overlay {
  position: fixed;
  z-index: 3000;
  left: var(--bean-chat-left, 0px);
  top: var(--bean-chat-top, 0px);
  width: var(--bean-chat-width, 430px);
  height: var(--bean-chat-height, 430px);
  overflow: hidden;
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(24px) scale(.992);
  transform-origin: 50% 90%;
  background: #03050b;
  color: var(--bean-chat-ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .72), inset 0 0 0 1px rgba(104, 239, 255, .14);
  transition: transform 460ms var(--bean-chat-ease), opacity 260ms ease, visibility 0s linear 460ms;
}

.bean-chat-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 0%, rgba(78, 224, 255, .11), transparent 34%),
    radial-gradient(circle at 94% 90%, rgba(185, 88, 255, .1), transparent 36%);
}

.bean-chat-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, #63eeff, transparent 19%, transparent 78%, #b56cff) top / 100% 1px no-repeat,
    linear-gradient(90deg, #ff5abf, transparent 23%, transparent 82%, #6cf4b8) bottom / 100% 1px no-repeat;
}

/* 四条独立流光由 canvas 绘制，沿对话框外沿持续运行。 */
.bean-chat-overlay::after { display: none; }

.bean-chat-four-flow {
  position: absolute;
  inset: 0;
  z-index: 9;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
}

.bean-chat-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.bean-chat-panel {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr) auto;
}

.bean-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(112, 224, 245, .14);
  background: linear-gradient(90deg, rgba(11, 29, 38, .92), rgba(9, 7, 21, .88));
}

.bean-chat-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(98, 238, 255, .24));
}

.bean-chat-identity {
  min-width: 0;
  flex: 1;
}

.bean-chat-identity strong,
.bean-chat-identity small {
  display: block;
}

.bean-chat-identity strong {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: .02em;
}

.bean-chat-identity small {
  margin-top: 4px;
  color: #8fe9f7;
  font-size: 9px;
}

.bean-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bean-chat-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #67f5b4;
  box-shadow: 0 0 6px #67f5b4;
}

.bean-chat-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #d9e7ee;
  background: rgba(255, 255, 255, .045);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.bean-chat-close:hover,
.bean-chat-close:focus-visible {
  color: #fff;
  background: rgba(104, 239, 255, .12);
}

.bean-chat-close:active { transform: scale(.94); }

.bean-chat-expand {
  position: absolute;
  z-index: 12;
  top: 7px;
  right: 7px;
  width: 27px;
  height: 27px;
  margin: 0;
  padding: 5px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(104, 239, 255, .5);
  border-radius: 7px;
  color: #dffbff;
  background: rgba(0, 8, 13, .78);
  box-shadow: 0 0 9px rgba(89, 229, 255, .17), inset 0 0 6px rgba(181, 108, 255, .1);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bean-chat-expand:hover,
.bean-chat-expand:focus-visible {
  color: #fff;
  border-color: rgba(255, 90, 191, .82);
  background: rgba(16, 8, 25, .94);
  box-shadow: 0 0 12px rgba(104, 239, 255, .28), 0 0 8px rgba(255, 90, 191, .2);
  outline: none;
}

.bean-chat-expand:focus-visible {
  box-shadow: 0 0 0 2px rgba(104, 239, 255, .32), 0 0 12px rgba(255, 90, 191, .24);
}

.bean-chat-expand:active { transform: scale(.92); }

.bean-chat-expand-icon {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bean-chat-expand-inward { display: none; }
.bean-chat-overlay.is-expanded .bean-chat-expand-outward { display: none; }
.bean-chat-overlay.is-expanded .bean-chat-expand-inward { display: block; }
.bean-chat-log {
  min-height: 0;
  overflow: auto;
  padding: 16px 17px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 230, 255, .32) transparent;
}

.bean-chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 0 12px;
}

.bean-chat-row.is-user { justify-content: flex-end; }

.bean-chat-row-avatar {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  object-fit: contain;
}

.bean-chat-bubble {
  max-width: min(82%, 430px);
  padding: 10px 12px;
  border-radius: 5px 13px 13px 13px;
  color: #dfeaf1;
  background: rgba(12, 25, 34, .9);
  font-size: 11.5px;
  line-height: 1.65;
  box-shadow: inset 0 0 0 1px rgba(99, 229, 255, .12);
}

.bean-chat-row.is-user .bean-chat-bubble {
  border-radius: 13px 5px 13px 13px;
  color: #fff;
  background: linear-gradient(135deg, rgba(26, 118, 147, .92), rgba(74, 53, 139, .9));
  box-shadow: none;
}

.bean-chat-bubble strong { color: #fff; font-weight: 760; }
.bean-chat-bubble em { color: #7eeaff; font-style: normal; }

.bean-chat-copy-block { margin-top: 8px; }
.bean-chat-copy-block p { margin: 7px 0 0; }
.bean-chat-copy-block p:first-child { margin-top: 0; }
.bean-chat-stage-paragraph { text-indent: 2em; }
.bean-chat-accent-result { color: #fff; font-weight: 690; }
.bean-chat-accent-brand { color: #75e8f7; font-weight: 720; }
.bean-chat-accent-action { color: #ffd576; font-weight: 720; }

.bean-chat-invite {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(111, 228, 246, .12);
}
.bean-chat-invite-copy { min-width: 0; flex: 1; }
.bean-chat-invite-copy b,
.bean-chat-invite-copy small { display: block; }
.bean-chat-invite-copy b { color: #fff; font-size: 10.5px; }
.bean-chat-invite-copy small { margin-top: 4px; color: #8ea5b2; font-size: 8px; }
.bean-chat-invite img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  padding: 3px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(102, 235, 255, .4), 0 0 7px rgba(166, 94, 255, .18);
}

.bean-chat-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.bean-chat-result {
  min-width: 0;
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 0 0 1px rgba(164, 111, 255, .14);
}

.bean-chat-result i,
.bean-chat-result b,
.bean-chat-result small { display: block; }

.bean-chat-result i {
  width: 22px;
  height: 22px;
  margin-bottom: 5px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #74efff;
  background: rgba(78, 227, 255, .08);
  font-style: normal;
  font-size: 12px;
}

.bean-chat-result b {
  overflow: hidden;
  color: #effaff;
  font-size: 9.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bean-chat-result small {
  margin-top: 4px;
  color: #82939f;
  font-size: 7.5px;
}

.bean-chat-actions {
  padding: 10px 13px 13px;
  border-top: 1px solid rgba(112, 224, 245, .12);
  background: rgba(2, 5, 10, .94);
}

.bean-chat-quick {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bean-chat-quick::-webkit-scrollbar { display: none; }

.bean-chat-quick button {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  color: #bfeef5;
  background: rgba(73, 214, 237, .07);
  box-shadow: inset 0 0 0 1px rgba(101, 231, 255, .16);
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}

.bean-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 7px;
}

.bean-chat-input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  outline: none;
  color: #fff;
  background: #080d14;
  box-shadow: inset 0 0 0 1px rgba(127, 202, 220, .2);
  font: inherit;
  font-size: 11px;
}

.bean-chat-input::placeholder { color: #81919c; }

.bean-chat-input:focus {
  box-shadow: inset 0 0 0 1px rgba(102, 235, 255, .74), 0 0 0 2px rgba(81, 220, 255, .08);
}

.bean-chat-send {
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, filter 150ms ease, transform 150ms ease;
  color: #eafcff;
  background: rgba(0, 0, 0, .7);
}

.bean-chat-send:hover { filter: brightness(1.08); }
.bean-chat-send:active { transform: scale(.96); }

.bean-chat-send:focus-visible {
  outline: 2px solid rgba(119, 237, 255, .72);
  outline-offset: 2px;
}

.bean-chat-overlay.is-mobile {
  left: 0;
  top: auto;
  bottom: 0;
  width: 100%;
  height: min(76svh, 720px);
  border-radius: 17px 17px 0 0;
  transform: scale(.08);
  transform-origin: var(--bean-chat-origin-x, 50%) var(--bean-chat-origin-y, 100%);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .72), inset 0 0 0 1px rgba(104, 239, 255, .16);
  transition: transform 500ms var(--bean-chat-ease), visibility 0s linear 500ms;
}

.bean-chat-overlay.is-mobile.is-open {
  transform: scale(1);
  transition-delay: 0s;
}

.bean-chat-overlay.is-mobile .bean-chat-panel { grid-template-rows: 64px minmax(0, 1fr) auto; }
.bean-chat-overlay.is-mobile .bean-chat-log { padding: 15px 14px 10px; }
.bean-chat-overlay.is-mobile .bean-chat-bubble { max-width: 86%; font-size: 13px; }
.bean-chat-overlay.is-mobile .bean-chat-actions { padding-bottom: max(13px, env(safe-area-inset-bottom)); }
.bean-chat-overlay.is-mobile .bean-chat-form { grid-template-columns: minmax(0, 1fr) 58px; }
.bean-chat-overlay.is-mobile .bean-chat-result b { font-size: 10.5px; }
.bean-chat-overlay.is-mobile .bean-chat-result small { font-size: 8.5px; }

@keyframes bean-chat-invite {
  0%, 42% { opacity: 0; transform: scale(.72); }
  55% { opacity: .72; }
  88%, 100% { opacity: 0; transform: scale(1.22); }
}

@media (prefers-reduced-motion: reduce) {
  .universe-bean-chat-trigger::before,
  .universe-bean-chat-trigger::after { animation: none; }
  .bean-chat-overlay,
  .bean-chat-backdrop { transition-duration: .01ms !important; }
}

/* 官网专用：PC 入口贴近六球/主球群，弹层位于右侧留白；移动端改为底部抽屉。 */
.site-bean-trigger {
  position: fixed;
  z-index: 2000;
  left: var(--site-bean-left, calc(80vw - 41px));
  top: var(--site-bean-top, calc(50vh - 41px));
  right: auto;
  bottom: auto;
  width: var(--site-bean-size, 82px);
  height: var(--site-bean-size, 82px);
  touch-action: none;
  user-select: none;
  cursor: var(--universe-hand-cursor, pointer);
  display: block;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.site-bean-trigger.is-dragging {
  cursor: grabbing;
}

.site-bean-trigger.is-dragging .universe-bean,
.site-bean-trigger.is-dragging:hover .universe-bean {
  transform: scale(1.035);
  filter: drop-shadow(0 0 11px rgba(104, 239, 255, .48));
}

.site-bean-trigger::before,
.site-bean-trigger::after { display: none !important; }

body.bean-chat-open .site-bean-trigger {
  opacity: 0;
  pointer-events: none;
}

.bean-chat-overlay:not(.is-mobile) {
  border-radius: 14px;
  transform-origin: var(--bean-chat-origin-x, 44px) var(--bean-chat-origin-y, 44px);
  transform: scale(.08);
}

.bean-chat-overlay:not(.is-mobile).is-open {
  transform: scale(1);
}

.bean-chat-overlay.is-expanded:not(.is-mobile) {
  left: 0 !important;
  top: 0 !important;
  right: auto;
  bottom: auto;
  width: 100vw !important;
  height: 100svh !important;
  border-radius: 0;
  transform-origin: 50% 50%;
  box-shadow: inset 0 0 0 1px rgba(104, 239, 255, .16);
}

@media (max-width: 720px), (max-height: 640px) {
  .site-bean-trigger:not([data-bean-roaming]) {
    left: auto !important;
    top: auto !important;
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    width: 68px;
    height: 68px;
  }
}

body[data-force-mobile="true"] .site-bean-trigger {
  position: absolute;
  left: auto !important;
  top: auto !important;
  right: auto;
  bottom: auto;
  left: 50% !important;
  /* 移动端：位于球群正下方，并保持屏幕水平居中。 */
  top: 75.5% !important;
  width: 72px;
  height: 72px;
  transform: translateX(-50%);
}

body[data-force-mobile="true"] {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050608;
}

.mobile-device-shell {
  position: relative;
  width: min(430px, calc(100vw - 24px), calc((100svh - 24px) * 9 / 16));
  height: auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(126, 220, 238, .26), 0 10px 28px rgba(0, 0, 0, .72);
}

body[data-force-mobile="true"] #fixed-page {
  position: absolute;
}

body[data-force-mobile="true"] .bean-chat-backdrop {
  position: absolute;
  z-index: 2990;
}

body[data-force-mobile="true"] .bean-chat-overlay.is-mobile {
  position: absolute;
  z-index: 3000;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 60%;
  border-radius: 17px 17px 0 0;
}

@media (max-width: 460px) {
  .mobile-device-shell {
    width: min(calc(100vw - 16px), calc((100svh - 16px) * 9 / 16));
    height: auto;
    border-radius: 22px;
  }
}

/* 2026-08-28 转化导向：纯黑为底，推荐内容最终汇聚到官网与二维码。 */
.bean-chat-overlay,
.bean-chat-header,
.bean-chat-actions,
.bean-chat-bubble {
  background: #000;
}

.bean-chat-overlay::before {
  background:
    radial-gradient(circle at 9% 0%, rgba(77, 231, 255, .075), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(202, 81, 255, .065), transparent 30%);
}

.bean-chat-row {
  align-items: flex-start;
}

.bean-chat-row-avatar {
  margin-top: 2px;
}

.bean-chat-copy-block {
  margin-top: 0;
}

.bean-chat-actions {
  padding-top: 11px;
}

.bean-chat-results {
  margin-top: 12px;
}

.bean-chat-result {
  background: #030303;
  box-shadow: inset 0 0 0 1px rgba(104, 233, 255, .16);
}

.bean-chat-result:last-child {
  box-shadow: inset 0 0 0 1px rgba(255, 102, 206, .22);
}

.bean-chat-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bean-chat-conversion {
  position: relative;
  isolation: isolate;
  min-height: 104px;
  margin-top: 12px;
  padding: 8px 9px 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  align-items: stretch;
  gap: 9px;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: #000;
}

.bean-chat-conversion > .dual-flow-canvas {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bean-chat-conversion-links {
  min-width: 0;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.bean-chat-conversion-link {
  min-width: 0;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 7px;
  color: #fff;
  text-decoration: none;
  transition: background-color 180ms ease, filter 180ms ease;
}

.bean-chat-conversion-link + .bean-chat-conversion-link {
  border-top: 1px solid rgba(115, 231, 247, .14);
}

.bean-chat-conversion-link span,
.bean-chat-conversion-link strong,
.bean-chat-conversion-link small {
  min-width: 0;
  display: block;
}

.bean-chat-conversion-link strong {
  overflow: hidden;
  color: #fff;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bean-chat-conversion-link small {
  margin-top: 3px;
  color: #9eb4c0;
  font-size: 8px;
  line-height: 1.2;
}

.bean-chat-conversion-link i {
  flex: 0 0 auto;
  color: #78efff;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.bean-chat-conversion-link.is-center i { color: #ffd36e; }

.bean-chat-conversion-link:hover,
.bean-chat-conversion-link:focus-visible {
  background: rgba(75, 229, 255, .08);
  filter: brightness(1.18);
}

.bean-chat-conversion-link:focus-visible {
  outline: 1px solid var(--bean-chat-cyan);
  outline-offset: -1px;
}

.bean-chat-conversion-qr {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding-left: 9px;
  border-left: 1px solid rgba(195, 104, 255, .24);
}

.bean-chat-conversion-qr > img {
  width: 64px;
  height: 64px;
  padding: 3px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
}

.bean-chat-conversion-qr b {
  color: #fff;
  font-size: 8.5px;
  line-height: 1;
}

.bean-chat-conversion-qr small {
  color: #9eeef8;
  font-size: 7.5px;
  line-height: 1;
}

.bean-chat-overlay.is-mobile .bean-chat-conversion {
  min-height: 120px;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
}

.bean-chat-overlay.is-mobile .bean-chat-conversion-link { padding: 7px 9px; }
.bean-chat-overlay.is-mobile .bean-chat-conversion-link strong { font-size: 12px; }
.bean-chat-overlay.is-mobile .bean-chat-conversion-link small { font-size: 9px; }
.bean-chat-overlay.is-mobile .bean-chat-conversion-link i:not(.bean-chat-link-hand) { display: none; }
.bean-chat-overlay.is-mobile .bean-chat-conversion-qr > img { width: 76px; height: 76px; }
.bean-chat-overlay.is-mobile .bean-chat-conversion-qr b { font-size: 9px; }
.bean-chat-overlay.is-mobile .bean-chat-conversion-qr small { font-size: 8px; }

/* 实时 AI 问答、搜索模块和产品推荐结果。 */
.bean-chat-api-response {
  width: min(100%, 430px);
  max-width: calc(100% - 33px);
  padding: 11px 12px 12px;
}

.bean-chat-answer-block {
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(111, 228, 246, .13);
}

.bean-chat-capability-label {
  display: block;
  color: #fff;
  font-size: 10.5px;
  line-height: 1.35;
}

.bean-chat-answer {
  margin: 6px 0 0;
  color: #fff !important;
  white-space: pre-wrap;
}

.bean-chat-answer.is-error,
.bean-chat-dynamic-slot.is-error,
.bean-chat-api-status.is-error {
  color: #ff9fbf;
}

.bean-chat-dynamic-slot {
  color: #fff !important;
  font-weight: 690;
  white-space: pre-wrap;
}

.bean-chat-result-group {
  margin-top: 10px;
}

.bean-chat-result-group h4 {
  margin: 0;
  color: #76efff;
  font-size: 9.5px;
  line-height: 1.35;
}

.bean-chat-result-group.is-product h4 {
  color: #fff;
}

.bean-chat-api-response .bean-chat-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 6px;
}

.bean-chat-api-response .bean-chat-result {
  min-height: 66px;
  padding: 7px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.bean-chat-result-icon {
  overflow: hidden;
}

.bean-chat-api-response .bean-chat-result-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 0;
}

.bean-chat-api-response .bean-chat-result b {
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

.bean-chat-result-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bean-chat-result-icon span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.bean-chat-result-icon span[hidden] {
  display: none;
}

.bean-chat-result.is-product .bean-chat-result-icon {
  color: #fff;
  background: rgba(255, 91, 196, .08);
}

.bean-chat-api-status {
  margin: 10px 0 0;
  color: #91a7b3;
  font-size: 9px;
}

.bean-chat-pending {
  color: #9ddfea;
  animation: bean-chat-pending-pulse 1.15s ease-in-out infinite alternate;
}

.bean-chat-send:disabled {
  cursor: wait;
  filter: saturate(.45) brightness(.72);
  transform: none;
}

.bean-chat-overlay.is-mobile .bean-chat-api-response {
  width: calc(100% - 33px);
  max-width: calc(100% - 33px);
}

.bean-chat-overlay.is-mobile .bean-chat-api-response .bean-chat-results {
  grid-template-columns: minmax(0, 1fr);
}

.bean-chat-live-match {
  margin-top: 0;
}

.bean-chat-recommendation-results {
  margin-top: 5px;
}

.bean-chat-module-fallback {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #91a7b3;
  background: rgba(104, 233, 255, .05);
  font-size: 8px;
}

.bean-chat-module-fallback[hidden] {
  display: none;
}

.bean-chat-recommendation-results .bean-chat-api-status {
  grid-column: 1 / -1;
}

@keyframes bean-chat-pending-pulse {
  from { opacity: .58; }
  to { opacity: 1; }
}

.wm-dispatch-result { overflow-wrap: anywhere; min-width: 0; }
.wm-dispatch-result:empty { display: none; }
.wm-dispatch-result p { margin: .5em 0; line-height: 1.6; }
.wm-dispatch-result details { margin: .65em 0; }
.wm-dispatch-result summary { cursor: pointer; padding: .45em 0; font-weight: 600; }
.wm-dispatch-result .wm-proposal-section { border-top: 1px solid rgba(150,220,230,.3); }
.wm-proposal-row { margin: .5em 0; padding: .5em .6em; background: rgba(0,0,0,.16); border-radius: 6px; }

/* Scoped adaptation of 智造1/分层模块版.html and layout-variants.css. */
.wm-zhizao { display: grid; gap: 10px; width: 100%; color: #e4f6f8; }
.wm-zhizao .layout-bubble { min-width: 0; padding: 10px; border-radius: 9px; background: rgba(4,22,27,.84); border: 1px solid rgba(185,230,237,.25); }
.wm-zhizao h3 { display: flex; align-items: center; gap: 5px; margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
.wm-zhizao h4 { font-size: 13px; margin: 8px 0; }
.wm-zhizao p { font-size: 12px; line-height: 1.65; }
.wm-zhizao .category-item { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; }
.wm-zhizao h3 .category-item { flex-direction: row; gap: 6px; font-size: 14px; }
.wm-zhizao .module-token { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.wm-zhizao .xiaolan-preview { position: relative; display: flex; flex-direction: column; align-items: center; height: 220px; margin: 10px 0 0; }
.wm-zhizao .xiaolan-preview img { height: 195px; width: auto; max-width: 100%; object-fit: contain; }
.wm-zhizao figcaption { font-size: 14px; font-weight: 700; text-align: center; }
.wm-zhizao .merged-level-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
.wm-zhizao .merged-main-col { width: 50px; }
.wm-zhizao .merged-sub-col { width: 54px; }
.wm-zhizao .merged-level-table th,.wm-zhizao .merged-level-table td { padding: 5px 3px; vertical-align: middle; text-align: center; border-bottom: 1px solid rgba(196,230,235,.2); overflow-wrap: anywhere; }
.wm-zhizao .merged-level-table thead th { color: #cde4e7; font-size: 10px; font-weight: 500; }
.wm-zhizao .merged-level-table tbody th { background: rgba(0,0,0,.18); }
.wm-zhizao .merged-sub { background: rgba(176,215,224,.07); border-left: 1px solid rgba(196,230,235,.2); border-right: 1px solid rgba(196,230,235,.2); }
.wm-zhizao .merged-level-table .merged-result { text-align: left; padding-left: 8px; }
.wm-zhizao .merged-result p { font-size: 11px; line-height: 1.5; }
.wm-zhizao .merged-result strong { display: block; font-size: 12px; }
.wm-zhizao .selected-character { width: 48px; height: 64px; object-fit: contain; }
.wm-zhizao .description-preview { display: flex; flex-direction: column; align-items: center; margin: 10px 0; gap: 5px; }
.wm-zhizao .description-preview img { width: 72px; height: 72px; object-fit: contain; }
.wm-zhizao .description-contents p { white-space: pre-wrap; }
.wm-zhizao .merged-result summary { font-size: 10px; font-weight: 400; color: #bcd0d5; }
.wm-zhizao .quote-summary { border-color: rgba(140,237,245,.6); }
.wm-dispatch-progress { padding: 8px; font-size: 12px; color: #d3f7f9; background: rgba(0,20,25,.85); border-radius: 6px; }

#bean-chat-overlay .message-bubble:has(.wm-dispatch-result){width:100%;max-width:100%;white-space:normal}

/* Compact current-turn proposal, shared by all conversation hosts. */
.wm-zhizao .compact-section{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center}
.wm-zhizao .compact-section>h3{margin:0;border-right:1px solid #6ebbb580;padding-right:8px}
.wm-zhizao .compact-section .category-item{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center}
.wm-zhizao .compact-cards{display:flex;flex-wrap:wrap;gap:10px;min-width:0}
.wm-zhizao .compact-card{width:112px;max-width:100%;padding:7px;border:1px solid #87d7d04d;border-radius:12px;background:#091c2280;box-sizing:border-box}
.wm-zhizao .compact-card>summary{cursor:pointer;list-style:none;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px;overflow-wrap:anywhere;text-align:center}
.wm-zhizao .compact-card>summary::-webkit-details-marker{display:none}
.wm-zhizao .compact-card[open]{width:100%;text-align:left}
.wm-zhizao .compact-card[open]>summary{flex-direction:row;text-align:left}
.wm-zhizao .compact-card p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
.wm-zhizao .compact-card ul{padding-left:20px;font-size:12px}
.wm-zhizao .compact-card .module-token{width:48px;height:48px;object-fit:contain}
.wm-zhizao .compact-character{width:60px;height:70px;object-fit:contain}
.wm-zhizao .application-summary{white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}
.wm-zhizao .final-proposal .xiaolan-preview img{max-height:280px;max-width:100%;object-fit:contain}
.wm-zhizao .proposal-payment{padding:14px 20px;border:1px solid #92dbe0;border-radius:12px;background:#213550;color:#dce7ee;opacity:.7;cursor:not-allowed}
@media(max-width:480px){.wm-zhizao .compact-section{grid-template-columns:46px minmax(0,1fr);gap:8px}.wm-zhizao .compact-card{width:96px}}

/* Fixed phrases and selected values use independent semantic spans. */
.wm-zhizao .application-summary .narrative-fixed{color:#00c879;font-weight:700}
.wm-zhizao .application-summary .narrative-value{color:#fff}
.wm-zhizao .application-summary p{margin:0 0 12px;line-height:1.8;white-space:pre-wrap}

/* 智造简化09251410: original 40px icons, 54px options, category divider. */
.wm-zhizao{color:#f4f6f8;gap:10px}
.wm-zhizao .layout-bubble{border:0;border-radius:10px;background:rgba(0,0,0,.7);padding:10px;box-shadow:none}
.wm-zhizao .composition-intro{margin:0;padding:8px 10px;border-radius:10px;background:rgba(0,0,0,.7);font-size:13px;font-weight:700}
.wm-zhizao .compact-section{position:relative;grid-template-columns:48px minmax(0,1fr);column-gap:12px}
.wm-zhizao .compact-section>h3{border:0;padding:2px 0;margin:0 0 0 -10px;width:calc(100% + 10px);align-self:center;justify-content:center}
.wm-zhizao .compact-section::after{content:"";position:absolute;left:58px;top:6px;bottom:8px;width:1px;pointer-events:none;background:linear-gradient(to bottom,transparent,#f5da67 14%,#9be9b5 55%,#57cbdc 86%,transparent)}
.wm-zhizao .compact-cards{gap:2px 0;align-items:flex-start;align-content:flex-start;padding:2px 0}
.wm-zhizao details.compact-card,.wm-zhizao div.compact-card{width:54px;max-width:100%;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.wm-zhizao .compact-card>summary{padding:0;gap:2px;font-size:12px;line-height:17px;display:flex;flex-direction:column;align-items:center;text-align:center}
.wm-zhizao .compact-card>summary>span:last-child{max-width:100%;font-size:11px;line-height:17px;overflow-wrap:anywhere}
.wm-zhizao .compact-card .category-item,.wm-zhizao h3 .category-item{gap:2px;font-size:12px;line-height:17px;flex-direction:column}
.wm-zhizao .reference-token{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;flex:0 0 40px;isolation:isolate}
.wm-zhizao .reference-token img,.wm-zhizao .reference-token .compact-character{width:100%;height:100%;object-fit:contain}
.wm-zhizao .reference-value{position:absolute;z-index:2;left:50%;top:70%;transform:translate(-50%,-50%);width:76%;color:#fff;font-size:6px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;background:linear-gradient(90deg,transparent,rgba(0,0,0,.94) 10% 90%,transparent);border-top:1px solid #80d7e7;border-bottom:1px solid #d5bf79}
.wm-zhizao .module-flow-canvas{position:absolute;inset:0;pointer-events:none;z-index:3;width:100%;height:100%}
.wm-zhizao .compact-card[open]{width:100%;padding:8px;background:rgba(0,0,0,.35);border-radius:8px}
.wm-zhizao .compact-card[open]>summary{flex-direction:row;justify-content:flex-start;gap:8px}
.wm-zhizao .compact-card[open] p{font-size:12px}
.wm-zhizao .final-proposal .xiaolan-preview{position:relative;display:flex;height:260px;align-items:center;justify-content:flex-end;margin:12px 0 -10px;overflow:hidden}
.wm-zhizao .final-proposal .xiaolan-preview img{height:260px;max-height:260px;width:auto;max-width:100%;object-fit:contain}
.wm-zhizao .xiaolan-preview figcaption{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);background:rgba(0,0,0,.7);border-top:1px solid #80d7e7;border-bottom:1px solid #d5bf79;padding:1px 8px;font-size:11px}
.wm-zhizao .proposal-payment{display:grid;place-items:center;width:136px;height:48px;margin-top:12px;padding:0 14px;border:0;border-radius:8px;color:#f3fdff;background:linear-gradient(115deg,rgba(20,105,139,.28),rgba(81,45,154,.46));box-shadow:inset 0 0 0 1px rgba(99,218,255,.22);font-size:16px;font-weight:800;opacity:1}
@media(max-width:560px){.wm-zhizao .compact-section{grid-template-columns:44px minmax(0,1fr);column-gap:10px}.wm-zhizao .compact-section::after{left:54px}.wm-zhizao details.compact-card{width:54px}.wm-zhizao details.compact-card[open]{width:100%}.wm-zhizao .final-proposal .xiaolan-preview{height:210px}.wm-zhizao .final-proposal .xiaolan-preview img{height:210px}}

/* Selection changes replace the existing proposal; the dialog is shared by all chat hosts. */
.wm-zhizao .selection-entry{appearance:none;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0;text-align:center}
.wm-zhizao .selection-entry:hover,.wm-zhizao .selection-entry:focus-visible{outline:2px solid #72e9ee;outline-offset:3px;border-radius:8px}
.zhizao-selection-dialog{color:#eefbff;background:#10282e;border:1px solid #70dbe4;border-radius:16px;width:min(660px,90vw);max-height:85vh;padding:20px;box-sizing:border-box;z-index:2147483647;font:14px/1.5 sans-serif;overflow:auto}
.zhizao-selection-dialog::backdrop{background:#001014b8}
.zhizao-selection-dialog h3{margin:0 0 12px}.selection-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}
.selection-toolbar input{flex:1;min-width:100px;background:#07171e;color:white;padding:10px;border:1px solid #77cdd1;border-radius:6px}
.selection-toolbar button{background:#183e48;color:white;border:1px solid #71ced5;border-radius:6px;padding:8px 12px;cursor:pointer}.selection-toolbar button:disabled{opacity:.45;cursor:default}
.selection-branches fieldset{border:1px solid #43636b;margin:12px 0;border-radius:8px}.selection-branches legend{color:#97e9ed;padding:0 8px}
.selection-option{display:flex;gap:10px;align-items:center;padding:9px;cursor:pointer;border-radius:6px}.selection-option:hover{background:#234852}.selection-option input{width:18px;height:18px;accent-color:#5bdfd2;flex-shrink:0}
.selection-detail{margin:0 10px 8px 36px;color:#b8d7de;overflow-wrap:anywhere}.selection-detail p{white-space:pre-wrap}

.selection-branch>summary{cursor:pointer;padding:12px;background:#173941;border-radius:8px;margin-top:8px}.selection-option img{object-fit:contain;border-radius:6px}.selection-toolbar:last-child{position:sticky;bottom:-20px;background:#10282e;padding:12px 0;margin-bottom:0}

.zhizao-selection-dialog .selection-option input[type=checkbox]{flex:0 0 18px;min-width:18px;margin:0;padding:0}.zhizao-selection-dialog .selection-option span{flex:1;text-align:left}.zhizao-selection-dialog .selection-option img{flex:0 0 40px}

/* The recommendation remains visible; the picker fits the active conversation rectangle. */
.wm-zhizao button.compact-card.selection-entry{width:54px;max-width:100%;min-width:0;margin:0;padding:0;position:relative;display:flex;flex-direction:column;align-items:center;font-size:11px;line-height:17px}
.wm-zhizao .recommendation-count{font-size:9px;color:#a8e7ed;line-height:12px}.wm-zhizao .shape-list-trigger{border:0;background:none;color:inherit;padding:0;cursor:pointer}
.zhizao-selection-dialog{position:fixed;inset:auto;margin:0;max-width:none;max-height:none;min-width:0;padding:10px;border-radius:12px;overflow:hidden;box-sizing:border-box;font-size:12px}
.zhizao-selection-dialog[open]{display:flex;flex-direction:column;gap:5px}.zhizao-selection-dialog::backdrop{background:transparent}
.zhizao-selection-dialog h3{font-size:14px;margin:0;flex-shrink:0}.zhizao-selection-dialog .selection-hint{margin:0;font-size:11px;color:#b5d8df}
.zhizao-selection-dialog .selection-toolbar{margin:0;gap:4px;flex-shrink:0}.zhizao-selection-dialog .selection-toolbar input{min-width:50px;padding:6px;width:60px;font-size:12px}
.zhizao-selection-dialog .selection-toolbar select{min-width:60px;max-width:120px;background:#14323a;color:white;border:1px solid #68b6c0;border-radius:5px;padding:5px;font-size:11px}
.zhizao-selection-dialog .selection-toolbar button{padding:5px 7px;font-size:11px}.zhizao-selection-dialog [role=status]{margin:0;font-size:10px;min-height:15px}
.zhizao-selection-dialog .selection-branches{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px}
.zhizao-selection-dialog .selection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:6px;align-content:start}.zhizao-selection-dialog .selection-grid[hidden]{display:none}
.zhizao-selection-dialog .selection-option{position:relative;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:flex-start;min-width:0;border:1px solid #395861;border-radius:7px;margin:0;padding:6px 3px;color:white;font-size:11px}
.zhizao-selection-dialog .selection-option:has(input:checked){border-color:#68ded1;background:#214952}
.zhizao-selection-dialog .selection-option input[type=checkbox]{position:absolute;top:4px;right:4px;width:15px;height:15px;min-width:15px;flex:none;z-index:1}
.zhizao-selection-dialog .selection-option img{width:54px;height:64px;flex:none;object-fit:contain}.zhizao-selection-dialog .selection-option span{flex:none;text-align:center;overflow-wrap:anywhere;line-height:15px}
.zhizao-selection-dialog .selection-picked{color:#8ce6d4;font-size:9px}.zhizao-selection-dialog .selection-toolbar:last-child{position:static;padding:5px 0 0;bottom:auto;margin:0;border-top:1px solid #36515a}

.zhizao-selection-dialog .selection-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0}.zhizao-selection-dialog .selection-dismiss{flex:none;display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid #639da7;border-radius:6px;background:#193b44;color:white;font-size:22px;line-height:1;cursor:pointer}.zhizao-selection-dialog .selection-dismiss:hover{background:#30535d}
