:root {
  color-scheme: light;
  --desktop: #008080;
  --win-bg: #c0c0c0;
  --win-light: #ffffff;
  --win-mid: #dfdfdf;
  --win-shadow: #808080;
  --win-dark: #404040;
  --title-start: #000080;
  --title-end: #1084d0;
  --text: #111111;
  --danger: #b00020;
  --ok: #007a2f;
  --amber: #a65f00;
  --reward: #007078;
  --folder: #ffd84d;
  --folder-shadow: #b08000;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background-color: #003048;
  background-image: url("./assets/bg.gif");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

button,
input,
select {
  color: var(--text);
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.desktop {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 20px 20px 64px;
}

.desktop-icons {
  position: absolute;
  top: 22px;
  left: 18px;
  z-index: 1;
  display: grid;
  gap: 20px;
  width: 92px;
}

.desktop-icon {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 86px;
  padding: 4px;
  border: 1px dotted transparent;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  text-shadow: 1px 1px #003030;
}

.desktop-icon:focus,
.desktop-icon:hover {
  border-color: #ffffff;
  background: rgba(0, 0, 128, 0.28);
  outline: none;
}

.pixel-icon,
.mini-icon,
.button-icon {
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
}

.pixel-icon {
  width: 46px;
  height: 46px;
  image-rendering: pixelated;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.55));
}

.pixel-icon::before,
.pixel-icon::after,
.mini-icon::before,
.mini-icon::after,
.button-icon::before,
.button-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.pixel-icon.icon-hook {
  border: 2px solid #204bb5;
  background: #4773db url("./assets/loyalty-antiflip-icon.png") center / 100% 100% no-repeat;
  box-shadow: inset -3px -3px #234da8, inset 3px 3px #82a1f0, 2px 2px 0 rgba(0, 0, 0, 0.45);
}

.pixel-icon.icon-hook::before,
.pixel-icon.icon-hook::after {
  display: none;
}

.pixel-icon.icon-wallet {
  border: 0;
  background:
    linear-gradient(#fff176, #fff176) 12px 5px / 20px 7px no-repeat,
    linear-gradient(#dca100, #dca100) 6px 11px / 34px 27px no-repeat,
    linear-gradient(#ffe66d, #ffe66d) 8px 13px / 29px 20px no-repeat,
    linear-gradient(#0052bd, #0052bd) 13px 22px / 22px 12px no-repeat,
    linear-gradient(#00a651, #00a651) 17px 18px / 10px 10px no-repeat,
    linear-gradient(#e60012, #e60012) 29px 17px / 8px 13px no-repeat;
}

.pixel-icon.icon-wallet::before {
  left: 4px;
  bottom: 6px;
  width: 36px;
  height: 6px;
  background: #0040a0;
  transform: skewX(-22deg);
}

.pixel-icon.icon-wallet::after {
  right: 3px;
  top: 14px;
  width: 8px;
  height: 24px;
  background: #805400;
  transform: skewY(24deg);
}

.pixel-icon.icon-verify {
  border: 0;
  background:
    linear-gradient(#ffffff, #ffffff) 8px 7px / 29px 32px no-repeat,
    linear-gradient(#808080, #808080) 10px 9px / 29px 32px no-repeat,
    repeating-linear-gradient(to bottom, #0052bd 0 2px, transparent 2px 6px) 14px 17px / 16px 13px no-repeat,
    linear-gradient(#00a651, #00a651) 28px 25px / 12px 9px no-repeat,
    linear-gradient(#111111, #111111) 31px 29px / 6px 2px no-repeat,
    linear-gradient(#111111, #111111) 33px 25px / 2px 8px no-repeat;
}

.pixel-icon.icon-verify::before {
  left: 18px;
  top: 5px;
  width: 12px;
  height: 7px;
  background: #ffd84d;
  border: 2px solid #111111;
  border-bottom: 0;
}

.pixel-icon.icon-verify::after {
  left: 27px;
  top: 27px;
  width: 9px;
  height: 5px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(-45deg);
}

.pixel-icon.icon-log {
  border: 0;
  background:
    linear-gradient(135deg, transparent 0 72%, #b7c8ff 73%) 29px 4px / 11px 11px no-repeat,
    repeating-linear-gradient(to bottom, #2040c0 0 2px, transparent 2px 5px) 11px 13px / 20px 21px no-repeat,
    linear-gradient(#ffffff, #ffffff) 6px 4px / 33px 36px no-repeat,
    linear-gradient(#808080, #808080) 8px 6px / 33px 36px no-repeat;
}

.pixel-icon.icon-log::before {
  left: 24px;
  top: 22px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #1842c8;
}

.pixel-icon.icon-log::after {
  left: 32px;
  top: 34px;
  width: 11px;
  height: 4px;
  background: #1842c8;
  transform: rotate(45deg);
}

.pixel-icon.icon-docs {
  border: 0;
  background:
    linear-gradient(#20b2aa, #20b2aa) 5px 7px / 32px 28px no-repeat,
    linear-gradient(#ffffff, #ffffff) 10px 5px / 30px 30px no-repeat,
    repeating-linear-gradient(to bottom, #008080 0 1px, transparent 1px 5px) 15px 12px / 17px 17px no-repeat,
    linear-gradient(#404040, #404040) 8px 8px / 32px 30px no-repeat;
}

.pixel-icon.icon-docs::before {
  left: 6px;
  top: 10px;
  width: 7px;
  height: 28px;
  background:
    linear-gradient(#ff3030, #ff3030) 0 0 / 100% 33% no-repeat,
    linear-gradient(#ffd100, #ffd100) 0 50% / 100% 33% no-repeat,
    linear-gradient(#0059d8, #0059d8) 0 100% / 100% 33% no-repeat;
}

.pixel-icon.icon-docs::after {
  right: 4px;
  bottom: 4px;
  width: 8px;
  height: 27px;
  background: #808080;
  transform: skewY(18deg);
}

.pixel-icon.icon-twitter {
  border: 1px solid #111111;
  background: #1d9bf0;
}

.pixel-icon.icon-twitter::before {
  left: 10px;
  top: 14px;
  width: 24px;
  height: 16px;
  background: #ffffff;
  clip-path: polygon(0 40%, 35% 55%, 30% 0, 55% 35%, 100% 10%, 70% 55%, 100% 80%, 55% 70%, 40% 100%, 38% 68%);
}

.mini-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border: 1px solid #111111;
  background: #ffffff;
}

.mini-icon.icon-hook {
  background: #4773db url("./assets/loyalty-antiflip-icon.png") center / cover no-repeat;
}

.mini-icon.icon-wallet {
  background:
    linear-gradient(#ffd84d, #ffd84d) 2px 3px / 10px 8px no-repeat,
    linear-gradient(#0052bd, #0052bd) 4px 7px / 8px 5px no-repeat,
    #c08000;
}

.mini-icon.icon-log {
  background:
    repeating-linear-gradient(to bottom, #111111 0 1px, transparent 1px 3px) 4px 4px / 8px 8px no-repeat,
    #ffffff;
}

.mini-icon.icon-docs {
  background:
    repeating-linear-gradient(to bottom, #008080 0 1px, transparent 1px 3px) 5px 4px / 6px 8px no-repeat,
    linear-gradient(#20b2aa, #20b2aa) 2px 3px / 3px 10px no-repeat,
    #ffffff;
}

.mini-icon.icon-twitter {
  background: #1d9bf0;
}

.mini-icon.icon-verify {
  background:
    linear-gradient(#00a651, #00a651) 7px 7px / 5px 4px no-repeat,
    linear-gradient(#0052bd, #0052bd) 3px 5px / 5px 1px no-repeat,
    linear-gradient(#0052bd, #0052bd) 3px 8px / 4px 1px no-repeat,
    #ffffff;
}

.system-hud {
  position: absolute;
  left: 122px;
  top: 20px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(116px, 0.6fr));
  gap: 8px;
  width: min(780px, calc(100vw - 160px));
  padding: 7px;
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-dark);
  border-bottom: 2px solid var(--win-dark);
  background: var(--win-bg);
  box-shadow: 2px 2px 0 #000000;
}

.hud-brand,
.hud-tile {
  min-width: 0;
  padding: 6px;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  background: #ffffff;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-brand img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
}

.hud-brand strong,
.hud-tile strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
}

.hud-brand span,
.hud-tile span {
  display: block;
  color: #404040;
  font-size: 11px;
}

.window {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: min(760px, calc(100vw - 150px));
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-dark);
  border-bottom: 2px solid var(--win-dark);
  background: var(--win-bg);
  box-shadow: 2px 2px 0 #000000;
}

.window.active {
  z-index: 6;
}

.window.minimized,
.window.closed {
  display: none;
}

.window.maximized {
  position: fixed;
  left: 8px !important;
  top: 8px !important;
  width: calc(100vw - 16px) !important;
  height: calc(100vh - 58px);
  z-index: 10;
}

.window.maximized .window-body {
  max-height: calc(100vh - 122px);
  overflow: auto;
}

.window.maximized .event-log,
.window.maximized .console-output,
.window.maximized .docs-panel {
  max-height: calc(100vh - 150px);
}

.main-window {
  width: min(780px, calc(100vw - 160px));
  max-height: calc(100vh - 138px);
  display: flex;
  flex-direction: column;
}

.main-window .window-body {
  max-height: calc(100vh - 204px);
  overflow: auto;
}

.wallet-window {
  width: min(580px, calc(100vw - 160px));
}

.log-window,
.console-window {
  width: min(540px, calc(100vw - 160px));
}

.docs-window {
  width: min(500px, calc(100vw - 160px));
}

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  padding: 3px 3px 3px 7px;
  background: linear-gradient(90deg, var(--title-start), var(--title-end));
  color: #ffffff;
  font-weight: 700;
  user-select: none;
  cursor: move;
}

.titlebar-label {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.window-buttons {
  display: flex;
  gap: 2px;
}

.window-control {
  position: relative;
  width: 18px;
  height: 16px;
  padding: 0;
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  background: var(--win-bg);
}

.window-control:active {
  border-top-color: #000000;
  border-left-color: #000000;
  border-right-color: var(--win-light);
  border-bottom-color: var(--win-light);
}

.window-control:focus {
  outline: 1px dotted #111111;
  outline-offset: -3px;
}

.window-control::before {
  content: "";
  position: absolute;
  display: block;
}

.window-control.minimize::before {
  left: 4px;
  bottom: 3px;
  width: 8px;
  height: 2px;
  background: #111111;
}

.window-control.maximize::before {
  left: 4px;
  top: 3px;
  width: 8px;
  height: 7px;
  border: 1px solid #111111;
  border-top-width: 2px;
  background: transparent;
}

.window.maximized .window-control.maximize::before {
  left: 6px;
  top: 2px;
  width: 7px;
  height: 6px;
  box-shadow: -3px 3px 0 -1px var(--win-bg), -3px 3px 0 0 #111111;
}

.window-control.close::before {
  left: 4px;
  top: 3px;
  width: 9px;
  height: 9px;
  background:
    linear-gradient(45deg, transparent 0 45%, #111111 46% 55%, transparent 56%),
    linear-gradient(-45deg, transparent 0 45%, #111111 46% 55%, transparent 56%);
}

.menubar {
  display: flex;
  gap: 4px;
  padding: 2px 6px;
  border-bottom: 1px solid var(--win-shadow);
}

.menu {
  position: relative;
}

.menubar button,
.menubar a {
  padding: 3px 8px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font: inherit;
}

.menubar button:hover,
.menubar button:focus,
.menubar a:hover,
.menubar a:focus {
  border-top-color: var(--win-light);
  border-left-color: var(--win-light);
  border-right-color: var(--win-dark);
  border-bottom-color: var(--win-dark);
  outline: none;
}

.menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 8;
  display: grid;
  min-width: 168px;
  padding: 2px;
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-dark);
  border-bottom: 2px solid var(--win-dark);
  background: var(--win-bg);
}

.menu-dropdown[hidden] {
  display: none;
}

.menu-dropdown button,
.menu-dropdown a {
  display: block;
  width: 100%;
  padding: 4px 10px;
  text-align: left;
}

.menu-dropdown button:hover,
.menu-dropdown a:hover {
  background: #000080;
  color: #ffffff;
}

.window-body {
  padding: 10px;
}

.control-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
}

.group-box {
  position: relative;
  min-width: 0;
  padding: 18px 10px 10px;
  border-top: 2px solid var(--win-shadow);
  border-left: 2px solid var(--win-shadow);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  background: var(--win-bg);
}

.group-box h2 {
  position: absolute;
  top: -9px;
  left: 8px;
  margin: 0;
  padding: 0 5px;
  background: var(--win-bg);
  font-size: 13px;
  font-weight: 700;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.status-grid div {
  min-height: 44px;
  padding: 6px;
  border-top: 1px solid var(--win-shadow);
  border-left: 1px solid var(--win-shadow);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  background: #ffffff;
}

.status-grid dt {
  margin: 0 0 4px;
  color: #303030;
  font-size: 11px;
}

.status-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.terminal-panel {
  min-height: 208px;
}

.control-form {
  display: grid;
  gap: 9px;
}

.control-form label {
  display: grid;
  gap: 4px;
  font-weight: 700;
}

select,
input {
  width: 100%;
  min-height: 28px;
  padding: 3px 6px;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  background: #ffffff;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.retro-button,
.task-button,
.start-button {
  min-height: 30px;
  padding: 5px 8px;
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-dark);
  border-bottom: 2px solid var(--win-dark);
  background: var(--win-bg);
  text-align: left;
}

.retro-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-weight: 700;
}

.retro-button:active,
.task-button.pressed,
.start-button:active {
  border-top-color: var(--win-dark);
  border-left-color: var(--win-dark);
  border-right-color: var(--win-light);
  border-bottom-color: var(--win-light);
  transform: translate(1px, 1px);
}

.retro-button:focus,
.task-button:focus,
.start-button:focus {
  outline: 1px dotted #111111;
  outline-offset: -5px;
}

.button-icon {
  width: 14px;
  height: 14px;
  border: 1px solid #111111;
  background: #ffffff;
}

.plus-icon::before,
.plus-icon::after,
.minus-icon::before,
.folder-icon::before,
.folder-icon::after,
.search-icon::before,
.search-icon::after,
.plug-icon::before,
.plug-icon::after,
.bolt-icon::before,
.clock-icon::before,
.run-icon::before,
.reset-icon::before,
.reset-icon::after {
  background: #111111;
}

.plus-icon::before {
  left: 2px;
  top: 6px;
  width: 8px;
  height: 2px;
}

.plus-icon::after {
  left: 5px;
  top: 3px;
  width: 2px;
  height: 8px;
}

.minus-icon::before {
  left: 2px;
  top: 6px;
  width: 8px;
  height: 2px;
}

.folder-icon {
  background: #ffe67a;
}

.folder-icon::before {
  left: 1px;
  top: 4px;
  width: 10px;
  height: 7px;
  background: #ffe67a;
  border: 1px solid #111111;
}

.folder-icon::after {
  left: 2px;
  top: 2px;
  width: 5px;
  height: 3px;
  background: #ffe67a;
  border: 1px solid #111111;
  border-bottom: 0;
}

.search-icon::before {
  left: 2px;
  top: 2px;
  width: 7px;
  height: 7px;
  border: 2px solid #111111;
  border-radius: 50%;
  background: transparent;
}

.search-icon::after {
  left: 9px;
  top: 10px;
  width: 5px;
  height: 2px;
  background: #111111;
  transform: rotate(45deg);
}

.plug-icon {
  background: #c9f4cf;
}

.plug-icon::before {
  left: 3px;
  top: 2px;
  width: 7px;
  height: 8px;
  border: 2px solid #111111;
  border-top: 0;
  background: transparent;
}

.plug-icon::after {
  left: 5px;
  top: 1px;
  width: 5px;
  height: 5px;
  border-left: 2px solid #111111;
  border-right: 2px solid #111111;
  background: transparent;
}

.bolt-icon {
  background: #ffd96a;
}

.bolt-icon::before {
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  clip-path: polygon(38% 0, 100% 0, 64% 42%, 100% 42%, 22% 100%, 48% 54%, 0 54%);
}

.clock-icon {
  border-radius: 50%;
}

.clock-icon::before {
  left: 6px;
  top: 3px;
  width: 1px;
  height: 5px;
}

.clock-icon::after {
  left: 6px;
  top: 7px;
  width: 4px;
  height: 1px;
  background: #111111;
}

.run-icon::before {
  left: 4px;
  top: 2px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #111111;
  background: transparent;
}

.reset-icon::before {
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  border: 2px solid #111111;
  border-right-color: transparent;
  border-radius: 50%;
  background: transparent;
}

.reset-icon::after {
  right: 1px;
  top: 2px;
  width: 0;
  height: 0;
  border-left: 4px solid #111111;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  background: transparent;
}

.monitor-panel {
  display: grid;
  gap: 9px;
}

.verifier-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
}

.trust-message,
.lookup-status {
  margin: 0;
  padding: 7px 8px;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  background: #ffffff;
  line-height: 1.35;
}

.trust-message {
  font-weight: 700;
}

.lookup-status {
  min-height: 30px;
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.lookup-status.ok {
  color: var(--ok);
}

.lookup-status.danger {
  color: var(--danger);
}

.lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 8px;
  align-items: end;
}

.lookup-form label {
  display: grid;
  gap: 4px;
  font-weight: 700;
}

.lookup-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lookup-results {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.lookup-results div {
  min-height: 42px;
  padding: 5px;
  border-top: 1px solid var(--win-shadow);
  border-left: 1px solid var(--win-shadow);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  background: #ffffff;
}

.lookup-results dt {
  margin: 0 0 4px;
  color: #303030;
  font-size: 10px;
}

.lookup-results dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
  font-size: 11px;
}

.meter-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 23px;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px dotted #808080;
}

.meter-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.progress-frame {
  height: 26px;
  padding: 3px;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  background: #ffffff;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(255, 255, 255, 0.25) 8px 10px),
    var(--ok);
  transition: width 120ms linear, background-color 120ms linear;
}

.flow-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.flow-diagram {
  display: grid;
  grid-template-columns: 1fr 42px 1fr 42px 1fr;
  gap: 8px;
  align-items: center;
}

.flow-node {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 6px;
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-dark);
  border-bottom: 2px solid var(--win-dark);
  background: #ffffff;
  font-weight: 700;
  text-align: center;
}

.flow-arrow {
  position: relative;
  height: 10px;
  background: #111111;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -6px;
  width: 0;
  height: 0;
  border-left: 14px solid #111111;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.system-note,
.prediction-box {
  min-height: 31px;
  margin: 0;
  padding: 7px 8px;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  background: #ffffff;
  overflow-wrap: anywhere;
}

.prediction-box {
  min-height: 108px;
  background: #000000;
  color: #c0c0c0;
  font-family: "Courier New", monospace;
  font-size: 12px;
  white-space: pre-wrap;
}

.table-frame,
.event-log {
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  background: #ffffff;
}

.table-frame {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  padding: 7px 8px;
  border-right: 1px solid #c8c8c8;
  border-bottom: 1px solid #c8c8c8;
  text-align: left;
  white-space: nowrap;
}

th {
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-shadow);
  border-bottom: 1px solid var(--win-shadow);
  background: var(--win-bg);
}

tr.selected-row td {
  background: #000080;
  color: #ffffff;
}

.tag {
  display: inline-block;
  min-width: 72px;
  padding: 2px 6px;
  border: 1px solid #111111;
  text-align: center;
  font-weight: 700;
}

.tag.ready {
  background: #c9f4cf;
  color: #004018;
}

.tag.locked {
  background: #fff0b8;
  color: #553200;
}

.tag.empty {
  background: #e8e8e8;
  color: #404040;
}

.event-log {
  min-height: 362px;
  max-height: 462px;
  margin: 0;
  padding: 8px 8px 8px 32px;
  overflow-y: auto;
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.event-log li {
  margin: 0 0 8px;
  padding-left: 4px;
  line-height: 1.35;
}

.event-log strong {
  color: #000080;
}

.event-log .danger {
  color: var(--danger);
}

.event-log .ok {
  color: var(--ok);
}

.event-log .reward {
  color: var(--reward);
}

.event-log .time {
  color: #666666;
}

.docs-panel {
  min-height: 300px;
  max-height: 420px;
  overflow-y: auto;
  padding: 10px 12px;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  background: #fffff4;
  line-height: 1.38;
}

.docs-panel h2,
.docs-panel h3,
.docs-panel p,
.docs-panel ol,
.docs-panel ul {
  margin-top: 0;
}

.docs-panel h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.docs-panel h3 {
  margin-bottom: 6px;
  font-size: 14px;
}

.docs-panel ol,
.docs-panel ul {
  padding-left: 22px;
}

.docs-panel li {
  margin-bottom: 5px;
}

.docs-panel code {
  padding: 1px 4px;
  border: 1px solid #808080;
  background: #ffffff;
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.console-body {
  display: grid;
  grid-template-rows: minmax(180px, 1fr) auto;
  gap: 6px;
  background: #000000;
}

.console-output {
  min-height: 220px;
  max-height: 280px;
  margin: 0;
  padding: 8px;
  overflow: auto;
  background: #000000;
  color: #c0c0c0;
  font-family: "Courier New", monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.console-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  color: #00ff7f;
  font-family: "Courier New", monospace;
}

.console-form input {
  min-width: 0;
  border-top: 1px solid #404040;
  border-left: 1px solid #404040;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  background: #000000;
  color: #c0c0c0;
}

.console-form input:focus {
  outline: 1px dotted #00ff7f;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 4px;
  border-top: 2px solid var(--win-light);
  background: var(--win-bg);
}

.start-button {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 90px;
  font-weight: 700;
}

.start-flag {
  width: 18px;
  height: 18px;
  border: 1px solid #111111;
  background:
    linear-gradient(90deg, #d40000 0 50%, #00a030 50%) 0 0 / 100% 50% no-repeat,
    linear-gradient(90deg, #0050c8 0 50%, #ffd100 50%) 0 100% / 100% 50% no-repeat;
}

.task-button {
  width: 156px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.task-button.window-hidden {
  color: #404040;
  font-style: italic;
}

.tray {
  min-width: 84px;
  padding: 8px;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  background: var(--win-bg);
  text-align: center;
}

.twitter-tray {
  margin-left: auto;
  text-decoration: none;
  color: inherit;
}

.start-menu {
  position: fixed;
  left: 4px;
  bottom: 42px;
  z-index: 30;
  display: grid;
  grid-template-columns: 34px minmax(190px, 238px);
  min-height: 246px;
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-dark);
  border-bottom: 2px solid var(--win-dark);
  background: var(--win-bg);
  box-shadow: 2px 2px 0 #000000;
}

.start-menu[hidden] {
  display: none;
}

.start-menu-rail {
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 8px 4px;
  background: linear-gradient(#000080, #1084d0);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.start-menu-items {
  display: grid;
  align-content: start;
  padding: 5px;
}

.start-menu-items button,
.start-menu-items a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  font: inherit;
}

.start-menu-items button:hover,
.start-menu-items button:focus,
.start-menu-items a:hover,
.start-menu-items a:focus {
  outline: none;
  background: #000080;
  color: #ffffff;
}

.start-menu-items hr {
  width: 100%;
  margin: 5px 0;
  border: 0;
  border-top: 1px solid var(--win-shadow);
  border-bottom: 1px solid var(--win-light);
}

@media (max-width: 980px) {
  .desktop {
    min-height: auto;
    padding: 110px 10px 72px;
  }

  .desktop-icons {
    top: 8px;
    left: 8px;
    right: 8px;
    width: auto;
    grid-template-columns: repeat(5, minmax(0, 82px));
    gap: 10px;
  }

  .system-hud {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    margin: 0 0 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hud-brand {
    grid-column: 1 / -1;
  }

  .window,
  .main-window,
  .wallet-window,
  .log-window,
  .console-window,
  .docs-window {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    margin: 0 0 12px;
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .lookup-form,
  .lookup-results {
    grid-template-columns: 1fr;
  }

  .flow-panel {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 12px;
  }

  .desktop {
    padding-top: 94px;
  }

  .status-grid,
  .button-row,
  .flow-diagram,
  .system-hud {
    grid-template-columns: 1fr;
  }

  .hud-brand {
    grid-column: auto;
  }

  .desktop-icons {
    grid-template-columns: repeat(5, minmax(0, 72px));
  }

  .desktop-icon {
    font-size: 11px;
  }

  .pixel-icon {
    width: 38px;
    height: 38px;
  }

  .flow-arrow {
    width: 10px;
    height: 28px;
    justify-self: center;
  }

  .flow-arrow::after {
    top: auto;
    right: -6px;
    bottom: -1px;
    border-top: 14px solid #111111;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 0;
  }

  .task-button {
    display: none;
  }

  .tray {
    min-width: 70px;
  }
}
