/* Windows XP's standard tooltip colors and dimensions; no host-browser popup. */
#xpHoverTooltip {
  position: fixed; inset: auto; width: max-content; height: auto; max-width: min(420px, calc(100vw - 8px)); max-height: calc(100vh - 8px);
  margin: 0; padding: 3px 5px; border: 1px solid #000; border-radius: 0; background: #ffffe1; color: #000;
  box-shadow: 2px 2px 2px #0004; outline: 0; font: 11px/15px Tahoma, Arial, sans-serif; font-synthesis: weight style;
  text-align: left; text-shadow: none; text-transform: none; letter-spacing: 0; white-space: pre-line; overflow-wrap: anywhere; overflow: hidden;
  pointer-events: none; user-select: none; z-index: 40000; -webkit-font-smoothing: auto; text-rendering: auto;
}
#xpHoverTooltip[hidden] { display: none !important; }
#xpHoverTooltip.is-single-line { max-width: calc(100vw - 8px); white-space: nowrap; }
#xpHoverTooltip::backdrop { background: transparent; pointer-events: none; }
.xp-hover-ready #taskbarClockTooltip, .xp-hover-ready a[data-tooltip]::after { display: none !important; }

/* With XP's double-click setting, pointing at a file does not select it. */
.desktop-icon:hover:not(.selected):not(:focus-visible) { outline: none !important; background: transparent !important; }
.desktop-icon:hover:not(.selected):not(:focus-visible) .desktop-icon-label { background: transparent !important; text-shadow: 1px 1px 2px #000, 0 1px 2px #000 !important; }
.personal-files-window .personal-file-item:hover:not(.active) { background: #fff !important; }

/* Native Windows controls retain the arrow pointer. Links and resize handles
   retain their own hand/I-beam/directional pointer rules. */
.xp-hover-ready button:not(.xp-task-link), .xp-hover-ready summary,
.xp-hover-ready .window-titlebar, .xp-hover-ready .wmp8-titlebar, .xp-hover-ready .media-player-full-titlebar { cursor: default !important; }
.xp-hover-ready input[type="range"] { cursor: default !important; }
.xp-hover-ready .xp-explorer-toolbar > button, .xp-hover-ready .xp-explorer-toolbar > details > summary { transition: none !important; }
.xp-hover-ready .xp-explorer-toolbar > button:hover:not(:disabled),
.xp-hover-ready .xp-explorer-toolbar > details > summary:hover { border-color: #cecec3; background: #fff8dd; }
.xp-hover-ready .xp-task-group > summary:hover { color: #428eff; }
.xp-hover-ready .xp-task-group > summary:hover::after { color: #428eff; background-color: #fff; }
