/* Product wiring for the Muse v2.1 visual layer and Dingdang's live components. */
body.sky-milk.muse-wheat { min-width: 20rem; }
.shell.app-shell { width: 100%; min-height: 100vh; height: 100dvh; grid-template-columns: 17rem minmax(0, 1fr); }
.sidebar { position: relative; height: 100vh; height: 100dvh; min-height: 0; overflow: visible; }
.brand { padding-bottom: 1.375rem; }
.brand-mark { overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.new-chat { justify-content: flex-start; min-height: 2.625rem; margin: 0.75rem 0; }
.section-label { display: flex; align-items: center; min-height: 2.3125rem; padding: 0.9375rem 0.5rem 0.4375rem; }
.conversation-list { display: grid; align-content: start; grid-auto-rows: max-content; min-height: 0; flex: 1 1 auto; overflow-y: auto; }
.conversation-row { gap: 0.125rem; padding: 0.125rem; border-radius: 0.6875rem; }
.conversation-row { align-self: start; }
.conversation-row:hover, .conversation-row.is-current { background: rgba(230,237,255,.62); }
.conversation { flex: 1; min-width: 0; padding: 0.5625rem 0.625rem; }
.conversation.active { color: #586eae; background: transparent; }
.conversation-delete { opacity: .5; }
.conversation-row:hover .conversation-delete, .conversation-row.is-current .conversation-delete { opacity: 1; }
.profile.account-zone { position: relative; display: block; flex: 0 0 auto; margin-top: 0.75rem; padding: 0.75rem 0 0; border-top: 0.0625rem solid rgba(80,94,128,.10); }
.account-trigger { display: flex; align-items: center; width: 100%; min-width: 0; gap: 0.5625rem; padding: 0.5rem 0.4375rem; border: 0; border-radius: 0.75rem; background: transparent; text-align: left; }
.account-trigger:hover, .account-trigger[aria-expanded="true"] { background: rgba(255,255,255,.65); }
.profile .account-avatar { width: 2rem; height: 2rem; flex-basis: 2rem; }
.profile-copy.account-copy { display: block; flex: 1; min-width: 0; }
.profile-copy.account-copy strong { display: block; overflow: hidden; color: #4b556d; font-size: 0.8125rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy.account-copy small { display: block; overflow: hidden; margin-top: 0.1875rem; font-size: 0.625rem; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { flex: 0 0 auto; color: #8e9ab2; font-size: 1rem; }
.account-menu { position: absolute; z-index: 30; right: 0; bottom: calc(100% + 0.5rem); left: 0; display: grid; gap: 0.1875rem; padding: 0.5rem; border: 0.0625rem solid rgba(255,255,255,.9); border-radius: 1rem; background: rgba(255,255,255,.96); box-shadow: 0 0.875rem 2.125rem rgba(56,74,124,.18); backdrop-filter: blur(1.25rem); }
.account-menu[hidden] { display: none; }
.account-menu-heading { padding: 0.4375rem 0.5625rem 0.1875rem; color: #8a97ad; font-size: 0.625rem; font-weight: 750; letter-spacing: .04em; }
.account-menu-item { display: flex; align-items: center; width: 100%; min-height: 2.125rem; padding: 0.4375rem 0.5625rem; border: 0; border-radius: 0.5625rem; background: transparent; color: #56627b; cursor: pointer; font-size: 0.75rem; text-align: left; }
.account-menu-item:hover, .account-menu-item[aria-checked="true"] { background: rgba(231,237,255,.8); color: #596fae; }
.account-menu-divider { height: 0.0625rem; margin: 0.1875rem 0.3125rem; background: rgba(80,94,128,.12); }
.account-menu-logout { color: #b86475; }
.mascot-choice { justify-content: flex-start; }
.stage.main { width: 100%; min-width: 0; height: 100vh; height: 100dvh; min-height: 0; }
.stage-header.topbar { flex: 0 0 auto; min-height: 4rem; height: auto; padding: 0 1.875rem; }
.stage-title { min-width: 0; align-items: baseline; gap: 0.625rem; }
.stage-title h1 { overflow: hidden; max-width: min(48vw, 32.5rem); margin: 0; color: #424b63; font-size: 0.875rem; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.workspace-label { color: #8a96ae; font-size: 0.75rem; }
.header-actions { gap: 0.5rem; }
.activity-pill { display: inline-flex; align-items: center; gap: 0.4375rem; color: #697991; font-size: 0.75rem; white-space: nowrap; }
.activity-pill .status-dot { width: 0.375rem; height: 0.375rem; flex: 0 0 0.375rem; background: #7186d1; box-shadow: 0 0 0 0.1875rem rgba(113,134,209,.12); }
.health-pill { min-height: 1.875rem; }
.health-pill .health-dot { display: inline-block; flex: 0 0 0.4375rem; }
.mobile-menu { display: none; border: 0; background: transparent; color: #6d7890; font-size: 1.125rem; }
.content.conversation-canvas { min-height: 0; flex: 1; overflow: hidden; }
.scroll-region { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 1.375rem clamp(1.75rem, 5vw, 5.75rem) 0.75rem; }
.thread.timeline { display: block; width: min(65.5rem, 100%); margin: 0 auto; padding: 0 0 1.25rem; }
.thread-intro.muse-intro { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: 0; max-width: none; margin: 0 0 2.125rem; }
.intro-copy { max-width: 43.125rem; }
.intro-copy .kicker { margin-bottom: 0.5rem; color: #6d83cf; }
.thread-intro h1 { margin: 0 0 0.5625rem; color: #38445f; font-size: clamp(1.6875rem,2.7vw,2.375rem); }
.thread-intro p { max-width: 40.625rem; color: #728099; font-size: 0.875rem; line-height: 1.7; }
.prompt-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.125rem; }
.prompt-chip { min-height: 2.125rem; padding: 0 0.75rem; border: 0.0625rem solid rgba(255,255,255,.78); border-radius: 62.4375rem; color: #6175b0; cursor: pointer; font-size: 0.75rem; font-weight: 680; }
.companion-presence { position: relative; }
.dingdang-floating-presence {
  position: relative; z-index: 2; display: flex; flex: 0 0 11rem; align-items: center;
  width: 11rem; height: 4rem; min-height: 0; margin: 0; padding: 0; overflow: visible;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; pointer-events: none;
}
.dingdang-floating-presence .presence-copy { position: relative; z-index: 2; display: block; min-width: 0; max-width: 5.25rem; }
.dingdang-state-label {
  display: inline-flex; align-items: center; max-width: 5.25rem; min-height: 1.5625rem; overflow: hidden;
  padding: 0 0.5625rem; border: 0.0625rem solid rgba(255,255,255,.8); border-radius: 62.4375rem;
  background: rgba(255,255,255,.66); box-shadow: 0 0.1875rem 0.625rem rgba(85,103,157,.06);
  color: #71809b; font-size: 0.6875rem; font-weight: 700; line-height: 1; text-overflow: ellipsis; white-space: nowrap;
}
.dingdang-floating-presence .presence-copy > span::before { display: none; }
.dingdang-floating-presence .mascot-stage {
  top: 50%; right: 0; bottom: auto; width: 7.75rem; height: 5.125rem; overflow: hidden; transform: translateY(-50%);
  mask-image: radial-gradient(ellipse 72% 68% at 62% 50%,#000 48%,rgba(0,0,0,.78) 66%,rgba(0,0,0,.28) 84%,transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 62% 50%,#000 48%,rgba(0,0,0,.78) 66%,rgba(0,0,0,.28) 84%,transparent 100%);
}
.dingdang-floating-presence .mascot-glow { right: 0; bottom: 0.5rem; width: 7.375rem; height: 3.25rem; background: radial-gradient(ellipse,rgba(163,196,255,.35),rgba(202,220,255,.16) 46%,transparent 75%); filter: blur(0.5rem); }
.dingdang-floating-presence .companion-pair { right: 0.25rem; bottom: 0.0625rem; width: 4.875rem; height: 4.875rem; }
.dingdang-floating-presence .companion-pair img,
.dingdang-floating-presence .companion-pair video { position: absolute; right: 0; bottom: 0; width: 4.875rem; height: 4.875rem; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; }
.dingdang-floating-presence .companion-pair video { filter: saturate(.9) brightness(1.04); }
.dingdang-floating-presence [hidden] { display: none !important; }
.dingdang-floating-presence[data-state="discovering"] .dingdang-state-label { color: #7186d1; }
.dingdang-floating-presence[data-state="collaborating"] .dingdang-state-label { color: #669885; }
.dingdang-floating-presence[data-state="reconciling"] .dingdang-state-label { color: #7186d1; }
.dingdang-floating-presence[data-state="attention"] .dingdang-state-label { color: #ae8651; }
.dingdang-floating-presence[data-state="success"] .dingdang-state-label { color: #669885; }
.presence-head { position: relative; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.625rem; }
.presence-copy { display: grid; gap: 0.3125rem; max-width: 10.25rem; }
.presence-copy > span { display: flex; align-items: center; gap: 0.3125rem; color: #71809b; font-size: 0.6875rem; font-weight: 700; }
.presence-copy > span::before { width: 0.375rem; height: 0.375rem; flex: 0 0 0.375rem; border-radius: 50%; background: #71a77e; box-shadow: 0 0 0 0.1875rem rgba(113,167,126,.13); content: ''; }
.presence-copy strong { color: #4a5a78; font-size: 0.9375rem; letter-spacing: -.02em; }
.presence-copy small { color: #8290a8; font-size: 0.6875rem; line-height: 1.45; }
.mascot-stage { position: absolute; z-index: 1; right: 0.3125rem; bottom: 0; width: 8.25rem; height: 8rem; overflow: hidden; }
.mascot-glow { position: absolute; right: -0.25rem; bottom: -0.5rem; width: 7.25rem; height: 3.875rem; border-radius: 50%; background: radial-gradient(ellipse,rgba(163,196,255,.52),rgba(202,220,255,.22) 38%,transparent 72%); filter: blur(0.125rem); transform-origin: 58% 74%; }
.companion-pair { position: absolute; right: 0; bottom: -0.3125rem; width: 8.125rem; height: 8.25rem; }
.companion-pair img { position: absolute; right: -0.125rem; bottom: -0.125rem; width: 7.75rem; height: 7.75rem; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; filter: saturate(.76) brightness(1.10) contrast(.93); transform-origin: 50% 88%; }
.mascot-stage[data-state="idle"] .companion-pair { animation: muse-float 4.8s ease-in-out infinite; }
.mascot-stage[data-state="thinking"] .mascot-female { animation: muse-think 1.85s ease-in-out infinite; }
.mascot-stage[data-state="thinking"] .mascot-glow { animation: muse-glow 1.85s ease-in-out infinite; }
.mascot-stage[data-state="collaborating"] .companion-pair { animation: muse-collaborate 1.6s ease-in-out infinite; }
.mascot-stage[data-state="collaborating"] .mascot-glow { animation: muse-glow 1.1s ease-in-out infinite alternate; }
.mascot-stage[data-state="confirming"] .mascot-female { animation: muse-confirm .72s ease-in-out infinite alternate; }
.mascot-stage[data-state="confirming"] .mascot-glow { animation: muse-glow .9s ease-in-out infinite alternate; }
.message-row.message { gap: 0.625rem; margin: 0 0 1.25rem; }
.message-row .message-body { max-width: min(56.25rem,calc(100% - 2.5rem)); min-width: 0; }
.message-row.user .message-body { max-width: min(43.125rem,83%); }
.message-name { margin: 0 0 0.4375rem 0.125rem; color: #8a94a8; font-size: 0.6875rem; font-weight: 700; }
.message-row .assistant-avatar { overflow: hidden; border: 0.0625rem solid rgba(255,255,255,.85); background: #fbfcfa; }
.assistant-avatar img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.message-row .bubble { max-width: 100%; padding: 0.875rem 1.0625rem; border: 0.0625rem solid rgba(255,255,255,.82); border-radius: 1.375rem; background: rgba(255,255,255,.82); color: #4b566d; box-shadow: 0 0.4375rem 1.25rem rgba(90,101,132,.06),inset 0 0.0625rem rgba(255,255,255,.9); }
.message-row.assistant .bubble { border-top-left-radius: 0.5rem; }
.message-row.user .bubble { max-width: 100%; border: 0.0625rem solid rgba(255,255,255,.74); border-top-right-radius: 0.5rem; background: linear-gradient(135deg,rgba(228,234,255,.90),rgba(255,255,255,.84)); color: #52627f; box-shadow: 0 0.4375rem 1.25rem rgba(90,101,132,.06); }
.message-row .bubble p { margin: 0 0 0.625rem; }
.message-row .bubble p:last-child { margin-bottom: 0; }
.message-row.assistant-activity .message-name { color: #7483aa; }
.message-row .activity-bubble { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; color: #73809a; font-size: 0.75rem; }
.thinking-dots { color: #7589d7; font-size: 1.0625rem; font-weight: 800; letter-spacing: 0.125rem; animation: dd-thinking-dots 1.15s ease-in-out infinite; }
@keyframes dd-thinking-dots { 0%, 20% { opacity: .35; transform: translateY(0); } 55% { opacity: 1; transform: translateY(-0.125rem); } 100% { opacity: .45; transform: translateY(0); } }
.inline-discovery { margin-left: 2.5rem; padding: 1.0625rem; border-radius: 1.125rem; background: linear-gradient(135deg,rgba(243,247,255,.97),rgba(248,251,255,.86)); }
.card-head { align-items: flex-start; }
.card-head .card-title { margin-top: 0.1875rem; color: #3b4763; font-size: 0.9375rem; }
.card-head .card-subtitle { color: #7e889d; font-size: 0.75rem; }
.candidate-list { margin-top: 0.8125rem; }
.candidate.agent-choice { display: flex; align-items: center; min-width: 0; gap: 0.625rem; padding: 0.6875rem 0.75rem; border: 0.0625rem solid rgba(213,224,246,.78); border-radius: 0.8125rem; background: rgba(250,252,255,.88); text-align: left; }
.candidate.agent-choice:hover { border-color: rgba(115,139,218,.38); background: rgba(245,249,255,.96); }
.candidate.agent-choice:has(input:checked) { border-color: rgba(106,130,211,.45); background: rgba(227,234,255,.76); }
.candidate.agent-choice input { width: 1rem; height: 1rem; flex: 0 0 1rem; margin: 0; accent-color: #7187d5; }
.candidate.agent-choice input:disabled { cursor: not-allowed; }
.candidate-title { color: #4b566d; font-size: 0.75rem; }
.candidate-desc { margin-top: 0.1875rem; color: #7e899e; font-size: 0.6875rem; line-height: 1.45; white-space: normal; }
.candidate-skill { flex: 0 0 auto; max-width: 34%; overflow: hidden; color: #71809b; font-size: 0.625rem; text-overflow: ellipsis; white-space: nowrap; }
.agent-categories { display: grid; gap: 0.875rem; }
.agent-category { min-width: 0; padding: 0.8125rem; border: 0.0625rem solid rgba(213,224,246,.66); border-radius: 0.9375rem; background: rgba(255,255,255,.45); }
.agent-category-head { display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; color: #53617e; font-size: 0.75rem; }
.agent-category-head span { color: #8491aa; font-size: 0.6875rem; }
.selection-count[hidden] { display: none; }
.web-agent-list, .ioa-agent-list { margin-top: 0.5625rem; }
.candidate.web-agent-choice { align-items: center; }
.web-agent-choice .agent-copy { flex: 1; }
.web-open-button { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; min-height: 1.8125rem !important; padding: 0 0.6875rem !important; }
.more-agents-button { margin-top: 0.5rem; padding: 0.3125rem 0.125rem; border: 0; background: transparent; color: #677dc4; cursor: pointer; font-size: 0.6875rem; font-weight: 700; }
.more-agents-button:hover { color: #4e65b3; text-decoration: underline; }
.open-selected-web { min-height: 2rem !important; }
.open-selected-web:disabled { cursor: not-allowed; opacity: .48; }
.task-actions.card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.875rem; }
.task-actions button, .primary, .secondary, .danger { min-height: 2.125rem; padding: 0 0.8125rem; border-radius: 62.4375rem; font-size: 0.75rem; font-weight: 680; }
.primary { border: 0.0625rem solid rgba(255,255,255,.75); background: linear-gradient(135deg,#9eaff1,#7086d7); color: #fff; box-shadow: 0 0.5rem 1.25rem rgba(101,121,213,.18); }
.secondary { border: 0.0625rem solid rgba(255,255,255,.85); background: rgba(255,255,255,.78); color: #66758f; }
.danger { border: 0.0625rem solid rgba(210,130,145,.24); background: rgba(255,241,244,.76); color: #b86475; }
.task-result { margin-top: 0.625rem; padding: 0.75rem 0.8125rem; border: 0.0625rem solid rgba(213,224,246,.72); border-radius: 0.875rem; background: rgba(250,252,255,.82); color: #59657c; font-size: 0.8125rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-result.markdown { white-space: normal; }
.task-result.markdown hr { margin: 0.75rem 0; border: 0; border-top: 0.0625rem solid rgba(213,224,246,.9); }
.thread > .card:not(.inline-discovery) { width: calc(100% - 2.6875rem); max-width: 63rem; }
.plan-list, .group-member-list { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.plan-node, .group-member { border-color: rgba(213,224,246,.74); border-radius: 0.8125rem; background: rgba(250,252,255,.76); }
.composer-area { flex: 0 0 auto; padding: 0.625rem clamp(1.5rem,8vw,7rem) 1rem; }
.composer-stack { width: min(65.5rem,100%); }
.composer { align-items: flex-end; gap: 0.625rem; min-height: 4rem; padding: 0.625rem 0.6875rem 0.625rem 0.8125rem; border: 0.0625rem solid rgba(255,255,255,.82); border-radius: 1.6875rem; background: linear-gradient(135deg,rgba(255,255,255,.88),rgba(244,248,255,.76)); box-shadow: inset 0 0.0625rem rgba(255,255,255,.98),inset 0 -0.0625rem rgba(105,126,190,.08),0 1.25rem 2.875rem rgba(89,106,162,.14); }
.composer textarea { min-height: 2.375rem; max-height: 7.5rem; padding: 0.5625rem 0; color: #46516b; font-size: 0.875rem; line-height: 1.45; }
.composer textarea::placeholder { color: #9aa4b7; }
.attachment, .send-button { display: grid; width: 2.5rem; min-width: 2.5rem; height: 2.5rem; flex: 0 0 2.5rem; place-items: center; border-radius: 50%; }
.attachment { border: 0.0625rem solid rgba(255,255,255,.82); color: #71809b; font-size: 1.125rem; }
.send-button { border: 0; background: linear-gradient(145deg,#a7b8f3,#778cdd 60%,#6174c9); color: #fff; font-size: 1.375rem; font-weight: 600; box-shadow: inset 0 0.0625rem rgba(255,255,255,.6),0 0.625rem 1.375rem rgba(101,121,213,.27); }
.composer-footnote { margin: 0.4375rem 0.4375rem 0; color: #9aa3b4; font-size: 0.6875rem; text-align: center; }
.composer-file-chips:not(:empty) { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0 0 0.4375rem; }
.file-chip { max-width: 100%; border: 0.0625rem solid rgba(255,255,255,.8); border-radius: 62.4375rem; background: rgba(255,255,255,.72); }

@media (max-width: 56.25rem) {
  .dingdang-floating-presence { flex-basis: 9.875rem; width: 9.875rem; }
  .dingdang-floating-presence .mascot-stage { width: 6.75rem; height: 4.75rem; }
  .dingdang-floating-presence .companion-pair,
  .dingdang-floating-presence .companion-pair img,
  .dingdang-floating-presence .companion-pair video { width: 4.375rem; height: 4.375rem; }
}
@media (max-width: 47.5rem) {
  .shell.app-shell { display: block; }
  .sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: min(18.75rem,85vw); height: 100dvh; transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .stage-header.topbar { min-height: 3.625rem; padding: 0 1rem; }
  .stage-title { gap: 0.375rem; }
  .stage-title h1 { max-width: 48vw; font-size: 0.8125rem; }
  .workspace-label { display: none; }
  .mobile-menu { display: grid; width: 1.875rem; height: 2.125rem; margin-right: 0.1875rem; place-items: center; }
  .activity-pill { font-size: 0; }
  .activity-pill .status-dot { width: 0.5rem; height: 0.5rem; flex-basis: 0.5rem; }
  .health-pill { display: none; }
  .scroll-region { padding: 1.5rem 1.125rem 0.625rem; }
  .thread-intro.muse-intro { gap: 1.125rem; margin-bottom: 1.5rem; }
  .thread-intro h1 { font-size: clamp(1.5625rem,8vw,2rem); }
  .stage-header.topbar { padding: 0 0.75rem; }
  .dingdang-floating-presence { flex-basis: 8.25rem; width: 8.25rem; height: 3.625rem; }
  .dingdang-floating-presence .presence-copy { max-width: 3.9375rem; }
  .dingdang-state-label { max-width: 3.9375rem; min-height: 1.4375rem; padding: 0 0.4375rem; font-size: 0.625rem; }
  .dingdang-floating-presence .mascot-stage { width: 5.75rem; height: 3.875rem; }
  .dingdang-floating-presence .companion-pair,
  .dingdang-floating-presence .companion-pair img,
  .dingdang-floating-presence .companion-pair video { width: 3.625rem; height: 3.625rem; }
  .message-row .message-body { max-width: calc(100% - 2.5rem); }
  .message-row.user .message-body { max-width: 88%; }
  .inline-discovery { margin-left: 0; }
  .thread > .card:not(.inline-discovery) { width: 100%; margin-left: 0; }
  .candidate.agent-choice { align-items: flex-start; flex-wrap: wrap; }
  .candidate-skill { margin-left: 1.625rem; max-width: calc(100% - 1.625rem); }
  .composer-area { padding: 0.5625rem 0.875rem 0.75rem; }
  .composer { min-height: 3.625rem; gap: 0.4375rem; padding: 0.4375rem; }
  .attachment, .send-button { width: 2.375rem; min-width: 2.375rem; height: 2.375rem; flex-basis: 2.375rem; }
  .composer textarea { min-height: 2.25rem; }
  .composer-footnote { font-size: 0.625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-stage *, .sidebar { animation: none !important; transition-duration: .001ms !important; }
}

/* Floating Muse-style companion: outside the toolbar, with a feathered oval mask. */
.dingdang-floating-presence {
  position: fixed; z-index: 18; top: 4.75rem; right: 1.375rem; display: block; flex: none;
  width: 9.625rem; height: 8.875rem; margin: 0; padding: 0; overflow: visible;
  border: 0; border-radius: 50%; background: radial-gradient(ellipse at 54% 42%,rgba(255,255,255,.82),rgba(255,255,255,.40) 52%,rgba(255,255,255,0) 78%);
  box-shadow: none; backdrop-filter: none; pointer-events: none;
}
.dingdang-floating-presence .presence-copy { position: absolute; z-index: 3; right: 50%; bottom: 0.125rem; display: block; max-width: 100%; transform: translateX(50%); }
.dingdang-floating-presence .dingdang-state-label {
  max-width: 5.75rem; min-height: 1.4375rem; padding: 0 0.625rem; border-color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.84); box-shadow: 0 0.3125rem 1rem rgba(76,91,133,.12);
  color: #586987; font-size: 0.6875rem; letter-spacing: .02em;
}
.dingdang-floating-presence .mascot-stage {
  position: absolute; inset: 0 0.3125rem 0.875rem; width: auto; height: auto; overflow: hidden;
  mask-image: radial-gradient(ellipse 72% 70% at 55% 48%,#000 46%,rgba(0,0,0,.82) 66%,rgba(0,0,0,.32) 84%,transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 55% 48%,#000 46%,rgba(0,0,0,.82) 66%,rgba(0,0,0,.32) 84%,transparent 100%);
}
.dingdang-floating-presence .mascot-glow { right: 0.75rem; bottom: 0.3125rem; width: 7.5rem; height: 4rem; }
.dingdang-floating-presence .companion-pair { right: 0.25rem; bottom: 0; width: 7.875rem; height: 7.875rem; }
.dingdang-floating-presence .companion-pair img,
.dingdang-floating-presence .companion-pair video { right: 0; bottom: 0; width: 7.5rem; height: 7.5rem; object-fit: contain; }
.dingdang-floating-presence .companion-pair video { filter: saturate(.9) brightness(1.04); }

@media (max-width: 47.5rem) {
  .dingdang-floating-presence { top: 4rem; right: 0.4375rem; width: 6.375rem; height: 6.125rem; }
  .dingdang-floating-presence .presence-copy { bottom: 0; }
  .dingdang-floating-presence .dingdang-state-label { max-width: 4.25rem; min-height: 1.25rem; padding: 0 0.4375rem; font-size: 0.625rem; }
  .dingdang-floating-presence .mascot-stage { inset: 0 0.0625rem 0.6875rem; }
  .dingdang-floating-presence .companion-pair,
  .dingdang-floating-presence .companion-pair img,
  .dingdang-floating-presence .companion-pair video { width: 5.125rem; height: 5.125rem; }
}

.mermaid-renderer-frame { position: fixed; left: -200vw; top: 0; width: 800px; height: 600px; border: 0; pointer-events: none; }
.chat-mermaid { margin: 0.75rem 0; min-width: 0; }
.markdown-content .chat-mermaid > img { display: block; width: auto; height: auto; max-width: 100%; margin: 0 auto 0.5rem; }
.chat-mermaid > details > summary { cursor: pointer; font-size: 0.8125rem; }
