/* Window controls v2. Scoped to the interactive OS; recruiter styling is untouched. */
.app-window { min-width:0; min-height:0; }
.app-window.is-maximized {
  left:var(--wm-left)!important; top:var(--wm-top)!important;
  width:var(--wm-width)!important; height:var(--wm-height)!important;
  border-radius:12px;
}
.window-titlebar { min-height:46px; height:46px; padding-right:8px; }
.window-title { overflow:hidden; white-space:nowrap; }
.window-controls { flex-shrink:0; gap:4px; margin-left:12px; }
.window-controls button { width:34px; height:32px; border:1px solid transparent; color:var(--muted); }
.window-controls .icon { width:16px; height:16px; }
.window-controls button:hover { border-color:var(--line); }
.window-controls [data-window-action=maximize]:hover,
.window-controls [data-window-action=maximize][aria-pressed=true] { color:var(--accent); background:var(--accent-soft); }
.window-controls button:focus-visible { outline-offset:1px; }
.window-body { min-width:0; overflow-x:hidden; overflow-y:auto; }
.window-footer { padding-right:36px; }
.is-maximized .window-footer { padding-right:13px; }
.app-window.is-maximized:not([data-app=home]) .window-body { padding-inline:max(24px,calc((100% - 1120px)/2)); }
.app-window.is-maximized .home-content { width:100%; max-width:1120px; margin-inline:auto; }
.wm-resize-edge { position:absolute; z-index:20; touch-action:none; user-select:none; }
.wm-resize-edge[data-resize=n] { top:0; left:18px; right:18px; height:7px; cursor:n-resize; }
.wm-resize-edge[data-resize=s] { bottom:0; left:18px; right:26px; height:7px; cursor:s-resize; }
.wm-resize-edge[data-resize=e] { right:0; top:18px; bottom:26px; width:7px; cursor:e-resize; }
.wm-resize-edge[data-resize=w] { left:0; top:18px; bottom:18px; width:7px; cursor:w-resize; }
.wm-resize-edge[data-resize=ne] { right:0; top:0; width:18px; height:18px; cursor:ne-resize; }
.wm-resize-edge[data-resize=nw] { left:0; top:0; width:18px; height:18px; cursor:nw-resize; }
.wm-resize-edge[data-resize=sw] { left:0; bottom:0; width:18px; height:18px; cursor:sw-resize; }
.resize-grip { z-index:21; width:26px; height:26px; opacity:.7; border-radius:0 0 12px 0; }
.resize-grip:hover,.resize-grip:focus-visible { opacity:1; background-color:var(--accent-soft); }
.resize-grip:focus-visible { outline-offset:-4px; }
.wm-size-readout { display:none; position:absolute; z-index:25; bottom:35px; right:14px; padding:6px 10px; border:1px solid var(--accent); border-radius:6px; background:var(--panel); color:var(--accent); font:11px var(--mono); pointer-events:none; box-shadow:0 4px 12px #0003; }
.is-resizing .wm-size-readout { display:block; }
.app-window.is-resizing,.app-window.is-dragging { animation:none; transition:none; user-select:none; }
.wm-interacting,.wm-interacting * { cursor:var(--wm-cursor)!important; user-select:none!important; }
.wm-interacting .app-window { transition:none!important; }
@media(max-width:700px) {
  .app-window,.app-window.is-maximized { left:var(--wm-left)!important; top:var(--wm-top)!important; width:var(--wm-width)!important; height:var(--wm-height)!important; }
  .wm-resize-edge,.resize-grip,.wm-size-readout { display:none!important; }
  .window-controls button { width:38px; height:36px; }
  .window-titlebar { min-height:48px; height:48px; }
  .window-footer { padding-right:13px; }
}
