/* E · 麦金叮当
   An optional visual layer for the approved v2 conversation structure:
   airy conversation grouping, visible assistant activity and warm metal accents. */

body.sky-milk.muse-wheat {
  --accent: #7489dd;
  --accent-strong: #5f76c8;
  --accent-rgb: 116, 137, 221;
  --wheat: #cbb37d;
  --wheat-strong: #ae9360;
  --selection: rgba(230, 237, 255, .84);
  --liquid-edge: rgba(255, 255, 255, .88);
  --liquid-shadow: rgba(86, 103, 159, .11);
  background:
    radial-gradient(circle at 4% 5%, rgba(187, 228, 255, .90) 0, transparent 34%),
    radial-gradient(circle at 96% 8%, rgba(228, 215, 255, .76) 0, transparent 36%),
    radial-gradient(circle at 68% 100%, rgba(204, 241, 228, .58) 0, transparent 39%),
    radial-gradient(circle at 38% 97%, rgba(255, 226, 214, .46) 0, transparent 33%),
    linear-gradient(135deg, #f2f9ff 0%, #fbfaff 48%, #f8fffc 100%);
}

.muse-wheat .app-shell::after {
  background-image: linear-gradient(rgba(111, 133, 191, .038) 0.0625rem, transparent 0.0625rem), linear-gradient(90deg, rgba(111, 133, 191, .032) 0.0625rem, transparent 0.0625rem);
}

.muse-wheat .sidebar {
  background:
    linear-gradient(118deg, rgba(255,255,255,.66), rgba(240,247,255,.35)),
    rgba(255,255,255,.24);
  box-shadow: inset -0.0625rem 0 rgba(255,255,255,.78), 1rem 0 2.75rem rgba(84, 103, 153, .065);
}

.muse-wheat .stage-header {
  background: linear-gradient(105deg, rgba(255,255,255,.52), rgba(243,248,255,.28));
  box-shadow: inset 0 0.0625rem rgba(255,255,255,.70), 0 0.5rem 1.5rem rgba(89, 108, 163, .04);
}

.muse-wheat .brand-mark,
.muse-wheat .assistant-avatar {
  background: #fbfcfa;
  box-shadow: 0 0.375rem 1rem rgba(97, 113, 160, .13), inset 0 0.0625rem rgba(255,255,255,.92);
}

.muse-wheat .brand-mark img,
.muse-wheat .assistant-avatar img {
  mix-blend-mode: multiply;
  filter: saturate(.78) brightness(1.08) contrast(.94);
}

.muse-wheat .new-chat {
  gap: 0.4375rem;
  color: #596fae;
}

.muse-wheat .new-chat .ph,
.muse-wheat .nav-button .ph,
.muse-wheat .subtle-icon .ph,
.muse-wheat .account-trigger > .ph {
  font-size: 1.0625rem;
  line-height: 1;
}

.muse-wheat .nav-button {
  gap: 0.5625rem;
  color: #68758c;
}

.muse-wheat .nav-button:hover,
.muse-wheat .nav-button.is-active {
  color: var(--accent-strong);
}

.muse-wheat .conversation-row.is-current {
  color: #586eae;
}

.muse-wheat .conversation-row small {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
}

.muse-wheat .subtle-icon {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #9a907d;
  cursor: pointer;
}

.muse-wheat .subtle-icon:hover {
  background: rgba(255,255,255,.54);
  color: var(--accent-strong);
}

.muse-wheat .account-avatar {
  background: linear-gradient(135deg, #e9eeff, #ecf7f6);
  color: #687fb9;
}

.muse-wheat .stage-title strong { color: #424b63; }
.muse-wheat .stage-title span { color: #8a96ae; }

.muse-wheat .activity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 1.875rem;
  padding: 0 0.625rem;
  border: 0.0625rem solid rgba(255,255,255,.74);
  border-radius: 62.4375rem;
  color: #697991;
  cursor: pointer;
  font-size: 0.75rem;
}

.muse-wheat .activity-pill .ph { color: #7186d1; font-size: 0.9375rem; }

.muse-wheat .health-pill { color: #6d7990; }
.muse-wheat .icon-button { font-size: 1rem; }
.muse-wheat .icon-button .ph { line-height: 1; }

.muse-wheat .scroll-region {
  padding: 2.125rem clamp(1.875rem, 5vw, 5.75rem) 0.75rem;
}

.muse-wheat .thread,
.muse-wheat .collaboration-card,
.muse-wheat .composer-stack {
  width: min(65.5rem, 100%);
}

.muse-wheat .thread-intro {
  max-width: none;
  margin-bottom: 2.125rem;
}

.muse-wheat .muse-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.25rem;
  align-items: center;
  gap: clamp(1.75rem, 4.5vw, 3.625rem);
}

.muse-wheat .intro-copy { max-width: 43.125rem; }
.muse-wheat .thread-intro h1 { color: #38445f; font-size: clamp(1.6875rem, 2.7vw, 2.375rem); }
.muse-wheat .thread-intro p { max-width: 40.625rem; color: #728099; }
.muse-wheat .kicker { color: #6d83cf; }

.muse-wheat .prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.125rem;
}

.muse-wheat .prompt-chip {
  min-height: 2.125rem;
  padding: 0 0.75rem;
  border-radius: 62.4375rem;
  color: #6175b0;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 680;
}

.muse-wheat .companion-presence {
  position: relative;
  min-height: 10.125rem;
  overflow: hidden;
  padding: 1rem;
  border-radius: 1.375rem;
  background: linear-gradient(135deg, rgba(255,255,255,.93), rgba(238,246,255,.74) 56%, rgba(249,245,255,.72));
  box-shadow: 0 1rem 2.125rem rgba(83, 103, 161, .10), inset 0 0.0625rem rgba(255,255,255,.98);
}

.muse-wheat .presence-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.625rem;
}

.muse-wheat .presence-copy {
  display: grid;
  gap: 0.3125rem;
  max-width: 9.75rem;
}

.muse-wheat .presence-copy > span {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  color: #71809b;
  font-size: 0.6875rem;
  font-weight: 700;
}

.muse-wheat .presence-copy strong { color: #4a5a78; font-size: 0.9375rem; letter-spacing: -.02em; }
.muse-wheat .presence-copy small { color: #8290a8; font-size: 0.6875rem; line-height: 1.45; }

.muse-wheat .status-dot {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  flex: 0 0 0.375rem;
  border-radius: 50%;
  background: #8d9ad3;
}

.muse-wheat .status-dot.is-active {
  background: #71a77e;
  box-shadow: 0 0 0 0.1875rem rgba(113, 167, 126, .13);
}

.muse-wheat .mascot-stage {
  position: absolute;
  z-index: 1;
  right: 0.3125rem;
  bottom: 0;
  width: 8.25rem;
  height: 8rem;
  overflow: hidden;
}

.muse-wheat .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) 0, rgba(202,220,255,.22) 38%, transparent 72%);
  filter: blur(0.125rem);
  transform-origin: 58% 74%;
}

.muse-wheat .companion-pair {
  position: absolute;
  right: 0;
  bottom: -0.3125rem;
  width: 8.125rem;
  height: 8.25rem;
}

.muse-wheat .companion-pair img {
  position: absolute;
  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%;
}

.muse-wheat .mascot-female { right: -0.125rem; bottom: -0.125rem; z-index: 2; }

.muse-wheat .mascot-stage[data-state="idle"] .companion-pair { animation: muse-float 4.8s ease-in-out infinite; }
.muse-wheat .mascot-stage[data-state="thinking"] .mascot-female { animation: muse-think 1.85s ease-in-out infinite; }
.muse-wheat .mascot-stage[data-state="thinking"] .mascot-glow { animation: muse-glow 1.85s ease-in-out infinite; }
.muse-wheat .mascot-stage[data-state="collaborating"] .companion-pair { animation: muse-collaborate 1.6s ease-in-out infinite; }
.muse-wheat .mascot-stage[data-state="collaborating"] .mascot-glow { animation: muse-glow 1.1s ease-in-out infinite alternate; }
.muse-wheat .mascot-stage[data-state="confirming"] .mascot-female { animation: muse-confirm .72s ease-in-out infinite alternate; }
.muse-wheat .mascot-stage[data-state="confirming"] .mascot-glow { background: radial-gradient(ellipse, rgba(253,220,154,.48) 0, rgba(213,211,255,.18) 45%, transparent 72%); animation: muse-glow .9s ease-in-out infinite alternate; }

@keyframes muse-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-0.3125rem) rotate(-.5deg); }
}

@keyframes muse-think {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translate(-0.25rem, -0.5rem) rotate(-3deg); }
}

@keyframes muse-collaborate {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-0.4375rem); }
}

@keyframes muse-confirm {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-0.3125rem) scale(1.035); }
}

@keyframes muse-glow {
  from { opacity: .68; transform: scale(.94); }
  to { opacity: 1; transform: scale(1.08); }
}

.muse-wheat .rich-message .bubble { width: min(56.25rem, calc(100% - 2.5rem)); max-width: none; }
.muse-wheat .bubble { border-radius: 1.375rem; }
.muse-wheat .assistant .bubble { border-top-left-radius: 0.5rem; }
.muse-wheat .user .bubble { border-top-right-radius: 0.5rem; background: linear-gradient(135deg, rgba(228,234,255,.90), rgba(255,255,255,.84)); color: #52627f; }

.muse-wheat .assistant-message-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  margin-bottom: 0.4375rem;
}

.muse-wheat .assistant-message-heading .message-label { margin: 0; }
.muse-wheat .message-activity {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  color: #8a98ad;
  font-size: 0.6875rem;
}

.muse-wheat .inline-discovery {
  border-radius: 1.125rem;
  background: linear-gradient(135deg, rgba(243,247,255,.97), rgba(248,251,255,.76));
}

.muse-wheat .selection-count {
  background: rgba(215,226,255,.66);
  color: #667ecb;
}

.muse-wheat .agent-choice,
.muse-wheat .content-material .agent-choice,
.muse-wheat .content-material .member {
  border-color: rgba(213,224,246,.72);
  background: rgba(250,252,255,.82);
}

.muse-wheat .agent-choice:hover,
.muse-wheat .content-material .agent-choice:hover {
  border-color: rgba(115, 139, 218, .35);
  background: rgba(245,249,255,.94);
}

.muse-wheat .agent-choice.is-selected,
.muse-wheat .content-material .agent-choice.is-selected {
  border-color: rgba(106, 130, 211, .42);
  background: rgba(227,234,255,.76);
}

.muse-wheat .choice-box { border-radius: 0.375rem; }
.muse-wheat .choice-box .ph { font-size: 0.75rem; }
.muse-wheat .is-selected .choice-box { background: #7187d5; border-color: #7187d5; color: white; }
.muse-wheat .primary-button { border-radius: 62.4375rem; }

.muse-wheat .collaboration-card {
  border-radius: 1.375rem;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(244,248,255,.79));
}

.muse-wheat .run-state { background: rgba(255,235,216,.74); color: #c18465; }
.muse-wheat .member { border-radius: 0.8125rem; }

.muse-wheat .interaction-banner {
  border-radius: 0.875rem;
  background: rgba(255,255,255,.53);
  color: #718099;
}

.muse-wheat .composer {
  border-radius: 1.6875rem;
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(244,248,255,.68));
  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);
}

.muse-wheat .attachment,
.muse-wheat .send-button {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}

.muse-wheat .attachment .ph,
.muse-wheat .send-button .ph {
  position: relative;
  z-index: 1;
  font-size: 1.125rem;
  line-height: 1;
}

.muse-wheat .send-button,
.muse-wheat .send-button.liquid-clear-control {
  background:
    radial-gradient(1.625rem 1rem at var(--liquid-x) var(--liquid-y), rgba(255,255,255,.52), transparent 74%),
    linear-gradient(145deg, #a7b8f3 0%, #778cdd 60%, #6174c9 100%);
  box-shadow: inset 0 0.0625rem rgba(255,255,255,.60), inset 0 -0.0625rem rgba(62,79,164,.18), 0 0.625rem 1.375rem rgba(101, 121, 213, .27);
}

.muse-wheat .primary-button.liquid-clear-control {
  background:
    radial-gradient(7rem 2.875rem at var(--liquid-x) var(--liquid-y), rgba(255,255,255,.40), transparent 63%),
    linear-gradient(135deg, #9eaff1, #7086d7);
  box-shadow: inset 0 0.0625rem rgba(255,255,255,.54), inset 0 -0.0625rem rgba(61,79,163,.17), 0 0.625rem 1.375rem rgba(101,121,213,.20);
}

.muse-wheat .liquid-regular {
  background:
    linear-gradient(116deg, rgba(255,255,255,.54), rgba(247,252,255,.20) 43%, rgba(226,237,255,.32)),
    rgba(255,255,255,.17);
  box-shadow: inset 0 0.0625rem rgba(255,255,255,.96), inset 0 -0.0625rem rgba(112,135,196,.09), 0 1rem 2.375rem var(--liquid-shadow);
}

.muse-wheat .liquid-regular::before {
  background:
    radial-gradient(10.625rem 5.625rem at var(--liquid-x) var(--liquid-y), rgba(255,255,255,.72), transparent 67%),
    radial-gradient(11.875rem 7.5rem at calc(var(--liquid-x) + 26%) calc(var(--liquid-y) + 20%), rgba(185,207,255,.22), transparent 72%),
    linear-gradient(112deg, rgba(255,255,255,.42), transparent 28%, transparent 72%, rgba(235,246,255,.24));
}

.muse-wheat .liquid-clear-control {
  background:
    radial-gradient(5.125rem 2.8125rem at var(--liquid-x) var(--liquid-y), rgba(255,255,255,.72), transparent 64%),
    linear-gradient(138deg, rgba(255,255,255,.48), rgba(230,240,255,.27));
  box-shadow: inset 0 0.0625rem rgba(255,255,255,.88), inset 0 -0.0625rem rgba(112,135,196,.08), 0 0.5rem 1.25rem rgba(84,103,158,.09);
}

.muse-wheat .liquid-clear-control:hover {
  background:
    radial-gradient(6.125rem 3.25rem at var(--liquid-x) var(--liquid-y), rgba(255,255,255,.88), transparent 65%),
    linear-gradient(138deg, rgba(255,255,255,.63), rgba(223,237,255,.33));
  box-shadow: inset 0 0.0625rem rgba(255,255,255,.98), inset 0 -0.0625rem rgba(112,135,196,.09), 0 0.75rem 1.625rem rgba(84,103,158,.14);
}

.muse-wheat .nav-button.is-active,
.muse-wheat .conversation-row.is-current {
  background:
    radial-gradient(7.8125rem 3.4375rem at var(--liquid-x) var(--liquid-y), rgba(255,255,255,.62), transparent 66%),
    linear-gradient(135deg, rgba(255,255,255,.48), rgba(225,235,255,.36));
  box-shadow: inset 0 0.0625rem rgba(255,255,255,.90), inset 0 -0.0625rem rgba(112,135,196,.06);
}

@media (max-width: 56.25rem) {
  .muse-wheat .muse-intro { grid-template-columns: 1fr; }
  .muse-wheat .companion-presence { width: min(100%, 27.5rem); }
}

@media (max-width: 47.5rem) {
  .muse-wheat .scroll-region { padding-left: 1.125rem; padding-right: 1.125rem; }
  .muse-wheat .rich-message .bubble { width: auto; max-width: calc(100% - 2.5rem); }
  .muse-wheat .activity-pill span { display: none; }
  .muse-wheat .header-actions { gap: 0.4375rem; }
  .muse-wheat .assistant-message-heading { align-items: flex-start; flex-direction: column; }
  .muse-wheat .companion-presence { min-height: 9.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .muse-wheat .mascot-stage *,
}
