@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("fonts/ms_sans_serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("fonts/ms_sans_serif_bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

:root {
  --teal: #008080;
  --silver: #c0c0c0;
  --navy: #000080;
  --navy-end: #1084d0;
  --inactive: #808080;
  --inactive-end: #b5b5b5;
  --shadow: #000000;
  --white: #ffffff;
  --black: #000000;
  --dkgray: #808080;
  --dk: #404040;
  --btn: #c0c0c0;
  --desktop: #008080;
  --taskbar-h: 32px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--desktop);
  font-family: Tahoma, "MS Sans Serif", "Pixelated MS Sans Serif", Geneva, sans-serif;
  font-size: 11px;
  color: var(--black);
  user-select: none;
  cursor: default;
  position: fixed;
  inset: 0;
  width: 100%;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button, input, textarea, select { font-family: inherit; font-size: 11px; }

::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}
::-webkit-scrollbar:horizontal { height: 16px; }
::-webkit-scrollbar-corner { background: #c0c0c0; }
::-webkit-scrollbar-track {
  background-color: #c0c0c0;
  background-image: url("icons/ui/scrollbar-background.svg");
}
::-webkit-scrollbar-thumb {
  background-color: #c0c0c0;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #ffffff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
}
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:horizontal:end:increment,
::-webkit-scrollbar-button:vertical:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment {
  display: block;
}
::-webkit-scrollbar-button:vertical:start {
  height: 16px;
  background: #c0c0c0 url("icons/ui/button-up.svg") no-repeat center;
  background-size: 16px 17px;
}
::-webkit-scrollbar-button:vertical:end {
  height: 16px;
  background: #c0c0c0 url("icons/ui/button-down.svg") no-repeat center;
  background-size: 16px 17px;
}
::-webkit-scrollbar-button:horizontal:start {
  width: 16px;
  background: #c0c0c0 url("icons/ui/button-left.svg") no-repeat center;
  background-size: 16px 17px;
}
::-webkit-scrollbar-button:horizontal:end {
  width: 16px;
  background: #c0c0c0 url("icons/ui/button-right.svg") no-repeat center;
  background-size: 16px 17px;
}
* {
  scrollbar-width: auto;
  scrollbar-color: #c0c0c0 #dfdfdf;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.sb98 {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.sb98.off .sb98-bar { display: none; }
.sb98-view {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto !important;
  scrollbar-width: none !important;
}
.sb98-view::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}
.sb98-bar {
  width: 16px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: #c0c0c0 url("icons/ui/scrollbar-background.svg");
  border-left: 1px solid #808080;
}
.sb98-btn {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  background: #c0c0c0 url("icons/ui/button-up.svg") no-repeat center;
  background-size: 16px 17px;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
}
.sb98-dn { background-image: url("icons/ui/button-down.svg"); }
.sb98-track { flex: 1; position: relative; min-height: 18px; }
.sb98-thumb {
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
  background: #c0c0c0;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
}

html.neo-flip,
html.neo-flip body {
  overflow: hidden;
}
html.neo-flip body {
  width: 100dvh;
  height: 100dvw;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: top left;
  position: fixed;
  top: 0;
  left: 0;
}

.raised {
  border-width: 2px;
  border-style: solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf;
}

.sunken {
  border-width: 2px;
  border-style: solid;
  border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px #000;
}

.raised-thin {
  border: 1px solid;
  border-color: #fff #000 #000 #fff;
}

.sunken-thin {
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
}

#boot.safe-off {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #000;
  color: #c0c0c0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "Courier New", Courier, monospace;
}
#boot.safe-off .boot-bios {
  white-space: normal;
  text-align: center;
  overflow-wrap: break-word;
  word-break: normal;
  font-size: 18px;
  line-height: 1.4;
  max-width: 22em;
  padding: 0;
  color: #c0c0c0;
}
#boot.safe-off .love { color: #ffff00; }

#desktop {
  position: absolute;
  top: env(safe-area-inset-top, 0px);
  left: env(safe-area-inset-left, 0px);
  right: env(safe-area-inset-right, 0px);
  bottom: calc(var(--taskbar-h) + env(safe-area-inset-bottom, 0px));
  background: var(--desktop);
  overflow: hidden;
}

#desktop.wallpaper {
  background:
    radial-gradient(ellipse at 30% 20%, #2a9d8f 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, #1d3557 0%, transparent 45%),
    linear-gradient(#0a4f4f, #008080 40%, #006666);
}

.crt {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.06) 2px 3px
  );
  mix-blend-mode: multiply;
}

.desktop-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.desk-icon {
  position: absolute;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 2px 2px 4px;
  text-align: center;
  pointer-events: auto;
  z-index: 1;
  touch-action: manipulation;
}

.desk-about {
  right: 10px;
  bottom: 10px;
  left: auto !important;
  top: auto !important;
  z-index: 2;
}

.desk-icon .glyph {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.desk-icon .glyph svg,
.desk-icon .glyph img {
  width: 48px !important;
  height: 48px !important;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.icon-bmp {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  object-fit: contain;
}

.desk-icon .label {
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  padding: 1px 3px;
  max-width: 88px;
  line-height: 1.15;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  font-size: 11px;
}

.desk-icon.selected .label {
  background: var(--navy);
  outline: 1px dotted #fff;
}

.desk-icon.selected .glyph { filter: url(#icon-select); }

#taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--taskbar-h) + env(safe-area-inset-bottom, 0px));
  background: var(--silver);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 2px calc(2px + env(safe-area-inset-bottom, 0px)) 2px;
  z-index: 50000;
  border-top: 2px solid #fff;
}

#start-btn {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px 0 6px;
  background: var(--silver);
  font-weight: 700;
  font-size: 13px;
  border-width: 2px;
  border-style: solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf;
}

#start-btn:active,
#start-btn.open {
  border-color: #000 #fff #fff #000;
  box-shadow: inset 1px 1px #808080;
  padding: 1px 5px 0 5px;
}

#start-btn .winflag {
  width: 23px;
  height: 18px;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.task-buttons {
  flex: 1;
  display: flex;
  gap: 3px;
  overflow: hidden;
  padding: 0 2px;
}

.task-btn {
  min-width: 140px;
  max-width: 180px;
  height: 26px;
  background: var(--silver);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  overflow: hidden;
  border-width: 2px;
  border-style: solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf;
}

.task-btn .glyph { width: 16px; height: 16px; flex-shrink: 0; }
.task-btn .glyph svg,
.task-btn .glyph img { width: 16px; height: 16px; display: block; image-rendering: pixelated; }
.task-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.task-btn.active {
  border-color: #000 #fff #fff #000;
  box-shadow: inset 1px 1px #808080;
  background: #d4d0c8;
  font-weight: 700;
  background-image: repeating-linear-gradient(
    -45deg,
    #d4d0c8 0 1px,
    #c0c0c0 1px 2px
  );
}

.tray {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  margin-right: 2px;
}

.tray .modem {
  width: 12px;
  height: 12px;
  background: #0a0;
  box-shadow: inset 1px 1px #6f6, 0 0 0 1px #000;
  animation: blink 1.2s step-end infinite;
}

.tray .modem.off { background: #400; animation: none; }

@keyframes blink {
  50% { background: #040; }
}

#clock {
  min-width: 58px;
  text-align: center;
  background: transparent;
  border: 0;
  padding: 0 4px;
  height: 18px;
  font-size: 11px;
  color: inherit;
  cursor: default;
}
#clock:focus,
.vol-tray:focus { outline: none; }

.vol-tray {
  position: relative;
  width: 20px;
  height: 18px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: default;
}
.vol-tray img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  display: block;
}
.vol-tray.muted { opacity: 0.55; }
.vol-tray.muted::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  background: #c00;
  transform: rotate(-45deg);
  pointer-events: none;
}

#vol-pop {
  position: fixed;
  right: 8px;
  bottom: calc(var(--taskbar-h) + env(safe-area-inset-bottom, 0px) + 4px);
  z-index: 50040;
  width: 72px;
  background: var(--silver);
  border-width: 2px;
  border-style: solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf, 2px 2px 0 rgba(0,0,0,0.35);
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
#vol-pop[hidden] { display: none !important; }
.vol-pop-lab {
  font-size: 11px;
  text-align: center;
}
#vol-slider {
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 88px;
  background: #808080;
  box-shadow: inset 1px 1px #000, inset -1px -1px #fff;
}
.vol-mute {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.vol-mix {
  display: flex;
  gap: 8px;
  padding: 10px;
  justify-content: space-around;
  height: 100%;
}
.vol-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 6px 4px;
}
.vol-col-t { text-align: center; font-size: 11px; }
.vol-col input[type=range] {
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: slider-vertical;
  -webkit-appearance: slider-vertical;
  width: 22px;
  height: 90px;
}
.vol-col label { font-size: 11px; }

.dt-props { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dt-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 8px 0;
  border-bottom: 1px solid #808080;
}
.dt-tabs span {
  padding: 3px 10px;
  border: 1px solid;
  border-color: #fff #000 #c0c0c0 #fff;
  background: var(--silver);
}
.dt-tabs span.on {
  border-bottom-color: var(--silver);
  font-weight: 700;
}
.dt-body {
  display: flex;
  gap: 10px;
  padding: 10px;
  flex: 1;
}
.dt-cal { flex: 1; }
.dt-cal-h {
  text-align: center;
  font-weight: 700;
  margin-bottom: 4px;
}
.dt-cal table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
}
.dt-cal th, .dt-cal td {
  width: 14.2%;
  text-align: center;
  padding: 3px 0;
  font-size: 11px;
}
.dt-cal th { font-weight: 700; }
.dt-cal td.today {
  background: var(--navy);
  color: #fff;
}
.dt-clock {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.analog {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  position: relative;
  box-shadow: inset 1px 1px #000;
}
.analog .hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
  background: #000;
}
.analog .hand.hour { width: 3px; height: 26px; margin-left: -1.5px; }
.analog .hand.min { width: 2px; height: 34px; margin-left: -1px; }
.analog .hand.sec { width: 1px; height: 38px; margin-left: -0.5px; background: #c00; }
.analog .hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #000;
}
.dt-digital {
  font-family: "Courier New", monospace;
  background: #000;
  color: #0f0;
  padding: 2px 6px;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
}
.dt-zone { font-size: 10px; text-align: center; color: #000; }

.av-tray {
  height: 16px;
  min-width: 22px;
  padding: 0 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 14px;
  background: var(--silver);
  border: 1px solid;
  border-color: #fff #404040 #404040 #fff;
  color: #800000;
  cursor: default;
}
.av-tray.on {
  color: #006600;
  border-color: #808080 #fff #fff #808080;
  background: #d4d0c8;
}

#start-menu {
  position: fixed;
  left: 2px;
  bottom: calc(var(--taskbar-h) + env(safe-area-inset-bottom, 0px));
  width: 220px;
  background: var(--silver);
  z-index: 50001;
  display: none;
  overflow: visible;
  touch-action: manipulation;
  overscroll-behavior: none;
  border-width: 2px;
  border-style: solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf, 2px 2px 0 rgba(0,0,0,0.35);
}

#start-menu.open { display: flex; flex-direction: row; align-items: stretch; }

.start-banner {
  width: 22px;
  background: linear-gradient(#000080, #1084d0);
  color: #fff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 2px;
}

.start-list {
  flex: 1;
  padding: 2px 0;
  overflow: visible;
  min-width: 0;
}

.start-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  height: 32px;
  flex-shrink: 0;
  touch-action: manipulation;
}

.start-item .glyph { width: 24px; height: 24px; }
.start-item .glyph svg,
.start-item .glyph img { width: 24px; height: 24px; display: block; image-rendering: pixelated; }

.start-item:hover,
.start-item.hot {
  background: var(--navy);
  color: #fff;
}

.start-item .caret { margin-left: auto; font-size: 9px; }

.start-sep {
  height: 2px;
  margin: 3px 4px;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
}

.start-sub {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  background: var(--silver);
  min-width: 178px;
  max-height: calc(100dvh - var(--taskbar-h) - env(safe-area-inset-bottom, 0px) - 8px);
  overflow-x: visible;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-width: 2px;
  border-style: solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf, 2px 2px 0 rgba(0,0,0,0.35);
  z-index: 50020;
  padding: 2px 0;
}

.start-sub.open { display: block; }
.start-sub .start-sub { z-index: 50021; }

.window {
  position: absolute;
  background: var(--silver);
  min-width: 180px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  border-width: 2px;
  border-style: solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf;
}

.window.hidden { display: none; }
.window.window-fixed {
  min-width: 0;
}
.window.window-bare {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-width: 0;
}
.window.window-bare > .titlebar,
.window.window-bare > .menubar,
.window.window-bare > .window-status { display: none; }
.window.window-bare > .window-body { margin: 0; overflow: hidden; background: transparent; }
.window[data-id="wmp"] .window-body,
.window[data-id="about"] .window-body { overflow: hidden; }
.window.dialog-win {
  min-width: 0;
  min-height: 0;
  height: auto !important;
  max-width: calc(100vw - 8px);
}
.window.dialog-win .window-body {
  flex: 0 0 auto;
  overflow: visible;
  margin: 0;
}
.window.maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.titlebar {
  height: 18px;
  margin: 2px 2px 0;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, var(--navy), var(--navy-end));
  color: #fff;
  padding: 0 2px 0 3px;
  gap: 4px;
  flex-shrink: 0;
  touch-action: none;
}

.window.inactive .titlebar {
  background: linear-gradient(to right, var(--inactive), var(--inactive-end));
}

.titlebar .glyph { width: 16px; height: 16px; flex-shrink: 0; }
.titlebar .glyph svg,
.titlebar .glyph img { width: 16px; height: 16px; display: block; image-rendering: pixelated; }

.titlebar-text {
  flex: 1;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.title-controls {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.title-btn {
  width: 16px;
  height: 14px;
  min-width: 16px;
  min-height: 14px;
  padding: 0;
  border: 0;
  background-color: #c0c0c0;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #ffffff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
}
.title-btn.min {
  background-image: url("icons/ui/minimize.svg");
  background-position: left 4px bottom 3px;
}
.title-btn.max {
  background-image: url("icons/ui/maximize.svg");
  background-position: left 3px top 2px;
}
.title-btn.max.restore {
  background-image: url("icons/ui/restore.svg");
  background-position: left 3px top 2px;
}
.title-btn.close {
  margin-left: 2px;
  background-image: url("icons/ui/close.svg");
  background-position: left 4px top 3px;
}
.title-btn:active {
  box-shadow:
    inset -1px -1px #ffffff,
    inset 1px 1px #0a0a0a,
    inset -2px -2px #dfdfdf,
    inset 2px 2px #808080;
}
.title-btn:focus { outline: none; }

.menubar {
  display: flex;
  padding: 1px 2px;
  gap: 0;
  flex-shrink: 0;
}

.menubar button {
  background: none;
  border: none;
  padding: 2px 8px;
  color: #000;
}

.menubar button:hover {
  background: var(--navy);
  color: #fff;
}

.menubar button u { text-decoration: underline; }

.window-body {
  flex: 1;
  margin: 2px;
  overflow: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.app-fill {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.app-fill > * { flex: 1; min-height: 0; }

.window-status {
  height: 18px;
  margin: 0 2px 2px;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 1px 4px;
  color: #000;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn {
  background: var(--silver);
  border-width: 2px;
  border-style: solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080;
  padding: 3px 12px;
  min-width: 75px;
  height: 23px;
  white-space: nowrap;
}

.btn:active {
  border-color: #000 #fff #fff #000;
  box-shadow: none;
  padding: 4px 13px 2px 15px;
}

.btn:focus { outline: 1px dotted #000; outline-offset: -4px; }

.btn.default {
  box-shadow: 0 0 0 1px #000, inset -1px -1px #808080;
}

.field {
  background: #fff;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px #000;
  padding: 2px 4px;
  font-size: 11px;
}

.field:focus { outline: none; }

.dialog-body {
  padding: 12px 14px 6px;
  display: flex;
  gap: 12px;
  min-width: 0;
  align-items: flex-start;
}

.dialog-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  font-size: 28px;
  line-height: 32px;
  text-align: center;
}

.dialog-copy {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  padding-top: 2px;
  user-select: text;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}
.dialog-copy label {
  display: block;
  white-space: normal;
  overflow-wrap: break-word;
}

.dialog-copy b { font-size: 12px; }

.dialog-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 12px 12px;
}

.wake .titlebar {
  background: linear-gradient(to right, #800000, #ff2020) !important;
}

.wake .dialog-copy b {
  font-size: 22px;
  letter-spacing: 2px;
}

.mine-wrap {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--silver);
  flex: 1;
}

.mine-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px #000;
}

.led {
  background: #000;
  color: #ff2020;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  padding: 0 6px;
  min-width: 46px;
  text-align: right;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  text-shadow: 0 0 4px #ff0000;
}

.face-btn {
  width: 26px;
  height: 26px;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  background: var(--silver);
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080;
}

.face-btn:active {
  border-color: #000 #fff #fff #000;
}

.mine-board {
  display: grid;
  border: 3px solid;
  border-color: #808080 #fff #fff #808080;
  background: #c0c0c0;
  width: max-content;
}

.cell {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  box-shadow: inset -1px -1px #000;
  padding: 0;
  line-height: 1;
}

.cell.open {
  border: 1px solid #808080;
  box-shadow: none;
  background: #c0c0c0;
}

.cell.mine { background: #c0c0c0; }
.cell.boom { background: #ff0000; }
.cell.flag { color: #c00; }

.n1 { color: #0000ff; }
.n2 { color: #008000; }
.n3 { color: #ff0000; }
.n4 { color: #000080; }
.n5 { color: #800000; }
.n6 { color: #008080; }
.n7 { color: #000000; }
.n8 { color: #808080; }

.dos {
  background: #000;
  color: #c0c0c0;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  padding: 6px 8px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}

.dos .prompt-line { display: flex; }
.dos .prompt { color: #c0c0c0; }
.dos input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #c0c0c0;
  font: inherit;
  outline: none;
  padding: 0;
  caret-color: #c0c0c0;
}

.dos .out-ok { color: #00ff00; }
.dos .out-bad { color: #ff5555; }
.dos .out-dim { color: #808080; }

.notepad {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.wordpad {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--silver);
}
.wp-tools, .wp-fmt {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  flex: none;
  border-bottom: 1px solid #808080;
}
.wp-tb, .wp-b, .wp-i, .wp-u {
  height: 22px;
  min-width: 28px;
  padding: 0 6px;
  background: var(--silver);
  border: 1px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080;
  font: 11px Tahoma, sans-serif;
}
.wp-tb:disabled { color: #808080; }
.wp-sep {
  width: 2px;
  height: 18px;
  margin: 0 4px;
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
}
.wp-font, .wp-size {
  background: #fff;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 1px 8px;
  font: 11px Tahoma, sans-serif;
  min-width: 110px;
}
.wp-size { min-width: 28px; }
.wp-b { font-weight: 700; }
.wp-i { font-style: italic; }
.wp-u { text-decoration: underline; }
.wp-b.on,
.wp-i.on,
.wp-u.on {
  border-color: #000 #fff #fff #000;
  box-shadow: inset 1px 1px #808080;
}
.wp-ruler {
  height: 20px;
  flex: none;
  background:
    repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 10px),
    #fff;
  background-size: 40px 8px, 100% 100%;
  background-position: 16px 12px, 0 0;
  background-repeat: repeat-x, no-repeat;
  border-bottom: 1px solid #808080;
}
.wp-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #808080;
  padding: 10px 12px;
}
.wp-page {
  background: #fff;
  max-width: 520px;
  margin: 0 auto;
  padding: 22px 28px 28px;
  min-height: 100%;
  box-shadow: 2px 2px 0 #404040;
  color: #000;
  font: 13px/1.5 "Times New Roman", Times, serif;
}
.wp-pic {
  float: right;
  margin: 0 0 10px 14px;
  border: 1px solid #000;
  background: #000;
}
.wp-page h1 {
  font: 700 26px/1.15 "Times New Roman", Times, serif;
  margin: 0 0 12px;
}
.wp-lead {
  font-size: 14px;
}
.wp-page p { margin: 0 0 12px; }
.wp-page b { font-weight: 700; }
.wp-page i { font-style: italic; }
.wp-page u { text-decoration: underline; }
.wp-page a { color: #0000ee; }
.wp-sign {
  font-style: italic;
  font-size: 15px;
}
.wp-foot {
  font-size: 12px;
  color: #333;
  border-top: 1px solid #c0c0c0;
  padding-top: 10px;
  margin-top: 8px;
}

.notepad textarea {
  flex: 1;
  resize: none;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px #000;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 12px;
  padding: 4px;
  outline: none;
  user-select: text;
}

.explorer {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #fff;
}

.explorer-toolbar {
  background: var(--silver);
  padding: 3px 4px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #808080;
}

.addr {
  background: var(--silver);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-bottom: 1px solid #808080;
}

.addr input { flex: 1; }

.file-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px 4px;
  padding: 10px;
  overflow: auto;
  flex: 1;
}

.file-item {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
  text-align: center;
}

.file-item .glyph { width: 32px; height: 32px; }
.file-item .name { line-height: 1.2; word-break: break-word; }
.file-item.selected { background: var(--navy); color: #fff; }

.milady-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #000;
}

.milady-thumb.real,
img.real {
  image-rendering: auto;
}

.ie-chrome {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: auto;
  background: var(--silver);
}

.ie-toolbar {
  padding: 2px 4px 4px;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  border-bottom: 1px solid #808080;
}
.ie-tb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 48px;
  padding: 2px 6px;
  background: transparent;
  border: 1px solid transparent;
  font-size: 11px;
}
.ie-tb:hover { border-color: #fff #808080 #808080 #fff; }
.ie-tb .glyph { width: 16px; height: 16px; }
.ie-addr {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  background: var(--silver);
}

.ie-addr input { flex: 1; }
.ie-favs {
  display: none;
  background: var(--silver);
  border-bottom: 1px solid #808080;
  padding: 4px 6px;
  flex-wrap: wrap;
  gap: 4px;
}
.ie-favs.open { display: flex; }
.ie-fav-item {
  background: var(--silver);
  border: 1px solid;
  border-color: #fff #808080 #808080 #fff;
  padding: 2px 8px;
  font-size: 11px;
}
.ie-fav-item:hover { background: var(--navy); color: #fff; }
.ie-snap { background: #fff; min-height: 100%; }
.ie-snap-bar {
  background: var(--silver);
  padding: 4px 8px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
  color: #000;
  border-bottom: 1px solid #808080;
}
.ie-snap-bar a { color: #000080; }
.ie-snap img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.ie-page {
  flex: 1;
  overflow: auto;
  background-color: #000080;
  background-image:
    radial-gradient(1px 1px at 10px 20px, #fff, transparent),
    radial-gradient(1px 1px at 40px 8px, #ff0, transparent),
    radial-gradient(1px 1px at 70px 30px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90px 50px, #ccf, transparent);
  background-size: 100px 60px;
  color: #ffff00;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  user-select: text;
}

.web99 {
  max-width: 720px;
  margin: 0 auto;
  padding: 6px 10px 28px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.web99 h1 {
  font-family: "Comic Sans MS", "Comic Sans", "Trebuchet MS", cursive, sans-serif;
  color: #00ffff;
  text-align: center;
  text-shadow: 2px 2px #000;
  font-size: 28px;
  margin: 4px 0 2px;
}

.web99 h2 {
  color: #ff00ff;
  font-family: "Comic Sans MS", "Comic Sans", "Trebuchet MS", cursive, sans-serif;
  font-size: 18px;
}

.web99 p, .web99 td, .web99 font {
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.web99 a { color: #00ffff; }
.web99 a:visited { color: #ff00ff; }
.web-about {
  margin: 10px auto 12px;
  border-color: #ff00ff #800080 #800080 #ff00ff;
}
.web-about td {
  color: #fff;
}
.web-about p {
  margin: 0 0 10px;
  text-align: left;
  color: #fff;
}
.web-about p:last-child { margin-bottom: 0; }

.luv-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 8px;
}
.luv-btn {
  font-family: "Comic Sans MS", "Comic Sans", "Trebuchet MS", cursive, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
  color: #fff;
  padding: 8px 18px 6px;
  min-width: 158px;
  border: 3px outset #fff;
  cursor: pointer;
  text-shadow: 1px 1px #c04890;
  box-shadow: 2px 2px 0 #000;
}
.luv-btn.pink {
  background: linear-gradient(#ffc0e0, #ff5aad 45%, #ff1488);
  color: #fff;
}
.luv-btn.heart {
  background: linear-gradient(#ffe0ff, #ff7ad9 40%, #e020a0);
  color: #fff8fc;
}
.luv-btn:hover { filter: brightness(1.08); }
.luv-btn:active,
.luv-btn.sent,
.luv-btn.used {
  border-style: inset;
  transform: translate(1px, 1px);
  box-shadow: none;
}
.luv-btn.used {
  filter: grayscale(0.35) brightness(0.9);
  cursor: default;
}
.luv-n {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: #fff;
  text-shadow: none;
}
.luv-n b { color: #ffff00; }

.blink { animation: blinktxt 1s step-end infinite; }
@keyframes blinktxt { 50% { visibility: hidden; } }

.marquee-fake {
  background: #000;
  color: #00ff00;
  border: 3px ridge #c0c0c0;
  padding: 4px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.marquee-fake span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 14s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.counter {
  background: #000;
  color: #0f0;
  font-family: "Courier New", monospace;
  padding: 2px 6px;
  border: 2px inset #808080;
  letter-spacing: 3px;
}

.gallery99 {
  display: grid;
  grid-template-columns: repeat(auto-fill, 88px);
  gap: 10px;
  justify-content: center;
  background: #000;
  padding: 10px;
  border: 4px ridge #c0c0c0;
}

.gallery99 img {
  width: 80px;
  height: 80px;
  border: 2px solid #fff;
  cursor: pointer;
  object-fit: cover;
}

.gallery99 img:hover { border-color: #ffff00; }

.gal-table {
  background: #000060;
  border: 4px ridge #c0c0c0;
  margin: 6px auto;
}

.gal-cell img {
  border: 3px ridge #fff;
  background: #000;
  object-fit: cover;
}

.gal-cell a:hover img { border-color: #ffff00; }

.rainbow {
  height: 8px;
  margin: 10px 0;
  background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  border: 2px inset #808080;
}

.newtag {
  background: #f00;
  color: #fff;
  font-size: 11px;
  padding: 1px 4px;
  font-family: Tahoma, sans-serif;
  animation: blinktxt 1s step-end infinite;
}

.badges { margin: 10px 0; }

.b88 {
  display: inline-block;
  width: 88px;
  height: 31px;
  line-height: 29px;
  text-align: center;
  font: 700 10px Tahoma, "MS Sans Serif", sans-serif;
  color: #fff;
  border: 1px outset #fff;
  margin: 2px;
  vertical-align: middle;
}

.b88.ie { background: linear-gradient(#6cf, #06c); }
.b88.ns { background: linear-gradient(#0a0, #040); }
.b88.love { background: linear-gradient(#f6a, #c06); }
.b88.y2k { background: linear-gradient(#fc0, #c60); color: #000; }
.b88.56k { background: linear-gradient(#888, #222); }

.uc {
  text-align: center;
  color: #ffff00;
  font-weight: 700;
  font-family: "Comic Sans MS", cursive;
}

.webring {
  text-align: center;
  background: #c0c0c0;
  color: #000;
  padding: 8px;
  border: 4px ridge #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.guestbook {
  width: 100%;
  background: #000;
  color: #0f0;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  border: 2px inset #808080;
  padding: 6px;
}

.banner-ad {
  background: #000;
  color: #fff;
  border: 2px solid #ff0;
  text-align: center;
  padding: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.banner-ad:hover { background: #200; }
.banner-ad.ad2 { border-color: #0ff; color: #0ff; }
.banner-ad.ad3 { border-color: #f0f; color: #ffa; }
.banner-ad.ad4 { border-color: #0f0; color: #afa; }

.irc {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #fff;
  font-family: Tahoma, sans-serif;
}
.irc-chan {
  background: var(--silver);
  padding: 2px 6px;
  border-bottom: 1px solid #808080;
  font-weight: 700;
}
.irc-nicks-h { font-weight: 700; margin-bottom: 4px; }
.irc-prompt { padding: 0 4px; }

.irc-main {
  flex: 1;
  display: flex;
  min-height: 0;
}

.irc-log {
  flex: 1;
  overflow: auto;
  padding: 4px 6px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  background: #fff;
  color: #000;
  user-select: text;
  line-height: 1.35;
}

.irc-log .sys { color: #808080; }
.irc-log .nick { color: #000080; font-weight: 700; }
.irc-log .me { color: #008000; }
.irc-log .kick { color: #800000; }

.irc-nicks {
  width: 120px;
  border-left: 2px solid;
  border-color: #808080 #fff #fff #808080;
  overflow: auto;
  background: #fff;
  padding: 4px;
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.irc-input {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--silver);
  border-top: 1px solid #808080;
}

.irc-input input { flex: 1; }

.icq {
  background: #d4d0c8;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.icq-head {
  background: linear-gradient(#6a9ad0, #3d6ea5);
  color: #fff;
  padding: 6px 8px;
  font-weight: 700;
}

.icq-list { flex: 1; padding: 6px; overflow: auto; }

.icq-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px;
}

.icq-row:hover { background: #000080; color: #fff; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0a0;
  box-shadow: 0 0 0 1px #000;
}

.dot.off { background: #888; }
.dot.away { background: #cc0; }

.window[data-id="hex"] .window-body,
.window[data-id="telnet"] .window-body {
  display: flex;
  flex-direction: column;
  background: #000;
  overflow: hidden;
}
.hex {
  background: #000;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 12px;
  padding: 6px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  user-select: text;
}

.hex .ascii { color: #ffff00; }

.wmp {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--silver);
}
.wmp-stage {
  flex: 1;
  display: flex;
  min-height: 0;
  margin: 4px;
  gap: 4px;
}
.wmp-vis {
  flex: 1;
  min-width: 0;
  background: #000;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
}
.wmp-brand {
  color: #ff9c00;
  font: 700 16px Tahoma, sans-serif;
  letter-spacing: 1px;
}
.wmp-now {
  color: #fff;
  font: 12px Tahoma, sans-serif;
  text-align: center;
}
.wmp-wave {
  width: 80%;
  height: 36px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.wmp-wave i {
  flex: 1;
  background: #ff9c00;
  height: 8%;
}
.wmp-pl {
  width: 168px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
}
.wmp-pl.off { display: none; }
.wmp-pl-h {
  background: var(--silver);
  font-weight: 700;
  padding: 2px 6px;
  border-bottom: 1px solid #808080;
}
.wmp-list {
  flex: 1;
  overflow: auto;
  font: 11px Tahoma, sans-serif;
  min-height: 0;
}
.wmp-list div { padding: 2px 6px; }
.wmp-list div.now { background: var(--navy); color: #fff; }
.wmp-seek {
  height: 14px;
  margin: 0 6px 4px;
  background: var(--silver);
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  position: relative;
}
.wmp-seek i {
  position: absolute;
  top: 0;
  width: 8px;
  height: 10px;
  background: var(--silver);
  border: 1px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080;
}
.wmp-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 6px 6px;
}
.wmp-bar .btn { min-width: 0; height: 23px; padding: 2px 8px; }
.wmp-time {
  font: 11px Tahoma, sans-serif;
  margin-left: 6px;
  min-width: 84px;
}
.wmp-vol-lab { font: 11px Tahoma, sans-serif; margin-left: 8px; }
.wmp-opt {
  font: 11px Tahoma, sans-serif;
  display: flex;
  align-items: center;
  gap: 3px;
}
.wmp-vol {
  width: 80px;
  height: 14px;
  background: var(--silver);
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  position: relative;
}
.wmp-vol i {
  position: absolute;
  top: 0;
  width: 8px;
  height: 10px;
  background: var(--silver);
  border: 1px solid;
  border-color: #fff #000 #000 #fff;
}

.term {
  background: #000;
  color: #d4a017;
  font-family: "Courier New", monospace;
  font-size: 13px;
  padding: 8px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  white-space: pre-wrap;
  user-select: text;
}

.viewer {
  background: #808080;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
}

.viewer img {
  width: 320px;
  height: 320px;
  object-fit: contain;
  border: 2px solid #000;
  background: #000;
}

.viewer .meta { color: #000; background: var(--silver); padding: 4px 8px; }

#ctx {
  position: fixed;
  z-index: 80000;
  background: var(--silver);
  min-width: 160px;
  padding: 2px;
  display: none;
  border-width: 2px;
  border-style: solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf;
}

#ctx.open { display: block; }

.ctx-item { padding: 3px 18px 3px 22px; }
.ctx-item:hover { background: var(--navy); color: #fff; }
.ctx-item.disabled { color: #808080; }
.ctx-item.disabled:hover { background: transparent; color: #808080; }
.ctx-sep { height: 2px; margin: 3px 4px; border-top: 1px solid #808080; border-bottom: 1px solid #fff; }

.props { padding: 10px; }
.props .preview {
  width: 80px;
  height: 60px;
  background: var(--teal);
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  margin-bottom: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px 8px;
  align-items: center;
  padding: 10px;
}

.window[data-id="mail"] .window-body { overflow: hidden; }
.oe {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--silver);
}
.oe-split { flex-direction: row; }
.oe-folders {
  width: 120px;
  background: #fff;
  border-right: 2px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 4px;
  flex-shrink: 0;
}
.oe-fold-h { font-weight: 700; margin-bottom: 4px; }
.oe-fold { padding: 2px 4px; }
.oe-fold.on { background: var(--navy); color: #fff; }
.oe-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.oe-list {
  height: 92px;
  overflow: auto;
  background: #fff;
  border-bottom: 2px solid;
  border-color: #808080 #fff #fff #808080;
  font-size: 11px;
  flex: none;
}
.oe-rowm { padding: 2px 6px; white-space: nowrap; overflow: hidden; }
.oe-rowm.on { background: var(--navy); color: #fff; }
.oe-rowm.imp { font-weight: 700; }
.oe-rowm b { color: #c00; margin-right: 4px; }
.oe-rowm.on b { color: #fc0; }
.oe-from { display: inline-block; width: 120px; }
.oe-imp {
  background: #c00;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 0 4px;
}
.oe-read {
  flex: 1;
  margin: 6px;
  padding: 8px;
  background: #fff;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.4;
  overflow: auto;
  user-select: text;
}
.oe-head { padding: 6px 8px 2px; }
.oe-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.oe-row label { width: 54px; flex-shrink: 0; }
.oe-row input { flex: 1; }
.oe-body {
  flex: 1;
  margin: 0 8px;
  min-height: 120px;
  resize: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}
.oe-bar { padding: 6px 8px 8px; display: flex; gap: 8px; }

.welcome {
  padding: 10px 12px 4px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.welcome-copy { flex: 1; line-height: 1.35; }
.welcome-copy h2 { margin: 0 0 4px; font-size: 13px; }
.welcome-copy p { margin: 0 0 6px; }

svg.filter-def { position: absolute; width: 0; height: 0; }

.web-future {
  min-height: 100%;
  background: #f4ecd8;
  color: #000;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.future-banner {
  background: #fff8dc;
  border-bottom: 2px solid #800;
  padding: 10px 14px 12px;
  position: relative;
}

.future-stamp {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 2px dashed #800;
  color: #800;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 700;
  transform: rotate(8deg);
  background: #fff;
}

.future-toolbar {
  background: var(--silver);
  padding: 4px 8px;
  font-family: "Pixelated MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  border-bottom: 1px solid #808080;
}

.mandate-frame {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  background: #fff;
}

.mandate-read {
  padding: 12px 16px 28px;
  max-width: 640px;
  line-height: 1.5;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.mandate-read h2, .mandate-read h3 {
  color: #000080;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
}

.calc { padding: 8px; }
.calc-out { width: 100%; text-align: right; font-size: 16px; margin-bottom: 8px; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.calc-keys .btn { min-width: 0; width: 100%; }

.sticky { flex: 1; min-height: 0; background: #ffff88; }
.sticky textarea {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  resize: none;
  padding: 8px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 13px;
  outline: none;
}

.viewer-nav { display: flex; gap: 8px; }

.window[data-id="solitaire"] .window-body,
.window[data-id="freecell"] .window-body {
  background: #008000;
  overflow: hidden;
}
.window[data-id="dos"] .window-body,
.window[data-id="doom"] .window-body,
.window[data-id="keen"] .window-body {
  background: #000;
  overflow: hidden;
}
.sol {
  background: #008000;
  padding: 8px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  color: #fff;
}
.sol-top, .sol-tab { display: flex; gap: 6px; margin-bottom: 10px; }
.sol-gap { flex: 1; }
.sol-col { display: flex; flex-direction: column; min-height: 70px; min-width: 42px; }
.sol-col .scard { margin-top: -38px; }
.sol-col .scard:first-child { margin-top: 0; }
.scard {
  width: 42px;
  height: 56px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px;
  text-align: left;
  line-height: 1.1;
}
.scard.red { color: #c00; }
.scard.back { background: #00a; color: #fff; background-image: repeating-linear-gradient(45deg, #00a 0 4px, #008 4px 8px); }
.scard.empty { background: rgba(0,0,0,0.15); border-style: dashed; color: #dfd; }
.scard.sel { outline: 2px solid #ff0; }
.sol-bar { color: #fff; display: flex; gap: 8px; align-items: center; }
.paint {
  padding: 6px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.paint-cv { flex: 1; min-height: 160px; }
.paint-tools { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.paint-swatches { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 6px; }
.swatch { width: 16px; height: 16px; border: 1px solid #000; padding: 0; }
.paint-cv { border: 2px solid; border-color: #808080 #fff #fff #808080; background: #fff; touch-action: none; cursor: crosshair; max-width: 100%; }
.doom-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  min-height: 360px;
}
.window[data-id="doom"] .window-body {
  overflow: hidden;
  background: #000;
  margin: 2px;
}
.yt-host { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

@media (max-width: 720px) {
  :root { --taskbar-h: 40px; }
  body { font-size: 13px; }
  button, input, textarea, select { font-size: 13px; }
  .desk-icon { width: 76px; padding: 2px 0 4px; }
  .desk-icon .glyph {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px;
  }
  .desk-icon .glyph svg,
  .desk-icon .glyph img { width: 40px !important; height: 40px !important; }
  .desk-icon .label { font-size: 11px; max-width: 76px; }
  .desk-about {
    right: max(8px, env(safe-area-inset-right, 0px));
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }
  #start-menu {
    width: min(228px, calc(100vw - 10px));
    max-height: none;
    overflow: visible;
  }
  .start-item { height: 36px; }
  .start-sub {
    min-width: min(200px, calc(100vw - 16px));
  }
  .start-item.has-sub:hover > .start-sub { display: none; }
  .start-sub.open { display: block; }
  .titlebar { height: 26px; padding-right: 3px; }
  .title-btn {
    width: 22px;
    height: 20px;
    min-width: 22px;
    min-height: 20px;
    background-size: 10px 9px;
  }
  .title-btn.min { background-position: center 10px; background-size: 8px 3px; }
  .title-btn.max { background-position: center 4px; background-size: 11px 11px; }
  .title-btn.max.restore { background-position: center 4px; background-size: 10px 11px; }
  .title-btn.close { background-position: center 5px; background-size: 10px 9px; margin-left: 3px; }
  .wp-page { padding: 16px 16px 22px; }
  .wp-page h1 { font-size: 22px; }
  .wp-pic { width: 56px; height: 56px; }
  .wmp-pl { width: 120px; }
  .wmp-bar .btn { min-height: 28px; }
  .btn { min-height: 30px; padding: 4px 12px; white-space: normal; height: auto; }
  input.field, textarea, select { font-size: 16px; max-width: 100%; }
  .window {
    min-width: 0;
    max-width: calc(100vw - 8px);
  }
  .window:not(.window-fixed) {
    max-width: calc(100vw - 8px);
    max-height: calc(100dvh - var(--taskbar-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 4px);
  }
  .window.window-fixed {
    max-width: calc(100vw - 8px);
  }
  .window-body { -webkit-overflow-scrolling: touch; }
  .viewer img { width: min(320px, 86vw); height: auto; }
  .ie-page { font-size: 15px; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .web99 { max-width: 100%; overflow-x: hidden; }
  .web99 table { width: 100% !important; max-width: 100%; }
  .web99 h1 { font-size: 22px; }
  .ie-snap img { max-width: 100%; height: auto; }
  .task-btn { min-width: 64px; max-width: 110px; height: 30px; }
  .mandate-frame { height: 280px; max-width: 100%; }
  .sol-col .scard { width: 34px; height: 46px; font-size: 10px; margin-top: -30px; }
  .scard { width: 34px; height: 46px; }
  .paint-cv { width: 100%; height: auto; }
  .window.dialog-win[data-id^="popup-"] {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px);
    max-height: none;
    height: auto !important;
    left: 6px !important;
  }
  .window.dialog-win {
    max-width: calc(100vw - 12px);
    max-height: none;
    height: auto !important;
  }
  .irc-nicks { width: 84px; }
  .dialog-body { min-width: 0; }
  .dialog-copy { font-size: 13px; }
  #boot.safe-off .boot-bios { font-size: 18px; white-space: normal; }
  .dt-body { flex-direction: column; align-items: center; }
  .dt-clock { width: 100%; }
  .dt-props { overflow: auto; }
  .vol-mix { overflow: auto; }
  .oe-split { flex-direction: row; }
  .oe-folders { display: none; }
  .oe-list {
    height: auto;
    flex: 0 0 38%;
    min-height: 96px;
  }
  .oe-read { flex: 1; min-height: 90px; margin: 4px; }
  .oe-from { width: 88px; }
  .file-grid { justify-content: flex-start; }
}

@media (hover: none) {
  .start-item.has-sub:hover > .start-sub { display: none; }
  .start-sub.open { display: block; }
}
