/* Full-page conversation uses the existing drawer, with no floating geometry. */
body.flux-page :is(.ex-fab,.cabin-assistant,#ai-open,.sel-chip) { display:none!important; }
#view.flux-chat-view { max-width:none; width:100%; min-width:0; padding:12px; height:calc(100dvh - 116px); min-height:360px; }
/* 宽屏：.main 锁一屏高，对话页按剩余空间铺满，不再按写死的 116px 估顶栏，页面不出现可下拉的空白 */
@media(min-width:701px) {
  body.flux-page .main { height:100dvh; min-height:0; }
  body.flux-page #view.flux-chat-view { flex:1 1 0; height:auto; min-height:0; box-sizing:border-box; overflow:hidden; }
  /* 智能舱（alice）给正文底部预留 96px 让悬浮助手；对话页已隐藏该助手，收回预留 */
  :root[data-skin][data-theme][data-palette] body.flux-page #view.flux-chat-view.view,
  :root[data-skin] body.flux-page #view.flux-chat-view.view { padding-bottom:12px; }
}
:root[data-skin] body #ai-drawer[data-chat-page] {
  position:relative!important; inset:auto!important; width:100%!important; max-width:none!important;
  height:100%!important; max-height:none!important; margin:0!important; transform:none!important;
  opacity:1!important; visibility:visible!important; pointer-events:auto; z-index:auto!important;
  display:grid!important; grid-template-columns:260px minmax(0,1fr);
  grid-template-rows:auto minmax(0,1fr) auto; border:1px solid var(--line);
  border-radius:var(--r)!important; background:var(--panel); box-shadow:none!important;
  animation:none!important; transition:none!important;
}
#ai-drawer[data-chat-page] .ai-head { grid-column:1 / -1; cursor:default!important; }
#ai-drawer[data-chat-page] :is(.ai-resize,.flux-edge-right,.flux-edge-corner,#ai-close,#ai-dock,.ai-ctx .check,#ai-page) { display:none!important; }
#ai-drawer[data-chat-page] #ai-threads { grid-column:1; grid-row:2 / 4; max-height:none; min-height:0; border-right:1px solid var(--line); border-bottom:0; }
#ai-drawer[data-chat-page] #ai-threads[hidden] { display:none; }
#ai-drawer[data-chat-page] #ai-body { grid-column:2; grid-row:2; min-height:0; min-width:0; overflow:auto; padding:24px; }
#ai-drawer[data-chat-page] .ai-foot { grid-column:2; grid-row:3; min-width:0; }
#ai-drawer[data-chat-page] .ai-msg { max-width:1100px; }
#ai-drawer[data-chat-page] .ai-head .s { max-width:none; }
#ai-drawer[data-chat-page] .ai-threads .th { flex-wrap:wrap; }
#ai-drawer[data-chat-page] .ai-threads .th > span:first-of-type { min-width:60px; }
@media(max-width:700px) {
  #view.flux-chat-view { padding:4px; height:calc(100dvh - 116px); }
  :root[data-skin] body #ai-drawer[data-chat-page] { grid-template-columns:minmax(0,1fr); }
  #ai-drawer[data-chat-page] #ai-threads { grid-column:1; grid-row:2; z-index:2; background:var(--panel); border-right:0; }
  #ai-drawer[data-chat-page] #ai-body { grid-column:1; padding:12px; }
  #ai-drawer[data-chat-page] .ai-foot { grid-column:1; }
  #ai-drawer[data-chat-page] .ai-head .s { display:none; }
}
#ai-drawer[data-chat-page] .ai-threads .th { display:grid; grid-template-columns:16px minmax(0,1fr) auto; gap:4px 8px; }
#ai-drawer[data-chat-page] .ai-threads .th > .dim { grid-column:2; grid-row:2; }
#ai-drawer[data-chat-page] .ai-threads [data-del] { grid-column:3; grid-row:1 / 3; border:0; background:transparent; cursor:pointer; padding:6px; }
