/* V2 phone composition. Desktop materials, typography and layout stay intact. */
@media (max-width: 820px) {
  html[data-querio-preview][data-fusion] :is(input,textarea,select) { font-size: 16px !important; }
  html[data-querio-preview][data-fusion] :is(.ws-before-after button,.ws-play,.og-animation-controls button,.og-text-link,.hx-explore,.hx-prompt) { min-height: 44px !important; }
  html[data-querio-preview][data-fusion] :is(.og-animation-controls,.hc-controls) { flex-wrap: wrap; gap: 8px; padding-block: 8px; }
  html[data-querio-preview][data-fusion] :is(.og-animation-controls,.hc-controls)>button { min-width: 44px; padding: 10px 12px !important; font-size: 12px !important; }
  html[data-querio-preview][data-fusion] .mix-secretaria-launcher { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; right: 12px !important; bottom: max(12px,env(safe-area-inset-bottom)) !important; }
  html[data-querio-preview][data-fusion] .mix-secretaria-compact { max-width: calc(100vw - 24px); max-height: calc(100svh - 108px); overflow-y: auto; }
  html[data-querio-preview][data-fusion] .mix-secretaria-compact :is(button,a) { min-height: 44px; }
}

@media (max-width: 620px) {
  html[data-querio-preview][data-fusion] { --mobile-reading: 16px; scroll-padding-top: 88px; }
  html[data-querio-preview][data-fusion] .q-announcement { padding: 10px 14px; font-size: 11px; gap: 10px; }
  html[data-querio-preview][data-fusion] .q-announcement>span:first-child { font-size: 9px; }
  html[data-querio-preview][data-fusion] .sh-hero .mix-story-intro { padding: 42px 20px 36px !important; }
  html[data-querio-preview][data-fusion] .mix-intro-kicker { font-size: 10px !important; line-height: 1.5 !important; margin-bottom: 20px !important; }
  html[data-querio-preview][data-fusion] .sh-hero .mix-intro-block h1 { font-size: clamp(32px,9.8vw,40px) !important; line-height: 1.1 !important; }
  html[data-querio-preview][data-fusion] .q-hero-description { font-size: 16px !important; line-height: 1.65 !important; margin: 22px auto !important; }
  html[data-querio-preview][data-fusion] .fusion-context-chips { gap: 8px; }
  html[data-querio-preview][data-fusion] .fusion-context-chips a { min-height: 40px; font-size: 12px; padding: 8px 10px; }
  html[data-querio-preview][data-fusion] .mix-intro-actions { display: grid !important; grid-template-columns: 1fr; gap: 12px !important; margin-top: 24px !important; }
  html[data-querio-preview][data-fusion] .mix-intro-actions :is(.mix-primary-action,.ac-connect-trigger) { width: 100%; justify-content: center; min-height: 48px !important; font-size: 14px !important; padding: 12px 16px !important; }

  /* A readable product preview instead of a compressed desktop window. */
  html[data-querio-preview][data-fusion] .sh-showcase { width: calc(100% - 16px) !important; height: auto !important; min-height: 590px !important; margin: 8px 8px 0 !important; padding: 8px !important; }
  html[data-querio-preview][data-fusion] .q-product-window { height: auto; min-height: 570px; grid-template-columns: 1fr; grid-template-rows: 40px minmax(0,1fr); }
  html[data-querio-preview][data-fusion] .q-product-top { padding-inline: 12px; font-size: 10px; gap: 8px; }
  html[data-querio-preview][data-fusion] .q-product-top>span:last-child { font-size: 7px; }
  html[data-querio-preview][data-fusion] .q-product-rail { display: none; }
  html[data-querio-preview][data-fusion] .q-product-canvas { padding: 26px 12px 34px; justify-content: flex-start; }
  html[data-querio-preview][data-fusion] .q-product-greeting { margin-bottom: 20px; }
  html[data-querio-preview][data-fusion] .q-product-greeting h2 { font-size: 24px !important; }
  html[data-querio-preview][data-fusion] .q-product-greeting p { font-size: 12px; }
  html[data-querio-preview][data-fusion] .sh-card { padding: 18px 12px 16px !important; }
  html[data-querio-preview][data-fusion] .sh-question { min-height: 64px !important; height: auto !important; }
  html[data-querio-preview][data-fusion] .sh-question-track [data-sh-text] { font-size: 13px !important; line-height: 1.6; }
  html[data-querio-preview][data-fusion] .sh-sources { gap: 6px !important; }
  html[data-querio-preview][data-fusion] .sh-sources li { height: 28px !important; font-size: 9px !important; padding-inline: 6px !important; }
  html[data-querio-preview][data-fusion] .q-product-questions { grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
  html[data-querio-preview][data-fusion] .q-product-questions>a { min-height: 76px; padding: 12px 28px 12px 12px; }
  html[data-querio-preview][data-fusion] .q-product-questions>a>span { font-size: 12px; }
  html[data-querio-preview][data-fusion] .q-product-questions p { font-size: 12px !important; line-height: 1.5; }
  html[data-querio-preview][data-fusion] .q-product-bottom { font-size: 8px; bottom: 10px; left: 12px; right: 12px; }
  html[data-querio-preview][data-fusion] .sh-motion-toggle { width: 44px !important; height: 44px !important; }

  /* Reading rhythm and source navigation. */
  html[data-querio-preview][data-fusion] .ws-intro { padding: 44px 20px 28px !important; }
  html[data-querio-preview][data-fusion] .q-source-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 4px 0 10px; scrollbar-width: thin; scroll-snap-type: x proximity; }
  html[data-querio-preview][data-fusion] .q-source-nav a { flex: 0 0 auto; min-height: 44px; font-size: 12px; padding: 10px 14px; scroll-snap-align: start; }
  html[data-querio-preview][data-fusion] .ws-feature:not([data-fusion-platform]) { padding-block: 40px !important; }
  html[data-querio-preview][data-fusion] [data-soceo-agent-home] .ws-feature[data-fusion-layout] .ws-feature-layout { padding-inline: 6px !important; gap: 24px !important; }
  html[data-querio-preview][data-fusion] [data-soceo-agent-home] .ws-feature .ws-copy { padding-inline: 14px !important; }
  html[data-querio-preview][data-fusion] [data-soceo-agent-home] .ws-feature .ws-copy h3 { font-size: 32px !important; }
  html[data-querio-preview][data-fusion] [data-soceo-agent-home] .ws-feature .ws-copy>p:not(.q-feature-category) { font-size: 16px !important; line-height: 1.65 !important; }
  html[data-querio-preview][data-fusion] .q-feature-category { font-size: 10px !important; }
  html[data-querio-preview][data-fusion] .ws-feature .ws-stage-frame { padding: 8px !important; }
  html[data-querio-preview][data-fusion] .ws-feature .ws-stage { display: flex !important; flex-direction: column; }
  html[data-querio-preview][data-fusion] .ws-feature:not([data-fusion-platform]) .ws-stage { height: 560px !important; }
  html[data-querio-preview][data-fusion] .ws-window-bar { padding-inline: 10px; }
  html[data-querio-preview][data-fusion] .ws-window-bar :is(strong,small) { font-size: 9px !important; }
  html[data-querio-preview][data-fusion] .ws-stage .ws-spreadsheet :is(td,th) { font-size: 11px; padding-inline: 4px; }
  html[data-querio-preview][data-fusion] .ws-stage :is(.ws-formula,.ws-cell-address,.ws-chart-title,.ws-sheet-tab) { font-size: 10px; }
  html[data-querio-preview][data-fusion] .ws-stage :is(.ws-chart-label,.ws-chart-value) { font-size: 10px; }
  html[data-querio-preview][data-fusion] .ws-chart :is(small,span,b) { font-size: 10px; }
  html[data-querio-preview][data-fusion] .ws-feature .ws-window-bar { flex: 0 0 auto; }
  html[data-querio-preview][data-fusion] .ws-feature .ws-window-footer { flex: 0 0 60px; height: 60px; min-height: 60px; gap: 8px; padding: 8px; }
  html[data-querio-preview][data-fusion] .ws-feature .ws-stage>.ws-illustration,
  html[data-querio-preview][data-fusion] .ws-feature .ws-platform-canvas { flex: 1 1 0; min-height: 0; height: auto !important; }
  html[data-querio-preview][data-fusion] .ws-feature[data-fusion-platform] .ws-platform-stage { height: 560px !important; }
  html[data-querio-preview][data-fusion] .ws-before-after button { min-height: 44px !important; min-width: 44px; font-size: 12px !important; padding: 10px 12px !important; }
  html[data-querio-preview][data-fusion] .ws-play { min-height: 44px !important; font-size: 12px !important; }
  html[data-querio-preview][data-fusion] .ws-step-legend { font-size: 11px; }
  html[data-querio-preview][data-fusion] .fusion-scene-prompt { min-height: 48px; font-size: 13px; line-height: 1.5; }

  /* Swipe complete examples rather than squeeze four interfaces together. */
  html[data-querio-preview][data-fusion] .hx-section { padding: 44px 20px 50px !important; }
  html[data-querio-preview][data-fusion] .hx-editorial { padding: 0; }
  html[data-querio-preview][data-fusion] .hx-editorial>p { font-size: 16px !important; line-height: 1.65 !important; }
  html[data-querio-preview][data-fusion] .hx-artifacts { display: flex !important; overflow-x: auto; gap: 16px; padding: 0 3px 26px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #b6a7c1 transparent; }
  html[data-querio-preview][data-fusion] .hx-artifact { flex: 0 0 calc(100% - 20px); width: calc(100% - 20px); min-width: 0; scroll-snap-align: start; padding-bottom: 30px; }
  html[data-querio-preview][data-fusion] .hx-artifact-surface { height: 310px; padding-inline: 16px; }
  html[data-querio-preview][data-fusion] .hx-artifact-heading>div>span,
  html[data-querio-preview][data-fusion] .hx-artifact-heading>small { font-size: 9px; }
  html[data-querio-preview][data-fusion] .hx-artifact-surface>footer { font-size: 8px; }
  html[data-querio-preview][data-fusion] .hx-category-bars>div { font-size: 10px; grid-template-columns: 65px minmax(0,1fr) 42px; }
  html[data-querio-preview][data-fusion] .hx-prompt { min-height: 48px !important; left: 0; right: 0; bottom: 0; font-size: 12px; padding: 10px 12px; }

  /* Context workbenches: larger navigation, source rows and explanations. */
  html[data-querio-preview][data-fusion] .og-section { padding: 44px 20px; }
  html[data-querio-preview][data-fusion] .og-section-intro>p,
  html[data-querio-preview][data-fusion] .og-graph-copy>p { font-size: 16px !important; line-height: 1.65 !important; }
  html[data-querio-preview][data-fusion] .og-kicker { font-size: 10px; }
  html[data-querio-preview][data-fusion] .og-world .og-use h3 { font-size: 18px !important; }
  html[data-querio-preview][data-fusion] .og-world .og-use p { font-size: 14px !important; line-height: 1.6 !important; }
  html[data-querio-preview][data-fusion] .hc-frame { width: calc(100% + 16px); margin-inline: -8px; }
  html[data-querio-preview][data-fusion] .hc-header { min-height: 44px; font-size: 11px; padding-inline: 12px; }
  html[data-querio-preview][data-fusion] .hc-header>strong { font-size: 14px; }
  html[data-querio-preview][data-fusion] .hc-header>small { font-size: 8px; }
  html[data-querio-preview][data-fusion] .hc-workspace { height: 560px; grid-template-columns: 52px minmax(0,1fr); }
  html[data-querio-preview][data-fusion] .hc-sidebar { padding: 12px 4px; gap: 10px; }
  html[data-querio-preview][data-fusion] .og-world .hc-sidebar>button { min-height: 44px; padding: 8px; }
  html[data-querio-preview][data-fusion] .hc-sidebar svg { width: 18px; height: 18px; }
  html[data-querio-preview][data-fusion] .hc-main { grid-template-rows: 48px minmax(0,1fr); }
  html[data-querio-preview][data-fusion] .hc-tabs { gap: 14px; padding-inline: 12px; }
  html[data-querio-preview][data-fusion] .og-world .hc-tabs>button { font-size: 12px !important; min-height: 48px; }
  html[data-querio-preview][data-fusion] .hc-panel { padding: 20px 12px 16px; }
  html[data-querio-preview][data-fusion] .hc-panel-heading>div>small,
  html[data-querio-preview][data-fusion] .hc-panel-heading>span { font-size: 9px; }
  html[data-querio-preview][data-fusion] .hc-table-head { font-size: 10px; }
  html[data-querio-preview][data-fusion] .og-world .hc-conversations>button { font-size: 13px !important; min-height: 80px; padding: 14px 6px; }
  html[data-querio-preview][data-fusion] .hc-conversations small { font-size: 9px; }
  html[data-querio-preview][data-fusion] .hc-inspector strong { font-size: 12px; }
  html[data-querio-preview][data-fusion] .hc-inspector>div>small,
  html[data-querio-preview][data-fusion] .hc-inspector>div>span { font-size: 9px; }
  html[data-querio-preview][data-fusion] .og-world .hc-inspector>button,
  html[data-querio-preview][data-fusion] .og-world .hc-context-bottom>button { font-size: 12px !important; min-height: 44px; }
  html[data-querio-preview][data-fusion] .hc-context-sources>div>span { font-size: 11px; }
  html[data-querio-preview][data-fusion] .hc-context-sources small { font-size: 9px; }
  html[data-querio-preview][data-fusion] .hc-guidance>header { font-size: 12px; }
  html[data-querio-preview][data-fusion] .hc-guidance>header>small { font-size: 9px; }
  html[data-querio-preview][data-fusion] .hc-guidance ol { font-size: 14px; line-height: 1.65; }
  html[data-querio-preview][data-fusion] .hc-question-bubble { font-size: 13px; }
  html[data-querio-preview][data-fusion] .hc-answer>header { font-size: 12px; }
  html[data-querio-preview][data-fusion] .og-hex-reference .hc-answer>p { font-size: 15px !important; line-height: 1.65 !important; }
  html[data-querio-preview][data-fusion] .hc-facts>div>span { font-size: 10px; }
  html[data-querio-preview][data-fusion] .hc-facts strong { font-size: 16px; }
  html[data-querio-preview][data-fusion] .hc-answer>footer { flex-wrap: wrap; font-size: 10px; }
  html[data-querio-preview][data-fusion] .hc-answer>footer>a { min-height: 44px; font-size: 12px; }
  html[data-querio-preview][data-fusion] .hc-controls>span { font-size: 10px; max-width: none; }
  html[data-querio-preview][data-fusion] .og-studio-stage { width: calc(100% + 16px); margin-inline: -8px; padding: 6px !important; }
  html[data-querio-preview][data-fusion] .og-studio-window { height: auto !important; grid-template-rows: 42px 34px 520px 36px; }
  html[data-querio-preview][data-fusion] .og-window-bar { min-height: 42px; font-size: 10px; }
  html[data-querio-preview][data-fusion] .og-window-bar>small { font-size: 8px; }
  html[data-querio-preview][data-fusion] .og-studio-toolbar { min-height: 34px; font-size: 9px; gap: 8px; }
  html[data-querio-preview][data-fusion] .og-studio-body { height: 520px; }
  html[data-querio-preview][data-fusion] .og-panel-heading h3 { font-size: 20px !important; }
  html[data-querio-preview][data-fusion] .og-panel-heading :is(small,span) { font-size: 10px; }
  html[data-querio-preview][data-fusion] .og-faux-search { font-size: 11px; min-height: 40px; }
  html[data-querio-preview][data-fusion] .og-files-table { min-width: 360px; font-size: 12px; }
  html[data-querio-preview][data-fusion] .og-files-table th { font-size: 10px; }
  html[data-querio-preview][data-fusion] .og-files-table td { padding-block: 14px; overflow-wrap: anywhere; }
  html[data-querio-preview][data-fusion] .og-files-table td:first-child { font-size: 12px !important; white-space: normal; }
  html[data-querio-preview][data-fusion] .og-files-table td:first-child strong { display: block; margin-top: 4px; font-size: 11px !important; line-height: 1.45; white-space: nowrap; overflow-wrap: normal; }
  html[data-querio-preview][data-fusion] .og-file-icon { font-size: 7px; width: 20px; height: 22px; }
  html[data-querio-preview][data-fusion] .og-studio-footer { font-size: 10px; min-height: 36px; }
  html[data-querio-preview][data-fusion] .og-studio-window>footer { font-size: 10px; min-height: 36px; }
  html[data-querio-preview][data-fusion] .og-studio-panel p { font-size: 14px !important; line-height: 1.6 !important; }
  html[data-querio-preview][data-fusion] .og-record-fields { grid-template-columns: 1fr; gap: 16px; }
  html[data-querio-preview][data-fusion] .og-record-fields dt { font-size: 11px; }
  html[data-querio-preview][data-fusion] .og-record-fields dd { font-size: 14px; }
  html[data-querio-preview][data-fusion] .og-record-fields dd>span { font-size: 10px; }
  html[data-querio-preview][data-fusion] .og-review-entry>div { font-size: 12px; overflow-wrap: anywhere; }
  html[data-querio-preview][data-fusion] .og-review-bottom { flex-wrap: wrap; }
  html[data-querio-preview][data-fusion] .og-world .og-review-bottom>button { min-height: 44px; font-size: 12px !important; }
  html[data-querio-preview][data-fusion] .og-demo-cursor { display: none; }
  html[data-querio-preview][data-fusion] .og-studio-steps { display: flex !important; gap: 10px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #b6a7c1 transparent; }
  html[data-querio-preview][data-fusion] .og-studio-steps>button { flex: 0 0 80% !important; width: auto !important; min-width: 0; scroll-snap-align: start; min-height: 144px; padding: 18px; }
  html[data-querio-preview][data-fusion] .og-studio-steps>button :is(p,small) { font-size: 14px !important; line-height: 1.5; }
  html[data-querio-preview][data-fusion] .og-studio-controls { gap: 12px; align-items: stretch; }
  html[data-querio-preview][data-fusion] .og-studio-controls>.og-text-link { font-size: 11px; margin-left: 0; }
  html[data-querio-preview][data-fusion] .og-studio-controls>div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; width: 100%; }
  html[data-querio-preview][data-fusion] .og-studio-controls [data-og-time] { grid-column: 1 / -1; font-size: 11px; }
  html[data-querio-preview][data-fusion] .og-world .og-studio-controls button { justify-content: center; min-width: 44px; min-height: 44px; padding: 10px 8px; font-size: 12px !important; border: 1px solid var(--og-line); border-radius: 4px; background: var(--og-paper); }
  html[data-querio-preview][data-fusion] .og-template-grid>a { padding: 20px; min-height: 160px; }
  html[data-querio-preview][data-fusion] .og-template-grid>a p { font-size: 14px; line-height: 1.6; }

  /* Same workflow and native clock, composed in portrait on phones. */
  html[data-querio-preview][data-fusion] .og-workflow[data-workflow-v2] .og-v2-branch-scene { overflow: hidden; padding: 12px 0; }
  html[data-querio-preview][data-fusion] .og-workflow[data-workflow-v2] .og-v2-branch-scene>svg { width: 100% !important; min-width: 0 !important; height: auto !important; aspect-ratio: 340 / 440; padding: 0 !important; }
  html[data-querio-preview][data-fusion] .og-workflow[data-workflow-v2] .og-v2-branch-scene text { font-size: 16px; text-anchor: start !important; }
  html[data-querio-preview][data-fusion] .og-workflow[data-workflow-v2] .og-v2-branch-scene text.og-flow-agent { font-size: 20px; }
  html[data-querio-preview][data-fusion] .og-workflow[data-workflow-v2] .og-v2-branch-scene text.og-flow-note { font-size: 14px; }
  html[data-querio-preview][data-fusion] .og-workflow[data-workflow-v2] .og-v2-branch-scene text:last-of-type { font-size: 14px; }
  html[data-querio-preview][data-fusion] .og-workflow[data-workflow-v2] .og-v2-flow-hint { display: none !important; }
  html[data-querio-preview][data-fusion] .og-workflow[data-workflow-v2] .og-animation-controls>span { flex-basis: 100%; font-size: 10px; }
  html[data-querio-preview][data-fusion] .og-animation-controls { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; align-items: center; }
  html[data-querio-preview][data-fusion] .og-animation-controls>span { min-width: 0; font-size: 10px; }
  html[data-querio-preview][data-fusion] .og-animation-controls>button { padding-inline: 8px !important; }
  html[data-querio-preview][data-fusion] .og-workflow[data-workflow-v2] .og-flow-steps { grid-template-columns: 1fr !important; }
  html[data-querio-preview][data-fusion] .og-workflow[data-workflow-v2] .og-flow-steps>button { min-height: 0; padding: 18px; text-align: left; }
  html[data-querio-preview][data-fusion] .og-workflow[data-workflow-v2] .og-flow-steps p { font-size: 15px !important; line-height: 1.6 !important; }
  html[data-querio-preview][data-fusion] .og-workflow[data-workflow-v2] .og-flow-steps small { display: block; margin-top: 16px; font-size: 10px; }

  /* Four complete MCP modes, with labels that fit a thumb-sized tab. */
  html[data-querio-preview][data-fusion] #mcp .mcp-intro { padding: 44px 20px 28px !important; }
  html[data-querio-preview][data-fusion] #mcp .mcp-description { font-size: 15px !important; }
  html[data-querio-preview][data-fusion] #mcp .mcp-track { padding-inline: 8px !important; }
  html[data-querio-preview][data-fusion] #mcp .mcp-panel-frame { padding: 6px !important; }
  html[data-querio-preview][data-fusion] #mcp .mcp-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); padding-inline: 8px; }
  html[data-querio-preview][data-fusion] #mcp .mcp-tab { min-height: 66px !important; justify-content: flex-start; gap: 10px; padding: 12px 10px !important; }
  html[data-querio-preview][data-fusion] #mcp .mcp-tab>svg { display: block !important; width: 20px; height: 20px; }
  html[data-querio-preview][data-fusion] #mcp .mcp-tab strong { font-size: 13px !important; }
  html[data-querio-preview][data-fusion] #mcp .mcp-tab small { font-size: 11px !important; }
  html[data-querio-preview][data-fusion] #mcp .mcp-interface { padding: 24px 16px !important; gap: 24px; }
  html[data-querio-preview][data-fusion] #mcp .mcp-interface-description { font-size: 15px !important; line-height: 1.65 !important; }
  html[data-querio-preview][data-fusion] #mcp :is(.mcp-interface-kicker,.mcp-interface-context) { font-size: 12px; }
  html[data-querio-preview][data-fusion] #mcp :is(.mcp-operation-trace,.mcp-stage-controls,.mcp-playback-controls) button { min-height: 44px; font-size: 11px; }
  html[data-querio-preview][data-fusion] #mcp .mcp-client-option { min-height: 44px; font-size: 12px; }
  html[data-querio-preview][data-fusion] #mcp .mcp-client-picker button { min-height: 44px; font-size: 11px; line-height: 1.35; white-space: normal; }
  html[data-querio-preview][data-fusion] #mcp .mcp-demo-bar { font-size: 11px; }
  html[data-querio-preview][data-fusion] #mcp .mcp-demo-body { padding: 14px; }
  html[data-querio-preview][data-fusion] #mcp .mcp-motion-controls button { min-height: 44px; font-size: 12px; }

  /* The restored ending keeps its materials and gains readable mobile copy. */
  html[data-querio-preview][data-fusion] :is(.au-intro>p:last-child,.mix-cost header>p,#planos .mix-section-intro>p:last-child) { font-size: 15px !important; line-height: 1.65 !important; }
  html[data-querio-preview][data-fusion] .mix-cost { padding: 40px 20px !important; }
  html[data-querio-preview][data-fusion] .mix-cost-grid p { font-size: 14px; line-height: 1.65; }
  html[data-querio-preview][data-fusion] #contato :is(p,.mix-final-note,.mix-final-note span) { font-size: 14px !important; }
  html[data-querio-preview][data-fusion] .ac-copy-button { min-height: 44px; font-size: 13px !important; }
  html[data-querio-preview][data-fusion] .ac-handoff .ac-command-row code { font-size: 11px !important; overflow-wrap: anywhere; }
}
