.tray-cluster {
  width: 80px;
  height: 40px;
  padding: 0 8px;
  gap: 8px;
}

.tray-cluster img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.window-control-icon {
  display: block;
  width: 10px;
  height: 10px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.window-control-icon-minimize {
  height: 1px;
}

.fp-close {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wv-tb-btn .window-control-icon,
.fw-wc-btn.close:hover .window-control-icon,
.cop-close:hover .window-control-icon,
.fp-close:hover .window-control-icon,
.prev-close:hover .window-control-icon {
  filter: brightness(0) invert(1);
}

.tb-btn.window-open,
body:has(#folder-window.open) .tb-btn[data-app="explorer"],
body:has(#word-viewer.open) .tb-btn[data-app="word"],
body:has(#copilot-overlay.open) .tb-btn[data-app="copilot"] {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tb-btn.window-open .run-dot {
  width: 18px;
  background: #0078d4;
}

.d-icon .sel-tick {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 2px;
  background: url('icons/Checkbox.png') center / contain no-repeat;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-shadow: none;
}

.pdf-file-thumb {
  --desktop-file-preview: url('icons/desktop-previews/medical-bill.svg');
  --desktop-file-badge: url('icons/PDF.png');
}

.word-file-thumb {
  --desktop-file-preview: url('icons/desktop-previews/prototyping-chapter.svg');
  --desktop-file-badge: url('icons/Word.png');
}

.pdf-file-thumb,
.word-file-thumb {
  width: 50px;
  height: 50px;
  background: var(--desktop-file-preview) center / contain no-repeat;
  border-radius: 0;
  position: relative;
}

.word-file-thumb::before {
  content: none;
}

.pdf-file-thumb::after,
.word-file-thumb::after {
  content: '';
  position: absolute;
  /* Keep the badge within the portrait page, not the square icon slot. */
  right: 18%;
  bottom: 4%;
  width: 40%;
  height: 44%;
  background: var(--desktop-file-badge) center / contain no-repeat;
}

.drag-icon-item .word-file-thumb {
  background: var(--desktop-file-preview) center / contain no-repeat !important;
}

.generic-file-thumb {
  width: 40px;
  height: 48px;
  background: #fff;
  border-radius: 2px 8px 2px 2px;
  position: relative;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.22));
  display: flex;
  align-items: center;
  justify-content: center;
}

.generic-file-thumb::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-left: 9px solid rgba(0,0,0,0.12);
  border-bottom: 9px solid transparent;
}

.generic-file-thumb::after {
  content: attr(data-ext);
  font-size: 9px;
  font-weight: 700;
  color: #666;
  font-family: 'Segoe UI', system-ui, sans-serif;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}

.drag-icon-item .generic-file-thumb {
  width: 64px !important;
  height: 64px !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
}

.drag-icon-item .generic-file-thumb::before {
  display: none !important;
}
