/* Roberto Win11React V21 — visible desktop application grid + native TerminalHub */
.desktop {
  isolation: isolate;
}

.desktopCont {
  position: absolute !important;
  inset: 10px 10px 8px 10px !important;
  width: auto !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: none !important;
  grid-template-rows: repeat(auto-fill, minmax(86px, 86px)) !important;
  grid-auto-flow: column !important;
  grid-auto-columns: 82px !important;
  align-content: start !important;
  justify-content: start !important;
  gap: 4px 3px !important;
  padding: 2px 6px 8px 2px !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
  z-index: 2;
}

.desktopCont::-webkit-scrollbar {
  height: 7px;
}

.desktopCont::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.desktopCont .dskApp {
  width: 78px !important;
  height: 84px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 4px 2px !important;
  border-radius: 8px !important;
  justify-content: flex-start !important;
  cursor: default;
  outline: none;
}

.desktopCont .dskApp:hover {
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.desktopCont .dskApp:focus {
  background: rgba(40, 117, 204, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
}

.desktopCont .dskApp .dskIcon {
  width: 48px !important;
  min-height: 48px !important;
  display: grid;
  place-items: center;
}

.desktopCont .dskApp .dskIcon img {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
}

.desktopCont .dskApp .appName {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 2.35em;
  margin-top: 3px !important;
  padding: 0 2px !important;
  color: #fff !important;
  font-size: 11px !important;
  line-height: 1.12 !important;
  text-align: center !important;
  text-shadow: 0 1px 4px #000, 0 1px 7px rgba(0, 0, 0, 0.85) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  overflow-wrap: anywhere;
}

/* Ensure local iframe applications occupy the window correctly. */
.floatTab .windowScreen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b1220;
}

@media (max-width: 700px) {
  .desktopCont {
    inset: max(7px, env(safe-area-inset-top)) max(5px, env(safe-area-inset-right)) 7px max(5px, env(safe-area-inset-left)) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;
    grid-auto-columns: initial !important;
    grid-auto-rows: 88px !important;
    gap: 4px 3px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  .desktopCont .dskApp {
    width: 100% !important;
    height: 86px !important;
  }

  .desktopCont .dskApp .dskIcon img {
    width: 40px !important;
    height: 40px !important;
  }

  .desktopCont .dskApp .appName {
    font-size: 10px !important;
  }
}

@media (min-width: 701px) and (max-height: 650px) {
  .desktopCont {
    grid-template-rows: repeat(auto-fill, minmax(78px, 78px)) !important;
    grid-auto-columns: 78px !important;
  }

  .desktopCont .dskApp {
    width: 74px !important;
    height: 76px !important;
  }

  .desktopCont .dskApp .dskIcon,
  .desktopCont .dskApp .dskIcon img {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }
}

/* V22 keeps removed legacy apps out of the desktop and keeps native dialogs above all windows. */
.aboutApp{isolation:isolate}
