.app-main:has(.home-hero) .home-hero.is-chat-expanded:has(.chat-demo-bubble) { padding-top: calc(var(--site-nav-height) + 20px); padding-bottom: 24px; }
.hero-chat-shell:has(.chat-demo-bubble) .hero-chat-messages { height: clamp(190px, calc(100svh - var(--site-nav-height) - 280px), 520px); min-height: 190px; }
.hero-chat-shell:has(.chat-demo-bubble) .chat-title b { color: #263d33; }
.chat-demo-thinking { display: flex; min-width: 104px; min-height: 25px; align-items: center; gap: 9px; color: #728374; }
.chat-demo-thinking-process { width: min(420px, 100%); }
.chat-demo-thinking-steps { display: grid; gap: 9px; margin: 9px 0 0; padding: 0 0 0 10px; border-left: 2px solid #e3ebdf; list-style: none; color: #7c897e; font-size: 11px; line-height: 1.8; }
.chat-demo-thinking-steps:empty { display: none; }
.chat-demo-thinking-steps li { display: flex; align-items: baseline; gap: 7px; }
.chat-demo-thinking-steps .is-current { color: #4f6b51; }
.chat-demo-step-marker { flex: none; width: 12px; color: #73916a; text-align: center; }
.chat-demo-thinking-steps .is-current > span:last-child::after { display: inline-block; width: 2px; height: .9em; margin-left: 3px; background: #73916a; vertical-align: -.1em; content: ''; animation: chat-demo-caret .8s steps(1) infinite; }
.chat-demo-dots { display: inline-flex; align-items: center; gap: 4px; }
.chat-demo-dots i { width: 5px; height: 5px; border-radius: 50%; background: #719968; animation: chat-demo-thinking 1.2s ease-in-out infinite; }
.chat-demo-dots i:nth-child(2) { animation-delay: .16s; }
.chat-demo-dots i:nth-child(3) { animation-delay: .32s; }
.chat-demo-answer p + p { margin-top: 12px; }
.chat-demo-answer.is-streaming p:last-child::after { display: inline-block; width: 2px; height: 1em; margin-left: 4px; background: #527b48; vertical-align: -.12em; content: ''; animation: chat-demo-caret .8s steps(1) infinite; }
.chat-messages.is-demo-running { scroll-behavior: auto; }
.chat-composer[data-demo-phase] button[type="submit"]:disabled { opacity: .5; cursor: default; }
.chat-composer[data-demo-phase="typing"] input { border-color: #8fad7f; box-shadow: 0 0 0 2px #8fad7f20; caret-color: #376047; }
.chat-composer[data-demo-phase="sending"] button[type="submit"]:disabled { opacity: 1; transform: scale(.95); }
@keyframes chat-demo-thinking { 0%, 60%, 100% { opacity: .4; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes chat-demo-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .chat-demo-dots i,
  .chat-demo-thinking-steps .is-current > span:last-child::after,
  .chat-demo-answer.is-streaming p:last-child::after { animation: none; }
  .chat-composer[data-demo-phase="sending"] button[type="submit"]:disabled { transform: none; }
}
