/* ZuzuOS Windows desktop pass. Compact, edge-aligned and task-focused. */
#desktop[data-shell-style="windows"] {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 76% 42%, #174d86 0, #0a2c54 19%, transparent 45%),
    radial-gradient(ellipse at 74% 44%, #0874a8 0, transparent 29%),
    linear-gradient(135deg, #071522 0%, #0a1d36 48%, #07101e 100%) !important;
  color: #f3f6fb;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}
#desktop[data-shell-style="windows"] .topbar,
#desktop[data-shell-style="windows"] .desktop-content { display: none !important; }
#desktop[data-shell-style="windows"] .os-desktop-shortcuts {
  top: 16px; left: 14px; gap: 5px; max-width: 82px;
}
#desktop[data-shell-style="windows"] .os-shortcut {
  width: 76px; min-height: 76px; padding: 7px 4px;
  border: 1px solid transparent; border-radius: 3px;
  text-shadow: 0 1px 2px #000a; gap: 5px;
}
#desktop[data-shell-style="windows"] .os-shortcut:hover,
#desktop[data-shell-style="windows"] .os-shortcut:focus-visible {
  background: #8bbffb20; border-color: #9dc8ff32; outline: 1px solid #a9ceff45;
}
#desktop[data-shell-style="windows"] .os-shortcut > span {
  width: 38px; height: 38px; border: 0; border-radius: 3px;
  background: transparent; box-shadow: none; backdrop-filter: none; font-size: 25px;
}
#desktop[data-shell-style="windows"] .os-shortcut small {
  font-size: 11px; line-height: 1.2; color: #f6f8fc;
}
#desktop[data-shell-style="windows"] .taskbar {
  position: fixed !important; z-index: 50 !important;
  inset: auto 0 0 !important; width: 100% !important; height: 48px !important;
  min-height: 48px !important; max-height: 48px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  gap: 5px !important; padding: 0 150px !important; margin: 0 !important;
  border: 0 !important; border-top: 1px solid #ffffff20 !important;
  border-radius: 0 !important; background: #171b22ed !important;
  box-shadow: 0 -4px 22px #0002 !important; backdrop-filter: blur(24px) saturate(125%) !important;
}
#desktop[data-shell-style="windows"] .taskbar-spacer,
#desktop[data-shell-style="windows"] .taskbar-separator,
#desktop[data-shell-style="windows"] #home-button,
#desktop[data-shell-style="windows"] #task-clock,
#desktop[data-shell-style="windows"] #task-account { display: none !important; }
#desktop[data-shell-style="windows"] #os-start-button {
  display: grid !important; place-items: center !important;
  flex: 0 0 40px !important; width: 40px !important; height: 40px !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important;
  border-radius: 5px !important; background: transparent !important;
  box-shadow: none !important; color: #f5f7fb !important;
}
#desktop[data-shell-style="windows"] #os-start-button:hover,
#desktop[data-shell-style="windows"] #os-task-view:hover,
#desktop[data-shell-style="windows"] .task-app:hover { background: #ffffff16 !important; }
#desktop[data-shell-style="windows"] .os-start-label { display: none !important; }
#desktop[data-shell-style="windows"] .os-start-mark {
  width: 22px; height: 22px; border-radius: 0; background: transparent; gap: 2px;
}
#desktop[data-shell-style="windows"] .os-windows-logo {
  display: grid; grid-template-columns: repeat(2, 9px); grid-template-rows: repeat(2, 9px); gap: 2px;
}
#desktop[data-shell-style="windows"] .os-windows-logo i { display: block; background: #72b8ff; }
#desktop[data-shell-style="windows"] #os-task-view,
#desktop[data-shell-style="windows"] .task-app {
  position: relative; display: grid !important; place-items: center;
  flex: 0 0 40px !important; width: 40px !important; height: 40px !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important;
  border-radius: 5px !important; background: transparent !important;
  color: #f3f6fb !important; font-size: 20px !important;
}
#desktop[data-shell-style="windows"] .task-app span { display: none !important; }
#desktop[data-shell-style="windows"] .task-app::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 3px; border-radius: 2px; background: transparent;
}
#desktop[data-shell-style="windows"] .task-app:focus-visible::after,
#desktop[data-shell-style="windows"] .task-app:hover::after { background: #8dc6ff; }
#desktop[data-shell-style="windows"] .os-extra-dock-app { font-size: 21px !important; }
#desktop[data-shell-style="windows"] #os-system-tray {
  position: fixed !important; z-index: 56 !important;
  right: 8px !important; bottom: 4px !important; left: auto !important; top: auto !important;
  display: flex !important; align-items: center !important; gap: 2px !important;
  height: 40px !important; padding: 0 5px !important;
  border: 0 !important; border-radius: 5px !important;
  background: transparent !important; box-shadow: none !important; backdrop-filter: none !important;
}
#desktop[data-shell-style="windows"] #os-system-tray > button {
  min-width: 34px; height: 34px; border: 0; border-radius: 4px;
  background: transparent; color: #eef3fa; font-size: 14px;
}
#desktop[data-shell-style="windows"] #os-system-tray > button:hover { background: #ffffff16; }
#desktop[data-shell-style="windows"] #os-system-tray #os-tray-clock {
  display: grid; align-content: center; justify-items: end; gap: 2px;
  min-width: 68px; padding: 0 5px; font-size: 11px; line-height: 1.1;
}
#desktop[data-shell-style="windows"] #os-tray-date { font-size: 10px; color: #d4dce8; }
#desktop[data-shell-style="windows"] .os-start-menu {
  bottom: 57px !important; width: min(610px, calc(100vw - 24px)) !important;
  padding: 22px !important; border: 1px solid #ffffff24 !important;
  border-radius: 8px !important; background: #20242bed !important;
  backdrop-filter: blur(30px) saturate(130%) !important; box-shadow: 0 20px 60px #0008 !important;
}
#desktop[data-shell-style="windows"] .os-start-head { margin-bottom: 15px; }
#desktop[data-shell-style="windows"] .os-start-head .os-start-mark { display: none; }
#desktop[data-shell-style="windows"] .os-start-head strong { font-size: 15px; font-weight: 600; }
#desktop[data-shell-style="windows"] .os-search {
  height: 36px; border-radius: 4px; background: #101318; border-color: #626d7d;
}
#desktop[data-shell-style="windows"] .os-start-section { margin-top: 20px; }
#desktop[data-shell-style="windows"] .os-launch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: min(42vh, 360px); }
#desktop[data-shell-style="windows"] .os-launch-item { border-radius: 4px; padding: 9px; }
#desktop[data-shell-style="windows"] .os-launch-item > span:first-child {
  border-radius: 4px; background: #303640; border-color: #444c59;
}
#desktop[data-shell-style="windows"] .os-window,
#desktop[data-shell-style="windows"] #app-window {
  border: 1px solid #626b78 !important; border-radius: 7px !important;
  background: #1c2027 !important; box-shadow: 0 18px 55px #0008 !important;
  backdrop-filter: none !important;
}
#desktop[data-shell-style="windows"] .os-window-bar,
#desktop[data-shell-style="windows"] .window-bar {
  min-height: 40px !important; background: #20242b !important; border-bottom: 1px solid #343a44 !important;
}
#desktop[data-shell-style="windows"] .os-window-content,
#desktop[data-shell-style="windows"] .window-body { background: #1c2027 !important; }
#desktop[data-shell-style="windows"] .os-system-tray,
#desktop[data-shell-style="windows"] .os-flyout,
#desktop[data-shell-style="windows"] .os-context-menu {
  border-radius: 7px !important; background: #20242bf7 !important;
}
#desktop[data-shell-style="windows"] .os-window.os-maximized {
  top: 8px !important; left: 8px !important; width: calc(100vw - 16px) !important;
  height: calc(100dvh - 64px) !important; border-radius: 7px !important;
}
@media (max-width: 700px) {
  #desktop[data-shell-style="windows"] .taskbar { padding: 0 96px 0 8px !important; justify-content: center !important; gap: 2px !important; }
  #desktop[data-shell-style="windows"] .task-app,
  #desktop[data-shell-style="windows"] #os-task-view { flex-basis: 35px !important; width: 35px !important; height: 38px !important; }
  #desktop[data-shell-style="windows"] #os-system-tray { right: 2px !important; }
  #desktop[data-shell-style="windows"] #os-system-tray > button:not(#os-tray-clock) { display: none; }
  #desktop[data-shell-style="windows"] #os-system-tray #os-tray-clock { min-width: 58px; }
  #desktop[data-shell-style="windows"] .os-launch-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #desktop[data-shell-style="windows"] * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
