@font-face {
  font-family: WinBitmap;
  src: url("./fonts/ms_sans_serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: WinBitmap;
  src: url("./fonts/ms_sans_serif_bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --face: #c0c0c0;
  --window: #fff;
  --text: #000;
  --title: #000080;
  --title-text: #fff;
  --selection: #000080;
  --selection-text: #fff;
  --desktop: #c0c0c0;
  --font-ui: WinBitmap, "MS Sans Serif", Arial, sans-serif;
  --font-system: WinBitmap, "MS Sans Serif", Arial, sans-serif;
  --font-size: 13px;
  --edge-light: #fff;
  --edge-shadow: #808080;
  --frame: #000;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body,
button,
input,
select,
textarea {
  font-family: var(--font-ui);
  font-size: var(--font-size);
  color: var(--text);
}
body {
  background: var(--desktop);
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}
button,
input,
select,
textarea {
  border-radius: 0;
}
button {
  touch-action: manipulation;
  cursor: default;
}
button:disabled {
  color: #808080;
  text-shadow: 1px 1px white;
}
a {
  color: #000080;
}
svg {
  display: block;
}
button:focus-visible {
  outline: 1px dotted black;
  outline-offset: -5px;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
}
input[type="text"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="time"],
textarea,
select {
  border: 1px solid #000;
  background: #fff;
  box-shadow: inset 1px 1px #808080;
  padding: 3px 5px;
  min-width: 0;
  user-select: text;
}
textarea {
  resize: none;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: #000;
  width: 13px;
  height: 13px;
  vertical-align: middle;
}
input[type="color"] {
  width: 50px;
  height: 25px;
  border: 1px solid #000;
  background: var(--face);
  padding: 2px;
}
input[type="range"] {
  accent-color: #808080;
}
#desktop {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--desktop);
  isolation: isolate;
}
#desktop-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
#boot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 100000;
  background: #a8a8a8;
}
.boot-window {
  background: #fff;
  border: 2px solid black;
  box-shadow: 6px 6px black;
  width: 370px;
  min-height: 220px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.boot-window strong {
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-style: italic;
}
.boot-window span {
  font-size: 20px;
}
.boot-rule {
  height: 2px;
  background: #000;
  width: 100%;
  margin: 15px 0;
}
.boot-window small {
  font-size: 14px;
}
.win-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--frame);
  padding: 3px;
  background: var(--face);
  box-shadow:
    inset 1px 1px var(--edge-light),
    inset -1px -1px var(--edge-shadow);
  min-width: 0;
  min-height: 0;
  overflow: visible;
  touch-action: none;
}
.win-window.maximized {
  border-width: 0;
  padding: 0;
  box-shadow: none;
}
.win-window.minimized {
  display: none;
}
.win-titlebar {
  height: 23px;
  min-height: 23px;
  display: flex;
  align-items: stretch;
  border: 1px solid #000;
  background: var(--window);
  color: #000;
  font-family: var(--font-system);
  font-weight: bold;
  overflow: hidden;
}
.win-window.active > .win-titlebar {
  background: var(--title);
  color: var(--title-text);
}
.win-caption {
  flex: 1;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 21px;
  padding: 0 6px;
  cursor: default;
}
.win-system-button,
.win-caption-button {
  position: relative;
  border: 0;
  border-left: 1px solid #000;
  background: var(--face);
  padding: 0;
  width: 23px;
  min-width: 23px;
  display: grid;
  place-items: center;
  box-shadow:
    inset 1px 1px #fff,
    inset -1px -1px #808080;
}
.win-system-button {
  border-left: 0;
  border-right: 1px solid #000;
}
.win-system-button:active,
.win-caption-button:active {
  box-shadow:
    inset 1px 1px #808080,
    inset -1px -1px #fff;
}
.system-mark {
  width: 13px;
  height: 5px;
  background: white;
  border: 1px solid #000;
  box-shadow: 0 1px #808080;
}
.caption-triangle {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
.caption-triangle.down {
  border-top: 7px solid #000;
}
.caption-triangle.up {
  border-bottom: 7px solid #000;
}
.caption-restore {
  width: 12px;
  height: 12px;
  position: relative;
}
.caption-restore:before,
.caption-restore:after {
  content: "";
  position: absolute;
  left: 1px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.caption-restore:before {
  top: 0;
  border-bottom: 5px solid black;
}
.caption-restore:after {
  bottom: 0;
  border-top: 5px solid black;
}
.win-menubar {
  display: flex;
  align-items: center;
  min-height: 25px;
  height: 25px;
  flex-shrink: 0;
  background: var(--window);
  border: 1px solid #000;
  border-top: 0;
  padding: 0 2px;
  gap: 0;
  position: relative;
  z-index: 5;
}
.win-menubar > button {
  height: 23px;
  padding: 2px 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-system);
  font-weight: bold;
  white-space: nowrap;
}
.win-menubar > button.open,
.win-menubar > button:active {
  background: var(--selection);
  color: var(--selection-text);
}
.win-menubar > button u {
  text-underline-offset: 2px;
}
.win-content {
  position: relative;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--face);
  border: 1px solid #000;
  border-top: 0;
  touch-action: auto;
  display: flex;
  flex-direction: column;
}
.win-window:not(:has(.win-menubar)) > .win-content {
  border-top: 1px solid #000;
  margin-top: -1px;
}
.win-window.maximized > .win-content {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}
.window-grip {
  position: absolute;
  z-index: 7;
  touch-action: none;
}
.window-grip.n {
  top: -1px;
  left: 8px;
  right: 8px;
  height: 5px;
  cursor: n-resize;
}
.window-grip.s {
  bottom: -1px;
  left: 8px;
  right: 8px;
  height: 5px;
  cursor: s-resize;
}
.window-grip.w {
  left: -1px;
  top: 8px;
  bottom: 8px;
  width: 5px;
  cursor: w-resize;
}
.window-grip.e {
  right: -1px;
  top: 8px;
  bottom: 8px;
  width: 5px;
  cursor: e-resize;
}
.window-grip.nw,
.window-grip.ne,
.window-grip.sw,
.window-grip.se {
  width: 11px;
  height: 11px;
}
.window-grip.nw {
  top: -1px;
  left: -1px;
  cursor: nw-resize;
}
.window-grip.ne {
  top: -1px;
  right: -1px;
  cursor: ne-resize;
}
.window-grip.sw {
  bottom: -1px;
  left: -1px;
  cursor: sw-resize;
}
.window-grip.se {
  bottom: -1px;
  right: -1px;
  cursor: se-resize;
}
.maximized > .window-grip {
  display: none;
}
.win-popup {
  position: fixed;
  min-width: 180px;
  max-height: calc(100vh - 12px);
  overflow-y: auto;
  z-index: 1000000;
  background: var(--window);
  border: 1px solid #000;
  box-shadow: 3px 3px #000;
  padding: 3px 0;
  font-family: var(--font-system);
  font-weight: bold;
}
.win-popup button {
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
  height: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 15px 2px 25px;
  position: relative;
  color: var(--text);
  font-family: inherit;
  font-weight: inherit;
  white-space: nowrap;
}
.win-popup button.hover,
.win-popup button:focus-visible {
  background: var(--selection);
  color: var(--selection-text);
  outline: 0;
}
.win-popup button:disabled {
  color: #808080;
  text-shadow: none;
}
.win-popup .menu-shortcut {
  margin-left: auto;
  padding-left: 25px;
}
.win-popup .menu-check {
  position: absolute;
  left: 8px;
}
.win-popup .menu-subarrow {
  margin-left: auto;
  font-size: 11px;
}
.menu-separator {
  height: 1px;
  background: #808080;
  margin: 4px 2px;
}
.win-button {
  min-width: 78px;
  min-height: 28px;
  padding: 3px 13px;
  background: var(--face);
  border: 1px solid black;
  box-shadow:
    inset 1px 1px white,
    inset 2px 2px #dfdfdf,
    inset -1px -1px #808080;
}
.win-button:active:not(:disabled) {
  box-shadow: inset 1px 1px #808080;
  padding: 4px 12px 2px 14px;
}
.win-button.default {
  outline: 1px solid black;
  outline-offset: 1px;
}
.sunken,
.inset,
.listbox {
  border: 1px solid black;
  box-shadow: inset 1px 1px #808080;
  background: var(--window);
}
.raised {
  border: 1px solid black;
  box-shadow:
    inset 1px 1px white,
    inset -1px -1px #808080;
  background: var(--face);
}
.field {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.field > span {
  min-width: 70px;
}
.win-input {
  min-height: 25px;
}
.win-select {
  min-height: 25px;
}
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  background: var(--face);
  border-bottom: 1px solid #808080;
}
.statusbar {
  min-height: 23px;
  border-top: 1px solid #808080;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background: var(--face);
}
.separator {
  height: 1px;
  background: #808080;
  border-bottom: 1px solid white;
  margin: 8px 0;
}
.dialog-body {
  padding: 18px;
  min-width: 0;
  overflow: auto;
}
.dialog-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 8px 15px 15px;
  flex-shrink: 0;
}
.dialog-window .win-content {
  border: 0;
  padding: 0;
}
.dialog-window .win-titlebar {
  border: 1px solid #000;
}
.dialog-window {
  padding: 4px;
}
.dialog-window .win-caption {
  font-weight: bold;
}
.dialog-message {
  display: flex;
  gap: 18px;
  padding: 25px 22px 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.dialog-message .app-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.dialog-message p {
  margin: 0;
}
.dialog-overlay {
  position: absolute;
  inset: 0;
  z-index: 100000;
  background: transparent;
}
.dialog-field {
  padding: 18px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dialog-field input {
  width: 100%;
}
.modal-blocker {
  position: absolute;
  inset: 0;
  z-index: 99999;
  background: transparent;
}
.win-window.modal {
  z-index: 100001 !important;
}
.app-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  image-rendering: pixelated;
}
.app-icon svg {
  width: 100%;
  height: 100%;
}
.program-workspace {
  background: var(--window);
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.program-workspace:focus {
  outline: 0;
}
.program-group .win-content {
  background: white;
  overflow: auto;
}
.group-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  align-content: start;
  gap: 9px 3px;
  padding: 17px 12px 12px;
  flex: 1;
  min-height: 100%;
  overflow: visible;
}
.program-item {
  border: 0;
  padding: 3px 1px 5px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
  min-height: 76px;
  cursor: default;
  text-align: center;
  font-family: var(--font-system);
  font-weight: bold;
  line-height: 16px;
  touch-action: manipulation;
}
.program-item .program-label {
  padding: 1px 3px;
  max-width: 100%;
  white-space: normal;
  line-height: 16px;
}
.program-item.selected .program-label {
  background: var(--selection);
  color: var(--selection-text);
}
.program-item:focus {
  outline: 0;
}
.program-item:focus-visible .program-label {
  outline: 1px dotted white;
  outline-offset: -2px;
  background: var(--selection);
  color: var(--selection-text);
}
.program-item.selected .app-icon {
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 128, 0.12));
}
.minimized-dock {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5000;
}
.minimized-icon {
  position: absolute;
  bottom: 8px;
  pointer-events: auto;
  width: 92px;
  min-height: 68px;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: var(--font-system);
  font-weight: bold;
}
.minimized-icon > span:last-child {
  background: var(--face);
  padding: 2px 4px;
  max-width: 130px;
  white-space: nowrap;
}
.minimized-icon.selected > span:last-child {
  background: var(--selection);
  color: white;
}
.group-minimized-icon > span:last-child {
  background: transparent;
  color: #000;
}
.group-minimized-icon.selected > span:last-child {
  background: var(--selection);
  color: white;
}
.program-status {
  background: var(--face);
  height: 24px;
  flex-shrink: 0;
  border-top: 1px solid #000;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 20px;
  font-size: 12px;
}
.program-status .spacer {
  flex: 1;
}
.group-scroll-pad {
  min-height: 100%;
  height: auto;
}
.program-help {
  padding: 20px;
  overflow: auto;
  background: white;
  line-height: 1.5;
  user-select: text;
}
.program-help h1 {
  font-size: 24px;
  margin: 0 0 16px;
  font-weight: bold;
}
.program-help h2 {
  font-size: 18px;
  margin: 22px 0 8px;
}
.program-help p {
  margin: 8px 0;
}
.program-help table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.program-help td,
.program-help th {
  border: 1px solid #aaa;
  text-align: left;
  padding: 6px;
}
.program-help code {
  font-family: monospace;
  font-size: 12px;
}
.about-logo {
  margin: 8px auto 16px;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}
.about-heading {
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-style: italic;
  font-weight: bold;
  margin: 2px 0 5px;
}
.about-copy {
  font-size: 13px;
  line-height: 1.5;
}
.about-footer {
  padding-top: 12px;
  border-top: 1px solid #808080;
  margin-top: 14px;
  font-size: 12px;
}
.run-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 19px 20px 8px;
}
.run-row input {
  flex: 1;
}
.file-picker {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  gap: 12px;
  min-height: 0;
}
.file-picker-path {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-picker-list {
  height: 220px;
  min-height: 100px;
  overflow: auto;
  padding: 2px;
  background: #fff;
  border: 1px solid #000;
}
.file-picker-entry {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 27px;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  padding: 2px 5px;
}
.file-picker-entry.selected {
  background: var(--selection);
  color: white;
}
.file-picker-entry .app-icon {
  width: 20px !important;
  height: 20px !important;
}
.file-picker-bottom {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  align-items: center;
}
.file-picker-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 0 16px 16px;
}
.task-list {
  height: 210px;
  margin: 16px;
  background: white;
  overflow: auto;
  border: 1px solid black;
}
.task-list button {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 5px;
}
.task-list button.selected {
  background: navy;
  color: white;
}
.shutdown {
  position: absolute;
  inset: 0;
  background: #000;
  color: #aaa;
  padding: 15px;
  font-family: monospace;
  white-space: pre-wrap;
  z-index: 1000002;
}
.shutdown button {
  background: transparent;
  color: #aaa;
  font-family: monospace;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.screensaver {
  position: absolute;
  inset: 0;
  z-index: 1000001;
  overflow: hidden;
  background: black;
  cursor: none;
}
.screensaver span {
  position: absolute;
  font: italic bold 40px Arial;
  color: #c0c0c0;
  animation: screensaver-move 17s linear infinite alternate;
  text-shadow: 2px 2px #000080;
}
@keyframes screensaver-move {
  0% {
    left: 5%;
    top: 5%;
    color: #0ff;
  }
  33% {
    left: 45%;
    top: 65%;
    color: #ff0;
  }
  66% {
    left: 20%;
    top: 30%;
    color: #f0f;
  }
  100% {
    left: 65%;
    top: 80%;
    color: #fff;
  }
}
::-webkit-scrollbar {
  width: 17px;
  height: 17px;
}
::-webkit-scrollbar-track {
  background: repeating-conic-gradient(#fff 0% 25%, #c0c0c0 0% 50%) 50%/2px 2px;
  border-left: 1px solid #000;
}
::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border: 1px solid #000;
  box-shadow:
    inset 1px 1px #fff,
    inset -1px -1px #808080;
}
::-webkit-scrollbar-button {
  display: block;
  background: #c0c0c0;
  border: 1px solid #000;
  box-shadow: inset 1px 1px white;
  width: 17px;
  height: 17px;
}
::-webkit-scrollbar-corner {
  background: #c0c0c0;
}
@media (max-width: 700px) {
  :root {
    --font-size: 13px;
  }
  .win-titlebar {
    height: 25px;
    min-height: 25px;
  }
  .win-caption {
    line-height: 23px;
  }
  .win-system-button,
  .win-caption-button {
    width: 26px;
    min-width: 26px;
  }
  .win-menubar > button {
    padding: 2px 7px;
  }
  .group-icons {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    padding: 12px 7px;
  }
  .program-item {
    min-height: 76px;
  }
  .win-window {
    max-width: 100vw;
  }
  .dialog-message {
    padding: 18px 14px;
    gap: 12px;
  }
  .program-status {
    font-size: 11px;
    gap: 8px;
  }
  .program-status .display-detail {
    display: none;
  }
}

.program-item,
.minimized-icon {
  font-family: WinBitmap, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
}
.program-item .program-label {
  line-height: 14px;
}
.dialog-window .win-content {
  background: var(--window);
}
.help-layout {
  display: flex;
  height: 100%;
  min-height: 0;
  background: white;
}
.help-sidebar {
  display: flex;
  flex-direction: column;
  width: 192px;
  min-width: 145px;
  border-right: 1px solid #000;
  padding: 8px;
  gap: 8px;
  background: var(--face);
}
.help-sidebar input {
  width: 100%;
}
.help-topics {
  flex: 1;
  overflow: auto;
  border: 1px solid #000;
  background: #fff;
}
.help-topics button {
  display: block;
  width: 100%;
  padding: 7px 6px;
  text-align: left;
  border: 0;
  background: white;
  font-size: 12px;
}
.help-topics button.selected {
  background: var(--selection);
  color: white;
}
.help-layout > .program-help {
  flex: 1;
  min-width: 0;
}
.tutorial-page {
  background: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 26px 12px;
  text-align: center;
  overflow: auto;
}
.tutorial-page h1 {
  font-size: 22px;
  margin: 12px 0;
}
.tutorial-page p {
  max-width: 420px;
  line-height: 1.6;
}
.tutorial-practice {
  flex: 1;
  padding: 12px;
}
.sysedit-editor {
  flex: 1;
  min-height: 0;
  border: 0;
  box-shadow: none;
  font:
    14px/1.4 "Courier New",
    monospace;
  padding: 8px;
}
.diagnostics-log {
  flex: 1;
  margin: 0;
  padding: 14px;
  overflow: auto;
  background: white;
  user-select: text;
  font: 12px/1.5 monospace;
}
.program-group .win-content {
  touch-action: pan-y;
}
.program-workspace > .win-window {
  max-width: 100%;
}
