/* ===== B平台(Rili) AI回复框容器样式 ===== */
.group.is-assistant > div.is-user\:dark {
  background: linear-gradient(145deg, rgba(3,16,27,0.96), rgba(5,35,47,0.9)) !important;
  color: #cce8eb !important;
  border-radius: 4px !important;
  border: 1px solid rgba(72,231,240,0.46) !important;
  box-shadow: 0 10px 40px rgba(0,9,16,0.5), inset 0 1px 0 rgba(148,248,252,0.1), inset 0 0 28px rgba(28,192,207,0.06) !important;
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  position: relative;
  overflow: hidden;
}
.group.is-assistant > div.is-user\:dark::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(105,245,250,0.85) 0%, rgba(72,231,240,0.5) 40%, transparent 70%);
  border-radius: 50%;
  animation: gundam-pulse 2s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(69,224,235,0.7);
}
/* ===== B平台 用户输入框样式 ===== */
.group.is-user > div.is-user\:dark {
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif !important;
  background: linear-gradient(145deg, rgba(3,16,27,0.96), rgba(5,35,47,0.9)) !important;
  color: #cce8eb !important;
  border-radius: 12px !important;
  padding: 15px 20px !important;
  box-shadow: 0 4px 15px rgba(0,9,16,0.42) !important;
  border: 1px solid rgba(72,231,240,0.46) !important;
  transition: all 0.3s ease-in-out !important;
}
.group.is-user > div.is-user\:dark:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 25px rgba(0,9,16,0.52), 0 0 16px rgba(69,224,235,0.18) !important;
  border-color: rgba(105,245,250,0.68) !important;
}
/* ===== B平台 文本样式 ===== */
.rili-markdown-renderer {
  white-space: pre-wrap !important;
  line-height: 1.6 !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  color: #cce8eb !important;
}
/* ===== B平台 按钮工具栏区域 ===== */
.group.is-assistant .bg-muted.rounded.flex.p-0\.5,
.group.is-user .bg-muted.rounded.flex.p-0\.5 {
  background: rgba(5,35,47,0.85) !important;
  border: 1px solid rgba(72,231,240,0.42) !important;
  border-radius: 8px !important;
}
.group.is-assistant .bg-muted.rounded.flex.p-0\.5 button:hover,
.group.is-user .bg-muted.rounded.flex.p-0\.5 button:hover {
  background: rgba(72,231,240,0.16) !important;
  color: #79f0f5 !important;
}
.group.is-assistant .bg-muted.rounded.flex.p-0\.5 button svg,
.group.is-user .bg-muted.rounded.flex.p-0\.5 button svg {
  stroke: #9ed4da !important;
}
.group.is-assistant .bg-muted.rounded.flex.p-0\.5 button:hover svg,
.group.is-user .bg-muted.rounded.flex.p-0\.5 button:hover svg {
  stroke: #79f0f5 !important;
}
/* ===== B平台 token消耗信息样式 ===== */
.group.is-assistant .text-muted-foreground[data-state="closed"] {
  background: rgba(3,24,36,0.85) !important;
  border: 1px solid rgba(72,231,240,0.42) !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
  color: #79f0f5 !important;
  font-weight: 600 !important;
  font-family: 'Roboto', 'Helvetica Neue', 'Segoe UI', sans-serif !important;
}
/* ===== B平台 加载动画覆盖 ===== */
.group.is-assistant .flex.gap-2.w-full.h-full.items-center.justify-center span.bg-primary.rounded-full {
  display: none !important;
}
.group.is-assistant .flex.gap-2.w-full.h-full.items-center.justify-center {
  width: 100% !important;
  height: auto !important;
  min-height: 80px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  background: linear-gradient(135deg, rgba(3,16,27,0.96), rgba(5,35,47,0.94)) !important;
  border: 1px solid rgba(72,231,240,0.46) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(24px) !important;
  box-shadow: 0 12px 40px rgba(44,62,80,0.1), inset 0 1px 0 rgba(255,255,255,0.6) !important;
  position: relative !important;
  overflow: hidden !important;
}
.group.is-assistant .flex.gap-2.w-full.h-full.items-center.justify-center::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%,-50%) !important;
  width: 60px !important;
  height: 60px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cdefs%3E%3CradialGradient id='coreGlow'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.9'/%3E%3Cstop offset='70%25' stop-color='%234a90e2' stop-opacity='0.5'/%3E%3Cstop offset='100%25' stop-color='%2334495e' stop-opacity='0.25'/%3E%3C/radialGradient%3E%3ClinearGradient id='beamGrad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%234a90e2'%3E%3Canimate attributeName='stop-color' values='%234a90e2;%237aa8e2;%23566573;%234a90e2' dur='3s' repeatCount='indefinite'/%3E%3C/stop%3E%3Cstop offset='50%25' stop-color='%237aa8e2'%3E%3Canimate attributeName='stop-color' values='%237aa8e2;%23566573;%234a90e2;%237aa8e2' dur='3s' repeatCount='indefinite'/%3E%3C/stop%3E%3Cstop offset='100%25' stop-color='%23566573'%3E%3Canimate attributeName='stop-color' values='%23566573;%234a90e2;%237aa8e2;%23566573' dur='3s' repeatCount='indefinite'/%3E%3C/stop%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='translate(60,60)'%3E%3Cg%3E%3CanimateTransform attributeName='transform' type='rotate' values='0;360' dur='4s' repeatCount='indefinite'/%3E%3Ccircle cx='0' cy='-35' r='3' fill='%234a90e2' opacity='0.8'%3E%3Canimate attributeName='opacity' values='0.8;0.3;0.8' dur='2s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='25' cy='-25' r='2.5' fill='%237aa8e2' opacity='0.7'/%3E%3Ccircle cx='35' cy='0' r='3' fill='%23566573' opacity='0.8'%3E%3Canimate attributeName='opacity' values='0.3;0.8;0.3' dur='2s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='25' cy='25' r='2.5' fill='%234a90e2' opacity='0.7'/%3E%3Ccircle cx='0' cy='35' r='3' fill='%237aa8e2' opacity='0.8'%3E%3Canimate attributeName='opacity' values='0.8;0.3;0.8' dur='2s' begin='0.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='-25' cy='25' r='2.5' fill='%23566573' opacity='0.7'/%3E%3Ccircle cx='-35' cy='0' r='3' fill='%234a90e2' opacity='0.8'%3E%3Canimate attributeName='opacity' values='0.3;0.8;0.3' dur='2s' begin='0.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='-25' cy='-25' r='2.5' fill='%237aa8e2' opacity='0.7'/%3E%3C/g%3E%3Ccircle cx='0' cy='0' r='10' fill='url(%23coreGlow)' opacity='0.9'%3E%3Canimate attributeName='r' values='8;12;8' dur='2.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3Cg%3E%3CanimateTransform attributeName='transform' type='rotate' values='0;-360' dur='6s' repeatCount='indefinite'/%3E%3Cpath d='M 0,-30 L 5,-25 L 0,-20 M 0,30 L 5,25 L 0,20 M -30,0 L -25,5 L -20,0 M 30,0 L 25,5 L 20,0' fill='none' stroke='url(%23beamGrad)' stroke-width='1.5' opacity='0.7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: drop-shadow(0 0 12px rgba(74,144,226,0.4)) !important;
}
.group.is-assistant .flex.gap-2.w-full.h-full.items-center.justify-center::after {
  content: 'SYSTEM PROCESSING...' !important;
  position: absolute !important;
  bottom: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  font-family: "Roboto Mono", "Courier New", monospace !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #79f0f5 !important;
  letter-spacing: 0.2em !important;
  animation: gundam-text-fade 2.5s ease-in-out infinite alternate !important;
}
/* ===== 动画定义 ===== */
@keyframes gundam-pulse {
  0%,100% { opacity: 0.6; box-shadow: 0 0 15px rgba(74,144,226,0.5) }
  50% { opacity: 1; box-shadow: 0 0 30px rgba(74,144,226,0.8) }
}
@keyframes gundam-radar {
  0% { transform: rotate(0deg) }
  100% { transform: rotate(360deg) }
}
@keyframes gundam-border-glow {
  0%,100% { border-color: rgba(122,168,224,0.5); box-shadow: inset 0 0 12px rgba(122,168,224,0.2) }
  50% { border-color: rgba(74,144,226,0.8); box-shadow: inset 0 0 20px rgba(74,144,226,0.3) }
}
@keyframes gundam-corner-expand {
  0%,100% { width: 18px; height: 18px }
  50% { width: 24px; height: 24px }
}
@keyframes gundam-text-fade {
  0% { opacity: 0.7; text-shadow: 0 0 4px rgba(44,62,80,0.1) }
  50% { opacity: 1; text-shadow: 0 0 8px rgba(44,62,80,0.15) }
  100% { opacity: 0.7; text-shadow: 0 0 4px rgba(44,62,80,0.1) }
}
@keyframes bg-scroll {
  0% { background-position: 0 0 }
  100% { background-position: 200px 200px }
}
@keyframes pulse-indicator {
  0%,100% { opacity: 0.7; transform: scale(1) }
  50% { opacity: 1; transform: scale(1.2) }
}
@keyframes glow-text {
  0%,100% { text-shadow: 0 0 10px rgba(100,255,218,0.5) }
  50% { text-shadow: 0 0 18px rgba(100,255,218,0.8), 0 0 30px rgba(100,255,218,0.5) }
}
@keyframes cot-fade-out {
  0% { opacity: 1 }
  60% { opacity: 0 }
  100% { opacity: 0; visibility: hidden; height: 0; margin: 0; padding: 0; overflow: hidden; aspect-ratio: auto; pointer-events: none }
}
/* ===== COT 思考标签样式 ===== */
cot {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 3/1;
  overflow: hidden;
  box-sizing: border-box;
  contain: size layout paint;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
}
cot * {
  display: none !important;
}
cot::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  animation: none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200'%3E%3Cdefs%3E%3ClinearGradient id='bg' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f0f4f8'/%3E%3Cstop offset='1' stop-color='%23e6ecf2'/%3E%3C/linearGradient%3E%3Cpattern id='grid' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 20 0 L 0 0 0 20' fill='none' stroke='%23d8dee9' stroke-width='0.5'/%3E%3C/pattern%3E%3CradialGradient id='core' cx='50%25' cy='50%25' r='30%25'%3E%3Cstop offset='0' stop-color='%234a90e2' stop-opacity='0.8'/%3E%3Cstop offset='1' stop-color='%2334495e' stop-opacity='0'/%3E%3C/radialGradient%3E%3ClinearGradient id='beam' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%234a90e2' stop-opacity='0'/%3E%3Cstop offset='0.5' stop-color='%237aa8e2' stop-opacity='0.6'/%3E%3Cstop offset='1' stop-color='%234a90e2' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='600' height='200' fill='url(%23bg)'/%3E%3Crect width='600' height='200' fill='url(%23grid)' opacity='0.7'/%3E%3Cg transform='translate(300,100)'%3E%3Ccircle cx='0' cy='0' r='60' fill='none' stroke='%237aa8e2' stroke-width='0.7' opacity='0.5'%3E%3Canimate attributeName='r' values='50;70;50' dur='4s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0.5;0.2;0.5' dur='4s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='0' cy='0' r='40' fill='none' stroke='%234a90e2' stroke-width='1' opacity='0.7'%3E%3Canimate attributeName='r' values='35;55;35' dur='3s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0.7;0.3;0.7' dur='3s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='0' cy='0' r='25' fill='url(%23core)'/%3E%3Cg%3E%3CanimateTransform attributeName='transform' type='rotate' values='0;360' dur='8s' repeatCount='indefinite'/%3E%3Cline x1='0' y1='-50' x2='0' y2='-70' stroke='%234a90e2' stroke-width='1.5' opacity='0.8'/%3E%3Cline x1='0' y1='50' x2='0' y2='70' stroke='%234a90e2' stroke-width='1.5' opacity='0.8'/%3E%3Cline x1='-50' y1='0' x2='-70' y2='0' stroke='%237aa8e2' stroke-width='1.5' opacity='0.7'/%3E%3Cline x1='50' y1='0' x2='70' y2='0' stroke='%237aa8e2' stroke-width='1.5' opacity='0.7'/%3E%3C/g%3E%3C/g%3E%3Cg opacity='0.5'%3E%3Crect x='-100' y='80' width='800' height='1' fill='url(%23beam)'%3E%3CanimateTransform attributeName='transform' type='translate' from='-50 0' to='50 0' dur='5s' repeatCount='indefinite'/%3E%3C/rect%3E%3C/g%3E%3Ctext x='50%25' y='55%25' text-anchor='middle' font-size='24' font-family='Roboto, Arial, sans-serif' font-weight='700' fill='%232c3e50' opacity='0.9' letter-spacing='3'%3EMOBILE SUIT SYSTEM%3C/text%3E%3Ctext x='50%25' y='72%25' text-anchor='middle' font-size='12' font-family='Courier New, monospace' fill='%23566573' opacity='0.85' letter-spacing='2'%3EANALYZING TACTICAL DATA...%3C/text%3E%3C/svg%3E");
}
cot:has(postition[stop]), cot:has(+ postition[stop]), cot:has(~ postition[stop]) {
  animation: cot-fade-out 600ms ease forwards;
}
cot:has(postition[stop])::before, cot:has(+ postition[stop])::before, cot:has(~ postition[stop])::before {
  animation-play-state: paused !important;
  opacity: 0;
  transition: opacity .4s ease;
  content: none !important;
  background: none !important;
}
/* ===== 自定义HTML内容样式（跨平台通用，不修改） ===== */
.styled-prose-container {
  font-family: 'Roboto', 'Helvetica Neue', 'Segoe UI', 'Noto Sans SC', sans-serif;
  position: relative;
  z-index: 1;
  line-height: 1.8;
  letter-spacing: 0.3px;
  white-space: normal;
  color: #cce8eb;
}
.styled-prose-container br {
  line-height: 1.2;
}
.styled-prose-container details {
  box-sizing: border-box;
  display: block;
  width: calc(100% + 56px);
  max-width: calc(100% + 56px);
  background:
    linear-gradient(rgba(72,231,240,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72,231,240,0.025) 1px, transparent 1px),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(105,245,250,0.018) 18px 19px, transparent 19px 36px),
    linear-gradient(145deg, rgba(3,16,27,0.92), rgba(5,35,47,0.82));
  background-size: 28px 28px, 28px 28px, 52px 52px, 100% 100%;
  border-radius: 0;
  margin: 8px -28px;
  overflow: hidden;
  border: 1px solid rgba(72,231,240,0.48);
  box-shadow: 0 4px 20px rgba(0,9,16,0.38), inset 0 1px 0 rgba(148,248,252,0.1), inset 0 0 28px rgba(28,192,207,0.07);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  font-size: 14px;
  line-height: 1.65;
  padding: 0 16px 12px 16px;
  color: #cce8eb;
  position: relative;
  white-space: normal;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.styled-prose-container details::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 3px;
  height: calc(100% - 16px);
  background: linear-gradient(180deg, #8bf8fc, rgba(21,185,211,0.36));
  box-shadow: 0 0 12px rgba(69,224,235,0.78);
  opacity: 0.68;
  transition: opacity 0.4s ease;
}
.styled-prose-container details:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 26px rgba(0,9,16,0.48), 0 0 18px rgba(69,224,235,0.18), inset 0 1px 0 rgba(148,248,252,0.15);
  border-color: rgba(105,245,250,0.78);
}
.styled-prose-container details:hover::before {
  opacity: 1;
}
.styled-prose-container details[open] {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='%2348e7f0' stroke-width='1' opacity='0.055'%3E%3Cpath d='M14 14 H70 V56 H126 M14 84 H42 V126 M98 84 V112 H126 M70 112 H35 M98 28 V14'/%3E%3C/g%3E%3Cg fill='%2348e7f0' opacity='0.09'%3E%3Ccircle cx='14' cy='14' r='2'/%3E%3Ccircle cx='126' cy='56' r='2'/%3E%3Ccircle cx='14' cy='84' r='2'/%3E%3Ccircle cx='42' cy='126' r='2'/%3E%3Ccircle cx='126' cy='112' r='2'/%3E%3Ccircle cx='35' cy='112' r='2'/%3E%3Ccircle cx='98' cy='14' r='2'/%3E%3C/g%3E%3C/svg%3E") repeat,
    linear-gradient(rgba(72,231,240,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72,231,240,0.025) 1px, transparent 1px),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(105,245,250,0.018) 18px 19px, transparent 19px 36px),
    linear-gradient(145deg, rgba(3,16,27,0.92), rgba(5,35,47,0.82));
  background-size: 140px 140px, 28px 28px, 28px 28px, 52px 52px, 100% 100%;
}
.styled-prose-container details summary {
  box-sizing: border-box;
  width: calc(100% + 64px);
  min-height: 44px;
  background:
    linear-gradient(180deg, #48e7f0, rgba(21,185,211,0.45)) left center / 3px 100% no-repeat,
    linear-gradient(rgba(121,240,245,0.6), rgba(121,240,245,0.6)) 8px calc(50% - 6px) / 10px 2px no-repeat,
    linear-gradient(rgba(121,240,245,0.35), rgba(121,240,245,0.35)) 8px calc(50% + 6px) / 14px 2px no-repeat,
    linear-gradient(135deg, transparent 0 12px, rgba(121,240,245,0.14) 12px 13px, transparent 13px 25px) 26px center / 86px 100% no-repeat,
    linear-gradient(90deg, rgba(121,240,245,0.16) 0 1px, transparent 1px 100%) 30px center / 18px 18px no-repeat,
    linear-gradient(90deg, rgba(22,181,202,0.26), rgba(6,42,55,0.34) 55%, rgba(2,19,30,0.92));
  padding: 11px 52px 11px 30px;
  margin: 0 -32px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  color: #79f0f5;
  text-shadow: 0 0 9px rgba(69,224,235,0.38);
  letter-spacing: 1px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  list-style: none;
  border-bottom: 1px solid rgba(72,231,240,0.42);
  box-shadow: inset 0 -1px 0 rgba(105,245,250,0.06), inset -72px 0 54px rgba(15,151,171,0.06), inset 72px 0 48px rgba(69,224,235,0.035);
  transition: all 0.3s ease;
}
.styled-prose-container details summary::-webkit-details-marker {
  display: none;
}
.styled-prose-container details summary::before {
  content: '';
  position: absolute;
  right: 17px;
  top: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid rgba(121,240,245,0.92);
  filter: drop-shadow(0 0 5px rgba(69,224,235,0.72));
  transform: translateY(-50%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), border-color 0.3s ease;
}
.styled-prose-container details[open] > summary::before {
  transform: translateY(-50%) rotate(180deg);
}
.styled-prose-container details summary:hover::before {
  border-top-color: #a1f8fb;
}
.styled-prose-container details[open] > summary {
  background:
    linear-gradient(180deg, #a5f8fb, rgba(36,205,221,0.55)) left center / 3px 100% no-repeat,
    linear-gradient(rgba(165,248,251,0.7), rgba(165,248,251,0.7)) 8px calc(50% - 6px) / 10px 2px no-repeat,
    linear-gradient(rgba(165,248,251,0.4), rgba(165,248,251,0.4)) 8px calc(50% + 6px) / 14px 2px no-repeat,
    linear-gradient(135deg, transparent 0 12px, rgba(165,248,251,0.18) 12px 13px, transparent 13px 25px) 26px center / 86px 100% no-repeat,
    linear-gradient(90deg, rgba(165,248,251,0.18) 0 1px, transparent 1px 100%) 30px center / 18px 18px no-repeat,
    linear-gradient(90deg, rgba(24,205,221,0.3), rgba(6,43,56,0.3) 66%, rgba(2,19,30,0.82));
  border-bottom-color: rgba(105,245,250,0.68);
  color: #a5f8fb;
  padding-top: 11px;
  margin-bottom: 8px;
}
.styled-prose-container details > *:not(summary) {
  padding: 0;
  line-height: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  white-space: normal;
}
/* ===== 聊天气泡样式 ===== */
.chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px;
  background: linear-gradient(135deg, rgba(3,16,27,0.96) 0%, rgba(5,35,47,0.92) 50%, rgba(2,19,30,0.98) 100%);
  border: 1px solid rgba(72,231,240,0.42);
  border-left: 4px solid #48e7f0;
  border-radius: 2px;
  margin: 20px 0;
  position: relative;
  font-family: 'Roboto Condensed', 'Noto Sans SC', sans-serif;
  box-shadow: 0 6px 24px rgba(0,9,16,0.58), inset 0 1px 0 rgba(148,248,252,0.12), inset 0 0 28px rgba(28,192,207,0.06);
  overflow: hidden;
}
.chat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='hex' width='50' height='43.3' patternUnits='userSpaceOnUse'%3E%3Cpath d='M25 0 L50 14.43 L50 43.3 L25 57.73 L0 43.3 L0 14.43 Z' fill='none' stroke='%2300ffff' stroke-width='0.5' opacity='0.1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23hex)'/%3E%3C/svg%3E");
  background-size: 50px 43.3px;
  animation: bg-scroll 25s linear infinite;
  opacity: 0.8;
  z-index: 0;
}
.chat::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,255,0.04) 2px, rgba(0,255,255,0.04) 3px);
  pointer-events: none;
  z-index: 0;
}
.chat > * {
  position: relative;
  z-index: 1;
}
.bubble {
  max-width: 75%;
  padding: 12px 18px;
  position: relative;
  line-height: 1.7;
  word-wrap: break-word;
  background: linear-gradient(145deg, rgba(7,42,54,0.9), rgba(3,24,36,0.94));
  border: 1px solid rgba(72,231,240,0.34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,9,16,0.42), inset 0 0 0 1px rgba(105,245,250,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,9,16,0.52), 0 0 15px rgba(69,224,235,0.2);
}
.bubble.npc {
  color: #cce8eb;
  align-self: flex-start;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.bubble.user {
  color: #cce8eb;
  align-self: flex-end;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.bubble .name {
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
  opacity: 0.8;
}
.bubble.npc .name {
  color: #79f0f5;
}
.bubble.user .name {
  color: #a5f8fb;
}
.bubble .msg {
  margin: 0;
  font-size: 0.95em;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
/* ===== 文档面板样式 ===== */
.doc {
  background: linear-gradient(180deg, rgba(3,16,27,0.98) 0%, rgba(5,35,47,0.94) 100%);
  border: 1px solid rgba(72,231,240,0.46);
  border-radius: 0;
  padding: 28px 32px;
  margin: 24px 0;
  position: relative;
  font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
  box-shadow: 0 8px 28px rgba(0,9,16,0.68), inset 0 0 20px rgba(28,192,207,0.1);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}
.doc::after {
  content: 'SYSTEM ONLINE';
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 0.6em;
  color: rgba(121,240,245,0.68);
  letter-spacing: 2px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(69,224,235,0.58);
  font-family: 'Orbitron', sans-serif;
}
.doc .title {
  color: #79f0f5;
  font-size: 1.5em;
  font-weight: 700;
  margin: 0 0 24px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(72,231,240,0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(69,224,235,0.6);
  animation: glow-text 3s ease-in-out infinite;
}
.doc .content {
  color: #cce8eb;
  font-size: 0.9em;
  line-height: 1.9;
  font-family: 'Roboto Condensed', 'Noto Sans SC', sans-serif;
}
.doc .content p {
  margin: 0 0 1.2em 0;
  text-align: justify;
}
.doc .content p:last-child {
  margin-bottom: 0;
}
/* ===== 提示框样式 ===== */
.tip {
  position: relative;
  display: inline-block;
  color: #79f0f5;
  font-weight: 600;
  border-bottom: 2px solid rgba(72,231,240,0.72);
  cursor: help;
  transition: all 0.3s ease;
  z-index: 9998;
}
.tip:hover {
  color: #a5f8fb;
  border-bottom-color: #a5f8fb;
  text-shadow: 0 0 10px rgba(69,224,235,0.58);
}
.tip .text {
  visibility: hidden;
  width: 320px;
  background: linear-gradient(135deg, #03101b 0%, #05232f 50%, #02131e 100%);
  color: #cce8eb;
  text-align: left;
  border: 2px solid #48e7f0;
  border-radius: 2px;
  padding: 18px 20px;
  position: fixed;
  z-index: 9999;
  bottom: auto;
  left: 50%;
  transform: translate(-50%,-100%) translateY(-20px);
  margin-left: 0;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  font-weight: 400;
  font-size: 0.85em;
  line-height: 1.9;
  box-shadow: 0 12px 28px rgba(0,9,16,0.82), 0 6px 14px rgba(0,9,16,0.68), inset 0 1px 0 rgba(148,248,252,0.16);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  pointer-events: none;
  font-family: 'Roboto Condensed', 'Noto Sans SC', sans-serif;
}
.tip .text::before {
  content: '【 DATABASE ENTRY 】';
  display: block;
  font-size: 0.7em;
  color: #79f0f5;
  margin-bottom: 12px;
  letter-spacing: 3px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(69,224,235,0.82);
  font-family: 'Orbitron', sans-serif;
}
.tip:hover .text {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%,-100%) translateY(-10px);
  pointer-events: auto;
}
.tip .text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -10px;
  border-width: 10px;
  border-style: solid;
  border-color: #48e7f0 transparent transparent transparent;
  filter: drop-shadow(0 3px 5px rgba(0,9,16,0.5));
}
/* ===== EP交换面板样式 ===== */
.ep-exchange {
  background: linear-gradient(145deg, rgba(3,16,27,0.96), rgba(5,35,47,0.9));
  border: 1px solid rgba(72,231,240,0.46);
  padding: 24px;
  margin: 20px 0;
  font-family: 'Roboto Condensed', 'Noto Sans SC', sans-serif;
  color: #cce8eb;
  box-shadow: 0 6px 24px rgba(0,9,16,0.48), inset 0 0 24px rgba(28,192,207,0.07);
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.ep-exchange .title {
  color: #79f0f5;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 10px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(72,231,240,0.46);
  text-shadow: 0 0 10px rgba(69,224,235,0.52);
}
.ep-exchange .balance {
  background: rgba(28,192,207,0.12);
  border-left: 3px solid #48e7f0;
  padding: 8px 12px;
  margin: 16px 0;
  font-size: 1.1em;
  font-weight: 700;
  color: #e8fbfc;
}
.ep-exchange .category {
  margin: 20px 0;
}
.ep-exchange .category h4 {
  color: #e8fbfc;
  font-size: 1em;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
  border-bottom: 1px dashed rgba(121,240,245,0.3);
  padding-bottom: 6px;
}
.ep-exchange ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  min-height: 1.2em;
}
.ep-exchange li {
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid rgba(72,231,240,0.16);
}
.ep-exchange li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #79f0f5;
  font-weight: 700;
}
.ep-exchange li:last-child {
  border-bottom: none;
}
.ep-exchange .cost {
  color: #6ee7ff;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(69,224,235,0.42);
}
.ep-exchange .prompt {
  margin-top: 20px;
  padding: 10px;
  background: rgba(0,9,16,0.42);
  border: 1px solid rgba(72,231,240,0.24);
  text-align: center;
  color: #cce8eb;
  font-style: italic;
}
.ep-exchange .secondary-prompt {
  margin-top: 8px;
  padding: 8px;
  background: transparent;
  border: none;
  font-size: 0.9em;
  color: rgba(204,232,235,0.7);
}
/* ===== classUI 组件样式 ===== */
.classUI-story {
  background: linear-gradient(145deg, rgba(3,16,27,0.96), rgba(5,35,47,0.88));
  border: 1px solid rgba(72,231,240,0.42);
  border-left: 4px solid rgba(72,231,240,0.82);
  border-radius: 2px;
  padding: 16px 20px;
  margin: 10px 0;
  color: #cce8eb;
  font-size: 15px;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(148,248,252,0.1), inset 0 0 24px rgba(28,192,207,0.06), 0 0 20px rgba(0,9,16,0.38);
  position: relative;
  letter-spacing: 0.4px;
}
.classUI-story::before, .classUI-story::after {
  content: '';
  position: absolute;
  border-color: rgba(72,231,240,0.62);
  border-style: solid;
  transition: all 0.4s ease;
}
.classUI-story::before {
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 2px;
}
.classUI-story::after {
  bottom: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 2px;
}
.classUI-story:hover::before, .classUI-story:hover::after {
  animation: gundam-corner-expand 1.5s ease-in-out infinite;
  border-color: #79f0f5;
}
.classUI-subsection {
  font-weight: 700;
  color: #79f0f5;
  margin: 10px 0 6px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(72,231,240,0.38);
  font-size: 13px;
  letter-spacing: 0.8px;
  text-shadow: 0 0 8px rgba(69,224,235,0.38);
  text-transform: uppercase;
}
.classUI-npc-card {
  background: rgba(5,35,47,0.66);
  border: 1px solid rgba(72,231,240,0.34);
  border-radius: 2px;
  padding: 12px;
  margin: 8px 0;
  box-shadow: 0 2px 10px rgba(0,9,16,0.28), inset 0 0 16px rgba(28,192,207,0.04);
  transition: all 0.3s ease;
  position: relative;
}
.classUI-npc-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(105,245,250,0.82));
  transition: width 0.4s ease;
}
.classUI-npc-card:hover {
  background: rgba(7,48,61,0.78);
  border-color: rgba(105,245,250,0.62);
  box-shadow: 0 4px 15px rgba(0,9,16,0.4), 0 0 14px rgba(69,224,235,0.1);
}
.classUI-npc-card:hover::before {
  width: 100%;
}
.classUI-npc-name {
  font-size: 16px;
  font-weight: 700;
  color: #79f0f5;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(72,231,240,0.48);
  letter-spacing: 0.6px;
  text-shadow: 0 0 8px rgba(69,224,235,0.42);
}
.classUI-memory {
  background: linear-gradient(145deg, rgba(3,20,32,0.96), rgba(5,39,51,0.9));
  border-color: rgba(105,245,250,0.66);
  padding-bottom: 0;
  animation: gundam-border-glow 4s ease-in-out infinite;
}
.classUI-memory-section {
  margin: 0 0 10px 0;
  padding: 0;
  background: transparent;
  border: none;
}
.classUI-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  border-radius: 2px;
  overflow: auto;
  border: 1px solid rgba(72,231,240,0.42);
  box-shadow: 0 4px 15px rgba(0,9,16,0.38);
  display: block;
}
.classUI-table thead th {
  background: linear-gradient(160deg, rgba(11,67,82,0.9), rgba(4,35,49,0.94));
  color: #a5f8fb;
  padding: 12px 10px;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  border-bottom: 2px solid rgba(72,231,240,0.62);
  text-shadow: 0 0 7px rgba(69,224,235,0.36);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.classUI-table tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(72,231,240,0.16);
  background: rgba(3,24,36,0.76);
  font-size: 13px;
  color: #cce8eb;
  vertical-align: middle;
  transition: background-color 0.3s ease;
}
.classUI-table tbody tr:last-child td {
  border-bottom: none;
}
.classUI-table tbody tr:hover td {
  background: rgba(12,76,91,0.62);
}
.classUI-actions {
  background: linear-gradient(180deg, rgba(6,43,56,0.82), rgba(3,24,36,0.9));
  border: 1px solid rgba(72,231,240,0.46);
  border-radius: 2px;
  padding: 14px 18px;
  margin-top: 10px;
  color: #cce8eb;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.7;
  box-shadow: 0 4px 18px rgba(0,9,16,0.38), inset 0 1px 0 rgba(148,248,252,0.08);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}
/* ===== 音频播放器样式 ===== */
.classUI-audio-player {
  width: 100%;
  height: 35px;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(5,35,47,0.96), rgba(3,20,32,0.98));
  border-radius: 18px;
  border: 1px solid rgba(72,231,240,0.46);
  box-shadow: 0 4px 15px rgba(0,9,16,0.4), inset 0 1px 2px rgba(148,248,252,0.1);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  accent-color: #48e7f0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.classUI-audio-player:hover {
  border-color: rgba(105,245,250,0.68);
  box-shadow: 0 6px 20px rgba(0,9,16,0.5), 0 0 12px rgba(69,224,235,0.14), inset 0 1px 2px rgba(148,248,252,0.14);
}
.classUI-audio-player::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(72,231,240,0.08) 20px, rgba(72,231,240,0.08) 21px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.classUI-audio-player::-webkit-media-controls-panel {
  background: transparent;
}
.classUI-audio-player::-webkit-media-controls-play-button,
.classUI-audio-player::-webkit-media-controls-mute-button {
  background-color: rgba(72,231,240,0.12);
  border-radius: 50%;
  transition: all 0.3s ease;
  filter: brightness(0) saturate(100%) invert(86%) sepia(38%) saturate(1192%) hue-rotate(126deg) brightness(99%) contrast(90%);
  margin: 0 4px;
}
.classUI-audio-player::-webkit-media-controls-play-button:hover,
.classUI-audio-player::-webkit-media-controls-mute-button:hover {
  background-color: rgba(72,231,240,0.22);
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(69,224,235,0.34);
}
.classUI-audio-player::-webkit-media-controls-current-time-display,
.classUI-audio-player::-webkit-media-controls-time-remaining-display {
  color: #cce8eb;
  font-weight: 600;
  font-size: 11px;
  text-shadow: 0 0 5px rgba(69,224,235,0.26);
  font-family: 'Roboto', 'Helvetica Neue', sans-serif;
}
.classUI-audio-player::-webkit-media-controls-timeline {
  background-color: rgba(72,231,240,0.14);
  border-radius: 8px;
  height: 6px;
  border: 1px solid rgba(72,231,240,0.4);
  box-shadow: inset 0 1px 3px rgba(0,9,16,0.42), 0 0 0 1px rgba(148,248,252,0.06);
  transition: all 0.3s ease;
}
.classUI-audio-player::-webkit-media-controls-timeline:hover {
  background-color: rgba(72,231,240,0.22);
  border-color: rgba(105,245,250,0.68);
  box-shadow: inset 0 1px 3px rgba(0,9,16,0.5), 0 0 8px rgba(69,224,235,0.18);
}
.classUI-audio-player::-webkit-media-controls-volume-slider {
  background-color: rgba(72,231,240,0.14);
  border-radius: 8px;
  height: 6px;
  border: 1px solid rgba(72,231,240,0.4);
  box-shadow: inset 0 1px 2px rgba(0,9,16,0.42);
  transition: all 0.3s ease;
}
.classUI-audio-player::-webkit-media-controls-volume-slider:hover {
  background-color: rgba(72,231,240,0.22);
  border-color: rgba(105,245,250,0.62);
}
.classUI-audio-player::-webkit-media-controls-seek-back-button,
.classUI-audio-player::-webkit-media-controls-seek-forward-button {
  filter: brightness(0) saturate(100%) invert(86%) sepia(38%) saturate(1192%) hue-rotate(126deg) brightness(99%) contrast(90%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.classUI-audio-player::-webkit-media-controls-seek-back-button:hover,
.classUI-audio-player::-webkit-media-controls-seek-forward-button:hover {
  opacity: 1;
}
/* ===== 隐藏 think 标签 ===== */
think {
  display: none !important;
}
/* ===== 响应式 - 移动端 ===== */
@media (max-width: 768px) {
  .styled-prose-container details {
    font-size: 13px;
    line-height: 1.8;
    padding: 0 16px 14px 16px;
  }
  .styled-prose-container details summary {
    padding: 12px 40px 12px 26px;
    margin: 0 -16px;
    font-size: 14px;
  }
  .styled-prose-container details[open] > summary {
    padding-top: 14px;
    margin-bottom: 14px;
  }
  .classUI-table tbody td,
  .classUI-table thead th {
    font-size: 11px;
    padding: 8px 6px;
  }
  .classUI-story {
    font-size: 14px;
    padding: 18px 20px;
  }
  .classUI-npc-card {
    padding: 14px;
  }
  .classUI-actions {
    font-size: 13px;
    padding: 16px 18px;
  }
  .classUI-audio-player {
    height: 32px;
  }
  .chat {
    padding: 20px 16px;
    gap: 12px;
  }
  .bubble {
    max-width: 85%;
    padding: 10px 14px;
  }
  .doc {
    padding: 20px;
  }
  .ep-exchange {
    padding: 16px;
  }
  .tip .text {
    width: 260px;
  }
  /* 移动端禁用 backdrop-filter */
  .group.is-assistant > div.is-user\:dark,
  .bubble,
  .group.is-assistant .flex.gap-2.w-full.h-full.items-center.justify-center {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  /* 移动端禁用 transition */
  .group.is-user > div.is-user\:dark,
  .styled-prose-container details,
  .bubble {
    transition: none !important;
  }
  .group.is-user > div.is-user\:dark:hover,
  .bubble:hover,
  .styled-prose-container details:hover {
    transform: none !important;
    box-shadow: inherit !important;
  }
  /* 移动端禁用动画 */
  .group.is-assistant > div.is-user\:dark::after,
  .classUI-memory,
  .doc .title,
  .group.is-assistant .flex.gap-2.w-full.h-full.items-center.justify-center::after,
  .classUI-story:hover::before, .classUI-story:hover::after {
    animation: none !important;
  }
  /* 移动端简化AI回复框 */
  .group.is-assistant > div.is-user\:dark {
    background: #04202c !important;
    color: #cce8eb !important;
    border: 1px solid rgba(72,231,240,0.42) !important;
    box-shadow: 0 2px 8px rgba(0,9,16,0.3) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .group.is-assistant > div.is-user\:dark::before,
  .group.is-assistant > div.is-user\:dark::after {
    display: none !important;
  }
  /* 移动端简化用户输入框 */
  .group.is-user > div.is-user\:dark {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    transition: none !important;
  }
  .group.is-user > div.is-user\:dark:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  }
  .chat::before, .chat::after {
    display: none !important;
  }
  .classUI-audio-player {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
  }
  .classUI-audio-player::before {
    display: none !important;
  }
  cot::before {
    content: none !important;
    background: none !important;
    animation: none !important;
  }
  .group.is-assistant .flex.gap-2.w-full.h-full.items-center.justify-center::before {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .classUI-memory {
    animation: none;
  }
  .group.is-assistant > div.is-user\:dark::after {
    animation: none;
  }
  cot::before {
    animation: none;
  }
  .classUI-story:hover::before,
  .classUI-story:hover::after {
    animation: none;
  }
  .chat::before {
    animation: none;
  }
  .doc .title {
    animation: none;
  }
  .group.is-assistant .flex.gap-2.w-full.h-full.items-center.justify-center::after {
    animation: none;
  }
}
.styled-prose-container details:not([open]) {
  padding-bottom: 0;
}
.styled-prose-container details[open] > summary + *,
.styled-prose-container details[open] > *:last-child {
  margin-top: 0;
  margin-bottom: 0;
}
@media screen and (max-width: 768px) {
  .styled-prose-container details {
    width: calc(100% + 8px);
    max-width: calc(100% + 8px);
    margin: 6px -4px;
    padding: 0 12px 10px 12px;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  }
  .styled-prose-container details summary {
    width: calc(100% + 24px);
    min-height: 40px;
    padding: 10px 38px 10px 26px;
    margin: 0 -12px;
    font-size: 14px;
    letter-spacing: 0.7px;
  }
  .styled-prose-container details summary::before {
    right: 14px;
  }
  .styled-prose-container details[open] > summary {
    padding-top: 10px;
    margin-bottom: 10px;
  }
}
.styled-prose-container details summary::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(176px, 48%);
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='42' viewBox='0 0 48 42'%3E%3Cg fill='none' stroke='%2369f5fa' stroke-width='1' stroke-linejoin='round'%3E%3Cpath d='M0-14 12-7 12 7 0 14-12 7-12-7ZM24-14 36-7 36 7 24 14 12 7 12-7ZM48-14 60-7 60 7 48 14 36 7 36-7ZM12 7 24 14 24 28 12 35 0 28 0 14ZM36 7 48 14 48 28 36 35 24 28 24 14ZM0 28 12 35 12 49 0 56-12 49-12 35ZM24 28 36 35 36 49 24 56 12 49 12 35ZM48 28 60 35 60 49 48 56 36 49 36 35Z'/%3E%3C/g%3E%3C/svg%3E");
  background-position: right center;
  background-repeat: repeat;
  background-size: 48px 42px;
  filter: drop-shadow(0 0 3px rgba(69,224,235,0.3));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,0.28) 14%, rgba(0,0,0,0.92) 42%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,0.28) 14%, rgba(0,0,0,0.92) 42%, #000 100%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.styled-prose-container details summary:hover::after {
  opacity: 0.68;
  filter: drop-shadow(0 0 5px rgba(69,224,235,0.48));
}
.styled-prose-container details[open] > summary::after {
  opacity: 0.62;
  filter: drop-shadow(0 0 4px rgba(105,245,250,0.42));
}
.group.is-assistant > div:first-child {
  background: linear-gradient(145deg, rgba(3,16,27,0.96), rgba(5,35,47,0.9)) !important;
  color: #cce8eb !important;
  border-radius: 4px !important;
  border: 1px solid rgba(72,231,240,0.46) !important;
  box-shadow: 0 10px 40px rgba(0,9,16,0.5), inset 0 1px 0 rgba(148,248,252,0.1), inset 0 0 28px rgba(28,192,207,0.06) !important;
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  position: relative;
  overflow: hidden;
}
.group.is-user > div:first-child {
  background: linear-gradient(145deg, rgba(3,16,27,0.96), rgba(5,35,47,0.9)) !important;
  color: #cce8eb !important;
}