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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #ffffff;
}

.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;
}

/* ========= Wallpapers ========= */
#desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  transition: background 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

#desktop[data-wallpaper="sequoia"] {
  background:
    radial-gradient(120% 90% at 15% 15%, rgba(255, 168, 118, 0.72) 0%, rgba(255, 168, 118, 0) 52%),
    radial-gradient(95% 85% at 85% 20%, rgba(74, 144, 226, 0.78) 0%, rgba(74, 144, 226, 0) 58%),
    radial-gradient(110% 95% at 52% 95%, rgba(22, 54, 92, 0.95) 0%, rgba(22, 54, 92, 0) 64%),
    radial-gradient(75% 75% at 75% 72%, rgba(217, 108, 126, 0.55) 0%, rgba(217, 108, 126, 0) 60%),
    linear-gradient(145deg, #1b2c4b 0%, #2d4c73 36%, #7d5c78 72%, #24344d 100%);
}

#desktop[data-wallpaper="sonoma"] {
  background:
    radial-gradient(90% 80% at 20% 25%, rgba(125, 211, 252, 0.85) 0%, rgba(125, 211, 252, 0) 55%),
    radial-gradient(85% 80% at 82% 18%, rgba(253, 186, 116, 0.75) 0%, rgba(253, 186, 116, 0) 52%),
    radial-gradient(90% 80% at 60% 88%, rgba(56, 189, 248, 0.65) 0%, rgba(56, 189, 248, 0) 60%),
    linear-gradient(135deg, #3b82f6 0%, #60a5fa 45%, #93c5fd 80%, #dbeafe 100%);
}

#desktop[data-wallpaper="monterey"] {
  background:
    radial-gradient(100% 80% at 22% 80%, rgba(16, 185, 129, 0.45) 0%, rgba(16, 185, 129, 0) 58%),
    radial-gradient(90% 75% at 78% 22%, rgba(56, 189, 248, 0.55) 0%, rgba(56, 189, 248, 0) 55%),
    radial-gradient(80% 70% at 48% 45%, rgba(30, 64, 175, 0.65) 0%, rgba(30, 64, 175, 0) 65%),
    linear-gradient(160deg, #0b1628 0%, #102a43 45%, #1e3a5f 80%, #0f172a 100%);
}

#desktop[data-wallpaper="sand"] {
  background:
    radial-gradient(95% 85% at 18% 20%, rgba(255, 237, 213, 0.9) 0%, rgba(255, 237, 213, 0) 55%),
    radial-gradient(85% 75% at 85% 75%, rgba(186, 230, 253, 0.75) 0%, rgba(186, 230, 253, 0) 55%),
    radial-gradient(75% 75% at 62% 24%, rgba(254, 215, 170, 0.65) 0%, rgba(254, 215, 170, 0) 52%),
    linear-gradient(140deg, #e7e5e4 0%, #f5f5f4 45%, #e0f2fe 100%);
}

.wallpaper-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.wave {
  position: absolute;
  border-radius: 48%;
  filter: blur(55px);
  opacity: 0.42;
}

.wave-1 {
  width: 85vw;
  height: 55vh;
  left: -18vw;
  bottom: -20vh;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.25), rgba(14, 165, 233, 0.35));
  transform: rotate(-10deg);
}

.wave-2 {
  width: 75vw;
  height: 50vh;
  right: -15vw;
  top: 12vh;
  background: linear-gradient(210deg, rgba(251, 146, 60, 0.28), rgba(244, 114, 182, 0.22));
  transform: rotate(14deg);
}

.wave-3 {
  width: 60vw;
  height: 45vh;
  left: 22vw;
  bottom: 8vh;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(255, 255, 255, 0.12));
  transform: rotate(-4deg);
}

/* Light wallpaper contrast adjustments */
#desktop[data-wallpaper="sand"] .menubar {
  background: rgba(255, 255, 255, 0.58);
  color: #1d1d1f;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
#desktop[data-wallpaper="sand"] .menubar-item {
  color: #1d1d1f;
}
#desktop[data-wallpaper="sand"] .menubar-item:hover,
#desktop[data-wallpaper="sand"] .menubar-item.active {
  background: rgba(0, 0, 0, 0.08);
}
#desktop[data-wallpaper="sand"] .app-label {
  color: #1d1d1f;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.85);
}
#desktop[data-wallpaper="sand"] .app-tile.selected .app-label {
  color: #ffffff;
  text-shadow: none;
}
#desktop[data-wallpaper="sand"] .privacy-pill {
  background: rgba(255, 255, 255, 0.62);
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.08);
}
#desktop[data-wallpaper="sand"] .dock {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.76);
}
#desktop[data-wallpaper="sand"] .folder-icon {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(0, 0, 0, 0.1);
}

/* ========= Top Menu Bar ========= */
.menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(24, 28, 38, 0.34);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  z-index: 1000;
}

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

.menubar-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 0.14s ease;
  white-space: nowrap;
}

.menubar-item:hover,
.menubar-item.active {
  background: rgba(255, 255, 255, 0.18);
}

.menubar-brand {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
  flex-shrink: 0;
}

.menubar-clock {
  font-variant-numeric: tabular-nums;
  cursor: default;
}

.menubar-clock:hover {
  background: transparent;
}

/* ========= Dropdown & Context Menus ========= */
.dropdown-menu {
  position: fixed;
  top: 34px;
  min-width: 215px;
  padding: 5px;
  border-radius: 10px;
  background: rgba(32, 36, 46, 0.82);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), inset 0 0.5px 0 rgba(255, 255, 255, 0.2);
  color: #f5f5f7;
  font-size: 13px;
  z-index: 2000;
  display: none;
  animation: menuFade 0.12s ease-out;
}

.dropdown-menu.open {
  display: block;
}

@keyframes menuFade {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.menu-row:hover {
  background: #0a84ff;
  color: #ffffff;
}

.menu-row .shortcut {
  font-size: 11.5px;
  opacity: 0.62;
}

.menu-row:hover .shortcut {
  opacity: 0.92;
}

.menu-sep {
  height: 1px;
  margin: 5px 8px;
  background: rgba(255, 255, 255, 0.14);
}

.menu-header {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.03em;
}

/* ========= Desktop Area & Icons ========= */
.desktop-area {
  position: relative;
  width: 100%;
  height: 100%;
  padding-top: 30px;
  padding-bottom: 96px;
  z-index: 1;
}

.privacy-pill {
  position: absolute;
  top: 46px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(18, 22, 32, 0.28);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
  z-index: 20;
}

.privacy-pill:hover {
  background: rgba(18, 22, 32, 0.44);
  transform: translateY(-1px);
}

.app-tile {
  position: absolute;
  width: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.15s ease;
  z-index: 10;
}

.app-tile:hover {
  background: rgba(255, 255, 255, 0.11);
}

.app-tile:hover .squircle-icon,
.app-tile:hover .folder-icon {
  transform: translateY(-2px) scale(1.045);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.34),
    0 6px 12px rgba(0, 0, 0, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.42);
}

.app-tile:active .squircle-icon,
.app-tile:active .folder-icon {
  transform: scale(0.96);
}

.app-tile.selected {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.38);
}

.app-tile.selected .app-label {
  background: #0a84ff;
  color: #ffffff;
  text-shadow: none;
}

.app-tile.dragging {
  transition: none;
  z-index: 50;
  opacity: 0.92;
}

.app-tile.drop-target {
  background: rgba(255, 255, 255, 0.26) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 14px 30px rgba(0, 0, 0, 0.28);
  transform: scale(1.08);
}

/* Official macOS Squircle App Icon */
.squircle-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 22.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 3px 7px rgba(0, 0, 0, 0.2),
    inset 0 0.5px 0.5px rgba(255, 255, 255, 0.35);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

.squircle-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.24), inset 0 -1px 1px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.squircle-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  pointer-events: none;
  -webkit-user-drag: none;
}

.icon-excalidraw {
  background: #ffffff;
}
.icon-excalidraw img {
  padding: 6%;
  object-fit: contain;
}

.icon-drawio {
  background: #f08705;
}

.app-label {
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.25;
  padding: 2px 7px;
  border-radius: 5px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65), 0 0 1px rgba(0, 0, 0, 0.45);
  max-width: 98px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========= Folder Icon ========= */
.folder-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 22.5%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.28),
    0 3px 7px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.42);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 5px;
  align-items: center;
  justify-items: center;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

.folder-icon.empty-folder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.folder-mini-cell {
  width: 100%;
  height: 100%;
  border-radius: 24%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-mini-cell.icon-excalidraw {
  background: #ffffff;
  padding: 2px;
}

.folder-mini-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.folder-mini-cell.icon-excalidraw img {
  object-fit: contain;
}

.folder-count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}

/* ========= Tooltip, Marquee & Toast ========= */
.icon-tooltip {
  position: fixed;
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(24, 28, 38, 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  font-size: 12px;
  color: #f8fafc;
  z-index: 1500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  max-width: 260px;
}

.icon-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.icon-tooltip .tt-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.75);
}

#marquee {
  position: fixed;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  pointer-events: none;
  display: none;
  z-index: 40;
}

.toast {
  position: fixed;
  top: 44px;
  left: 50%;
  transform: translate(-50%, -12px);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(22, 26, 36, 0.86);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2800;
  white-space: nowrap;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ========= Bottom Dock ========= */
.dock-wrap {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  max-width: calc(100vw - 24px);
}

.dock {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), margin 0.2s ease;
}

.dock-item .squircle-icon {
  width: 50px;
  height: 50px;
  border-radius: 22.5%;
}

.dock-item:hover {
  transform: translateY(-10px) scale(1.22);
  margin: 0 5px;
}

.dock-item::before {
  content: attr(data-name);
  position: absolute;
  bottom: 62px;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(26, 30, 40, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.dock-item:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.dock-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dock-item.opened .dock-dot {
  opacity: 1;
}

.dock-divider {
  width: 1px;
  height: 40px;
  margin: 0 2px 6px;
  background: rgba(255, 255, 255, 0.28);
}

.dock-util-icon {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(226, 232, 240, 0.84));
  color: #1e293b;
}

.dock-util-icon svg {
  width: 24px;
  height: 24px;
}

/* ========= Expanded Folder Modal ========= */
.folder-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 16, 26, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.folder-backdrop.open {
  display: flex;
}

.folder-panel {
  width: min(520px, 100%);
  border-radius: 26px;
  padding: 22px 24px 20px;
  background: rgba(36, 40, 52, 0.76);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  animation: modalPop 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.93) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.folder-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.folder-title-input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 650;
  text-align: center;
  padding: 4px 12px;
  width: 72%;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.folder-title-input:hover {
  background: rgba(255, 255, 255, 0.08);
}

.folder-title-input:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 14px 10px;
  min-height: 132px;
  padding: 8px 4px 14px;
}

.folder-app-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.folder-app-cell:hover {
  background: rgba(255, 255, 255, 0.12);
}

.folder-app-cell:hover .squircle-icon {
  transform: translateY(-2px) scale(1.05);
}

.folder-eject-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.84);
  color: #ffffff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.folder-app-cell:hover .folder-eject-btn {
  opacity: 1;
}

.folder-eject-btn:hover {
  background: #0a84ff;
}

.folder-empty-hint {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-align: center;
}

.folder-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.folder-footer-left {
  display: flex;
  gap: 8px;
}

.folder-footer-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.folder-footer-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.folder-footer-btn.danger:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: rgba(239, 68, 68, 0.92);
}

.folder-picker {
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
  flex-wrap: wrap;
  gap: 8px;
}

.folder-picker.open {
  display: flex;
}

.picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
}

.picker-chip:hover {
  background: #0a84ff;
}

.picker-chip img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* ========= Spotlight Search ========= */
.spotlight-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 2500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16vh;
}

.spotlight-backdrop.open {
  display: flex;
}

.spotlight-box {
  width: min(560px, calc(100vw - 32px));
  border-radius: 16px;
  background: rgba(30, 34, 44, 0.86);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.52);
  overflow: hidden;
  animation: menuFade 0.14s ease-out;
}

.spotlight-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16.5px;
  color: #ffffff;
  user-select: text;
  -webkit-user-select: text;
}

.spotlight-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.kbd-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
}

.spotlight-list {
  padding: 8px;
  max-height: 340px;
  overflow-y: auto;
}

.spotlight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
}

.spotlight-row:hover,
.spotlight-row.active {
  background: #0a84ff;
}

.spotlight-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spotlight-row .squircle-icon {
  width: 32px;
  height: 32px;
  border-radius: 22.5%;
}

/* ========= About & App Info Modals ========= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.about-modal {
  width: min(460px, 100%);
  border-radius: 16px;
  background: rgba(30, 34, 44, 0.9);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalPop 0.18s ease-out;
}

.win-titlebar {
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 64px;
}

.tl-spacer {
  width: 64px;
}

.tl-btn {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0.5px solid rgba(0, 0, 0, 0.24);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: transparent;
}

.traffic-lights:hover .tl-btn {
  color: rgba(0, 0, 0, 0.65);
}

.tl-close {
  background: #ff5f57;
}

.win-title-center {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.about-content {
  padding: 24px 24px 20px;
  text-align: center;
}

.about-emblem {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 22.5%;
  background: linear-gradient(150deg, #38bdf8, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.42);
}

.about-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

.about-specs {
  margin: 16px 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  font-size: 12.5px;
  line-height: 1.85;
}

.about-specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.about-specs span:first-child {
  color: rgba(255, 255, 255, 0.56);
  flex-shrink: 0;
}

.about-specs strong {
  text-align: right;
  word-break: break-all;
}

.about-credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.credit-link {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: background 0.14s ease;
}

.credit-link:hover {
  background: #0a84ff;
  color: #ffffff;
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-primary {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #0a84ff;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: #0070e0;
}

.btn-secondary {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ========= Mobile Responsive ========= */
@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
  .privacy-pill { display: none; }
  .dock { gap: 6px; padding: 7px 10px; }
  .dock-item .squircle-icon { width: 42px; height: 42px; }
  .dock-item:hover { transform: translateY(-4px) scale(1.08); margin: 0; }
  .folder-eject-btn { opacity: 1; }
}
