html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: #dfdfdf; }
::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  box-shadow: inset -1px -1px #000, inset 1px 1px #fff,
              inset -2px -2px #808080, inset 2px 2px #dfdfdf;
}

#desktop {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #008080;
  font-family: Tahoma, 'MS Sans Serif', Geneva, Verdana, sans-serif;
  font-size: 13px;
  color: #000;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

/* ── Windows ── */
.window {
  position: absolute;
  background: #c0c0c0;
  box-shadow: inset -1px -1px #000, inset 1px 1px #fff,
              inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  padding: 3px;
  display: none;
}

.title-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 3px 0 4px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  cursor: default;
}

.title-bar.inactive {
  background: linear-gradient(90deg, #7a7a7a, #b0b0b0);
}

.close-btn {
  width: 18px;
  height: 16px;
  flex: none;
  background: #c0c0c0;
  box-shadow: inset -1px -1px #000, inset 1px 1px #fff,
              inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #000;
  font-weight: bold;
  font-family: Tahoma, sans-serif;
  cursor: default;
}

.close-btn:active {
  box-shadow: inset -1px -1px #fff, inset 1px 1px #000,
              inset -2px -2px #dfdfdf, inset 2px 2px #808080;
}

.menu-bar {
  display: flex;
  gap: 14px;
  height: 18px;
  align-items: center;
  padding: 2px 6px;
  font-size: 12px;
}

/* ── Controls ── */
.w95btn {
  height: 26px;
  padding: 0 14px;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  background: #c0c0c0;
  border: none;
  cursor: default;
  box-shadow: inset -1px -1px #000, inset 1px 1px #fff,
              inset -2px -2px #808080, inset 2px 2px #dfdfdf;
}

.w95btn:active {
  box-shadow: inset -1px -1px #fff, inset 1px 1px #000,
              inset -2px -2px #dfdfdf, inset 2px 2px #808080;
}

.field {
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  background: #fff;
  border: none;
  box-shadow: inset -1px -1px #fff, inset 1px 1px #808080,
              inset -2px -2px #dfdfdf, inset 2px 2px #000;
  padding: 0 5px;
}

.field:focus { outline: none; }

/* ── Desktop icons ── */
.icon-label {
  color: #fff;
  font-size: 12px;
  text-align: center;
  line-height: 1.15;
  text-shadow: 1px 1px #003c3c;
  padding: 1px 3px;
}

.dicon {
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: default;
}

/* ── Solutions list ── */
.list-row {
  display: grid;
  grid-template-columns: 150px 1fr 110px;
  font-size: 12px;
  border-bottom: 1px solid #eee;
  cursor: default;
}

.list-row:hover { background: #000080 !important; }
.list-row:hover * { color: #fff !important; }

/* ── Social tiles ── */
.social-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  text-decoration: none;
  color: #000;
  background: #c0c0c0;
  box-shadow: inset -1px -1px #000, inset 1px 1px #fff,
              inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  cursor: default;
}

.social-tile:hover { background: #000080 !important; color: #fff !important; }

/* ── Start menu items ── */
.start-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  font-size: 13px;
  cursor: default;
}

.start-item:hover { background: #000080 !important; color: #fff !important; }

/* ── Mobile (≤760px) ── */
@media (max-width: 760px) {
  [data-win] {
    left: 5px !important;
    top: 5px !important;
    right: 5px !important;
    bottom: 42px;
    width: auto !important;
  }

  [data-win] > div {
    width: auto !important;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  [data-dialog] {
    width: auto;
    max-width: 92vw;
  }

  [data-task-btn] {
    min-width: 0 !important;
  }
}
