/* 主页面内的AI生成与播放器；旧二维编辑器仍使用原布局。 */
.page-physics-whiteboard.pw-ai-page.pw-ai-active .pw-board { display:none; }
.page-physics-whiteboard.pw-ai-page #pw-studio-preview { min-width:0; min-height:0; overflow:hidden; }
.page-physics-whiteboard.pw-ai-page .pw-lab.pw-lab-inline { display:flex; flex-direction:column; position:relative; width:100%; height:100%; max-height:none; margin:0; border:0; border-radius:0; }
.page-physics-whiteboard.pw-ai-page .pw-lab-inline .pw-lab-layout { display:flex; flex-direction:row; }
.page-physics-whiteboard.pw-ai-page .pw-lab-inline .pw-lab-main { flex:1; min-width:0; height:auto; order:0; }
.page-physics-whiteboard.pw-ai-page .pw-lab-inline .pw-lab-compose { display:none; order:1; width:280px; flex:none; border:0; border-left:1px solid var(--wb-border); }
.page-physics-whiteboard.pw-ai-page .pw-lab-inline.has-parameters .pw-lab-compose { display:block; }
.page-physics-whiteboard.pw-ai-page .pw-lab-inline :is(.pw-lab-presets,.pw-lab-assistant,.pw-command-panel) { display:none; }
.page-physics-whiteboard.pw-ai-page .pw-lab-inline>.pw-lab-actions { padding:10px 14px; border-bottom:1px solid var(--wb-border); gap:6px; }
.page-physics-whiteboard.pw-ai-page .pw-lab-inline>.pw-lab-actions [data-lab=boards],.page-physics-whiteboard.pw-ai-page .pw-lab-inline>.pw-lab-actions [data-lab=save] { display:none; }
.page-physics-whiteboard.pw-ai-page .pw-lab-inline .pw-lab-header>div { flex:1; min-width:0; }
.page-physics-whiteboard.pw-ai-page .pw-lab-inline h2 { overflow-wrap:anywhere; }
.page-physics-whiteboard.pw-ai-page .pw-lab-inline #pw-lab-validation { max-height:180px; overflow:auto; }
.page-physics-whiteboard.pw-ai-page .pw-lab-inline #pw-lab-saved { margin:4px 0 0; font-size:11px; }
.page-physics-whiteboard.pw-ai-page .pw-studio-composer { border-top:0; }
.page-physics-whiteboard.pw-ai-page .pw-studio-composer>label { display:block; margin-bottom:8px; font-size:12px; }
.page-physics-whiteboard.pw-ai-page .pw-studio-action { display:flex!important; align-items:center; gap:10px; }
.page-physics-whiteboard.pw-ai-page .pw-studio select { background:var(--wb-input); border:1px solid var(--wb-border); color:var(--wb-text); border-radius:6px; padding:8px; min-width:0; max-width:100%; font:inherit; font-size:12px; }
.page-physics-whiteboard.pw-ai-page #pw-studio-examples { width:100%; margin-top:10px; grid-column:1/-1; }
.page-physics-whiteboard.pw-ai-page .pw-studio-send { flex-wrap:wrap; }
.page-physics-whiteboard.pw-ai-page .pw-studio-send label { font-size:12px; margin-right:auto; }
.page-physics-whiteboard.pw-ai-page .pw-studio input[type=checkbox] { accent-color:#8b5cf6; vertical-align:middle; }
.page-physics-whiteboard.pw-ai-page #pw-studio-photo-tools { display:flex; gap:8px; margin:10px 0; }
.page-physics-whiteboard.pw-ai-page #pw-studio-photo { padding:10px; background:var(--wb-input); border:1px solid var(--wb-border); border-radius:8px; margin:10px 0; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.page-physics-whiteboard.pw-ai-page #pw-studio-image { width:100%; height:140px; object-fit:contain; background:#fff; border-radius:5px; }
.page-physics-whiteboard.pw-ai-page #pw-studio-photo-name { flex:1; min-width:0; overflow-wrap:anywhere; font-size:11px; }
.page-physics-whiteboard.pw-ai-page :is(#pw-studio-input-note,.pw-studio-privacy) { display:block; color:var(--wb-muted); font-size:11px; line-height:1.7; }
.page-physics-whiteboard.pw-ai-page .pw-studio-privacy { margin-top:12px; }
.page-physics-whiteboard.pw-ai-page #pw-studio-message { color:#c7d2fe; }
.page-physics-whiteboard.pw-ai-page #pw-studio-message.is-error { color:#fca5a5; }
.page-physics-whiteboard.pw-ai-page .pw-studio-body { padding-top:8px; }
.page-physics-whiteboard.pw-ai-page .pw-studio-examples>div>span { font-size:11px; color:var(--wb-muted); }
.page-physics-whiteboard.pw-ai-page #pw-studio-report { margin-top:16px; font-size:12px; line-height:1.8; color:var(--wb-muted); }
.page-physics-whiteboard.pw-ai-page #pw-studio-report summary { color:var(--wb-text); cursor:pointer; }
.page-physics-whiteboard.pw-ai-page #pw-studio-report ul { padding-left:18px; overflow-wrap:anywhere; }
.page-physics-whiteboard.pw-ai-page.pw-ai-active .pw-document { visibility:hidden; }
.page-physics-whiteboard.pw-ai-page.pw-ai-active [data-command=snapshot],.page-physics-whiteboard.pw-ai-page.pw-ai-active [data-command=restore],.page-physics-whiteboard.pw-ai-page.pw-ai-active [data-command=restore-draft] { display:none; }
.page-physics-whiteboard.pw-ai-page #pw-lab-empty { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; text-align:center; padding:30px; color:#64748b; pointer-events:none; background:#f8fafce8; }
.page-physics-whiteboard.pw-ai-page #pw-lab-empty i { font-size:36px; color:#818cf8; margin-bottom:6px; }
.page-physics-whiteboard.pw-ai-page #pw-lab-empty strong { font-size:20px; color:#334155; }
.page-physics-whiteboard.pw-ai-page #pw-lab-empty p { font-size:13px; line-height:1.8; }
.page-physics-whiteboard.pw-ai-page.pw-ai-active.is-presenting #pw-studio-preview { flex:1; width:100%; height:100%; }
@media(max-width:1100px){
 .page-physics-whiteboard.pw-ai-page .pw-lab-inline.has-parameters .pw-lab-layout { flex-direction:column; overflow:auto; }
 .page-physics-whiteboard.pw-ai-page .pw-lab-inline.has-parameters .pw-lab-main { flex:none; height:530px; }
 .page-physics-whiteboard.pw-ai-page .pw-lab-inline.has-parameters .pw-lab-compose { width:auto; border-left:0; overflow:visible; }
}
@media(max-width:850px){
 .page-physics-whiteboard.pw-ai-page #pw-studio-preview { flex:none; width:100%; height:700px; }
 .page-physics-whiteboard.pw-ai-page .pw-lab-inline .pw-lab-main { flex:1; }
 .page-physics-whiteboard.pw-ai-page .pw-lab-inline .pw-lab-header { flex-wrap:wrap; gap:8px; }
 .page-physics-whiteboard.pw-ai-page .pw-lab-inline .pw-lab-header>div { flex-basis:100%; }
 .page-physics-whiteboard.pw-ai-page .pw-lab-inline .pw-lab-layout { overflow:hidden; }
 .page-physics-whiteboard.pw-ai-page .pw-lab-inline.has-parameters .pw-lab-layout { overflow:auto; }
 .page-physics-whiteboard.pw-ai-page .pw-studio select { font-size:16px; }
 .page-physics-whiteboard.pw-ai-page.pw-ai-active.is-presenting .pw-lab-inline .pw-lab-stage { min-height:130px; }
}
