*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  user-select: none;
  cursor: default;
}

.desktop {
  position: relative;
  width: 100%;
  height: 100%;
  background: url('Wallpaper new.png') center/cover no-repeat;
}
.desktop-icons { position: absolute; inset: 0 0 48px; touch-action: none; }
.desktop-selection-box {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border: 1px solid #0078d4;
  background: #0078d426;
}
.d-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 66px;
  padding: 6px 3px;
  border-radius: 4px;
  cursor: default;
  transform: scale(var(--icon-scale, 1));
  transform-origin: 0 0;
}
.d-icon:hover { background: #ffffff2e; }
.d-icon.selected {
  background: #cce4f759;
  outline: 1.5px solid #0078d48c;
}
.d-icon:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.d-icon .sel-tick {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: url("Other%20icons/Checkbox.png") center / 16px 16px no-repeat, linear-gradient(#fff, #fff) center / 10px 10px no-repeat;
  color: transparent;
  font-size: 0;
  display: none;
  z-index: 1;
  pointer-events: none;
}
.d-icon.selected .sel-tick { display: block; }
.d-icon > span:last-child {
  font-size: 10px;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 3px #000b, 0 0 8px #0006;
  word-break: break-word;
  max-width: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.d-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px #0004);
}
.folder-thumb {
  width: 40px;
  height: 40px;
  background: url('icons/folder.png') center/contain no-repeat;
  filter: drop-shadow(0 2px 4px #0004);
}
.pdf-file-thumb {
  width: 40px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M9 3h23l7 7v32a3 3 0 0 1-3 3H12a3 3 0 0 1-3-3Z' fill='%23f5f5f5' stroke='%23aaa'/%3E%3Cpath d='M32 3v8h7' fill='%23ddd'/%3E%3Ctext x='14' y='22' font-family='Segoe UI,sans-serif' font-size='10' font-weight='700' fill='%23d20112'%3EPDF%3C/text%3E%3Cpath d='M15 30h18M15 36h18' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 2px 4px #0004);
}
.word-file-thumb, .ppt-file-thumb {
  width: 40px;
  height: 48px;
  position: relative;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 2px 8px 2px 2px;
  filter: drop-shadow(0 2px 4px #0004);
}
.word-file-thumb::before, .ppt-file-thumb::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border-left: 9px solid #0002;
  border-bottom: 9px solid transparent;
}
.word-file-thumb::after { content: 'W'; color: #185abd; font-size: 20px; font-weight: 700; }
.ppt-file-thumb img { width: 22px; height: 22px; }
.img-file-thumb {
  width: 54px;
  height: 40px;
  border: 1.5px solid #ffffff66;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  filter: drop-shadow(0 2px 4px #0004);
}
.img-file-thumb.portrait { width: 30px; }

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: #eeeeeee0;
  backdrop-filter: saturate(180%) blur(28px);
  border-top: 1px solid #0000001f;
  display: flex;
  align-items: center;
}
.tb-left { display: flex; align-items: center; padding-left: 6px; flex-shrink: 0; }
.tb-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  height: 48px;
}
.tb-right { margin-left: auto; display: flex; align-items: center; flex-shrink: 0; }
.tb-icon { position: relative; width: 48px; height: 44px; display: grid; place-items: center; }
.tb-icon img { width: 26px; height: 26px; object-fit: contain; }
.run-dot { position: absolute; bottom: 2px; width: 7px; height: 3px; border-radius: 2px; background: #00000047; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 232px;
  height: 34px;
  background: #ffffffb8;
  border: 1px solid #0000001a;
  border-radius: 20px;
  padding: 0 14px;
  color: #555;
  font-size: 13px;
}
.weather { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 40px; }
.sun { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #ffe066 0%, #ffb830 50%, #ff8c00 100%); box-shadow: 0 0 6px 1px #ffb40073; }
.weather-info, .tray-clock { display: flex; flex-direction: column; }
.weather-temp { font-size: 12px; color: #1a1a1a; font-weight: 500; line-height: 1.3; }
.weather-desc { font-size: 10px; color: #5a5a5a; line-height: 1.2; }
.tray-icons { display: flex; align-items: center; gap: 8px; padding: 0 9px; }
.tray-icons svg { width: 15px; height: 15px; }
.tray-clock { align-items: flex-end; justify-content: center; padding: 0 8px; height: 44px; min-width: 78px; color: #1a1a1a; }
.clock-time { font-size: 12px; }
.clock-date { font-size: 11px; }
.show-desktop { width: 12px; height: 48px; border-left: 1px solid #0002; }
@media (max-width: 1100px) {
  .search-bar { width: 150px; }
  .tb-icon { width: 38px; }
}
@media (max-width: 850px) {
  .tb-left, .search-bar, .tray-icons { display: none; }
  .tb-center { position: static; transform: none; }
}
@media (max-width: 420px) {
  .tb-icon { width: 30px; }
  .tb-icon img { width: 22px; height: 22px; }
  .tray-clock { min-width: 70px; padding: 0 4px; }
}
