@font-face {
  font-family: Win95;
  src: url(ms_sans_serif.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Win95;
  src: url(ms_sans_serif_bold.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --desktop: #008080;
  --face: #c0c0c0;
  --light: #fff;
  --shadow: #808080;
  --dark: #000;
  --navy: #000080;
  --ink: #000;
  --ui: Win95, "Microsoft Sans Serif", Arial, sans-serif;
  --bar: 30px;
  --zoom: 1;
  font-family: var(--ui);
  font-size: 11px;
  color: var(--ink);
  background: var(--desktop);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  background: var(--face);
  border: 0;
  border-radius: 0;
  min-height: 23px;
  padding: 4px 12px;
  box-shadow:
    inset -1px -1px var(--dark),
    inset 1px 1px var(--light),
    inset -2px -2px var(--shadow),
    inset 2px 2px #dfdfdf;
  cursor: default;
}
button:active,
button.pressed {
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #000,
    inset -2px -2px #dfdfdf,
    inset 2px 2px #808080;
}
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -4px;
}
button:disabled {
  color: #808080;
  text-shadow: 1px 1px #fff;
}
button:disabled svg {
  opacity: 0.4;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #808080,
    inset -2px -2px #dfdfdf,
    inset 2px 2px #000;
  padding: 5px;
  min-width: 0;
}
input[type="range"] {
  accent-color: #808080;
}
a {
  color: #0000ee;
}
a:visited {
  color: #551a8b;
}
svg.pixel-icon {
  display: block;
  flex-shrink: 0;
  shape-rendering: crispEdges;
}
#desktop {
  position: fixed;
  inset: 0 0 var(--bar);
  background: var(--desktop);
  overflow: hidden;
}
#window-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#window-layer > * {
  pointer-events: auto;
}
#desktop-icons {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, 86px);
  grid-auto-columns: 80px;
  gap: 6px;
  padding: 8px;
  position: absolute;
  inset: 0;
  align-content: start;
  justify-content: start;
  width: max-content;
  max-width: 100%;
}
.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 5px 2px;
  width: 80px;
  height: 80px;
  border: 1px solid transparent;
  background: none;
  box-shadow: none;
  color: #fff;
  text-align: center;
  user-select: none;
}
.desktop-icon:hover,
.desktop-icon:active {
  background: none;
  box-shadow: none;
}
.desktop-icon .icon-label {
  max-width: 76px;
  padding: 1px 2px;
  line-height: 1.25;
}
.desktop-icon.selected .icon-label,
.desktop-icon:focus-visible .icon-label {
  background: #000080;
  color: #fff;
  outline: 1px dotted #fff;
}
.desktop-icon:focus-visible {
  outline: 0;
}
#taskbar {
  position: fixed;
  inset: auto 0 0;
  height: var(--bar);
  background: var(--face);
  box-shadow: inset 0 1px #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  z-index: 10000;
}
#start {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  padding: 2px 6px;
  height: 24px;
  flex-shrink: 0;
}
#tasks {
  display: flex;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.task-button {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 170px;
  min-width: 35px;
  flex: 1;
  text-align: left;
  height: 24px;
  padding: 3px 6px;
  overflow: hidden;
}
.task-button > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-button.pressed {
  font-weight: bold;
  background: repeating-conic-gradient(#dfdfdf 0% 25%, #fff 0% 50%) 0 0/2px 2px;
}
#tray {
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 3px;
  box-shadow:
    inset 1px 1px #808080,
    inset -1px -1px #fff;
  gap: 3px;
}
#clock,
#volume {
  box-shadow: none;
  background: none;
  padding: 2px 3px;
  white-space: nowrap;
}
#clock {
  min-width: 65px;
}
#volume {
  min-width: 23px;
}
#menu-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20000;
}
.popup-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  max-width: calc(100vw - 4px);
  background: var(--face);
  box-shadow:
    inset -1px -1px #000,
    inset 1px 1px #fff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
  padding: 3px;
  pointer-events: auto;
}
.popup-item {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  box-shadow: none;
  min-height: 24px;
  padding: 3px 6px;
  white-space: nowrap;
}
.popup-item:focus,
.popup-item:hover:not(:disabled) {
  background: var(--navy);
  color: #fff;
  outline: none;
  box-shadow: none;
}
.popup-item:disabled:focus {
  background: var(--face);
  color: #808080;
}
.menu-check {
  display: flex;
  width: 18px;
  align-items: center;
  justify-content: center;
}
.menu-label {
  flex: 1;
}
.menu-key {
  margin-left: 14px;
  min-width: 8px;
}
.menu-separator {
  height: 2px;
  background: #808080;
  border-bottom: 1px solid #fff;
  margin: 3px 2px;
}
.start-popup {
  padding-left: 29px;
  min-width: 224px;
}
.start-brand {
  position: absolute;
  left: 3px;
  top: 3px;
  bottom: 3px;
  width: 24px;
  background: #808080;
  color: #c0c0c0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 700 21px Arial;
  padding: 7px 0;
  display: flex;
  gap: 2px;
}
.start-brand > span {
  color: #fff;
  font-weight: 400;
}
.start-popup > .popup-item {
  min-height: 38px;
}
.start-popup > .popup-item > .menu-check {
  width: 32px;
}
.classic-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: var(--face);
  padding: 3px;
  box-shadow:
    inset -1px -1px #000,
    inset 1px 1px #dfdfdf,
    inset -2px -2px #808080,
    inset 2px 2px #fff;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.classic-window[hidden] {
  display: none;
}
.titlebar {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 19px;
  min-height: 19px;
  background: #808080;
  color: #c0c0c0;
  padding: 2px;
  user-select: none;
  touch-action: none;
}
.active-window > .titlebar,
.dialog-title {
  background: var(--navy);
  color: #fff;
}
.caption {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.window-icon {
  background: none;
  box-shadow: none;
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  flex-shrink: 0;
}
.window-controls {
  display: flex;
  gap: 2px;
}
.window-controls button {
  width: 16px;
  height: 14px;
  min-height: 0;
  padding: 0;
  line-height: 11px;
  color: #000;
  font: bold 15px Arial;
}
.window-controls .close-window {
  margin-left: 2px;
}
.minimize span {
  display: block;
  width: 6px;
  height: 2px;
  background: #000;
  margin: 7px 4px 0;
}
.maximize span {
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid #000;
  border-top-width: 2px;
  margin: auto;
}
.maximized .maximize span {
  width: 7px;
  height: 7px;
  box-shadow:
    2px -2px 0 -1px #c0c0c0,
    2px -2px 0 0 #000;
}
.app-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  padding: 4px;
}
.menu-host:empty {
  display: none;
}
.menubar {
  display: flex;
  align-items: center;
  min-height: 21px;
  padding: 1px 2px;
  flex-wrap: wrap;
}
.menubar > button {
  background: none;
  box-shadow: none;
  min-height: 19px;
  padding: 2px 7px;
}
.menubar > button:hover,
.menubar > button[aria-expanded="true"] {
  background: #000080;
  color: #fff;
}
.statusbar {
  min-height: 20px;
  padding: 4px 5px;
  margin: 1px;
  box-shadow:
    inset 1px 1px #808080,
    inset -1px -1px #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: text;
}
.resize-handle {
  position: absolute;
  touch-action: none;
}
.resize-n,
.resize-s {
  left: 6px;
  right: 6px;
  height: 4px;
  cursor: ns-resize;
}
.resize-n {
  top: 0;
}
.resize-s {
  bottom: 0;
}
.resize-e,
.resize-w {
  top: 6px;
  bottom: 6px;
  width: 4px;
  cursor: ew-resize;
}
.resize-e {
  right: 0;
}
.resize-w {
  left: 0;
}
.resize-ne,
.resize-nw,
.resize-se,
.resize-sw {
  width: 8px;
  height: 8px;
}
.resize-ne {
  top: 0;
  right: 0;
  cursor: nesw-resize;
}
.resize-nw {
  top: 0;
  left: 0;
  cursor: nwse-resize;
}
.resize-se {
  bottom: 0;
  right: 0;
  cursor: nwse-resize;
}
.resize-sw {
  bottom: 0;
  left: 0;
  cursor: nesw-resize;
}
.maximized > .resize-handle {
  display: none;
}
.classic-dialog {
  max-width: min(520px, calc(100vw - 16px));
  width: 390px;
  max-height: calc(100dvh - 20px);
  overflow: auto;
  border: 0;
  padding: 3px;
  background: #c0c0c0;
  color: #000;
  box-shadow:
    inset -1px -1px #000,
    inset 1px 1px #dfdfdf,
    inset -2px -2px #808080,
    inset 2px 2px #fff;
  font: 11px var(--ui);
}
.classic-dialog::backdrop {
  background: #0003;
}
.dialog-title {
  justify-content: space-between;
  font-weight: bold;
}
.dialog-title > button {
  height: 14px;
  width: 16px;
  min-height: 0;
  padding: 0;
  line-height: 12px;
  color: #000;
}
.dialog-content {
  padding: 14px;
  line-height: 1.5;
}
.dialog-content input:not([type="radio"]):not([type="checkbox"]),
.dialog-content textarea,
.dialog-content select {
  width: 100%;
}
.dialog-content p {
  margin: 0 0 10px;
}
.dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 0 12px 12px;
  flex-wrap: wrap;
}
.dialog-buttons button {
  min-width: 75px;
}
.default-button {
  outline: 1px solid #000;
  outline-offset: 1px;
}
.field-label {
  display: block;
  margin-bottom: 5px;
}
.file-picker {
  height: 190px;
  margin: 6px 0 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid #808080;
}
.toolbar button {
  min-width: 30px;
  padding: 4px 6px;
}
.toolbar label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.toolbar input {
  flex: 1;
}
.inset {
  background: #fff;
  box-shadow:
    inset 1px 1px #808080,
    inset 2px 2px #000,
    inset -1px -1px #fff;
  padding: 3px;
}
.folder-grid {
  background: #fff;
  flex: 1;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, 88px);
  align-content: start;
  gap: 9px;
  padding: 10px;
}
.file-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: none;
  background: none;
  text-align: center;
  padding: 4px 1px;
  min-height: 65px;
  word-break: break-word;
  line-height: 1.25;
  user-select: none;
}
.file-item:active {
  box-shadow: none;
}
.file-item.selected {
  background: #000080;
  color: #fff;
}
.file-item:focus-visible {
  outline: 1px dotted #000;
  outline-offset: 0;
}
.file-item span {
  max-width: 100%;
}
.folder-grid.list,
.folder-grid.details {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.folder-grid.list .file-item,
.folder-grid.details .file-item {
  min-height: 25px;
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  gap: 7px;
  padding: 3px;
}
.folder-grid.list svg,
.folder-grid.details svg {
  width: 16px;
  height: 16px;
}
.file-detail {
  margin-left: auto;
  color: #555;
  font: 11px var(--ui);
  white-space: nowrap;
}
.selected .file-detail {
  color: #fff;
}
.empty-folder {
  color: #444;
  padding: 15px;
  grid-column: 1/-1;
  line-height: 1.7;
}
.notepad-editor {
  resize: none;
  flex: 1;
  min-height: 120px;
  width: 100%;
  font:
    14px/1.45 "Courier New",
    monospace;
  padding: 5px !important;
  white-space: pre;
  overflow: auto;
  tab-size: 4;
}
.notepad-editor.wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.browser-navigation {
  display: flex;
  gap: 4px;
  align-items: center;
}
.browser-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 48px;
}
.address-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
}
.address-row input {
  flex: 1;
}
.browser-page {
  flex: 1;
  background: #fff;
  overflow: auto;
  padding: 22px;
  color: #000;
  font:
    17px/1.55 Georgia,
    "Times New Roman",
    serif;
  user-select: text;
  overflow-wrap: anywhere;
}
.browser-page h1 {
  font-size: 28px;
  line-height: 1.2;
}
.browser-page h2 {
  font-size: 22px;
  line-height: 1.3;
}
.browser-page img,
.browser-page video {
  max-width: 100%;
  height: auto;
}
.browser-page pre {
  overflow: auto;
  white-space: pre-wrap;
}
.browser-page table {
  max-width: 100%;
  display: block;
  overflow: auto;
}
.browser-page .date {
  font: 12px var(--ui);
  color: #555;
}
.browser-page a:focus-visible {
  outline: 2px dotted #000;
}
.browser-page.hide-images img {
  display: none;
}
.browser-page mark {
  background: #ff0;
}
.activity {
  margin-left: auto;
  font: bold 21px Georgia;
  background: #000080;
  color: #fff;
  padding: 2px 9px;
}
.activity.busy {
  animation: throb 0.7s steps(2) infinite;
}
@keyframes throb {
  50% {
    color: #ff0;
  }
}
.paint-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}
.paint-toolbox {
  display: grid;
  grid-template-columns: repeat(2, 25px);
  align-content: start;
  gap: 2px;
  padding: 3px;
  width: 58px;
  flex-shrink: 0;
}
.paint-toolbox button {
  width: 25px;
  height: 25px;
  min-height: 0;
  padding: 3px;
  font: 16px monospace;
}
.paint-toolbox .pressed {
  background: #fff;
}
.paint-options {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font: 11px var(--ui);
  padding-top: 8px;
}
.paint-options input {
  width: 48px;
}
.paint-workspace {
  overflow: auto;
  background: #808080;
  flex: 1;
  min-width: 0;
  position: relative;
  padding: 5px;
  touch-action: pan-x pan-y;
}
.paint-surface {
  display: block;
  background: #fff;
  image-rendering: pixelated;
  touch-action: none;
  cursor: crosshair;
  transform-origin: top left;
}
.paint-palette {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  padding: 4px;
}
.paint-color {
  width: 17px;
  height: 17px;
  min-height: 0;
  padding: 0;
  border: 1px solid #808080;
  box-shadow: inset 1px 1px #fff;
}
.color-current {
  display: flex;
  gap: 2px;
  margin-right: 8px;
}
.color-current span {
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  outline: 1px solid #808080;
}
.sound-view {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 8px;
}
.sound-view label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 66px;
}
.sound-view output {
  background: #fff;
  padding: 5px;
  box-shadow: inset 1px 1px #808080;
}
.sound-scope {
  background: #000;
  min-width: 30px;
  width: 100%;
  height: 64px;
  image-rendering: pixelated;
}
.transport {
  display: flex;
  gap: 5px;
  padding: 8px;
}
.transport button {
  flex: 1;
  min-width: 32px;
  font: 16px monospace;
}
.sound-seek {
  width: calc(100% - 18px);
  margin: 0 9px;
}
.sound-notice {
  padding: 6px 10px;
  line-height: 1.5;
}
.settings-panel {
  padding: 15px;
  overflow: auto;
  flex: 1;
}
.settings-panel fieldset {
  margin: 8px 0 16px;
  border: 1px solid #808080;
  padding: 12px;
}
.settings-panel label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0;
}
.settings-panel select {
  margin-left: auto;
}
.tabs {
  display: flex;
  gap: 2px;
  padding: 6px 6px 0;
}
.tabs button[aria-selected="true"] {
  background: #dfdfdf;
  font-weight: bold;
}
.settings-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.search-row {
  display: flex;
  gap: 6px;
  padding: 8px;
}
.search-row input {
  flex: 1;
}
.search-results {
  background: #fff;
  padding: 5px;
  overflow: auto;
  flex: 1;
}
.search-result {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 8px;
  box-shadow: none;
  background: #fff;
  text-align: left;
}
.search-result:hover,
.search-result:focus {
  background: #000080;
  color: #fff;
}
.help-content {
  padding: 18px;
  background: #fff;
  overflow: auto;
  flex: 1;
  font:
    15px/1.6 Arial,
    sans-serif;
}
.help-content h1 {
  font-size: 22px;
}
.help-content summary {
  font-weight: bold;
  cursor: default;
}
.help-content details {
  margin: 12px 0;
}
.help-content kbd {
  background: #eee;
  border: 1px solid #888;
  padding: 1px 4px;
}
.calculator {
  padding: 10px;
  max-width: 340px;
  margin: auto;
  width: 100%;
}
.calc-display {
  width: 100%;
  font:
    24px/1.5 "Courier New",
    monospace !important;
  text-align: right;
  margin-bottom: 8px;
}
.calc-keys {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}
.calc-keys button {
  min-height: 32px;
  color: #00a;
}
.calc-keys button.operation {
  color: #a00;
}
.mine-panel {
  margin: auto;
  max-width: 100%;
  padding: 8px;
}
.mine-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px;
  background: #c0c0c0;
  box-shadow:
    inset 1px 1px #808080,
    inset -1px -1px #fff;
  margin-bottom: 8px;
}
.mine-counter {
  background: #000;
  color: #f00;
  padding: 3px 4px;
  font: bold 22px monospace;
  min-width: 50px;
  text-align: center;
}
.mine-board {
  display: grid;
  grid-template-columns: repeat(var(--cols), 23px);
  max-width: 100%;
  overflow: auto;
  box-shadow: inset 1px 1px #808080;
  padding: 2px;
}
.mine-cell {
  width: 23px;
  height: 23px;
  min-height: 23px;
  padding: 0;
  font: bold 15px Arial;
  display: grid;
  place-items: center;
}
.mine-cell.revealed {
  box-shadow: none;
  border: 1px solid #808080;
  background: #c0c0c0;
}
.mine-cell[data-value="1"] {
  color: #00f;
}
.mine-cell[data-value="2"] {
  color: #008000;
}
.mine-cell[data-value="3"] {
  color: #f00;
}
.mine-cell[data-value="4"] {
  color: #000080;
}
.mine-cell.flagged {
  color: #a00;
}
.calendar {
  text-align: center;
  line-height: 1.5;
  padding: 12px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin: 10px 0;
  background: #fff;
  padding: 5px;
}
.calendar-grid span {
  padding: 5px;
}
.calendar-grid .today {
  background: #000080;
  color: #fff;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 5px;
  z-index: 30000;
  background: #fff;
  padding: 8px;
}
.skip-link:focus {
  top: 5px;
}
.sr-only {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.reading-toggle {
  position: fixed;
  right: 8px;
  top: 8px;
  z-index: 0;
}
#fallback {
  max-width: 840px;
  margin: 20px auto;
  padding: 24px;
  background: #fff;
  font:
    17px/1.6 Georgia,
    serif;
}
body.ready #fallback {
  display: none;
}
body:not(.ready) #desktop,
body:not(.ready) #taskbar {
  display: none;
}
body.reading-mode #desktop,
body.reading-mode #taskbar {
  display: none;
}
body.reading-mode #fallback {
  display: block;
}
#companion-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5000;
  image-rendering: pixelated;
}
#sleep-screen {
  position: fixed;
  inset: 0;
  background: #000;
  color: #ff9500;
  z-index: 30000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: 16px/1.6 var(--ui);
  gap: 20px;
  padding: 30px;
}
#sleep-screen[hidden] {
  display: none;
}
#print-frame {
  position: fixed;
  width: 1px;
  height: 1px;
  left: -10000px;
  top: 0;
  border: 0;
}
body.pattern #desktop {
  background-image: repeating-conic-gradient(
    #ffffff16 0% 25%,
    transparent 0% 50%
  );
  background-size: 4px 4px;
}
body.high-contrast {
  --desktop: #000;
  --face: #fff;
  --navy: #000;
  --ink: #000;
}
.cursor-trail {
  position: fixed;
  width: 10px;
  height: 19px;
  pointer-events: none;
  z-index: 25000;
  background: url(../img/cursor.png);
  image-rendering: pixelated;
}
body.custom-cursors,
body.custom-cursors button {
  cursor: url(../img/cursor.png), auto;
}
body.custom-cursors a {
  cursor: url(../img/pointer.png), pointer;
}
body.custom-cursors textarea,
body.custom-cursors input[type="text"] {
  cursor: text;
}
@media (max-width: 619px) {
  :root {
    --bar: 42px;
  }
  .titlebar {
    height: 29px;
    min-height: 29px;
  }
  .window-controls button {
    width: 27px;
    height: 23px;
    font-size: 19px;
  }
  .window-icon {
    height: 22px;
    width: 22px;
  }
  .menubar > button {
    min-height: 31px;
    padding: 5px 8px;
  }
  .task-button {
    height: 34px;
    padding: 4px;
  }
  #start {
    height: 34px;
  }
  #tray {
    height: 34px;
  }
  #clock {
    min-width: 50px;
    font-size: 10px;
  }
  #volume {
    display: none;
  }
  #tasks {
    overflow-x: auto;
  }
  .task-button {
    min-width: 55px;
  }
  .task-button > span:last-child {
    max-width: 80px;
  }
  .popup-item {
    min-height: 35px;
  }
  .classic-window {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  .classic-window:not(.active-window) {
    visibility: hidden;
  }
  .window-controls .minimize {
    display: none;
  }
  .desktop-icon {
    height: 80px;
  }
  #desktop-icons {
    grid-template-rows: repeat(5, 86px);
  }
  .browser-page {
    padding: 15px;
    font-size: 17px;
  }
  .browser-button {
    min-width: 35px;
    padding: 4px !important;
    font-size: 10px;
  }
  .browser-navigation {
    gap: 2px;
  }
  .toolbar {
    gap: 3px;
  }
  .paint-toolbox {
    width: 54px;
    grid-template-columns: repeat(2, 23px);
  }
  .paint-toolbox button {
    width: 23px;
  }
  .paint-palette {
    gap: 3px;
  }
  .paint-color {
    width: 19px;
    height: 19px;
  }
  .sound-view {
    padding: 10px 4px;
    gap: 4px;
  }
  .sound-view label {
    min-width: 58px;
  }
  .classic-dialog {
    font-size: 13px;
  }
  .dialog-buttons button {
    min-height: 34px;
  }
  #fallback {
    margin: 5px;
    padding: 15px;
  }
  .file-item {
    min-height: 78px;
  }
  .reading-toggle {
    top: auto;
    bottom: 8px;
  }
  .notepad-editor {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .cursor-trail {
    display: none;
  }
}
@media (forced-colors: active) {
  button,
  .classic-window,
  .classic-dialog,
  input,
  textarea {
    border: 1px solid ButtonText;
  }
  .titlebar {
    background: Highlight;
    color: HighlightText;
  }
  .desktop-icon {
    color: CanvasText;
  }
  .popup-item:focus {
    background: Highlight;
    color: HighlightText;
  }
}
@media print {
  #desktop,
  #taskbar,
  #companion-canvas,
  .reading-toggle,
  .skip-link {
    display: none !important;
  }
  #fallback {
    display: block !important;
    margin: 0;
    padding: 0;
  }
  body {
    background: #fff;
  }
}
svg.win-icon {
  display: block;
  flex-shrink: 0;
  shape-rendering: crispEdges;
}
.large-ui {
  font-size: 13px;
  --bar: 38px;
}
.large-ui .titlebar {
  height: 25px;
  min-height: 25px;
}
.large-ui .menubar button {
  min-height: 25px;
}
.large-ui .popup-item {
  min-height: 29px;
}
.large-ui #start,
.large-ui .task-button,
.large-ui #tray {
  height: 30px;
}
.large-ui .statusbar {
  font-size: 12px;
}
.large-ui .classic-dialog {
  font-size: 13px;
}

/* Original tiled wallpaper and the square system scroll bars. */
body[data-wallpaper="tiles"] #desktop {
  background-image: url(../assets/wallpapers/tiles.svg);
  background-size: 32px 32px;
}
body.high-contrast #desktop {
  background-image: none;
}
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}
::-webkit-scrollbar-track {
  background: repeating-conic-gradient(#c0c0c0 0 25%, #fff 0 50%) 0 0/2px 2px;
}
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-button {
  background-color: #c0c0c0;
  box-shadow:
    inset 1px 1px #fff,
    inset -1px -1px #000,
    inset -2px -2px #808080;
  border-radius: 0;
}
::-webkit-scrollbar-button:single-button {
  display: block;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4'%3E%3Cpath d='M3 0h1v1h1v1h1v1h1v1H0V3h1V2h1V1h1z'/%3E%3C/svg%3E");
}
::-webkit-scrollbar-button:vertical:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4'%3E%3Cpath d='M0 0h7v1H6v1H5v1H4v1H3V3H2V2H1V1H0z'/%3E%3C/svg%3E");
}
::-webkit-scrollbar-button:horizontal:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='7'%3E%3Cpath d='M3 0h1v7H3V6H2V5H1V4H0V3h1V2h1V1h1z'/%3E%3C/svg%3E");
}
::-webkit-scrollbar-button:horizontal:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='7'%3E%3Cpath d='M0 0h1v1h1v1h1v1h1v1H3v1H2v1H1v1H0z'/%3E%3C/svg%3E");
}
::-webkit-scrollbar-corner {
  background: #c0c0c0;
}
/* Keep native form semantics while drawing period system controls. */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  vertical-align: middle;
  width: 13px;
  height: 13px;
  min-width: 13px;
  padding: 0;
  margin: 3px 5px;
  background: #fff;
  border: 0;
  box-shadow:
    inset 1px 1px #808080,
    inset -1px -1px #fff,
    inset 2px 2px #000,
    inset -2px -2px #dfdfdf;
}
input[type="checkbox"]:checked {
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Cpath d='M0 2h1v1h1v1h1V3h1V2h1V1h1V0h1v3H6v1H5v1H4v1H3v1H2V6H1V5H0z'/%3E%3C/svg%3E")
    center/7px 7px no-repeat;
}
input[type="radio"] {
  border-radius: 50%;
}
input[type="radio"]:checked {
  background: radial-gradient(circle, #000 0 2px, #fff 2px);
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 1px dotted #000;
  outline-offset: 2px;
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  background-color: #c0c0c0;
}
select:not([size]):not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 24px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='20'%3E%3Cpath fill='%23c0c0c0' d='M1 1h16v18H1z'/%3E%3Cpath stroke='%23fff' d='M2 18V2h14'/%3E%3Cpath stroke='%23000' d='M1 19h16V1'/%3E%3Cpath stroke='%23808080' d='M2 18h14V2'/%3E%3Cpath d='M5 8h7v1h-1v1h-1v1H9v1H8v-1H7v-1H6V9H5z'/%3E%3C/svg%3E")
    right center/18px calc(100% - 2px) no-repeat;
}
input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  height: 24px;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: #808080;
  box-shadow:
    1px 1px #fff,
    inset 1px 1px #000;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 11px;
  height: 20px;
  margin-top: -8px;
  border: 0;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow:
    inset 1px 1px #fff,
    inset -1px -1px #000,
    inset -2px -2px #808080;
}
input[type="range"]::-moz-range-track {
  height: 4px;
  background: #808080;
  box-shadow:
    1px 1px #fff,
    inset 1px 1px #000;
}
input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 20px;
  border: 0;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow:
    inset 1px 1px #fff,
    inset -1px -1px #000,
    inset -2px -2px #808080;
}
@media (max-width: 619px) {
  .window-controls .maximize {
    display: none;
  }
  input[type="checkbox"],
  input[type="radio"] {
    width: 17px;
    height: 17px;
    min-width: 17px;
  }
}
@media (forced-colors: active) {
  input[type="checkbox"],
  input[type="radio"],
  select:not([size]):not([multiple]) {
    appearance: auto;
    -webkit-appearance: auto;
  }
}
.browser-glyph {
  display: block;
  margin: auto;
  image-rendering: pixelated;
}
.browser-button:disabled .browser-glyph {
  filter: grayscale(1);
  opacity: 0.45;
}
.ski-window > .menu-host,
.ski-window > .statusbar {
  display: none;
}
.ski-window > .app-body {
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.ski-game {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
.ski-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  image-rendering: pixelated;
  touch-action: none;
  cursor: default;
}
.ski-canvas:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -2px;
}
.ski-stats {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-columns: 46px 1fr;
  width: 142px;
  padding: 1px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font:
    bold 12px/12px "Courier New",
    monospace;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.ski-stats output {
  white-space: pre;
  text-align: right;
}
