:root {
  color-scheme: dark;
  --md-sys-color-primary: #adc7ff;
  --md-sys-color-on-primary: #0f2f60;
  --md-sys-color-primary-container: #284777;
  --md-sys-color-on-primary-container: #d8e2ff;
  --md-sys-color-secondary: #bcc7dc;
  --md-sys-color-on-secondary: #263142;
  --md-sys-color-secondary-container: #3c4759;
  --md-sys-color-on-secondary-container: #d9e3f8;
  --md-sys-color-surface: #11131a;
  --md-sys-color-surface-dim: #0b0f16;
  --md-sys-color-surface-bright: #343942;
  --md-sys-color-surface-container-low: #171c25;
  --md-sys-color-surface-container: #1b202a;
  --md-sys-color-surface-container-high: #252b36;
  --md-sys-color-surface-container-highest: #303642;
  --md-sys-color-on-surface: #e2e8f5;
  --md-sys-color-on-surface-variant: #c0c7d7;
  --md-sys-color-outline: #8a92a3;
  --md-sys-color-outline-variant: #414857;
  --md-sys-color-error: #ffb4ab;
  --md-sys-color-on-error-container: #ffdad6;
  --md-sys-shape-corner-xs: 6px;
  --md-sys-shape-corner-sm: 8px;
  --md-sys-shape-corner-md: 12px;
  --md-sys-shape-corner-lg: 16px;
  --md-sys-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.2);
  --md-sys-elevation-2: 0 2px 8px rgba(0, 0, 0, 0.34), 0 6px 16px rgba(0, 0, 0, 0.24);
  --md-sys-elevation-3: 0 4px 16px rgba(0, 0, 0, 0.36), 0 10px 28px rgba(0, 0, 0, 0.24);
  --panel-height: 36px;
  --surface: color-mix(in srgb, var(--md-sys-color-surface-container-high) 82%, transparent);
  --surface-strong: color-mix(in srgb, var(--md-sys-color-surface-container-highest) 88%, transparent);
  --line: var(--md-sys-color-outline);
  --line-inactive: var(--md-sys-color-outline-variant);
  --text: var(--md-sys-color-on-surface);
  --accent: var(--md-sys-color-primary);
  --danger: var(--md-sys-color-error);
  --shadow: var(--md-sys-elevation-3);
  --window-chrome: color-mix(in srgb, var(--md-sys-color-surface-container-high) 95%, transparent);
}

* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

input,
textarea,
[contenteditable="true"],
.allow-select {
  user-select: text;
  -webkit-user-select: text;
}

html,
body {
  margin: 0;
  height: 100%;
  font-family: "Roboto", "Noto Sans", "Segoe UI", sans-serif;
  color: var(--text);
  letter-spacing: 0.01em;
  background:
    radial-gradient(1300px 720px at 18% 15%, rgba(63, 94, 143, 0.38) 0%, rgba(63, 94, 143, 0) 52%),
    radial-gradient(1100px 620px at 84% 82%, rgba(46, 77, 116, 0.32) 0%, rgba(46, 77, 116, 0) 48%),
    linear-gradient(160deg, var(--md-sys-color-surface-dim), var(--md-sys-color-surface));
}

#app {
  height: 100%;
}

.hidden {
  display: none !important;
}

.desktop-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-screen {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-window {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-lg);
  overflow: hidden;
  background: color-mix(in srgb, var(--md-sys-color-surface-container) 92%, transparent);
  box-shadow: var(--md-sys-elevation-3);
}

.login-window-inner {
  position: relative;
  border-radius: inherit;
  overflow: hidden;
  background: transparent;
}

.login-window-header {
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 92%, transparent);
}

.login-window-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.login-window-body {
  min-height: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--md-sys-color-surface-container) 86%, transparent);
  display: grid;
  align-items: start;
}

.login-content {
  padding: 14px 16px 10px;
}

.login-content p {
  margin: 0 0 14px;
  color: color-mix(in srgb, var(--md-sys-color-on-surface) 82%, transparent);
  font-size: 0.95rem;
}

.login-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.login-actions button {
  margin-bottom: 0;
}

button {
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 999px;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 90%, transparent);
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

button:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 16%, var(--md-sys-color-surface-container-high));
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 38%, var(--md-sys-color-outline-variant));
}

button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--md-sys-color-primary) 88%, white 12%);
  outline-offset: 1px;
}

button.primary {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border-color: transparent;
}

.error-text {
  margin-top: 10px;
  color: var(--md-sys-color-error);
  min-height: 1.2em;
  font-size: 0.9rem;
}

.error-text:empty {
  display: none;
}

.desktop {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.top-panel {
  height: var(--panel-height);
  background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 84%, transparent);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  backdrop-filter: blur(14px) saturate(128%);
  -webkit-backdrop-filter: blur(14px) saturate(128%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 2px 5px;
}

.panel-left,
.panel-center,
.panel-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-center {
  justify-content: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

.panel-right {
  justify-content: flex-end;
}

.panel-menu-icon {
  width: 20px;
  height: 20px;
  display: block;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 160ms ease;
}

.panel-menu-icon:hover,
.panel-menu-icon:focus-visible {
  opacity: 1;
}

.desktop-content {
  position: relative;
  flex: 1;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.desktop-launcher-layer,
.desktop-windows-layer {
  position: absolute;
  inset: 0;
}

.desktop-launcher-layer {
  z-index: 200;
  pointer-events: none;
}

.desktop-windows-layer {
  z-index: 100;
}

.launcher-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 270px;
  max-height: 320px;
  overflow: auto;
  background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 92%, transparent);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-top: 0;
  border-radius: 0 0 14px 0;
  box-shadow: var(--md-sys-elevation-2);
  z-index: 200;
  padding: 6px;
  transform-origin: top left;
  animation: launcher-menu-in 230ms cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.user-menu {
  left: auto;
  right: 0;
  width: 270px;
  height: 78px;
  max-height: none;
  border-radius: 0 0 0 14px;
  transform-origin: top right;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.user-menu .launcher-item {
  width: calc((100% - 12px) / 4);
  flex: 0 0 calc((100% - 12px) / 4);
}

.launcher-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  border: none;
  border-radius: var(--md-sys-shape-corner-md);
  background: transparent;
  padding: 6px 4px;
  color: var(--text);
}

.launcher-item:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 16%, transparent);
}

.host-file-dialog-overlay {
  position: absolute;
  inset: 0;
  z-index: 260;
  background: rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.host-file-dialog {
  width: min(760px, calc(100% - 20px));
  height: min(520px, calc(100% - 20px));
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-lg);
  overflow: hidden;
  background: color-mix(in srgb, var(--md-sys-color-surface-container) 95%, transparent);
  box-shadow: var(--md-sys-elevation-2);
  display: flex;
  flex-direction: column;
}

.host-file-dialog-header {
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 88%, transparent);
  padding: 10px 12px;
}

.host-file-dialog-title {
  margin: 0;
  font-size: 0.95rem;
}

.host-file-dialog-path {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--md-sys-color-on-surface) 78%, transparent);
}

.host-file-dialog-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 190px 1fr;
}

.host-file-dialog-sidebar {
  border-right: 1px solid var(--md-sys-color-outline-variant);
  background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 88%, transparent);
  overflow: auto;
  padding: 10px 8px;
}

.host-file-dialog-sidebar-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  text-align: left;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
}

.host-file-dialog-sidebar-item:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 14%, transparent);
}

.host-file-dialog-sidebar-item-active {
  background: color-mix(in srgb, var(--md-sys-color-primary-container) 66%, transparent);
}

.host-file-dialog-list {
  overflow: auto;
  padding: 8px 10px;
}

.host-file-dialog-entry {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px 10px;
}

.host-file-dialog-entry-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.host-file-dialog-entry-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

.host-file-dialog-entry:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
}

.host-file-dialog-entry-selected {
  background: color-mix(in srgb, var(--md-sys-color-primary-container) 64%, transparent);
}

.host-file-dialog-entry-type {
  color: color-mix(in srgb, var(--md-sys-color-on-surface-variant) 76%, transparent);
  font-size: 0.86rem;
}

.host-file-dialog-empty {
  padding: 8px 10px;
  color: rgba(216, 227, 244, 0.72);
  font-size: 0.92rem;
}

.host-file-dialog-filename {
  border-top: 1px solid rgba(205, 223, 249, 0.2);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.host-file-dialog-label {
  font-size: 0.82rem;
  color: rgba(229, 239, 252, 0.86);
}

.host-file-dialog-input {
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-sm);
  background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 88%, transparent);
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.9rem;
  outline: none;
}

.host-file-dialog-input:focus {
  border-color: var(--md-sys-color-primary);
}

.host-file-dialog-error {
  min-height: 1em;
  padding: 0 12px 8px;
  font-size: 0.82rem;
  color: var(--md-sys-color-error);
}

.host-file-dialog-actions {
  border-top: 1px solid var(--md-sys-color-outline-variant);
  padding: 10px 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.launcher-item-icon-wrap {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.launcher-item-icon-image {
  width: 24px;
  height: 24px;
  display: block;
}

.launcher-item-icon-fallback {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.74rem;
  font-weight: 700;
}

.launcher-item-name {
  font-size: 0.8rem;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.launcher-empty {
  grid-column: 1 / -1;
  padding: 10px 12px;
  color: rgba(230, 237, 247, 0.75);
  font-size: 0.86rem;
}

@keyframes launcher-menu-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.965);
    filter: blur(1.5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.window {
  position: absolute;
  top: 24px;
  left: 36px;
  width: 760px;
  height: 480px;
  min-width: 340px;
  min-height: 220px;
  border: 1px solid var(--line-inactive);
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  box-shadow: var(--md-sys-elevation-2);
  transition:
    left 150ms ease,
    top 150ms ease,
    width 150ms ease,
    height 150ms ease,
    opacity 130ms ease,
    border-color 130ms ease,
    box-shadow 130ms ease;
}

.window.window-active {
  border-color: var(--line);
  box-shadow: 0 0 0 1px rgba(161, 187, 239, 0.26), var(--md-sys-elevation-2);
}

.window-inner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.window-header {
  height: 40px;
  padding: 0 6px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 92%, transparent);
  cursor: default;
  user-select: none;
  touch-action: none;
  position: relative;
  z-index: 30;
}

.desktop.grid-edit-active .window-header {
  cursor: grab;
}

.desktop.grid-edit-active .window-header:active {
  cursor: grabbing;
}

.desktop.grid-edit-active .desktop-windows-layer {
  pointer-events: none;
}

.desktop.grid-edit-active .desktop-windows-layer .window {
  visibility: hidden;
}

.window-header-left,
.window-header-center,
.window-header-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.window-header-left {
  gap: 2px;
}

.window-header-center {
  justify-content: center;
  gap: 8px;
}

.window-header-right {
  justify-content: flex-end;
  gap: 2px;
}

.window-header-right [data-window-button-source="right"][data-window-button-id="folder-new"] {
  margin-left: 9px;
}

.window-header-right [data-window-button-source="right"][data-window-button-id="file-new"],
.window-header-right [data-window-button-source="right"][data-window-button-id="restore"] {
  margin-right: 4px;
}

.window-titlebar-close-button {
  margin-left: 4px;
}

.window-titlebar-icon-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  display: inline-grid;
  place-items: center;
  filter: none;
  box-shadow: none;
}

.window-titlebar-icon {
  width: 23px;
  height: 23px;
  display: block;
  opacity: 0.8;
  transition: opacity 160ms ease;
}

.window-titlebar-icon-button:hover .window-titlebar-icon,
.window-titlebar-icon-button:focus-visible .window-titlebar-icon {
  opacity: 1;
}

.window-titlebar-icon-button:hover,
.window-titlebar-icon-button:focus-visible,
.window-titlebar-icon-button:active {
  background: transparent !important;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.window-titlebar-icon-button.window-titlebar-icon-button-disabled {
  cursor: default;
}

.window-titlebar-icon-button.window-titlebar-icon-button-disabled .window-titlebar-icon {
  opacity: 0.32;
}

.window-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.window-stack-tabs {
  display: inline-flex;
  align-items: center;
  max-width: 320px;
  gap: 4px;
  margin-right: 4px;
  overflow: hidden;
}

.window-stack-tab {
  border: 1px solid rgba(138, 146, 163, 0.4);
  border-radius: 8px;
  background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 72%, transparent);
  color: color-mix(in srgb, var(--md-sys-color-on-surface) 90%, transparent);
  font-size: 0.72rem;
  line-height: 1;
  padding: 4px 8px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.window-stack-tab:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 16%, transparent);
}

.window-stack-tab.window-stack-tab-active {
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 62%, transparent);
  background: color-mix(in srgb, var(--md-sys-color-primary-container) 68%, transparent);
}

.window-titlebar-menu {
  position: absolute;
  top: 40px;
  right: 6px;
  min-width: 170px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-top: 0;
  border-radius: 0 0 var(--md-sys-shape-corner-md) var(--md-sys-shape-corner-md);
  background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 95%, transparent);
  z-index: 40;
  box-shadow: var(--md-sys-elevation-1);
}

.window-titlebar-overlay {
  position: absolute;
  inset: 0;
  z-index: 250;
  background: transparent;
}

.window-titlebar-menu-floating {
  z-index: 251;
  right: auto;
}

.window-titlebar-menu-item {
  border: none;
  border-radius: var(--md-sys-shape-corner-sm);
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 0.84rem;
  padding: 7px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.window-titlebar-menu-item:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 14%, transparent);
}

.window-titlebar-menu-item.window-titlebar-menu-item-disabled {
  opacity: 0.45;
  cursor: default;
}

.window-titlebar-menu-item.window-titlebar-menu-item-disabled:hover {
  background: transparent;
}

.window-titlebar-menu-item-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

.window-titlebar-menu-item-label {
  flex: 1 1 auto;
}

.window-titlebar-menu-divider {
  height: 1px;
  margin: 4px 2px;
  background: color-mix(in srgb, var(--md-sys-color-outline-variant) 85%, transparent);
}

.window-body {
  flex: 1;
  background: transparent;
  overflow: hidden;
  position: relative;
}

.window-body iframe {
  border: none;
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  background: transparent;
  display: block;
  border-radius: 0 0 5px 5px;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.desktop-window-manager-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 210;
}

.desktop-window-manager-layer.window-manager-grid-edit-mode {
  pointer-events: auto;
}

.window-manager-grid-cell {
  position: absolute;
  border: 1px dashed rgba(161, 187, 239, 0.42);
  background: rgba(161, 187, 239, 0.06);
  pointer-events: none;
  border-radius: 8px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 7px 8px;
}

button.window-manager-grid-cell {
  cursor: pointer;
  margin: 0;
}

.window-manager-grid-cell.window-manager-grid-cell-editable:hover {
  border-color: rgba(161, 187, 239, 0.92);
  background: rgba(161, 187, 239, 0.18);
}

.window-manager-grid-cell.window-manager-grid-cell-self {
  border-color: rgba(161, 187, 239, 0.6);
  background: rgba(161, 187, 239, 0.12);
}

.window-manager-grid-cell.window-manager-grid-cell-active {
  border: 1px solid rgba(186, 208, 247, 0.98);
  background: rgba(161, 187, 239, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 0 1px rgba(161, 187, 239, 0.38);
}

.window-manager-grid-cell.window-manager-grid-cell-dimmed.window-manager-grid-cell-active {
  border: 1px solid rgba(186, 208, 247, 0.98);
  background: rgba(161, 187, 239, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 0 1px rgba(161, 187, 239, 0.38);
}

.window-manager-grid-cell.window-manager-grid-cell-dimmed {
  border-color: rgba(161, 187, 239, 0.22);
  background: rgba(161, 187, 239, 0.03);
}

.window-manager-grid-cell-title {
  max-width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(223, 233, 250, 0.94);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(20, 28, 42, 0.38);
  border: 1px solid rgba(161, 187, 239, 0.2);
}

.window-manager-grid-cell-title.window-manager-grid-cell-title-empty {
  display: none;
}

.desktop-window-manager-layer.window-manager-grid-edit-mode .window-manager-grid-cell.window-manager-grid-cell-editable {
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  border-style: solid;
}

.desktop-window-manager-layer.window-manager-grid-edit-mode .window-manager-grid-cell.window-manager-grid-cell-editable .window-manager-grid-cell-title {
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  background: rgba(20, 28, 42, 0.5);
  border-color: rgba(161, 187, 239, 0.36);
}

.window-manager-grid-ghost {
  position: absolute;
  border: 1px solid rgba(170, 194, 238, 0.92);
  border-radius: 12px;
  background: rgba(24, 34, 52, 0.28);
  overflow: hidden;
  pointer-events: auto;
  box-shadow: none;
}

.window-manager-grid-ghost.window-manager-grid-ghost-dragging {
  opacity: 0.92;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36);
}

.window-manager-grid-ghost.window-manager-grid-ghost-resizing {
  border-color: rgba(170, 194, 238, 1);
  box-shadow: 0 0 0 1px rgba(170, 194, 238, 0.28);
}


.window-manager-grid-ghost-header {
  height: 38px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-bottom: 1px solid rgba(170, 194, 238, 0.4);
  background: rgba(40, 54, 80, 0.72);
  color: rgba(225, 234, 252, 0.95);
  cursor: grab;
  padding: 0 10px;
  border-radius: 0;
}

.window-manager-grid-ghost-header:active {
  cursor: grabbing;
}

.window-manager-grid-ghost-title {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-manager-grid-ghost-body {
  height: calc(100% - 38px);
  background: rgba(17, 24, 38, 0.24);
}

.window-manager-grid-ghost-resize {
  position: absolute;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

.window-manager-grid-ghost-resize-left,
.window-manager-grid-ghost-resize-right {
  top: 38px;
  bottom: 0;
  width: 12px;
  cursor: col-resize;
}

.window-manager-grid-ghost-resize-left {
  left: -6px;
}

.window-manager-grid-ghost-resize-right {
  right: -6px;
}

.window-manager-grid-ghost-resize-top,
.window-manager-grid-ghost-resize-bottom {
  left: 0;
  right: 0;
  height: 12px;
  cursor: row-resize;
}

.window-manager-grid-ghost-resize-top {
  top: -6px;
}

.window-manager-grid-ghost-resize-bottom {
  bottom: -6px;
}

.window-manager-separator {
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  background: transparent;
  transition: background-color 120ms ease;
}

.window-manager-separator-col {
  cursor: ew-resize;
}

.window-manager-separator-row {
  cursor: ns-resize;
}

.window-manager-separator:hover,
body.window-interacting .window-manager-separator {
  background: rgba(161, 187, 239, 0.14);
}

body.window-interacting {
  user-select: none;
}

body.window-interacting .window-body iframe {
  pointer-events: none;
}

body.window-interacting .window {
  transition: none;
}

.desktop-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(230, 237, 247, 0.75);
  pointer-events: none;
}

@media (max-width: 720px) {
  .window {
    left: 8px;
    top: calc(var(--panel-height) + 8px);
    width: calc(100vw - 16px);
    height: calc(100vh - var(--panel-height) - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .window,
  .window-manager-separator,
  .panel-menu-icon,
  .window-titlebar-icon,
  .window-titlebar-icon-button {
    transition: none !important;
  }
}
