/* General styles */
body, html {
  height: 100%;
  margin: 0;
  font-family: Tahoma, sans-serif;
  overflow: hidden;
  user-select: none;
  /* Remove double-tap zoom + tap delay so double-tap-to-open feels instant on phones */
  touch-action: manipulation;
}
.desktop {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  position: relative;
  background-image: url('/bg.jpg');
}

/* SalineWin.exe is a contained visual simulation, never a real system payload. */
.salinewin-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  overflow: hidden;
  background: transparent;
  font-family: Tahoma, sans-serif;
  user-select: none;
  pointer-events: none;
}

.salinewin-canvas,
.salinewin-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.salinewin-canvas {
  display: block;
  opacity: 0.72;
  mix-blend-mode: screen;
  pointer-events: none;
}

.salinewin-noise {
  pointer-events: none;
  opacity: 0.22;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.14) 0,
      rgba(255, 255, 255, 0.14) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.16) 0,
      rgba(0, 0, 0, 0.16) 1px,
      transparent 1px,
      transparent 7px
    );
  animation: salinewin-noise-shift 0.16s steps(2, end) infinite;
}

@keyframes salinewin-noise-shift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-3px, 2px); }
  100% { transform: translate(2px, -2px); }
}

.salinewin-countdown {
  background: transparent;
  pointer-events: none;
}

.salinewin-countdown .salinewin-canvas,
.salinewin-countdown .salinewin-noise {
  display: none;
}

.salinewin-final-overlay .salinewin-noise {
  display: none;
}

.salinewin-overlay[data-phase="4"] .salinewin-noise {
  display: none;
}

.salinewin-overlay[data-phase="6"] .salinewin-noise,
.salinewin-overlay[data-phase="7"] .salinewin-noise {
  display: none;
}

.salinewin-overlay[data-phase="4"] .salinewin-canvas,
.salinewin-overlay[data-phase="7"] .salinewin-canvas,
.salinewin-overlay[data-phase="8"] .salinewin-canvas,
.salinewin-overlay[data-phase="9"] .salinewin-canvas {
  opacity: 1;
  mix-blend-mode: normal;
}

.salinewin-overlay[data-phase="6"] .salinewin-canvas {
  opacity: 1;
  mix-blend-mode: normal;
}

.salinewin-tester-window {
  padding: 0 !important;
  overflow: hidden;
}

.salinewin-tester-root,
.salinewin-tester {
  min-height: 0;
  height: 100%;
}

.salinewin-tester-root {
  position: fixed;
  inset: 0;
  z-index: 21000;
  background: transparent;
}

.salinewin-tester {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  color: #fff;
}

.salinewin-tester-toolbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 6px;
  border-bottom: 1px solid #808080;
  background: rgba(0, 0, 0, 0.68);
}

.salinewin-tester-status {
  margin-left: auto;
  min-width: 52px;
  text-align: right;
  color: #fff;
}

.salinewin-tester-phase-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.salinewin-tester-stage {
  position: absolute;
  inset: 0 0 30px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #000;
}

.salinewin-tester-image,
.salinewin-tester-canvas,
.salinewin-tester-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.salinewin-tester-image {
  background: url('/bg.jpg') center / cover no-repeat;
}

.salinewin-tester-image-copy {
  display: none;
}

.salinewin-tester-canvas {
  display: block;
  position: fixed;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  opacity: 0.72;
  pointer-events: none;
  mix-blend-mode: screen;
}

.salinewin-tester-noise {
  position: fixed;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.22;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.14) 0,
      rgba(255, 255, 255, 0.14) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.16) 0,
      rgba(0, 0, 0, 0.16) 1px,
      transparent 1px,
      transparent 7px
    );
  animation: salinewin-noise-shift 0.16s steps(2, end) infinite;
}

.salinewin-cursor-error {
  position: absolute;
  z-index: 22000;
  width: 25px;
  height: 25px;
  pointer-events: none;
  object-fit: contain;
  image-rendering: auto;
}

.desktop.salinewin-final-screen {
  background-image: none !important;
  background-color: #0645ad !important;
  filter: none !important;
  transform: none !important;
}

.desktop.salinewin-final-screen > * {
  visibility: hidden;
}

/* For IE, Minecraft, Plants vs Zombies, and Maario, AND virtualbox, change height a bit */
.ie-window {
  height: calc(100% - 40px);
  box-sizing: border-box;
  padding: 0 !important; /* Ensure no padding for IE content area */
  margin: 0 !important;
}
.threeD-window {
  flex: 1;
  min-height: 0;
  padding: 0 !important;
  margin: 0 !important;
}

/* Minecraft mode picker and Eaglercraft view */
.minecraft-launcher,
.minecraft-eaglercraft {
  position: absolute;
  inset: 0;
  z-index: 20;
  font-family: Tahoma, sans-serif;
}

.minecraft-launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background:
    linear-gradient(rgba(23, 31, 42, 0.72), rgba(8, 12, 18, 0.88)),
    url('/minecraft_grassSide.jpeg') center / cover;
}

.minecraft-launcher-panel {
  width: min(530px, calc(100% - 32px));
  padding: 28px;
  color: #f5f7fa;
  background: rgba(20, 26, 35, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

.minecraft-launcher-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.minecraft-launcher-brand[hidden] {
  display: none;
}

.minecraft-launcher-grass {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 2px solid #17200f;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, transparent 0 35%, rgba(255,255,255,.15) 36% 43%, transparent 44%),
    url('/minecraft_grassTop.jpg') center / cover;
  image-rendering: pixelated;
}

.minecraft-launcher-eyebrow {
  color: #98d45b;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.minecraft-launcher h1 {
  margin: 3px 0 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: normal;
}

.minecraft-launcher-options {
  display: grid;
  gap: 10px;
}

.minecraft-launcher-options[hidden] {
  display: none;
}

.minecraft-choice {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  color: #fff;
  text-align: left;
  background: #2c3746;
  border: 1px solid #536172;
  border-radius: 3px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.minecraft-choice:hover,
.minecraft-choice:focus-visible {
  background: #3b4b5f;
  border-color: #9ed866;
  outline: none;
  transform: translateY(-1px);
}

.minecraft-version-picker[hidden] {
  display: none;
}

.minecraft-version-picker {
  display: grid;
  gap: 10px;
}

.minecraft-version-back {
  justify-self: start;
  padding: 3px 7px;
  color: #d6f29b;
  font: inherit;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.minecraft-version-back:hover,
.minecraft-version-back:focus-visible {
  border-color: #71818c;
  outline: none;
}

.minecraft-version-list {
  display: grid;
  gap: 8px;
  max-height: min(430px, calc(100vh - 220px));
  overflow-y: auto;
  padding-right: 2px;
}

.minecraft-version-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  color: #fff;
  text-align: left;
  background: #2c3746;
  border: 1px solid #536172;
  border-radius: 3px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.minecraft-version-choice:hover,
.minecraft-version-choice:focus-visible {
  background: #3b4b5f;
  border-color: #9ed866;
  outline: none;
  transform: translateY(-1px);
}

.minecraft-version-choice-recommended {
  background: #263b2c;
  border-color: #4d7654;
}

.minecraft-version-choice-recommended:hover,
.minecraft-version-choice-recommended:focus-visible {
  background: #31523a;
}

.minecraft-version-copy {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.minecraft-version-copy strong {
  font-size: 13px;
}

.minecraft-version-copy span,
.minecraft-version-choice small {
  color: #c3ccd6;
  font-size: 10px;
}

.minecraft-version-choice small {
  flex: 0 1 190px;
  min-width: 0;
  text-align: right;
}

.minecraft-choice-eaglercraft {
  background: #263b2c;
  border-color: #4d7654;
}

.minecraft-choice-eaglercraft:hover,
.minecraft-choice-eaglercraft:focus-visible {
  background: #31523a;
}

.minecraft-choice-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-right: 13px;
  color: #d9f4a8;
  font-size: 24px;
  background: rgba(0, 0, 0, .24);
  border-radius: 3px;
}

.minecraft-choice-copy {
  display: grid;
  gap: 4px;
  flex: 1;
}

.minecraft-choice-copy strong {
  font-size: 15px;
  font-weight: bold;
}

.minecraft-choice-copy small {
  color: #c3ccd6;
  font-size: 11px;
}

.minecraft-choice-arrow {
  margin-left: 10px;
  color: #c6d5e3;
  font-size: 28px;
  line-height: 1;
}

.minecraft-launcher-note {
  margin: 18px 2px 0;
  color: #aeb9c6;
  font-size: 11px;
  line-height: 1.45;
}

.minecraft-eaglercraft {
  display: flex;
  flex-direction: column;
  background: #101010;
}

.minecraft-eaglercraft-frame {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  border: 0;
  background: #000;
}

@media (max-width: 520px) {
  .minecraft-launcher-panel {
    padding: 20px;
  }

  .minecraft-launcher h1 {
    font-size: 21px;
  }
}

.pvz-window {
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

.pvz-launcher-root,
.pvz-launcher {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.pvz-launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 24px;
  box-sizing: border-box;
  color: #f5f7fb;
  font-family: Tahoma, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(78, 204, 163, 0.2), transparent 38%),
    radial-gradient(circle at 90% 85%, rgba(69, 126, 219, 0.22), transparent 42%),
    #151b2b;
}

.pvz-launcher-panel {
  width: min(640px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-sizing: border-box;
  background: rgba(25, 33, 51, 0.88);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

.pvz-launcher-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.pvz-launcher-brand h1 {
  margin: 0 0 5px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.pvz-launcher-brand p {
  margin: 0;
  color: #aeb9c7;
  font-size: 13px;
}

.pvz-launcher-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border-radius: 15px;
  font-size: 31px;
  background: linear-gradient(145deg, #66d39f, #2e9270);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.pvz-mode-grid {
  display: grid;
  gap: 11px;
}

.pvz-mode-card {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 13px;
  padding: 13px;
  color: inherit;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.pvz-mode-card:hover,
.pvz-mode-card:focus-visible {
  border-color: rgba(102, 211, 159, 0.9);
  outline: none;
  background: rgba(102, 211, 159, 0.13);
  transform: translateY(-1px);
}

.pvz-mode-art {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  place-items: center;
  border-radius: 10px;
  font-size: 23px;
  font-weight: 700;
}

.pvz-mode-art-bootleg {
  color: #fff2b0;
  background: linear-gradient(145deg, #ba483b, #702934);
}

.pvz-mode-art-web {
  color: #0d382c;
  background: linear-gradient(145deg, #7be0af, #45b98e);
}

.pvz-mode-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.pvz-mode-copy strong {
  font-size: 14px;
}

.pvz-mode-copy small {
  color: #aeb9c7;
  font-size: 11px;
  line-height: 1.35;
}

.pvz-mode-arrow {
  color: #73d7ad;
  font-size: 26px;
  line-height: 1;
}

.pvz-launcher-footnote {
  margin: 19px 2px 0;
  color: #7f8b9c;
  font-size: 10px;
  line-height: 1.45;
}

.pvz-game-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #000;
}

.pvz-game-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

@media (max-width: 560px) {
  .pvz-launcher {
    padding: 14px;
  }

  .pvz-launcher-panel {
    padding: 20px;
  }

  .pvz-launcher-brand h1 {
    font-size: 19px;
  }
}

.vm-window {
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
}
.pinball-window {
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

/* Generic window-content for other windows */
.window-content {
  padding: 0px 3px 0px 3px;
  box-sizing: border-box;
  overflow: auto;
  flex: 1;
  width: calc(100% - 2px); 
  min-height: 0;
}

/* Taskbar styles */
.taskbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 30px;
  background: url('/taskbar.png') no-repeat center;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  z-index: 1000;
}
.start-button {
  width: 100px;
  height: 30px;
  margin-right: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('/start.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
  padding: 0;
  flex-shrink: 0;
  margin-left: 0;
}

.start-button:hover {
  background-image: url('/start highlight.png');
}

.start-button:active,
.start-button.active {
  background-image: url('/start pressed.png');
}

.start-button img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.start-button .start-text {
  display: none;
}
.taskbar-buttons {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 0px;
  overflow: hidden; 
  flex: 1; 
}
.taskbar-button {
  width: 180px; 
  min-width: 100px; 
  height: 40px;
  background: url('/taskbarbutton.png') no-repeat center;
  background-size: contain;
  border: none;
  outline: none !important;
  box-shadow: none !important;
  color: white;
  padding: 2px 5px;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 1; 
  display: flex;
  align-items: center;
  justify-content: flex-start;
  user-select: none;
  margin-right: 0;
  transition: width 0.2s ease; 
}
.taskbar-button:focus,
.taskbar-button:active {
  outline: none !important;
  box-shadow: none !important;
}
.taskbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0; 
}

/* Fullscreen toggle button styles */
#fullscreen-toggle {
  background: transparent;
  border: none;
  color: white;
  width: 30px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}
#fullscreen-toggle:hover {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}
#fullscreen-toggle:active {
  background: rgba(255,255,255,0.12);
}

/* Clock */
#clock {
  color: white;
  font-size: 12px;
  flex-shrink: 0;
}

/* Icon and Start Menu styles */
.icons {
  position: relative;
  height: calc(100% - 30px);
}
.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  cursor: move;
  width: 75px;
  height: 75px;
  position: absolute;
}
.icon img {
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
}
.icon.selected span {
  background: #316AC5;
  color: #fff;
  padding: 2px 4px;
  border-radius: 3px;
}
.start-menu {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 0;
  width: 400px;
  background-color: white; 
  border: 1px solid #0054E3;
  border-top-right-radius: 8px;
  /* Above the desktop assistant layers (css/assistant.css, 1500-1502) so an
     open Start menu is never covered by the character or its speech bubble;
     below notifications (2000) and context menus (3000). */
  z-index: 1600;
  overflow: hidden;
}

.start-menu-header {
  background: linear-gradient(to bottom, #0058E6 0%, #3A93FF 8%, #288CFF 40%, #127AFF 88%, #036FFC 100%);
  color: white;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.start-menu-header img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  border: 2px solid #aaa;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.start-menu-header span {
  font-size: 20px;
  font-weight: bold;
}

.start-menu-items {
  display: flex;
  flex-direction: row;
  height: calc(100% - 68px); 
  margin: 0;
  padding: 0;
}

.start-menu-column {
  margin: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.first-column {
  flex: 1;
  background-color: white;
}

.second-column {
  flex: 1;
  background-color: #d3e5fa;
  margin: 0;
  padding: 10px;
  height: auto;
  position: relative;
}

.second-column::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -1000px; 
  background-color: #d3e5fa;
  z-index: -1;
}

.start-menu-item {
  display: flex;
  align-items: center;
  padding: 5px;
  cursor: pointer;
  position: relative;
}

.start-menu-item:hover {
  background-color: #316AC5;
  color: white;
}

.start-menu-item img {
  margin-right: 10px;
}

/* Notification styles */
.notification {
  position: fixed;
  bottom: 40px;
  right: 20px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  z-index: 2000;
}

/* Context Menu styles */
.context-menu {
  position: absolute;
  background-color: white;
  border: 1px solid gray;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  z-index: 3000;
  min-width: 100px;
  padding: 2px 5px;
}
.context-menu-item {
  padding: 3px 8px;
  cursor: pointer;
  font-family: Tahoma, sans-serif;
  font-size: 13px;
}

.context-menu-item:hover {
  background-color: #316AC5;
  color: white;
}

/* Resize handle for resizable windows */
.resize-handle {
  position: absolute;
  width: 15px;
  height: 15px;
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
  background: linear-gradient(to bottom right,
    transparent 0%,
    transparent calc(50% - 1px),
    #808080 50%,
    #808080 calc(50% + 1px),
    transparent calc(50% + 2px),
    transparent 100%);
  opacity: 0.7;
}

/* Task Manager styles */
.task-manager-tab {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: none;
    text-align: inherit;
}

.task-manager-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Tahoma, sans-serif;
    font-size: 11px;
}

.task-manager-header {
    background-color: #ece9d8; 
    border-bottom: 1px solid #808080; 
}

.task-manager-header th {
    border: 1px solid #ece9d8; 
    border-right: 1px solid #c0c0c0; 
    border-bottom: 1px solid #808080; 
    padding: 2px 4px;
    font-weight: normal; 
}

.task-manager-header th:last-child {
    border-right: none; 
}

.task-manager-row {
    border: none; 
}

.task-manager-cell {
    border: none; 
    padding: 1px 4px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-manager-row.selected {
    background-color: #316AC5; 
    color: white;
}
.task-manager-row.selected .task-manager-cell {
    color: white; 
}

.task-manager-button {
    padding: 2px 12px; 
    font-family: Tahoma, sans-serif;
    font-size: 11px;
}

/* Resize edge styles */
.window .resize-edge {
  position: absolute; z-index: 5; /* above content */
}
.window .resize-edge.left:not(.corner),
.window .resize-edge.right:not(.corner) { width: 10px; top: -6px; bottom: -6px; }
.window .resize-edge.top:not(.corner),
.window .resize-edge.bottom:not(.corner) { height: 10px; left: -6px; right: -6px; }
.window .resize-edge.left { left: -6px; cursor: ew-resize; }
.window .resize-edge.right { right: -6px; cursor: ew-resize; }
.window .resize-edge.top { top: -6px; cursor: ns-resize; }
.window .resize-edge.bottom { bottom: -6px; cursor: ns-resize; }
.window .resize-edge.corner { width: 14px; height: 14px; z-index: 6; }
.window .resize-edge.top.left { top: -6px; left: -6px; right: auto; bottom: auto; cursor: nwse-resize; }
.window .resize-edge.top.right { top: -6px; right: -6px; left: auto; bottom: auto; cursor: nesw-resize; }
.window .resize-edge.bottom.left { bottom: -6px; left: -6px; right: auto; top: auto; cursor: nesw-resize; }
.window .resize-edge.bottom.right { bottom: -6px; right: -6px; left: auto; top: auto; cursor: nwse-resize; }

.file-explorer-item.selected {
  background: #316AC5;
  color: #fff;
  border-radius: 3px;
}

/* A window registered with `maximizable: false` (Minesweeper, as winmine.exe)
   renders its Maximize button disabled: the glyph goes pale on the blue
   button and hover no longer lights it. Wins over xp.css's enabled/hover
   rules by specificity, since this sheet loads before xp.css. */
.title-bar-controls button[aria-label="Maximize"]:disabled,
.title-bar-controls button[aria-label="Maximize"]:disabled:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%234f80f6'/%3E%3Cstop offset='1' stop-color='%231d4bd6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0.5' y='0.5' width='20' height='20' rx='3' fill='url(%23g)' stroke='%23fff'/%3E%3Cpath fill='%239fb6ec' d='M5 5h11v3H5z'/%3E%3Cpath fill='none' stroke='%239fb6ec' d='M5.5 5.5h10v10h-10z'/%3E%3C/svg%3E");
  cursor: default;
}
