/* Independent context layout; mobile selectors remain untouched. */
.pc-workspace-host, .pc-workspace-host body { height:100%; overflow:hidden; }
.pc-workspace-host #view-main.active { height:100%; height:100vh; height:100dvh; display:flex; flex-direction:column; padding-bottom:0; }
.pc-workspace-host #view-main > .topbar { flex:none; }
.pc-workspace-host #view-main > #content { flex:1; min-height:0; padding:0; overflow:auto; -webkit-overflow-scrolling:touch; }
.pc-workspace-host #view-main > .topbar #topbar-search { display:none; }
#pc-workspace { height:100%; display:flex; flex-direction:column; min-height:0; }
#pc-workspace-tabs { display:flex; flex-wrap:wrap; gap:6px; padding:8px 0; flex:none; }
.pc-workspace-tab { display:inline-flex; border:1px solid #ddd; border-radius:8px; background:#fafafa; overflow:hidden; }
.pc-workspace-tab.on { border-color:#69b1ff; background:#e6f4ff; }
.pc-workspace-tab button { background:transparent; border:0; padding:6px 9px; cursor:pointer; color:inherit; white-space:nowrap; }
.pc-workspace-tab.on button { color:#0958d9; }
#pc-workspace-slot { flex:1; min-height:0; position:relative; overflow:auto; }
.pc-workspace-frame { border:0; width:100%; height:100%; display:block; background:#fff; }
.pc-workspace-frame[hidden], .pc-workspace-host #tabbar [hidden] { display:none!important; }
.pc-workspace-child body { max-width:none!important; margin:0; padding:0; }
.pc-workspace-child #view-main { max-width:none!important; margin:0!important; padding:0!important; }
.pc-workspace-child #tabbar { display:none!important; }
.pc-workspace-child .content { padding:8px 12px 40px; }
.pc-workspace-child .topbar { min-height:56px; padding:8px 12px; }
.pc-workspace-child .topbar-search { position:static; transform:none; width:100%; max-width:720px; margin:0 auto; }
.pc-workspace-child .topbar:has(.topbar-search:empty) { display:none; }


/* Chrome<105 无 :has()：子页顶栏无搜索框时不再自动隐藏，这里给出兜底（顶栏保留但不占搜索位）2026-11-06 */
@supports not selector(:has(*)) {
  .pc-workspace-child .topbar { min-height: 0; }
  .pc-workspace-child .topbar-search { display: none; }
}
