/* Service-demo geometry; only palette, viewport and font sizes are adapted. */
.mcp-home-demo { color-scheme: dark; color: #e4f0f7; font-family: system-ui, sans-serif; font-size: 16px; line-height: normal; width: min(100%, 640px); min-width: 0; }
.mcp-home-demo * { box-sizing: border-box; }
.mcp-home-demo .demo-window { height: 580px; display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: #19364a; }
.mcp-home-demo .demo-header { flex-shrink: 0; padding: 20px 24px; border-bottom: 1px solid #bdd4e526; font-weight: 600; }
.mcp-home-demo .demo-conversation { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; padding: 24px; transition: opacity var(--clear-duration, 300ms) ease; scrollbar-color: #51778b #132d42; overscroll-behavior: contain; }
.mcp-home-demo .demo-conversation.clearing { opacity: 0; }
.mcp-home-demo .user-message { margin: 24px 0 16px; padding: 12px 16px; background: #315468; width: fit-content; max-width: 100%; min-height: 48px; border-radius: 6px; overflow-wrap: anywhere; }
.mcp-home-demo .user-message:first-child { margin-top: 0; }
.mcp-home-demo .status { margin: 0; color: #bdd4e5; font-size: 14px; }
.mcp-home-demo .result { margin: 0 0 18px; animation: mcp-demo-appear 350ms ease-out both; }
.mcp-home-demo .result p { margin: 0; }
.mcp-home-demo .table-wrap { overflow-x: auto; }
.mcp-home-demo table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 13px; }
.mcp-home-demo caption { text-align: left; font-weight: 600; margin-bottom: 12px; }
.mcp-home-demo th, .mcp-home-demo td { text-align: left; padding: 12px 6px; border-bottom: 1px solid #bdd4e526; }
.mcp-home-demo th { color: #bdd4e5; font-weight: 500; }
.mcp-home-demo th.numeric, .mcp-home-demo td.numeric { text-align: right; white-space: nowrap; }
.mcp-home-demo .analysis { padding: 18px; border: 1px solid #bdd4e526; border-radius: 6px; background: #132d42; border-left: 3px solid #a2f1db; }
.mcp-home-demo .analysis h2 { margin: 0 0 16px; font-size: 16px; }
.mcp-home-demo .analysis h3 { margin: 16px 0 6px; font-size: 14px; }
.mcp-home-demo .analysis p { font-size: 14px; line-height: 1.5; }
.mcp-home-demo .demo-footer { flex-shrink: 0; padding: 16px 24px; color: #bdd4e5; font-size: 12px; }
.mcp-home-demo .demo-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.mcp-home-demo .demo-scene { margin-right: auto; font-size: 12px; color: #bdd4e5; }
.mcp-home-demo button { min-height: 44px; font: inherit; font-size: 13px; padding: 10px 14px; border: 1px solid #7eb5bd70; border-radius: 6px; background: #19364a; color: #a2f1db; cursor: pointer; }
.mcp-home-demo button:hover { background: #315468; }
.mcp-home-demo button:focus-visible, .mcp-home-demo .demo-conversation:focus-visible { outline: 2px solid #a2f1db; outline-offset: -3px; }
.mcp-home-demo [hidden] { display: none !important; }
.mcp-home-demo .demo-caption { margin: 16px 0 0; color: #bdd4e5; font-size: 12px; text-align: center; }
.mcp-home-demo .demo-frame { padding: 0 7px 7px; border: 1px solid #bdd4e580; border-radius: 20px; background: #0e2539; box-shadow: 0 28px 75px #03162550, 0 4px 14px #0b26352e, 0 0 0 5px #9dcfdf0d; }
.mcp-home-demo .window-toolbar { height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; color: #bdd4e5; font-size: 10px; }
.mcp-home-demo .window-dots { display: inline-flex; gap: 6px; }
.mcp-home-demo .window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #db9b94; }
.mcp-home-demo .window-dots i:nth-child(2) { background: #dfc68d; }
.mcp-home-demo .window-dots i:nth-child(3) { background: #85bca1; }
.mcp-home-demo .window-title b { color: #a2f1db; }
.mcp-home-demo .open-demo { color: #bdd4e5; text-decoration: none; padding: 10px; }
@keyframes mcp-demo-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { .mcp-home-demo .demo-conversation { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .mcp-home-demo .demo-conversation { transition: none; } .mcp-home-demo .result { animation: none; } }
.mcp-home-demo .result-image { display:block; width:180px; max-width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; border-radius:6px; }
.mcp-home-demo .ad-preview { width:280px; max-width:100%; padding:12px; border:1px solid #bdd4e526; border-radius:6px; background:#132d42; }
.mcp-home-demo .ad-preview .result-image { width:150px; }
.mcp-home-demo .ad-preview h2 { margin:10px 0 6px; font-size:14px; }
.mcp-home-demo .ad-preview p { font-size:12px; line-height:1.4; }
.mcp-home-demo .ad-preview p + p { margin-top:6px; }
.mcp-home-demo .ad-note { color:#a2f1db; }
.mcp-home-demo .moderation-prompt { padding:20px; background:#193e48; border:1px solid #a2f1db55; border-radius:6px; }
.mcp-home-demo .moderation-prompt h2 { margin:0 0 12px; font-size:18px; color:#a2f1db; }
.mcp-home-demo .moderation-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.mcp-home-demo .moderation-actions button { opacity:1; cursor:default; }
.mcp-home-demo .moderation-actions button:first-child { background:#a2f1db; color:#132d42; }

/* Compact homepage embedding; scenario timing is unchanged. */
.mcp-home-demo .demo-window{height:480px}
@media(max-width:400px){.mcp-home-demo .demo-window{height:460px}.mcp-home-demo .demo-header{padding:16px}.mcp-home-demo .demo-footer{padding:12px 16px;font-size:11px}}

/* Homepage presentation: autoplay only, caption belongs to the outer figure. */
.mcp-home-demo .demo-controls,.mcp-home-demo .demo-caption,.mcp-home-demo .demo-footer{display:none!important}
