/* ---------- Windows XP Explorer ---------- */
.fe-window .window-content.fe-root {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0 3px;
  width: auto;
  overflow: hidden;
  background: #ece9d8;
  font: 11px Tahoma, "Segoe UI", sans-serif;
  color: #000;
  position: relative;
}
.fe-path-state { display: none !important; }

/* Bands (menu / toolbar / address) */
.fe-bars { flex-shrink: 0; user-select: none; }
.fe-band {
  display: flex;
  align-items: center;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #d8d2bd;
}
.fe-menu-band { height: 22px; padding-left: 2px; }
.fe-menu-slot { flex: 1; min-width: 0; overflow: hidden; }
.fe-menu-band .np-menubar { border: 0; height: 21px; background: transparent; }
.fe-flag {
  width: 38px; height: 22px;
  background: #fff;
  border-left: 1px solid #d8d2bd;
  display: flex; align-items: center; justify-content: center;
}
.fe-flag img { width: 22px; height: auto; }

.fe-toolbar { height: 38px; padding: 0 2px; gap: 0; background: linear-gradient(#f9f8f3, #ece9d8); }
.fe-root .fe-tb, .fe-root .fe-tb-drop, .fe-root .fe-go, .fe-root .fe-addr-drop, .fe-root .fe-pane-close {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0;
  margin: 0;
  background: none !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  border-radius: 3px;
  font: 11px Tahoma, sans-serif;
  color: #000;
  outline: none !important;
  display: flex;
  align-items: center;
}
.fe-root .fe-tb { height: 34px; padding: 0 5px 0 3px; gap: 4px; }
.fe-root .fe-tb img { width: 24px; height: 24px; }
.fe-root .fe-tb span { padding-right: 2px; }
.fe-root .fe-tb-drop { width: 13px; height: 34px; justify-content: center; margin-left: -2px; }
.fe-root .fe-tb-drop::after { content: ""; border: 3px solid transparent; border-top: 3px solid #000; border-bottom: 0; }
.fe-root .fe-tb:not(:disabled):hover, .fe-root .fe-tb-drop:not(:disabled):hover, .fe-root .fe-go:hover {
  border-color: #cecec3 !important;
  background: linear-gradient(#fff, #f3f2ec 60%, #e5e3d8) !important;
  box-shadow: 0 1px 0 #d0cfc3 !important;
}
.fe-root .fe-tb:not(:disabled):active, .fe-root .fe-tb.pressed, .fe-root .fe-tb-drop:not(:disabled):active {
  border-color: #9d9d92 !important;
  background: linear-gradient(#e3e2da, #eae8df) !important;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2) !important;
}
.fe-root .fe-tb:disabled img { filter: grayscale(1); opacity: 0.5; }
.fe-root .fe-tb:disabled { color: #aca899; }
.fe-root .fe-tb-drop:disabled::after { border-top-color: #aca899; }
.fe-tb-sep { width: 1px; height: 28px; margin: 0 3px; background: #c5c2b2; box-shadow: 1px 0 0 #fff; }

.fe-address { height: 26px; padding: 0 4px; gap: 5px; }
.fe-addr-label { color: #7f7c73; padding: 0 2px; }
.fe-addr-box {
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #7f9db9;
  padding-left: 3px;
}
.fe-addr-box img { width: 16px; height: 16px; margin-right: 3px; flex-shrink: 0; }
.fe-root .fe-addr-input {
  flex: 1;
  min-width: 0;
  height: 18px;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 2px;
  outline: none;
  font: 11px Tahoma, sans-serif;
  background: transparent;
}
.fe-root .fe-addr-drop {
  width: 17px;
  height: 18px;
  margin: 0 1px;
  justify-content: center;
  border-radius: 2px;
  background: linear-gradient(#c6d3f7, #b1c6f5 50%, #98b3f1) !important;
  border: 1px solid #b9cbf3 !important;
}
.fe-root .fe-addr-drop::after { content: ""; border: 4px solid transparent; border-top: 5px solid #4d6185; border-bottom: 0; margin-top: 3px; }
.fe-root .fe-addr-drop:hover { background: linear-gradient(#d9e3fb, #c6d6fa 50%, #aec4f7) !important; }
.fe-root .fe-go { height: 22px; padding: 0 5px 0 2px; gap: 4px; }
.fe-root .fe-go img { width: 18px; height: 18px; }
.fe-addr-pop { max-height: 300px; overflow: auto; }
.fe-addr-pop .np-check { width: 6px; }

/* Body */
.fe-body { flex: 1; min-height: 0; display: flex; border-top: 1px solid #aca899; }

/* Task pane */
.fe-side {
  width: 206px;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  user-select: none;
}
.fe-side-tasks {
  background: linear-gradient(#7ba2e7, #6375d6);
  padding: 12px 12px 12px 12px;
  box-sizing: border-box;
}
.fe-sec { margin-bottom: 15px; }
.fe-sec-head {
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 0 11px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #fff 30%, #c6d3f7);
  color: #215dc6;
  font-weight: bold;
  cursor: pointer;
}
.fe-sec-head:hover { color: #428eff; }
.fe-chev {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #c0cdeb;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  display: flex; align-items: center; justify-content: center;
}
.fe-chev svg { width: 11px; height: 11px; }
.fe-sec-head:hover .fe-chev { border-color: #8fb1f0; }
.fe-sec-body {
  background: #d6dff7;
  border: 1px solid #fff;
  border-top: 0;
  padding: 10px 10px 8px 12px;
}
.fe-sec.collapsed .fe-sec-body { display: none; }
.fe-task {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #215dc6;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 6px;
  line-height: 15px;
}
.fe-task:last-child { margin-bottom: 0; }
.fe-task img { width: 16px; height: 16px; flex-shrink: 0; }
.fe-task:hover { color: #428eff; text-decoration: underline; }
.fe-det { line-height: 15px; word-break: break-word; }
.fe-det b { display: block; margin-bottom: 2px; }
.fe-det-thumb {
  width: 100%;
  height: 110px;
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid #aebde0;
}
.fe-det-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Folders / Search panes */
.fe-side-folders, .fe-side-search {
  width: 220px;
  background: #fff;
  border-right: 1px solid #aca899;
  display: flex;
  flex-direction: column;
}
.fe-pane-head {
  flex-shrink: 0;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px 0 6px;
  background: #ece9d8;
  border-bottom: 1px solid #aca899;
}
.fe-root .fe-pane-close { width: 16px; height: 16px; justify-content: center; }
.fe-root .fe-pane-close::before { content: "✕"; font-size: 10px; color: #333; }
.fe-root .fe-pane-close:hover { border-color: #aca899 !important; background: #fff !important; }
.fe-tree { flex: 1; overflow: auto; padding: 3px 0; }
.fe-tn {
  display: flex;
  align-items: center;
  height: 18px;
  white-space: nowrap;
  cursor: default;
}
.fe-tn img { width: 16px; height: 16px; margin-right: 3px; }
.fe-tn span { padding: 1px 2px; }
.fe-tn:hover span { text-decoration: underline; color: #215dc6; }
.fe-tn.sel span { background: #316ac5; color: #fff; text-decoration: none; }
.fe-tn-toggle { width: 9px; height: 9px; margin: 0 4px 0 1px; flex-shrink: 0; position: relative; }
.fe-tn-toggle.plus, .fe-tn-toggle.minus {
  border: 1px solid #7a96b6;
  background: linear-gradient(135deg, #fff, #d9d6c7);
  box-sizing: border-box;
  cursor: pointer;
}
.fe-tn-toggle.plus::before, .fe-tn-toggle.minus::before {
  content: ""; position: absolute; left: 1px; right: 1px; top: 3px; height: 1px; background: #000;
}
.fe-tn-toggle.plus::after {
  content: ""; position: absolute; top: 1px; bottom: 1px; left: 3px; width: 1px; background: #000;
}
.fe-search { padding: 10px 12px; overflow: auto; background: linear-gradient(#fff, #eef3fd); flex: 1; }
.fe-search-dog { font-size: 34px; text-align: center; margin-bottom: 4px; }
.fe-search p { margin: 0 0 10px; color: #333; }
.fe-search label { display: block; margin: 8px 0 3px; }
.fe-search input, .fe-search select { width: 100%; box-sizing: border-box; font: 11px Tahoma, sans-serif; }
.fe-s-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 14px; }
.fe-s-btns button { min-width: 64px; }

/* Main view */
.fe-view {
  flex: 1;
  min-width: 0;
  position: relative;
  background: #fff;
  overflow: auto;
  outline: none;
  user-select: none;
  padding: 6px;
  box-sizing: border-box;
  align-content: flex-start;
}
.fe-empty { color: #555; padding: 10px; }
.fe-item { position: relative; cursor: default; box-sizing: border-box; }
.fe-icon { position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.fe-icon img { display: block; pointer-events: none; }
.fe-icon .fe-sc { position: absolute; left: 0; bottom: 0; }
.fe-name { word-break: break-word; padding: 0 2px; border: 1px dotted transparent; }
.fe-item.sel .fe-name { background: #316ac5; color: #fff; }
.fe-item.sel .fe-icon img:not(.fe-sc) { filter: brightness(0.8) sepia(0.6) hue-rotate(185deg) saturate(3); }
.fe-view:not(:focus-within) .fe-item.sel .fe-name { background: #d4d0c8; color: #000; }
.fe-view:not(:focus-within) .fe-item.sel .fe-icon img:not(.fe-sc) { filter: none; }

/* Tiles */
.fe-tiles { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.fe-tiles .fe-item { width: 236px; height: 56px; display: flex; align-items: center; gap: 6px; padding: 2px; }
.fe-tiles .fe-icon { width: 48px; height: 48px; }
.fe-tiles .fe-icon img { width: 48px; height: 48px; object-fit: contain; }
.fe-tiles .fe-icon .fe-sc { width: 16px; height: 16px; }
.fe-tile-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 14px; }
.fe-tile-text .fe-name { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-meta { color: #808080; padding: 0 3px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Icons */
.fe-icons { display: flex; flex-wrap: wrap; gap: 6px 2px; }
.fe-icons .fe-item { width: 78px; display: flex; flex-direction: column; align-items: center; padding: 2px 0; }
.fe-icons .fe-icon { width: 32px; height: 32px; margin-bottom: 3px; }
.fe-icons .fe-icon img { width: 32px; height: 32px; object-fit: contain; }
.fe-icons .fe-icon .fe-sc { width: 12px; height: 12px; }
.fe-icons .fe-name { text-align: center; max-height: 28px; overflow: hidden; line-height: 13px; }
.fe-icons .fe-item.sel .fe-name { max-height: none; }

/* Thumbnails */
.fe-thumbnails { display: flex; flex-wrap: wrap; gap: 10px 8px; padding: 10px; }
.fe-thumbnails .fe-item { width: 104px; display: flex; flex-direction: column; align-items: center; }
.fe-thumbnails .fe-icon { width: 96px; height: 96px; border: 1px solid #d0d0bf; background: #fff; margin-bottom: 4px; }
.fe-thumbnails .fe-icon img { width: 48px; height: 48px; object-fit: contain; }
.fe-thumbnails .fe-thumb img { width: 92px; height: 92px; }
.fe-thumbnails .fe-icon .fe-sc { width: 16px; height: 16px; left: 3px; bottom: 3px; }
.fe-thumbnails .fe-item.sel .fe-icon { border: 2px solid #316ac5; }
.fe-thumbnails .fe-name { text-align: center; max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* List */
.fe-list { display: flex; flex-direction: column; flex-wrap: wrap; overflow-x: auto; overflow-y: hidden; column-gap: 10px; }
.fe-list .fe-item { height: 18px; width: 200px; display: flex; align-items: center; gap: 3px; }
.fe-list .fe-icon, .fe-details .fe-icon { width: 16px; height: 16px; }
.fe-list .fe-icon img, .fe-details .fe-icon img { width: 16px; height: 16px; object-fit: contain; }
.fe-list .fe-icon .fe-sc, .fe-details .fe-icon .fe-sc { width: 8px; height: 8px; }
.fe-list .fe-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Details */
.fe-details { padding: 0; }
.fe-head, .fe-details .fe-item {
  display: grid;
  grid-template-columns: var(--fe-cols);
  width: max-content;
  min-width: 100%;
}
.fe-head {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 21px;
  background: linear-gradient(#fff, #f5f4ee 60%, #ebeadb 90%, #d6d3c2);
  border-bottom: 1px solid #d6d3c2;
}
.fe-head > div {
  display: flex;
  align-items: center;
  padding: 0 6px;
  border-right: 1px solid #e2e0d3;
  box-shadow: 1px 0 0 #fff;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}
.fe-head > div.right { justify-content: flex-end; }
.fe-head > div:hover { background: linear-gradient(#fff, #faf9f5); border-bottom: 3px solid #f9b73a; }
.fe-sort { margin-left: 6px; border: 4px solid transparent; }
.fe-sort.up { border-bottom: 5px solid #aca899; border-top: 0; }
.fe-sort.down { border-top: 5px solid #aca899; border-bottom: 0; }
.fe-details .fe-item { height: 17px; align-items: center; padding: 0; }
.fe-c { padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #000; }
.fe-c.right { text-align: right; }
.fe-c-name { display: flex; align-items: center; gap: 3px; padding-left: 4px; }
.fe-c-name .fe-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fe-details .fe-item:nth-child(n) > .fe-c:not(.fe-c-name) { color: #000; }

/* Rename + rubber band */
.fe-rename {
  font: 11px Tahoma, sans-serif;
  border: 1px solid #000 !important;
  padding: 0 2px;
  resize: none;
  overflow: hidden;
  width: 100%;
  min-width: 60px;
  max-width: 180px;
  height: 16px;
  line-height: 14px;
  box-shadow: none !important;
  background: #fff;
  color: #000;
  outline: none;
  z-index: 3;
}
.fe-icons .fe-rename, .fe-thumbnails .fe-rename { text-align: center; height: 28px; }
.fe-band-sel {
  position: absolute;
  border: 1px solid #316ac5;
  background: rgba(49, 106, 197, 0.2);
  pointer-events: none;
  z-index: 4;
}

/* Status bar */
.fe-status {
  flex-shrink: 0;
  height: 22px;
  display: flex;
  align-items: stretch;
  background: #ece9d8;
  border-top: 1px solid #fff;
  user-select: none;
}
.fe-status > div:not(.np-grip) {
  display: flex;
  align-items: center;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 1px solid #d8d2bd;
  box-shadow: 1px 0 0 #fff;
}
.fe-st-main { flex: 1; min-width: 0; }
.fe-st-size { width: 80px; justify-content: flex-end; }
.fe-st-zone { width: 120px; gap: 4px; }
.fe-st-zone img { width: 16px; height: 16px; }

/* Shared XP menus (explorerMenus.js) */
.xp-menu .np-item.radio .np-check::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.xp-menu .np-item.bold .np-label { font-weight: bold; }
.xp-sub-arrow {
  position: absolute; right: 6px;
  border: 4px solid transparent; border-left: 4px solid currentColor; border-right: 0;
}
.xp-menu .np-item { position: relative; }
.xp-menu { z-index: 60; }

/* Folder Options */
.fe-folderopts fieldset { padding: 8px 12px; }
.fe-folderopts fieldset div { margin: 4px 0; }

@media (max-width: 600px) {
  .fe-side-tasks { display: none !important; }
  .fe-toolbar .fe-tb span { display: none; }
}
