/* WP shell/content only; header rules generated from the canonical homepage CSS. */
.xp-desktop{--taskbar-height:48px;
  --commandbar-height:46px;
  --desktop-bottom:calc(var(--taskbar-height) + var(--commandbar-height));}
.xp-workspace{inset:0 0 var(--desktop-bottom)}
.xp-taskbar{left:0;right:0;bottom:0;height:var(--taskbar-height);
  display:flex;grid-template:none;align-items:stretch;gap:5px;padding:0 6px 0 0;}
.xp-start{flex:0 0 auto;height:100%;align-self:auto}
.xp-taskbar-command{flex:0 0 42px;display:grid;place-items:center;align-self:center;
  width:42px;height:36px;min-height:36px!important;padding:0;
  border-radius:3px;overflow:hidden;text-indent:-9999px;}
.xp-taskbar-command .xp-icon{width:24px;height:24px;text-indent:0}
.xp-tasks{flex:1 1 auto;height:100%;min-width:120px}
.xp-task{flex:1 0 128px;max-width:210px;height:36px;align-self:center}
.xp-clock{flex:0 0 auto;height:100%;align-self:stretch}
.xp-commandbar{position:absolute;z-index:99999;left:0;right:0;bottom:var(--taskbar-height);
  height:var(--commandbar-height);display:flex;align-items:center;gap:7px;
  padding:4px 8px;}
.xp-composer{display:grid;grid-template-columns:minmax(120px,.55fr) minmax(105px,.45fr) minmax(220px,1.5fr) auto;gap:5px;flex:1;min-width:0}
.xp-composer select,.xp-composer input,.xp-composer button{height:36px;min-height:36px!important}
.xp-global-status{flex:0 1 220px;max-width:220px;max-height:38px;overflow:auto;padding:3px 6px;font-size:11px;line-height:1.25}
.xp-start-menu{bottom:var(--taskbar-height)}
.xp-window{min-width:320px;min-height:180px}
.xp-resize-handle{position:absolute;z-index:12;display:block;touch-action:none;user-select:none}
.xp-resize-n,.xp-resize-s{left:10px;right:10px;height:8px;cursor:ns-resize}
.xp-resize-n{top:0}
.xp-resize-s{bottom:0}
.xp-resize-e,.xp-resize-w{top:10px;bottom:10px;width:8px;cursor:ew-resize}
.xp-resize-e{right:0}
.xp-resize-w{left:0}
.xp-resize-ne,.xp-resize-nw,.xp-resize-se,.xp-resize-sw{width:14px;height:14px}
.xp-resize-ne{right:0;top:0;cursor:nesw-resize}
.xp-resize-nw{left:0;top:0;cursor:nwse-resize}
.xp-resize-se{right:0;bottom:0;cursor:nwse-resize}
.xp-resize-sw{left:0;bottom:0;cursor:nesw-resize}
.xp-maximized>.xp-resize-handle,.xp-docked>.xp-resize-handle{display:none}
.xp-snap-preview{position:absolute;top:0;bottom:0;width:50%;z-index:99998;pointer-events:none}
.xp-snap-preview[data-side="left"]{left:0}
.xp-snap-preview[data-side="right"]{right:0}
.xp-snap-preview[hidden]{display:none}
.xp-resizing .xp-window-body,.xp-dragging .xp-window-body{pointer-events:none}
.xp-shortcut[data-window-state="active"]{font-weight:bold}
.xp-shortcut-state{min-height:14px;font-size:10px;line-height:1}
.xp-desktop[data-taskbar-position="top"] .xp-taskbar{top:0;bottom:auto}
.xp-desktop[data-taskbar-position="top"] .xp-commandbar{top:var(--taskbar-height);bottom:auto}
.xp-desktop[data-taskbar-position="top"] .xp-workspace{inset:var(--desktop-bottom) 0 0}
.xp-desktop[data-taskbar-position="top"] .xp-start-menu{top:var(--taskbar-height);bottom:auto}
@media(max-width:1050px){
.xp-desktop{--taskbar-height:50px;--commandbar-height:86px}
.xp-taskbar{display:flex;grid-template:none;height:var(--taskbar-height)}
.xp-start{height:100%}
.xp-commandbar{height:var(--commandbar-height);align-items:stretch}
.xp-composer{grid-template-columns:minmax(110px,.7fr) minmax(96px,.55fr) minmax(120px,1.4fr) auto;grid-template-rows:36px}
.xp-global-status{max-width:165px}
}
@media(max-width:700px){
.xp-desktop{--taskbar-height:52px;--commandbar-height:132px}
.xp-workspace{inset:0 0 var(--desktop-bottom)}
.xp-window{min-width:0;min-height:0}
.xp-taskbar{display:flex;grid-template:none;height:var(--taskbar-height)}
.xp-start{flex:0 0 72px;height:100%;font-size:17px}
.xp-taskbar-command{display:none}
.xp-tasks{height:100%}
.xp-clock{height:100%}
.xp-commandbar{height:var(--commandbar-height);display:block;padding:5px}
.xp-composer{height:88px;display:grid;grid-template-columns:1fr 1fr auto;grid-template-rows:40px 40px;gap:4px}
.xp-composer select,.xp-composer input,.xp-composer button{height:40px;min-height:40px!important}
.xp-composer input{grid-column:1/3}
.xp-composer-send{grid-column:3;grid-row:1/3}
.xp-global-status{display:block;max-width:none;max-height:34px;margin-top:3px;padding:2px 6px}
.xp-start-menu{bottom:var(--taskbar-height);max-height:calc(100% - var(--taskbar-height))}
.xp-resize-handle,.xp-snap-preview{display:none!important}
}

/* Adaptive host chrome: skin colors remain in the selected skin. App roots own
   their responsive content; these rules never cross an iframe boundary. */
.xp-mobile-home,.xp-mobile-apps,.xp-app-switcher{display:none}
#xp-lab-root[data-xp-shell-mode="app"]{
  --taskbar-height:calc(56px + env(safe-area-inset-bottom,0px));
  --commandbar-height:0px;
  height:var(--xp-shell-visible-height,100dvh);bottom:auto;
  padding-top:env(safe-area-inset-top,0px);
}
#xp-lab-root[data-xp-shell-mode="app"]>.xp-workspace-scroll{
  inset:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) var(--taskbar-height) env(safe-area-inset-left,0px)!important;
  overflow:hidden!important;
}
#xp-lab-root[data-xp-shell-mode="app"] .xp-window{
  min-width:0!important;min-height:0!important;max-width:none!important;
  left:0!important;top:0!important;width:100%!important;height:100%!important;
  box-sizing:border-box;border-radius:0!important;
}
#xp-lab-root[data-xp-shell-mode="app"] .xp-window[data-xp-split-side]{width:50%!important}
#xp-lab-root[data-xp-shell-mode="app"] .xp-window[data-xp-split-side="right"]{left:50%!important}
#xp-lab-root[data-xp-shell-mode="app"] .xp-window[hidden],
#xp-lab-root .xp-app-switcher[hidden]{display:none!important}
#xp-lab-root[data-xp-shell-mode="app"] :is(.xp-resize-handle,.xp-snap-preview,.xp-minimize,.xp-maximize,.xp-dock){display:none!important}
#xp-lab-root[data-xp-shell-mode="app"] .xp-titlebar{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"title controls" "navigation navigation";
  height:auto!important;min-height:94px;gap:2px;padding:2px 4px!important;
}
#xp-lab-root[data-xp-shell-mode="app"] .xp-window-title{grid-area:title;min-height:44px;height:44px!important;cursor:default!important;font-size:15px!important}
#xp-lab-root[data-xp-shell-mode="app"] .xp-window-controls{grid-area:controls;align-self:center!important}
#xp-lab-root[data-xp-shell-mode="app"] .xp-title-navigation{grid-area:navigation;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior:contain;padding-bottom:2px}
#xp-lab-root[data-xp-shell-mode="app"] :is(.xp-title-navigation-button,.xp-window-controls button){width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;flex:none}
#xp-lab-root[data-xp-shell-mode="app"] .xp-window-microphone{font-size:0!important;overflow:hidden}
#xp-lab-root[data-xp-shell-mode="app"] .xp-window-microphone .xp-icon{width:25px;height:25px}
#xp-lab-root[data-xp-shell-mode="app"] .xp-app-actions{display:flex;gap:2px}
#xp-lab-root[data-xp-shell-mode="app"] .xp-menubar{overflow-x:auto;min-height:44px;white-space:nowrap;flex-shrink:0}
#xp-lab-root[data-xp-shell-mode="app"] .xp-menu-command{min-height:44px!important;padding-inline:12px;flex:none}
#xp-lab-root[data-xp-shell-mode="app"] .xp-address{min-width:90px}
#xp-lab-root[data-xp-shell-mode="app"]>.xp-taskbar{
  top:auto!important;bottom:0!important;min-height:var(--taskbar-height)!important;height:var(--taskbar-height)!important;
  padding:4px max(5px,env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom,0px)) max(5px,env(safe-area-inset-left,0px));
  display:flex!important;gap:5px;justify-content:space-evenly;box-sizing:border-box;
}
#xp-lab-root[data-xp-shell-mode="app"]>.xp-taskbar :is(.xp-tasks,.xp-taskbar-command,.xp-assistant-composer,.xp-session-indicator,.xp-clock,.ci-pinned-links,.xp-audio-tray){display:none!important}
#xp-lab-root[data-xp-shell-mode="app"]>.xp-taskbar :is(.xp-start,.xp-mobile-home,.xp-mobile-apps,.xp-assistant-toggle){
  display:flex;align-items:center;justify-content:center;flex:1 1 0;min-width:44px!important;min-height:44px!important;height:44px!important;
  padding:4px 7px!important;font-family:inherit;font-size:14px;font-weight:600;line-height:1.1;border:1px solid currentColor;border-radius:5px;background:transparent;color:inherit;
}
#xp-lab-root[data-xp-shell-mode="app"]>.xp-taskbar .xp-start{font-size:14px!important;max-width:100px}
#xp-lab-root[data-xp-shell-mode="app"]>.xp-taskbar .xp-assistant-toggle{font-size:0!important;overflow:hidden}
#xp-lab-root[data-xp-shell-mode="app"]>.xp-taskbar .xp-assistant-toggle .xp-icon{width:25px;height:25px}
#xp-lab-root[data-xp-shell-mode="app"]>.xp-taskbar .xp-start>.xp-icon{width:27px!important;height:24px!important;flex-basis:27px!important}
#xp-lab-root[data-xp-shell-mode="app"]>.xp-taskbar [hidden]{display:none!important}
#xp-lab-root[data-xp-shell-mode="app"] .xp-start-menu{
  left:env(safe-area-inset-left,0px)!important;right:env(safe-area-inset-right,0px)!important;
  top:env(safe-area-inset-top,0px)!important;bottom:var(--taskbar-height)!important;
  width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;border-radius:0!important;
}
#xp-lab-root[data-xp-shell-mode="app"] .xp-shortcuts{
  inset:0!important;width:auto!important;height:100%;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));
  align-content:start;gap:14px;padding:22px 16px;box-sizing:border-box;
}
#xp-lab-root[data-xp-shell-mode="app"] .xp-shortcut{min-height:90px;min-width:0;font-size:14px}
#xp-lab-root[data-xp-shell-mode="app"]:not([data-xp-shell-view="home"]) .xp-shortcuts{visibility:hidden}
#xp-lab-root[data-xp-shell-mode="app"] .xp-app-switcher{
  display:block;position:absolute;z-index:100005;inset:env(safe-area-inset-top,0px) 0 var(--taskbar-height);
  overflow:auto;overscroll-behavior:contain;padding:20px;box-sizing:border-box;
  background:var(--xp-panel,#edf5ff);color:var(--xp-ink,#142c4e);
}
#xp-lab-root .xp-app-switcher h2{font-size:24px;margin:0 0 12px}
#xp-lab-root .xp-app-switcher button{min-height:48px;padding:10px 14px;border:1px solid currentColor;border-radius:6px;font:inherit;color:inherit;background:transparent;overflow-wrap:anywhere}
#xp-lab-root .xp-switcher-row{display:flex;gap:10px;margin-block:12px}
#xp-lab-root .xp-switcher-app{flex:1;min-width:0;text-align:left}
#xp-lab-root .xp-switcher-app[aria-current="true"]{outline:3px solid var(--xp-accent,#1762a7);outline-offset:-3px}
#xp-lab-root .xp-switcher-single{margin-left:12px}
#xp-lab-root[data-xp-shell-mode="app"] .xp-commandbar{max-height:calc(var(--xp-shell-visible-height,100dvh) - var(--taskbar-height));overflow:auto}

/* The host menu folds without replacing commands, address forms or app state. */
.xp-menubar-panel{display:contents}
#xp-lab-root .xp-menubar :is(.xp-menubar-toggle,.xp-menubar-panel)[hidden]{display:none!important}
#xp-lab-root .xp-menubar[data-xp-menu-fold="true"]{display:flex;flex-direction:column;align-items:stretch;overflow:visible;white-space:normal;min-height:44px}
#xp-lab-root .xp-menubar[data-xp-menu-fold="true"]>.xp-menubar-toggle{display:block;align-self:flex-start;min-width:64px;min-height:44px!important;padding:8px 14px;text-align:left;font-size:16px}
#xp-lab-root .xp-menubar[data-xp-menu-fold="true"]>.xp-menubar-panel{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;max-height:min(50dvh,360px);overflow:auto;padding:6px 2px 8px;box-sizing:border-box}
#xp-lab-root .xp-menubar[data-xp-menu-fold="true"] .xp-menubar-panel :is(.xp-menu-command,.xp-address,.xp-address-go,.xp-address-input,.xp-window-view-mode,.xp-mcp-connection>summary){min-height:44px!important;height:auto!important;font-size:16px!important;box-sizing:border-box}
#xp-lab-root .xp-menubar[data-xp-menu-fold="true"] .xp-menubar-panel>.xp-icon{display:none}
#xp-lab-root .xp-menubar[data-xp-menu-fold="true"] .xp-address{flex:1 1 100%;width:100%;min-width:0;max-width:100%;padding:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#xp-lab-root .xp-menubar[data-xp-menu-fold="true"] .xp-address-form{flex:1 1 100%!important;width:100%}
#xp-lab-root .xp-menubar[data-xp-menu-fold="true"] .xp-window-view-mode{flex:1 1 180px!important;max-width:100%!important}
#xp-lab-root .xp-menubar[data-xp-menu-fold="true"] .xp-mcp-connection{margin-left:0!important}

/* Shared host content reservation. Docked frames stay mounted in the workspace. */
#xp-lab-root .xp-window-layout{display:grid;grid-template-columns:minmax(0,1fr);flex:1 1 auto;min-width:0;min-height:0;overflow:hidden}
#xp-lab-root .xp-window-layout>.xp-window-body{min-width:0;min-height:0;width:auto;height:auto}
#xp-lab-root .xp-window-dock-space[hidden]{display:none!important}
#xp-lab-root .xp-window-layout.xp-has-dock{grid-template-columns:minmax(0,1fr) minmax(260px,40%)}
#xp-lab-root .xp-window-layout.xp-has-dock.xp-dock-stacked{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(180px,45%)}
#xp-lab-root .xp-window.xp-docked{position:absolute!important;right:auto!important;bottom:auto!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important}
