/* Website host adjustments; component layout and controls remain Mewu's own. */
.app .mewu-composer:not(.detached){bottom:18px!important;max-height:46vh}
.app .mewu-composer:not(.expanded) .conversation-scroll{max-height:116px}
.app:has(.drawing-editor) .mewu-composer:not(.expanded) .conversation-scroll{display:none}
.app:has(.drawing-blackboard) .mewu-composer:not(.detached){bottom:105px!important}
/* 窄版画布里右侧图片工具条会盖住居中的移动手柄，保留独立命中区域。 */
.image-object .image-object-tools{top:34px}
/* 使用产品桌面模式的实际边距：左下工具20px、居中对话条24px，不为背景任务栏额外抬高。 */
html[data-demo-case="workspace"] .space-utilities{position:fixed!important;left:16px!important;top:auto!important;bottom:20px!important;right:auto!important;opacity:1}
html[data-demo-case="workspace"] .app .mewu-composer:not(.detached){bottom:24px!important}
/* 展开时由外框约束高度，只让历史消息收缩滚动；保持输入区及原生弹出菜单可用。 */
html[data-demo-case="workspace"] .app .mewu-composer{display:flex;flex-direction:column;min-height:0;max-height:calc(100vh - 48px)}
html[data-demo-case="workspace"] .app .mewu-composer:not(.expanded){max-height:38vh}
html[data-demo-case="workspace"] .app .mewu-composer>:is(.composer-grip,.conversation-heading,.composer-row,.composer-error){flex-shrink:0}
html[data-demo-case="workspace"] .app .mewu-composer .conversation-scroll{flex:0 1 auto;min-height:0}
html[data-demo-case="workspace"] .capture-mask{opacity:1}
/* 选区笔迹属于背景截图，不能盖过在其上的独立图片或 HTML 对象。 */
html[data-demo-case="workspace"] .capture-saved-drawings{z-index:6}
html[data-demo-case="workspace"] .app .mewu-composer:not(.expanded) .conversation-scroll{max-height:84px}
html[data-demo-case="workspace"] .artifact-card:has(iframe[title$=".html"]){isolation:isolate}
html:is([data-demo-case^="scene-"],[data-demo-case^="feature-"],[data-demo-case^="plugin-"]) .app .mewu-composer{width:min(430px,calc(100vw - 32px))!important;left:auto!important;right:20px!important;top:68px!important;bottom:auto!important;max-height:calc(100vh - 110px)!important}
html:is([data-demo-case^="scene-"],[data-demo-case^="feature-"],[data-demo-case^="plugin-"]) .app .mewu-composer:not(.expanded) .conversation-scroll{max-height:240px}
html:is([data-demo-case^="scene-"],[data-demo-case^="feature-"]):has(.drawing-editor) .space-utilities{visibility:hidden}
html[data-demo-case="scene-review"] .drawing-toolbar{left:560px!important;top:220px!important;bottom:auto!important;right:auto!important}
html[data-demo-case="scene-review"] :is(.drawing-tools-row,.drawing-properties-row){max-width:700px!important;flex-wrap:wrap!important;overflow:visible!important}
html[data-demo-case="feature-annotation"] .drawing-toolbar{left:28px!important;top:auto!important;bottom:12px!important;right:auto!important}
.demo-cursor{position:fixed;left:0;top:0;z-index:990;pointer-events:none;display:flex;align-items:flex-start;gap:3px;opacity:0;will-change:transform;contain:layout style;transition:none}
.demo-cursor.show{opacity:1}.demo-cursor span{font:11px/1.4 system-ui;color:white;background:#6957b2;border-radius:6px;padding:5px 8px;margin-top:22px;white-space:nowrap;box-shadow:0 2px 12px #17112a22}
.demo-focus{outline:2px solid #b5a6ef!important;outline-offset:5px;transition:outline-color .3s}
.demo-notice{position:fixed;top:16px;left:50%;transform:translate(-50%,-20px);opacity:0;z-index:10000;pointer-events:none;background:#252332ed;color:#fff;font:12px/1.65 system-ui;padding:12px 20px;border-radius:12px;max-width:80%;transition:.2s}
.demo-notice.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1000px){.app .mewu-composer{width:min(520px,calc(100vw - 32px))!important}.space-actions{bottom:18px!important;left:12px!important}}
@media(prefers-reduced-motion:reduce){.demo-cursor{transition:none}}
/* 录制背景与视口同为1280×720，选区暗层由原组件负责；不得隐藏mask掩盖留边。 */
html:is([data-demo-case^="hero-"],[data-demo-case^="feature-"],[data-demo-case^="scene-"]) .capture-saved-drawings{z-index:6}
html[data-demo-case="feature-annotation"] .app .mewu-composer{width:420px!important;left:auto!important;right:20px!important;transform:none!important;top:100px!important;bottom:auto!important}
