/* "A inteligência do SOCEO, onde você quiser": five-surface explorer (V2 home).
   Same chapter model as "Pergunte. Receba a resposta com fonte." and "Na
   prática": editorial copy column (31%) on the left, the window floating on
   the section paper at the right with its dashed label. The window is drawn
   at 820 × 600 and scaled into the stage; see mcp-explore.js. */
html[data-querio-preview][data-fusion] [data-soceo-agent-home] #mcp.mcpx { position: relative; display: block; padding: 76px var(--ed-inset, 60px) 88px !important; border-bottom: 1px solid #e6dfeb; overflow: visible !important; }
#mcp.mcpx > :is(.mcp-background, .mcp-intro-grid) { display: none !important; }
#mcp.mcpx > svg.ed-section-lines { z-index: 0 !important; }
.mcpx-track { position: relative; z-index: 1; }
.mcpx[data-mcpx-mode="scroll"] .mcpx-sticky { position: sticky; top: var(--mcpx-top, 84px); }
.mcpx-grid { display: grid; grid-template-columns: 31% minmax(0, 1fr); gap: 35px 36px; align-items: start; }

/* Copy column: the type scale of the other chapters. */
.mcpx-copy { grid-column: 1; min-width: 0; padding: 46px 18px 0 10px; }
.mcpx[data-mcpx-mode="scroll"] .mcpx-copy { padding-top: 26px; }
.mcpx-eyebrow { margin: 0 0 14px; color: #5c5363; font: 500 11px/1.2 "DM Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
html[data-querio-preview][data-fusion] #mcp.mcpx .mcpx-title { max-width: none; margin: 0 0 19px !important; color: #29242f !important; font: 600 30px/1.13 "Bricolage Grotesque", Inter, Arial, sans-serif !important; letter-spacing: -.035em !important; text-align: left !important; text-wrap: balance; }
html[data-querio-preview][data-fusion] #mcp.mcpx .mcpx-title > :is(.fusion-sans, em, span) { display: block !important; color: inherit !important; font: inherit !important; font-style: normal !important; letter-spacing: inherit !important; }
html[data-querio-preview][data-fusion] #mcp.mcpx .mcpx-description { max-width: 35ch; margin: 0; color: #5d5265; font: 400 13px/1.85 Inter, Arial, sans-serif; }
#mcp.mcpx .mcpx-more { margin-top: 22px; }

/* The step block sits where the other chapters keep their note. */
.mcpx-note { position: relative; margin-top: 32px; padding-top: 24px; border-top: 1px dashed #d8cedf; }
.mcpx-step { display: block; height: 1.2em; margin: 0 0 12px; white-space: pre; line-height: 1.2em !important; color: #5c5363; font: 500 11px/1 "DM Mono", ui-monospace, monospace; letter-spacing: .08em; }
.mcpx-digit { position: relative; display: inline-block; height: 1.2em; vertical-align: top; }
.mcpx-digit .mcpx-prism { position: relative; display: inline-block; vertical-align: top; width: .62em; height: 1.2em; margin-left: .02em; overflow: hidden; perspective: 80px; transform-style: flat; }
.mcpx-digit .mcpx-prism > span { --r: calc(1.2em * .688); position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; transform: translateZ(calc(-1 * var(--r))) rotateX(calc((var(--turn, 0) - var(--i)) * 72deg)) translateZ(var(--r)); }
html[data-querio-preview][data-fusion] #mcp.mcpx .mcpx-label { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 10px !important; color: #29242f !important; font: 600 18px/1.3 "Bricolage Grotesque", Inter, Arial, sans-serif !important; letter-spacing: -.03em !important; }
.mcpx-prism-slot { position: relative; display: inline-block; flex: none; width: 28px; height: 28px; overflow: hidden; border: 1px solid #e4dcef; border-radius: 50%; background: #fff; box-shadow: 0 5px 12px #301a4912; perspective: 160px; }
.mcpx-prism--icon { position: absolute; inset: 0; transform-style: preserve-3d; }
.mcpx-prism--icon > span { --r: calc(26px * .688); position: absolute; inset: 0; display: grid; place-items: center; background: #fff; backface-visibility: hidden; transform: translateZ(calc(-1 * var(--r))) rotateX(calc((var(--turn, 0) - var(--i)) * 72deg)) translateZ(var(--r)); }
.mcpx-prism--icon img, .mcpx-prism--icon svg { width: 15px; height: 15px; }
.mcpx-glyph { display: inline-grid; place-items: center; }
.mcpx-glyph svg, .mcpx-window svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mcpx-prism--icon .mcpx-glyph { color: #29242f; }
html[data-querio-preview][data-fusion] #mcp.mcpx .mcpx-text { max-width: 35ch; min-height: 5.55em; margin: 0; color: #5d5265; font: 400 13px/1.85 Inter, Arial, sans-serif; }
.mcpx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Stage: no ground of its own. The window floats on the paper. */
.mcpx-stage { position: relative; grid-column: 2; min-width: 0; height: var(--mcpx-body-h, 640px); }
html[data-querio-preview][data-fusion] #mcp.mcpx .mcpx-window-title { position: absolute; z-index: 4; top: 30px; bottom: auto; left: calc(50% - var(--mcpx-w, 820px) / 2 * var(--s, 1) + 12px); transform: translateY(-100%); padding: 6px 10px 4px; border: 1px dashed #b7a6c9; border-bottom: 0; background: repeating-linear-gradient(45deg, #fdfdfb 0 6px, #f3eef9 6px 7px); color: #4b4256; font: 500 11px/1.2 "DM Mono", ui-monospace, monospace; white-space: nowrap; }
.mcpx-fit { position: absolute; left: 50%; top: 30px; width: var(--mcpx-w, 820px); height: 600px; transform: translateX(-50%) scale(var(--s, 1)); transform-origin: 50% 0; }
.mcpx-illustration { margin-left: auto; align-self: center; padding-right: 4px; color: #7d6f88; font: 400 10px/1 "DM Mono", ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }

/* Window: the SOCEO window skin. */
.mcpx-window { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ddd5e5; border-radius: 6px; background: #fdfdfb; box-shadow: 0 20px 50px #301a4914; color: #1d1c1d; font: 400 13px/1.45 Inter, Arial, sans-serif; text-align: left; }
.mcpx-window p { margin: 0; }
.mcpx-tabs { position: relative; display: flex; flex: none; gap: 2px; padding: 7px 10px; border-bottom: 1px solid #ece6f3; background: #fdfdfb; }
.mcpx-tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border: 0; border-radius: 12px; background: none; color: #7d6f88; font: 500 12px/1 Inter, Arial, sans-serif; cursor: pointer; }
.mcpx-tab[aria-selected="true"] { color: #6728d4; }
/* The highlight is the tab's own capsule, centred on it: the old "#mcp button"
   rule (mix/mcp-home.css) makes the tab 32-36px tall and paints a square on
   hover, which used to sit behind the 24px pill and read as a crooked blob. */
#mcp .mcpx-tab:hover { background: none; }
.mcpx-tab::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 50%; height: 24px; border-radius: 12px; transform: translateY(-50%); background: transparent; }
.mcpx-tab:hover::before { background: #f8f6fc; }
.mcpx-tab[aria-selected="true"]::before { background: #ebe6fb; }
.mcpx-tabs.is-moving .mcpx-tab::before { background: transparent; }
.mcpx-tab:focus-visible { outline: 2px solid #6728d4; outline-offset: 1px; }
.mcpx-tab img, .mcpx-tab svg { width: 13px; height: 13px; }
.mcpx-pill { position: absolute; top: 0; left: 0; width: var(--w, 0); height: 24px; border-radius: 12px; background: #ebe6fb; transform: translate(var(--x, 0), var(--y, 7px)); opacity: 0; }
.mcpx-tabs.is-moving .mcpx-pill { opacity: 1; }
.mcpx-panels { position: relative; flex: 1; background: #fff; transition: background-color .35s; }
.mcpx[data-mcpx-step="mcp"] .mcpx-panels { background: #faf9f5; }
.mcpx[data-mcpx-step="terminal"] .mcpx-panels { background: #fcfcfb; }
.mcpx-shells { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.mcpx-shell { position: absolute; left: 0; top: 0; box-sizing: border-box; border: 0 solid transparent; opacity: 0; }
.mcpx-panel { position: absolute; inset: 0; z-index: 1; }
.mcpx-panel [data-morph] { position: relative; z-index: 1; }
.mcpx-placeholder { color: #9a93a3; }
.mcpx-caret { display: none; width: 1.5px; height: 15px; margin-left: 1px; vertical-align: -3px; background: currentColor; }

/* Chart (shared). */
.mcpx-chart { display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 12px 14px 10px; border: 1px solid #e7e2ec; border-radius: 10px; background: #fff; }
.mcpx-chart figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #29242f; font: 400 11px/1.3 Inter, Arial, sans-serif; }
.mcpx-chart figcaption strong { font-weight: 600; font-size: 11.5px; }
.mcpx-legend { display: inline-flex; align-items: center; gap: 6px; color: #7b7385; font-size: 10px; }
.mcpx-legend::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: #6d3be0; }
.mcpx-plot { display: grid; flex: 1; grid-template-columns: 34px minmax(0, 1fr); min-height: 0; margin-top: 12px; }
.mcpx-axis { position: relative; }
.mcpx-axis span { position: absolute; right: 7px; bottom: calc(var(--y) * 100%); transform: translateY(50%); color: #a59cae; font: 500 9px/1 "DM Mono", ui-monospace, monospace; white-space: nowrap; }
.mcpx-bars { display: flex; align-items: flex-end; gap: 3px; height: 100%; border-bottom: 1px solid #ddd6e4; background: linear-gradient(#efebf3 1px, transparent 1px) 0 0 / 100% 33.333%; }
.mcpx-bars i { flex: 1; height: calc(var(--v) * 100%); border-radius: 2px 2px 0 0; background: #7244e6; transform-origin: bottom; }
.mcpx-bars i[data-peak] { background: #4c1fb0; }
.mcpx-ticks { display: flex; justify-content: space-between; padding: 6px 0 0 34px; color: #a59cae; font: 500 9px/1 "DM Mono", ui-monospace, monospace; }
.mcpx-chart--compact { padding: 10px 12px 8px; }
.mcpx-chart--compact .mcpx-plot { margin-top: 8px; }
.mcpx-chart--compact .mcpx-bars { gap: 2px; }
.mcpx-chart--spark { flex-direction: row; align-items: center; gap: 12px; width: max-content; padding: 4px 0; border-color: transparent; background: transparent; color: #8a8192; font: inherit; }
.mcpx-chart--spark .mcpx-bars { width: 210px; height: 22px; gap: 1px; border: 0; background: none; }
.mcpx-chart--spark .mcpx-bars i { border-radius: 1px 1px 0 0; }

/* 1. Slack. */
.mcpx-slack { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 10px 20px 16px; font-family: Lato, Inter, Arial, sans-serif; }
.mcpx-slack-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 2px !important; padding-bottom: 8px; border-bottom: 1px solid #efedf1; color: #616061; font-size: 11px; }
.mcpx-slack-head strong { color: #1d1c1d; font-size: 13.5px; font-weight: 800; }
.mcpx-reply { position: relative; }
.mcpx-dots { position: absolute; left: 0; top: 1px; display: none; align-items: center; gap: 4px; padding: 7px 10px; border-radius: 10px; background: #f3f0f6; }
.mcpx-dots i { width: 6px; height: 6px; border-radius: 50%; background: #8a8192; animation: mcpx-dot 1s ease-in-out infinite; }
.mcpx-dots i:nth-child(2) { animation-delay: .15s; }
.mcpx-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mcpx-dot { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
.mcpx-msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
.mcpx-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: #e8dff7; color: #4c1fb0; font: 700 12px/1 Inter, Arial, sans-serif; }
.mcpx-avatar--sm { width: 20px; height: 20px; border-radius: 5px; font-size: 8px; }
.mcpx-avatar-img { width: 34px; height: 34px; border-radius: 7px; }
.mcpx-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 2px !important; }
.mcpx-meta strong { font-size: 13.5px; font-weight: 800; }
.mcpx-meta time { color: #7a7a7a; font-size: 11px; }
.mcpx-badge { padding: 3px 4px; border-radius: 3px; background: #ececec; color: #616061; font: 700 8.5px/1 Inter, Arial, sans-serif; letter-spacing: .05em; }
.mcpx-badge--ok { background: #ebe6fb; color: #6728d4; }
.mcpx-mention { padding: 0 2px; border-radius: 3px; background: #e8f5fa; color: #1264a3; }
.mcpx-slack-q, .mcpx-slack .mcpx-answer { font-size: 13.5px; }
.mcpx-slack-chart { display: flex; flex: 1; min-height: 0; padding-left: 44px; }
.mcpx-slack-chart .mcpx-chart { flex: 1; }
.mcpx-slack-composer { position: relative; flex: none; border: 1px solid #c9c8ca; border-radius: 9px; background: #fff; }
.mcpx-slack-tools { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 10px; border-radius: 9px 9px 0 0; background: #f8f8f8; color: #7a7a7a; font: 700 12.5px/1 Inter, Arial, sans-serif; }
.mcpx-slack-tools :is(b, i, u, s) { font-family: Georgia, serif; font-size: 13px; }
.mcpx-slack-tools svg { width: 14px; height: 14px; }
.mcpx-sep { width: 1px; height: 16px; background: #dcdcdc; }
.mcpx-slack-field { position: relative; min-height: 22px; padding: 8px 12px 4px; font-size: 13.5px; white-space: nowrap; }
.mcpx-slack-field:not(.is-typing) :is([data-mcpx-chip], .mcpx-type-rest) { display: none; }
.mcpx-slack-field.is-typing .mcpx-placeholder { display: none; }
.mcpx-slack-actions { display: flex; align-items: center; gap: 12px; padding: 4px 8px 7px; color: #616061; font: 600 12px/1 Inter, Arial, sans-serif; }
.mcpx-slack-actions svg { width: 15px; height: 15px; }
.mcpx-round { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f0f0f0; }
.mcpx-slack-send { display: inline-flex; align-items: center; gap: 6px; height: 26px; margin-left: auto; padding: 0 6px 0 9px; border-radius: 5px; background: #007a5a; color: #fff; }
.mcpx-slack-send i { width: 1px; height: 14px; background: #ffffff66; }
.mcpx-slack-send svg { width: 13px; height: 13px; stroke-width: 2; }
.mcpx-mention-menu { position: absolute; left: 8px; bottom: calc(100% + 40px); z-index: 2; display: none; width: 236px; padding: 6px 0; border: 1px solid #dddddd; border-radius: 8px; background: #fff; box-shadow: 0 12px 28px -8px #1d1c1d40; white-space: normal; }
.mcpx-mention-menu p { padding: 2px 12px 6px; color: #7a7a7a; font-size: 11px; }
.mcpx-mention-menu div { display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 12.5px; }
.mcpx-mention-menu img { border-radius: 4px; }
.mcpx-mention-menu small { color: #7a7a7a; font-size: 11px; }
.mcpx-mention-menu .is-active { background: #1264a3; color: #fff; }
.mcpx-mention-menu .is-active small { color: #ffffffbf; }
/* Typing: the script marks typed keys; everything stays in the DOM. */
.mcpx-slack-field.is-typing [data-mcpx-chip] { background: transparent; color: inherit; }
.mcpx-slack-field.is-typing.is-picked [data-mcpx-chip] { background: #e8f5fa; color: #1264a3; transition: background-color .18s, color .18s; }
.mcpx-slack-field.is-typing :is([data-mcpx-chip], .mcpx-type-rest) > span:not(.is-on) { display: none; }
.mcpx-slack-field.is-typing .mcpx-caret { display: inline-block; animation: mcpx-blink 1s steps(1) infinite; }
.mcpx-slack-field.is-menu .mcpx-mention-menu { display: block; animation: mcpx-pop .16s ease-out both; }
.mcpx-slack-field.is-sent ~ .mcpx-slack-actions .mcpx-slack-send, .mcpx-slack-composer:has(.is-sent) .mcpx-slack-send { animation: mcpx-press .5s ease-out; }
/* Entrance: the question is sent, then SOCEO types and answers (classes set
   by the script on [data-mcpx-slack]; without them everything is at rest). */
.mcpx-slack :is(.mcpx-msg, .mcpx-slack-chart) { transition: opacity .35s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.mcpx-slack.is-intro:not(.is-q) .mcpx-msg--q,
.mcpx-slack.is-intro:not(.is-a) .mcpx-msg--a,
.mcpx-slack.is-intro:not(.is-chart) .mcpx-slack-chart { opacity: 0; transform: translateY(14px); }
.mcpx-slack.is-intro.is-thinking .mcpx-dots { display: inline-flex; }
.mcpx-slack.is-intro .mcpx-msg--a .mcpx-w:not(.is-on) { visibility: hidden; }
.mcpx-slack.is-intro .mcpx-msg--a .mcpx-w.is-on { animation: mcpx-word .28s ease-out both; }
.mcpx-badge--ok { display: inline-block; max-width: 160px; overflow: hidden; white-space: nowrap; transition: max-width .35s ease, padding .35s ease, opacity .25s ease .1s; }
.mcpx-slack.is-intro:not(.is-checked) .mcpx-badge--ok { max-width: 0; padding-inline: 0; opacity: 0; }
.mcpx-slack.is-intro.is-chart .mcpx-bars i { animation: mcpx-rise .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes mcpx-word { from { opacity: 0; filter: blur(2px); } }
/* The same entrance on MCP, SOCEO, terminal and SDK (classes set by the
   script on the panel): the question is typed in the surface's own field and
   sent, SOCEO works, the answer streams in and the rest follows. Hidden parts
   keep their place, so nothing moves and the composer never grows. */
.mcpx-typing { display: none; }
.mcpx-panel.is-typing [data-morph="input"] .mcpx-placeholder { display: none; }
.mcpx-panel.is-typing .mcpx-typing { display: block; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.mcpx-panel.is-typing .mcpx-typing .mcpx-caret { display: inline-block; height: 1em; vertical-align: -.12em; animation: mcpx-blink 1s steps(1) infinite; }
.mcpx-term-input .mcpx-typing { flex: 0 1 auto; }
.mcpx-term-input .mcpx-typing .mcpx-caret { display: none !important; }
.mcpx-panel.is-scene .mcpx-beat:not(.is-on), .mcpx-panel.is-scene .mcpx-w:not(.is-on) { visibility: hidden; }
.mcpx-panel.is-scene .mcpx-beat.is-on { animation: mcpx-pop .32s ease-out both; }
.mcpx-panel.is-scene .mcpx-w.is-on { animation: mcpx-word .28s ease-out both; }
.mcpx-panel.is-scene.is-thinking .mcpx-dots--scene { display: inline-flex; visibility: visible; }
.mcpx-panel.is-scene .mcpx-chart.is-on .mcpx-bars i { animation: mcpx-rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.mcpx-panel.is-sent [data-morph="send"] { animation: mcpx-press .5s ease-out; }
.mcpx-code-q { transition: background-color .25s; }
.mcpx-panel.is-run .mcpx-code-q { background: #ffffff14; }
.mcpx-panel.is-typing .mcpx-code-q [data-morph="prompt"]::after { content: ""; display: inline-block; width: 1.5px; height: 13px; margin-left: 1px; vertical-align: -2px; background: #e6e1ef; animation: mcpx-blink 1s steps(1) infinite; }
@keyframes mcpx-blink { 50% { opacity: 0; } }
@keyframes mcpx-pop { from { opacity: 0; transform: translateY(6px); } }
@keyframes mcpx-press { 30% { transform: scale(.92); filter: brightness(1.15); } }

/* 2. MCP client. */
.mcpx-claude { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px max(26px, calc((100% - 860px) / 2)) 16px; color: #29261f; }
.mcpx-bubble { align-self: flex-end; max-width: 74%; padding: 8px 12px; border-radius: 12px; background: #efece4; font-size: 13px; }
.mcpx-tool { display: flex; align-items: center; gap: 7px; color: #6b665c; font-size: 12px; }
.mcpx-tool svg { width: 14px; height: 14px; }
.mcpx-tool-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: #e8f0fe; color: #2f5fc7; }
.mcpx-tool code, .mcpx-used code { padding: 2px 5px; border-radius: 4px; background: #ebe6fb; color: #6728d4; font: 500 10.5px/1.2 "DM Mono", ui-monospace, monospace; }
.mcpx-answer--serif { font: 400 15px/1.45 "Source Serif 4", Georgia, "Times New Roman", serif; }
.mcpx-claude .mcpx-chart { flex: 1; }
.mcpx-claude-composer { flex: none; padding: 10px 12px; border: 1px solid #e3dfd5; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px #29261f0d; }
.mcpx-claude-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: #6b665c; font-size: 12px; }
.mcpx-plus { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #e3dfd5; border-radius: 8px; font-size: 15px; }
.mcpx-model { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; }
.mcpx-model svg { width: 13px; height: 13px; }
.mcpx-claude-send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #d97757; color: #fff; }
.mcpx-claude-send svg, .mcpx-app-send svg, .mcpx-preview-send svg { width: 15px; height: 15px; stroke-width: 2; }

/* 3. SOCEO app. */
.mcpx-app { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 272px; }
.mcpx-notebook { display: flex; flex-direction: column; gap: 9px; min-height: 0; padding: 12px 16px 14px; border-right: 1px solid #ebe6ef; }
.mcpx-subtabs { display: flex; gap: 4px; }
.mcpx-subtabs span { padding: 4px 9px; border-radius: 6px; color: #7b7385; font-size: 11px; }
.mcpx-subtabs .is-active { background: #f1ecfb; color: #4c1fb0; font-weight: 600; }
.mcpx-notebook h4 { margin: 2px 0 0; color: #29242f; font: 600 18px/1.2 Inter, Arial, sans-serif; letter-spacing: -.02em; }
.mcpx-cell { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #ebe6ef; border-radius: 7px; color: #7b7385; font-size: 11px; }
.mcpx-cell code { padding: 2px 5px; border-radius: 4px; background: #f1ecfb; color: #4c1fb0; font: 600 9.5px/1.2 "DM Mono", ui-monospace, monospace; }
.mcpx-table-card { padding: 8px 10px 6px; border: 1px solid #ebe6ef; border-radius: 8px; }
.mcpx-table-card p { margin-bottom: 4px !important; color: #7b7385; font-size: 10.5px; }
.mcpx-table-card table { width: 100%; border-collapse: collapse; color: #29242f; font: 400 11.5px/1.3 Inter, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.mcpx-table-card th { padding: 4px 6px; border-bottom: 1px solid #ebe6ef; color: #8a8192; font-size: 10px; font-weight: 500; text-align: left; }
.mcpx-table-card td { padding: 4px 6px; border-bottom: 1px solid #f3f0f6; }
.mcpx-table-card :is(th, td):not(:first-child) { text-align: right; }
.mcpx-total td { border-bottom: 0; font-weight: 600; }
.mcpx-notebook .mcpx-chart { flex: 1; }
.mcpx-app-chat { display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 14px 14px 14px; color: #29242f; font-size: 12.5px; }
.mcpx-bubble--app { max-width: 92%; background: #f1ecfb; font-size: 12px; }
.mcpx-worked, .mcpx-used { display: flex; align-items: center; gap: 6px; color: #7b7385; font-size: 11px; }
.mcpx-worked svg { width: 13px; height: 13px; color: #1e7b3c; stroke-width: 2.2; }
.mcpx-app-chat .mcpx-answer { font-size: 12.5px; line-height: 1.5; }
.mcpx-app-note { color: #7b7385; font-size: 11.5px; line-height: 1.5; }
.mcpx-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #7b7385; font-size: 11px; }
.mcpx-sources span { padding: 2px 7px; border: 1px solid #e3dbe9; border-radius: 999px; color: #29242f; }
.mcpx-app-actions { display: flex; gap: 6px; }
.mcpx-app-actions span { padding: 5px 9px; border: 1px solid #e3dbe9; border-radius: 7px; color: #4c1fb0; font-size: 11px; font-weight: 600; }
.mcpx-app-actions span:first-child { background: #f1ecfb; border-color: #e0d4f7; }
.mcpx-app-composer, .mcpx-preview-input { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 8px 8px 8px 11px; border: 1px solid #e3dbe9; border-radius: 10px; background: #fff; font-size: 12px; }
.mcpx-app-send, .mcpx-preview-send { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; background: #6728d4; color: #fff; }

/* 4. Terminal. */
.mcpx-term { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 3px; padding: 14px 22px 16px; color: #2c2733; font: 400 11.5px/1.6 "DM Mono", ui-monospace, Menlo, monospace; }
.mcpx-term-top { display: flex; justify-content: space-between; margin-bottom: 6px !important; color: #8a8192; }
.mcpx-live { display: inline-flex; align-items: center; gap: 6px; color: #1e7b3c; }
.mcpx-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22a55a; }
.mcpx-dim { color: #8a8192; }
.mcpx-indent { padding-left: 16px; }
.mcpx-ok { color: #1e8a4c; }
.mcpx-term b { color: #6728d4; font-weight: 600; }
.mcpx-term-q { margin-top: 8px !important; }
.mcpx-term-step { margin-top: 6px !important; }
.mcpx-term-a { margin-top: 6px !important; }
.mcpx-term-table { display: flex; flex-direction: column; margin: 8px 0 4px 16px; font: inherit; white-space: pre; }
.mcpx-term .mcpx-chart--spark { margin-left: 16px; }
.mcpx-term-input { display: flex; align-items: center; gap: 8px; margin-top: 10px !important; }
.mcpx-term-input .mcpx-caret { display: inline-block; width: 7px; height: 14px; background: #2c2733; animation: mcpx-blink 1s steps(1) infinite; }

/* 5. SDK. */
.mcpx-sdk { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 14px; padding: 14px; }
.mcpx-editor { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 10px; background: #1e1a29; color: #e6e1ef; }
.mcpx-editor pre { flex: 1; }
.mcpx-status { padding: 8px 14px; border-top: 1px solid #ffffff14; color: #9d94ad; font: 500 10.5px/1 "DM Mono", ui-monospace, monospace; }
.mcpx-status .mcpx-ok { color: #5ee08a; }
.mcpx-file { padding: 9px 14px; border-bottom: 1px solid #ffffff14; color: #b7aec6; font: 500 11px/1 Inter, Arial, sans-serif; }
.mcpx-editor pre { display: flex; flex-direction: column; margin: 0; padding: 12px 0; font: 400 11px/1.75 "DM Mono", ui-monospace, Menlo, monospace; white-space: pre; }
.mcpx-code-line { display: block; min-height: 1.75em; padding-right: 10px; }
.mcpx-code-line i { display: inline-block; width: 30px; margin-right: 10px; color: #6b6380; font-style: normal; text-align: right; }
.mcpx-code-c { color: #8f86a0; }
.mcpx-editor [data-morph="prompt"] { color: #b8eec8; white-space: pre; }
.mcpx-preview { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px; border: 1px solid #e3dbe9; border-radius: 10px; background: #fff; color: #29242f; }
.mcpx-preview-top { display: flex; align-items: center; gap: 5px; color: #8a8192; font-size: 11px; }
.mcpx-preview-top span { width: 7px; height: 7px; border-radius: 50%; background: #e3dbe9; }
.mcpx-preview-top span:last-of-type { margin-right: 6px; }
.mcpx-preview .mcpx-answer { font-size: 12.5px; line-height: 1.5; }
.mcpx-preview .mcpx-chart { flex: 1; }

/* Bars rise once when the stage first comes into view. */
@media (prefers-reduced-motion: no-preference) {
  .mcpx-stage.is-entering .mcpx-panel.is-active .mcpx-bars i { animation: mcpx-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .mcpx-tab { transition: color .2s; }
}
@keyframes mcpx-rise { from { transform: scaleY(0); } }

@media (min-width: 1400px) { html[data-querio-preview][data-fusion] #mcp.mcpx .mcpx-title { font-size: 32px !important; } }
@media (min-width: 1700px) {
  html[data-querio-preview][data-fusion] #mcp.mcpx .mcpx-title { font-size: 43px !important; }
  html[data-querio-preview][data-fusion] #mcp.mcpx :is(.mcpx-description, .mcpx-text) { font-size: 17px; }
}
/* Narrow screens: copy above, the window under it at its own proportion. */
@media (max-width: 1179px) {
  .mcpx-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .mcpx-copy { padding: 0; }
  .mcpx-text { min-height: 0; }
  .mcpx-stage { grid-column: 1; }
}
@media (max-width: 900px) {
  html[data-querio-preview][data-fusion] [data-soceo-agent-home] #mcp.mcpx { padding: 48px 16px 56px !important; }
  html[data-querio-preview][data-fusion] #mcp.mcpx .mcpx-title { font-size: 29px !important; }
  html[data-querio-preview][data-fusion] #mcp.mcpx .mcpx-label { font-size: 17px !important; }
  .mcpx-note { margin-top: 26px; }
}
