html, body {
  margin: 0;
  height: 100%;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  overflow: hidden;
  background-color: #021433;
  background-image:
    repeating-conic-gradient(from 12deg at 74% 46%,
      #021028 0 7deg,
      #0a3f86 7deg 11deg,
      #7ec8ff 11deg 12deg,
      #021028 12deg 18deg);
}

button, input, textarea { font: inherit; }

#desk { position: absolute; inset: 0 0 34px 0; }

#oslabel {
  position: absolute;
  right: 16px;
  bottom: 10px;
  color: #d6ecff;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: right;
  text-shadow: 1px 1px 0 #001;
  pointer-events: none;
}

#build {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.14em;
  color: #9ec4e8;
}

.icon {
  position: absolute;
  width: 84px;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 0 #001;
  cursor: default;
}

.icon .glyph {
  width: 32px;
  height: 32px;
  margin: 0 auto 4px;
}

.icon span {
  display: inline-block;
  padding: 1px 3px;
}

.icon.selected span {
  background: #d8d8d8;
  color: #000;
  text-shadow: none;
}

#bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: #c8c8c8;
  border-top: 2px solid #fff;
  box-shadow: inset 0 -1px 0 #404040;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  box-sizing: border-box;
}

#start {
  height: 26px;
  font-weight: bold;
  padding: 0 10px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: linear-gradient(#efefef, #b0b0b0);
}

#start:active { border-color: #404040 #fff #fff #404040; }

#tasks { display: flex; gap: 3px; flex: 1; min-width: 0; overflow: hidden; }

.task {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  height: 24px;
  padding: 0 8px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #d0d0d0;
}

.task.on {
  border-color: #404040 #fff #fff #404040;
  background: #bdbdbd;
}

#clock {
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 3px 8px;
  min-width: 72px;
  text-align: center;
  background: #d8d8d8;
}

#menu {
  display: none;
  position: absolute;
  left: 2px;
  bottom: 36px;
  width: 200px;
  background: #d4d4d4;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  z-index: 50;
  padding: 2px;
}

#menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 5px 8px;
}

#menu button:hover, #menu button:focus { background: #000080; color: #fff; }

.window {
  position: absolute;
  min-width: 280px;
  min-height: 180px;
  background: #d4d4d4;
  border: 2px solid #000;
  outline: 1px solid #fff;
  outline-offset: -3px;
  box-shadow: 2px 2px 0 #000;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.window .title {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  margin: 4px 4px 0;
  padding: 0 3px;
  background: linear-gradient(90deg, #000070, #2080d8 55%, #78c0ff);
  color: #fff;
  font-weight: bold;
  cursor: default;
}

.window .title::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: linear-gradient(#cfe8ff, #104080);
  border: 1px solid #fff;
  border-right-color: #001;
  border-bottom-color: #001;
}

.window .title .grow { flex: 1; overflow: hidden; white-space: nowrap; }

.window .title button {
  width: 16px;
  height: 14px;
  padding: 0;
  line-height: 12px;
  background: #d4d4d4;
  color: #000;
  border: 1px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
}

.body {
  flex: 1;
  margin: 4px;
  overflow: auto;
  background: #fff;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 6px;
  min-height: 0;
}

.split { display: flex; height: 100%; min-height: 240px; }
.tree {
  width: 42%;
  min-width: 140px;
  overflow: auto;
  border-right: 2px solid #808080;
  background: #fff;
}
.detail { flex: 1; overflow: auto; padding: 0; background: #fff; min-width: 0; }
.tree button, .pages button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 2px 4px;
}
.tree button.on, .pages button.on { background: #000080; color: #fff; }
.tree .sub { padding-left: 12px; }
.note { color: #333; margin: 8px; }
h1 { font-size: 14px; margin: 8px 8px 6px; }

.stage { overflow: auto; background: #808080; }
.board { position: relative; transform-origin: top left; background: #fff; }
.shape { position: absolute; box-sizing: border-box; }
.readerbar, .jumps { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; padding: 4px; background: #d4d4d4; }
.readerbar b { margin-left: 6px; }
.jumps button, .readerbar button, .editor button {
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #d4d4d4;
  color: #000;
}
.editor { display: flex; height: 100%; min-height: 280px; }
.editor .side, .editor .props { width: 26%; overflow: auto; background: #fff; }
.editor .mid { flex: 1; min-width: 0; overflow: auto; background: #808080; }
.editor label { display: block; margin: 6px 4px 2px; }
.editor textarea, .editor input { width: calc(100% - 12px); margin: 0 4px 4px; box-sizing: border-box; }
.repos { padding: 8px 12px 16px; background: #f4f1ea; color: #1a1a1a; }
.repos h2 { font-size: 15px; margin: 16px 0 6px; border-bottom: 1px solid #1a1a1a; }
.repos a { display: block; margin: 8px 0; color: #000080; text-decoration: none; }
.repos a:hover { text-decoration: underline; }
.repos .about { color: #1a1a1a; }
.repos .meta { color: #444; font-size: 11px; }
iframe.full { border: 0; width: 100%; height: 100%; min-height: 0; flex: 1; background: #f4f1ea; display: block; }

@media (max-width: 700px) {
  .window {
    left: 2px !important;
    top: 2px !important;
    width: calc(100vw - 4px) !important;
    height: calc(100% - 4px) !important;
  }
  .split, .editor { flex-direction: column; }
  .tree, .editor .side, .editor .props { width: auto; max-height: 32%; border-right: 0; border-bottom: 2px solid #808080; }
}

.icon span {
  display: block;
  text-align: center;
  white-space: nowrap;
}
