/* vendor/98.css/98.css */
@font-face {
  font-family: "Pixelated MS Sans Serif";
  font-style: normal;
  font-weight: 400;
  src: url("/vendor/98.css/ms_sans_serif.woff") format("woff");
  src: url("/vendor/98.css/ms_sans_serif.woff2") format("woff2");
}
@font-face {
  font-family: "Pixelated MS Sans Serif";
  font-style: normal;
  font-weight: 700;
  src: url("/vendor/98.css/ms_sans_serif_bold.woff") format("woff");
  src: url("/vendor/98.css/ms_sans_serif_bold.woff2") format("woff2");
}
body {
  color: #222;
  font-family: Arial;
  font-size: 12px;
}
.title-bar,
.window,
button,
input,
label,
legend,
li[role="tab"],
option,
select,
table,
textarea,
ul.tree-view {
  -webkit-font-smoothing: none;
  font-family: "Pixelated MS Sans Serif", Arial;
  font-size: 11px;
}
h1 {
  font-size: 5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
u {
  border-bottom: 0.5px solid #222;
  text-decoration: none;
}
button,
input[type="reset"],
input[type="submit"] {
  background: silver;
  border: none;
  border-radius: 0;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
  box-sizing: border-box;
  color: transparent;
  min-height: 23px;
  min-width: 75px;
  padding: 0 12px;
  text-shadow: 0 0 #222;
}
button.default,
input[type="reset"].default,
input[type="submit"].default {
  box-shadow:
    inset -2px -2px #0a0a0a,
    inset 1px 1px #0a0a0a,
    inset 2px 2px #fff,
    inset -3px -3px grey,
    inset 3px 3px #dfdfdf;
}
.vertical-bar {
  background: silver;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
  height: 20px;
  width: 4px;
}
button:not(:disabled):active,
input[type="reset"]:not(:disabled):active,
input[type="submit"]:not(:disabled):active {
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #0a0a0a,
    inset -2px -2px #dfdfdf,
    inset 2px 2px grey;
  text-shadow: 1px 1px #222;
}
button.default:not(:disabled):active,
input[type="reset"].default:not(:disabled):active,
input[type="submit"].default:not(:disabled):active {
  box-shadow:
    inset 2px 2px #0a0a0a,
    inset -1px -1px #0a0a0a,
    inset -2px -2px #fff,
    inset 3px 3px grey,
    inset -3px -3px #dfdfdf;
}
@media (not(hover)) {
  button:not(:disabled):hover,
  input[type="reset"]:not(:disabled):hover,
  input[type="submit"]:not(:disabled):hover {
    box-shadow:
      inset -1px -1px #fff,
      inset 1px 1px #0a0a0a,
      inset -2px -2px #dfdfdf,
      inset 2px 2px grey;
  }
}
button:focus,
input[type="reset"]:focus,
input[type="submit"]:focus {
  outline: 1px dotted #000;
  outline-offset: -4px;
}
button::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner {
  border: 0;
}
:disabled,
:disabled + label,
input[readonly],
input[readonly] + label {
  color: grey;
}
:disabled + label,
button:disabled,
input[type="reset"]:disabled,
input[type="submit"]:disabled {
  text-shadow: 1px 1px 0 #fff;
}
.window {
  background: silver;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #dfdfdf,
    inset -2px -2px grey,
    inset 2px 2px #fff;
  padding: 3px;
}
.title-bar {
  align-items: center;
  background: linear-gradient(90deg, navy, #1084d0);
  display: flex;
  justify-content: space-between;
  padding: 3px 2px 3px 3px;
}
.title-bar.inactive {
  background: linear-gradient(90deg, grey, #b5b5b5);
}
.title-bar-text {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
  margin-right: 24px;
}
.title-bar-controls {
  display: flex;
}
.title-bar-controls button {
  display: block;
  min-height: 14px;
  min-width: 16px;
  padding: 0;
}
.title-bar-controls button:active {
  padding: 0;
}
.title-bar-controls button:focus {
  outline: none;
}
.title-bar-controls button[aria-label="Minimize"],
.title-bar-controls button[aria-label].minimize {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='6' height='2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M0 0h6v2H0z'/%3E%3C/svg%3E");
  background-position: bottom 3px left 4px;
  background-repeat: no-repeat;
}
.title-bar-controls button[aria-label="Maximize"],
.title-bar-controls button[aria-label].maximize {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='9' height='9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9 0H0v9h9V0zM8 2H1v6h7V2z' fill='%23000'/%3E%3C/svg%3E");
  background-position: top 2px left 3px;
  background-repeat: no-repeat;
}
.title-bar-controls button[aria-label="Maximize"]:disabled,
.title-bar-controls button[aria-label].maximize:disabled {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='10' height='10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 1H1v9h9V1zM9 3H2v6h7V3z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9 0H0v9h9V0zM8 2H1v6h7V2z' fill='gray'/%3E%3C/svg%3E");
  background-position: top 2px left 3px;
  background-repeat: no-repeat;
}
.title-bar-controls button[aria-label="Restore"],
.title-bar-controls button[aria-label].restore {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M2 0h6v2H2zM7 2h1v4H7zM2 2h1v1H2zM6 5h1v1H6zM0 3h6v2H0zM5 5h1v4H5zM0 5h1v4H0zM1 8h4v1H1z'/%3E%3C/svg%3E");
  background-position: top 2px left 3px;
  background-repeat: no-repeat;
}
.title-bar-controls button[aria-label="Help"],
.title-bar-controls button[aria-label].help {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='6' height='9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M0 1h2v2H0zM1 0h4v1H1zM4 1h2v2H4zM3 3h2v1H3zM2 4h2v2H2zM2 7h2v2H2z'/%3E%3C/svg%3E");
  background-position: top 2px left 5px;
  background-repeat: no-repeat;
}
.title-bar-controls button[aria-label="Close"],
.title-bar-controls button[aria-label].close {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0h2v1h1v1h2V1h1V0h2v1H7v1H6v1H5v1h1v1h1v1h1v1H6V6H5V5H3v1H2v1H0V6h1V5h1V4h1V3H2V2H1V1H0V0z' fill='%23000'/%3E%3C/svg%3E");
  background-position: top 3px left 4px;
  background-repeat: no-repeat;
  margin-left: 2px;
}
.status-bar {
  gap: 1px;
  display: flex;
  margin: 0 1px;
}
.status-bar-field {
  box-shadow:
    inset -1px -1px #dfdfdf,
    inset 1px 1px grey;
  flex-grow: 1;
  margin: 0;
  padding: 2px 3px;
}
.window-body {
  margin: 8px;
}
fieldset {
  border-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='5' height='5' fill='gray' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0h5v5H0V2h2v1h1V2H0' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0h4v4H0V1h1v2h2V1H0'/%3E%3C/svg%3E")
    2;
  margin: 0;
  padding: 10px;
  padding-block-start: 8px;
}
legend {
  background: silver;
}
.field-row {
  align-items: center;
  display: flex;
}
[class^="field-row"] + [class^="field-row"] {
  margin-top: 6px;
}
.field-row > * + * {
  margin-left: 6px;
}
.field-row-stacked {
  display: flex;
  flex-direction: column;
}
.field-row-stacked * + * {
  margin-top: 6px;
}
label {
  align-items: center;
  display: inline-flex;
  user-select: none;
}
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: 0;
  border: none;
  margin: 0;
  opacity: 0;
  position: fixed;
}
input[type="checkbox"] + label,
input[type="radio"] + label {
  line-height: 13px;
}
input[type="radio"] + label {
  margin-left: 18px;
  position: relative;
}
input[type="radio"] + label:before {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='12' height='12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 0H4v1H2v1H1v2H0v4h1v2h1V8H1V4h1V2h2V1h4v1h2V1H8V0z' fill='gray'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 1H4v1H2v2H1v4h1v1h1V8H2V4h1V3h1V2h4v1h2V2H8V1z' fill='%23000'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9 3h1v1H9V3zm1 5V4h1v4h-1zm-2 2V9h1V8h1v2H8zm-4 0v1h4v-1H4zm0 0V9H2v1h2z' fill='%23DFDFDF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 2h-1v2h1v4h-1v2H8v1H4v-1H2v1h2v1h4v-1h2v-1h1V8h1V4h-1V2z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 2h4v1h1v1h1v4H9v1H8v1H4V9H3V8H2V4h1V3h1V2z' fill='%23fff'/%3E%3C/svg%3E");
  content: "";
  display: inline-block;
  height: 12px;
  left: -18px;
  margin-right: 6px;
  position: absolute;
  top: 0;
  width: 12px;
}
input[type="radio"]:active + label:before {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='12' height='12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 0H4v1H2v1H1v2H0v4h1v2h1V8H1V4h1V2h2V1h4v1h2V1H8V0z' fill='gray'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 1H4v1H2v2H1v4h1v1h1V8H2V4h1V3h1V2h4v1h2V2H8V1z' fill='%23000'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9 3h1v1H9V3zm1 5V4h1v4h-1zm-2 2V9h1V8h1v2H8zm-4 0v1h4v-1H4zm0 0V9H2v1h2z' fill='%23DFDFDF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 2h-1v2h1v4h-1v2H8v1H4v-1H2v1h2v1h4v-1h2v-1h1V8h1V4h-1V2z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 2h4v1h1v1h1v4H9v1H8v1H4V9H3V8H2V4h1V3h1V2z' fill='silver'/%3E%3C/svg%3E");
}
input[type="radio"]:checked + label:after {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='4' height='4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3 0H1v1H0v2h1v1h2V3h1V1H3V0z' fill='%23000'/%3E%3C/svg%3E");
  content: "";
  display: block;
  height: 4px;
  left: -14px;
  position: absolute;
  top: 4px;
  width: 4px;
}
input[type="checkbox"]:focus + label,
input[type="radio"]:focus + label {
  outline: 1px dotted #000;
}
input[type="radio"][disabled] + label:before {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='12' height='12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 0H4v1H2v1H1v2H0v4h1v2h1V8H1V4h1V2h2V1h4v1h2V1H8V0z' fill='gray'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 1H4v1H2v2H1v4h1v1h1V8H2V4h1V3h1V2h4v1h2V2H8V1z' fill='%23000'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9 3h1v1H9V3zm1 5V4h1v4h-1zm-2 2V9h1V8h1v2H8zm-4 0v1h4v-1H4zm0 0V9H2v1h2z' fill='%23DFDFDF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 2h-1v2h1v4h-1v2H8v1H4v-1H2v1h2v1h4v-1h2v-1h1V8h1V4h-1V2z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 2h4v1h1v1h1v4H9v1H8v1H4V9H3V8H2V4h1V3h1V2z' fill='silver'/%3E%3C/svg%3E");
}
input[type="radio"][disabled]:checked + label:after {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='4' height='4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3 0H1v1H0v2h1v1h2V3h1V1H3V0z' fill='gray'/%3E%3C/svg%3E");
}
input[type="checkbox"] + label {
  margin-left: 19px;
  position: relative;
}
input[type="checkbox"] + label:before {
  background: #fff;
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px grey,
    inset -2px -2px #dfdfdf,
    inset 2px 2px #0a0a0a;
  content: "";
  display: inline-block;
  height: 13px;
  left: -19px;
  margin-right: 6px;
  position: absolute;
  width: 13px;
}
input[type="checkbox"]:active + label:before {
  background: silver;
}
input[type="checkbox"]:checked + label:after {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='7' height='7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7 0H6v1H5v1H4v1H3v1H2V3H1V2H0v3h1v1h1v1h1V6h1V5h1V4h1V3h1V0z' fill='%23000'/%3E%3C/svg%3E");
  content: "";
  display: block;
  height: 7px;
  left: -16px;
  position: absolute;
  width: 7px;
}
input[type="checkbox"][disabled] + label:before {
  background: silver;
}
input[type="checkbox"][disabled]:checked + label:after {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='7' height='7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7 0H6v1H5v1H4v1H3v1H2V3H1V2H0v3h1v1h1v1h1V6h1V5h1V4h1V3h1V0z' fill='gray'/%3E%3C/svg%3E");
}
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  border-radius: 0;
}
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
select {
  background-color: #fff;
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px grey,
    inset -2px -2px #dfdfdf,
    inset 2px 2px #0a0a0a;
  box-sizing: border-box;
  padding: 3px 4px;
}
select,
textarea {
  border: none;
}
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  border-radius: 0;
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px grey,
    inset -2px -2px #dfdfdf,
    inset 2px 2px #0a0a0a;
  box-sizing: border-box;
  padding: 3px 4px;
}
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
select {
  height: 21px;
}
input[type="number"] {
  height: 22px;
}
input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
  display: none;
  height: 0;
  width: 0;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"] {
  line-height: 2;
}
input[type="email"]:disabled,
input[type="email"]:read-only,
input[type="number"]:disabled,
input[type="number"]:read-only,
input[type="password"]:disabled,
input[type="password"]:read-only,
input[type="search"]:disabled,
input[type="search"]:read-only,
input[type="tel"]:disabled,
input[type="tel"]:read-only,
input[type="text"]:disabled,
input[type="text"]:read-only,
input[type="url"]:disabled,
input[type="url"]:read-only,
textarea:disabled {
  background-color: silver;
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 0H0v16h1V1h14V0z' fill='%23DFDFDF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 1H1v14h1V2h12V1H2z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 17H0v-1h15V0h1v17z' fill='%23000'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 1h-1v14H1v1h14V1z' fill='gray'/%3E%3Cpath fill='silver' d='M2 2h12v13H2z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 6H4v1h1v1h1v1h1v1h1V9h1V8h1V7h1V6z' fill='%23000'/%3E%3C/svg%3E");
  background-position: top 2px right 2px;
  background-repeat: no-repeat;
  border-radius: 0;
  padding-right: 32px;
  position: relative;
}
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  outline: none;
}
input[type="range"] {
  -webkit-appearance: none;
  background: transparent;
  width: 100%;
}
input[type="range"]:focus {
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='11' height='21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0v16h2v2h2v2h1v-1H3v-2H1V1h9V0z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1 1v15h1v1h1v1h1v1h2v-1h1v-1h1v-1h1V1z' fill='%23C0C7C8'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9 1h1v15H8v2H6v2H5v-1h2v-2h2z' fill='%2387888F'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0h1v16H9v2H7v2H5v1h1v-2h2v-2h2z' fill='%23000'/%3E%3C/svg%3E");
  border: none;
  box-shadow: none;
  height: 21px;
  transform: translateY(-8px);
  width: 11px;
}
input[type="range"].has-box-indicator::-webkit-slider-thumb {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='11' height='21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0v20h1V1h9V0z' fill='%23fff'/%3E%3Cpath fill='%23C0C7C8' d='M1 1h8v18H1z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9 1h1v19H1v-1h8z' fill='%2387888F'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0h1v21H0v-1h10z' fill='%23000'/%3E%3C/svg%3E");
  transform: translateY(-10px);
}
input[type="range"]::-moz-range-thumb {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='11' height='21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0v16h2v2h2v2h1v-1H3v-2H1V1h9V0z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1 1v15h1v1h1v1h1v1h2v-1h1v-1h1v-1h1V1z' fill='%23C0C7C8'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9 1h1v15H8v2H6v2H5v-1h2v-2h2z' fill='%2387888F'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0h1v16H9v2H7v2H5v1h1v-2h2v-2h2z' fill='%23000'/%3E%3C/svg%3E");
  border: 0;
  border-radius: 0;
  height: 21px;
  transform: translateY(2px);
  width: 11px;
}
input[type="range"].has-box-indicator::-moz-range-thumb {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='11' height='21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0v20h1V1h9V0z' fill='%23fff'/%3E%3Cpath fill='%23C0C7C8' d='M1 1h8v18H1z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9 1h1v19H1v-1h8z' fill='%2387888F'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0h1v21H0v-1h10z' fill='%23000'/%3E%3C/svg%3E");
  transform: translateY(0);
}
input[type="range"]::-webkit-slider-runnable-track {
  background: #000;
  border-bottom: 1px solid grey;
  border-right: 1px solid grey;
  box-shadow:
    1px 0 0 #fff,
    1px 1px 0 #fff,
    0 1px 0 #fff,
    -1px 0 0 #a9a9a9,
    -1px -1px 0 #a9a9a9,
    0 -1px 0 #a9a9a9,
    -1px 1px 0 #fff,
    1px -1px #a9a9a9;
  box-sizing: border-box;
  height: 2px;
  width: 100%;
}
input[type="range"]::-moz-range-track {
  background: #000;
  border-bottom: 1px solid grey;
  border-right: 1px solid grey;
  box-shadow:
    1px 0 0 #fff,
    1px 1px 0 #fff,
    0 1px 0 #fff,
    -1px 0 0 #a9a9a9,
    -1px -1px 0 #a9a9a9,
    0 -1px 0 #a9a9a9,
    -1px 1px 0 #fff,
    1px -1px #a9a9a9;
  box-sizing: border-box;
  height: 2px;
  width: 100%;
}
.is-vertical {
  display: inline-block;
  height: 150px;
  transform: translateY(50%);
  width: 4px;
}
.is-vertical > input[type="range"] {
  height: 4px;
  margin: 0 16px 0 10px;
  transform: rotate(270deg) translateX(calc(-50% + 8px));
  transform-origin: left;
  width: 150px;
}
.is-vertical > input[type="range"]::-webkit-slider-runnable-track {
  border-bottom: 1px solid grey;
  border-left: 1px solid grey;
  border-right: 0;
  box-shadow:
    -1px 0 0 #fff,
    -1px 1px 0 #fff,
    0 1px 0 #fff,
    1px 0 0 #a9a9a9,
    1px -1px 0 #a9a9a9,
    0 -1px 0 #a9a9a9,
    1px 1px 0 #fff,
    -1px -1px #a9a9a9;
}
.is-vertical > input[type="range"]::-moz-range-track {
  border-bottom: 1px solid grey;
  border-left: 1px solid grey;
  border-right: 0;
  box-shadow:
    -1px 0 0 #fff,
    -1px 1px 0 #fff,
    0 1px 0 #fff,
    1px 0 0 #a9a9a9,
    1px -1px 0 #a9a9a9,
    0 -1px 0 #a9a9a9,
    1px 1px 0 #fff,
    -1px -1px #a9a9a9;
}
.is-vertical > input[type="range"]::-webkit-slider-thumb {
  transform: translateY(-8px) scaleX(-1);
}
.is-vertical > input[type="range"].has-box-indicator::-webkit-slider-thumb {
  transform: translateY(-10px) scaleX(-1);
}
.is-vertical > input[type="range"]::-moz-range-thumb {
  transform: translateY(2px) scaleX(-1);
}
.is-vertical > input[type="range"].has-box-indicator::-moz-range-thumb {
  transform: translateY(0) scaleX(-1);
}
select:focus {
  background-color: navy;
  color: #fff;
}
select:focus option {
  background-color: #fff;
  color: #000;
}
select:active {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0h16v17H0V0zm1 16h14V1H1v15z' fill='gray'/%3E%3Cpath fill='silver' d='M1 1h14v15H1z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 7H5v1h1v1h1v1h1v1h1v-1h1V9h1V8h1V7z' fill='%23000'/%3E%3C/svg%3E");
}
a {
  color: #00f;
}
a:focus {
  outline: 1px dotted #00f;
}
ul.tree-view {
  background: #fff;
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px grey,
    inset -2px -2px #dfdfdf,
    inset 2px 2px #0a0a0a;
  display: block;
  margin: 0;
  padding: 6px;
}
ul.tree-view li {
  list-style-type: none;
}
ul.tree-view a {
  color: #000;
  text-decoration: none;
}
ul.tree-view a:focus {
  background-color: navy;
  color: #fff;
}
ul.tree-view li,
ul.tree-view ul {
  margin-top: 3px;
}
ul.tree-view ul {
  border-left: 1px dotted grey;
  margin-left: 16px;
  padding-left: 16px;
}
ul.tree-view ul > li {
  position: relative;
}
ul.tree-view ul > li:before {
  border-bottom: 1px dotted grey;
  content: "";
  display: block;
  left: -16px;
  position: absolute;
  top: 6px;
  width: 12px;
}
ul.tree-view ul > li:last-child:after {
  background: #fff;
  bottom: 0;
  content: "";
  display: block;
  left: -20px;
  position: absolute;
  top: 7px;
  width: 8px;
}
ul.tree-view details {
  margin-top: 0;
}
ul.tree-view details[open] summary {
  margin-bottom: 0;
}
ul.tree-view ul details > summary:before {
  margin-left: -22px;
  position: relative;
  z-index: 1;
}
ul.tree-view details > summary:before {
  background-color: #fff;
  border: 1px solid grey;
  content: "+";
  display: block;
  float: left;
  height: 9px;
  line-height: 8px;
  margin-right: 5px;
  padding-left: 1px;
  text-align: center;
  width: 8px;
}
ul.tree-view details[open] > summary:before {
  content: "-";
}
ul.tree-view details > summary::-webkit-details-marker,
ul.tree-view details > summary::marker {
  content: "";
}
pre {
  background: #fff;
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px grey,
    inset -2px -2px #dfdfdf,
    inset 2px 2px #0a0a0a;
  display: block;
  margin: 0;
  padding: 12px 8px;
}
code,
code * {
  font-family: monospace;
}
summary:focus {
  outline: 1px dotted #000;
}
::-webkit-scrollbar {
  width: 16px;
}
::-webkit-scrollbar:horizontal {
  height: 17px;
}
::-webkit-scrollbar-corner {
  background: #dfdfdf;
}
::-webkit-scrollbar-track {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='2' height='2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1 0H0v1h1v1h1V1H1V0z' fill='silver'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 0H1v1H0v1h1V1h1V0z' fill='%23fff'/%3E%3C/svg%3E");
}
::-webkit-scrollbar-thumb {
  background-color: #dfdfdf;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
}
::-webkit-scrollbar-button:horizontal:end:increment,
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:vertical:start:decrement {
  display: block;
}
::-webkit-scrollbar-button:vertical:start {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 0H0v16h1V1h14V0z' fill='%23DFDFDF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 1H1v14h1V2h12V1H2z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 17H0v-1h15V0h1v17z' fill='%23000'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 1h-1v14H1v1h14V1z' fill='gray'/%3E%3Cpath fill='silver' d='M2 2h12v13H2z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 6H7v1H6v1H5v1H4v1h7V9h-1V8H9V7H8V6z' fill='%23000'/%3E%3C/svg%3E");
  height: 17px;
}
::-webkit-scrollbar-button:vertical:end {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 0H0v16h1V1h14V0z' fill='%23DFDFDF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 1H1v14h1V2h12V1H2z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 17H0v-1h15V0h1v17z' fill='%23000'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 1h-1v14H1v1h14V1z' fill='gray'/%3E%3Cpath fill='silver' d='M2 2h12v13H2z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 6H4v1h1v1h1v1h1v1h1V9h1V8h1V7h1V6z' fill='%23000'/%3E%3C/svg%3E");
  height: 17px;
}
::-webkit-scrollbar-button:horizontal:start {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 0H0v16h1V1h14V0z' fill='%23DFDFDF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 1H1v14h1V2h12V1H2z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 17H0v-1h15V0h1v17z' fill='%23000'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 1h-1v14H1v1h14V1z' fill='gray'/%3E%3Cpath fill='silver' d='M2 2h12v13H2z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9 4H8v1H7v1H6v1H5v1h1v1h1v1h1v1h1V4z' fill='%23000'/%3E%3C/svg%3E");
  width: 16px;
}
::-webkit-scrollbar-button:horizontal:end {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 0H0v16h1V1h14V0z' fill='%23DFDFDF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 1H1v14h1V2h12V1H2z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 17H0v-1h15V0h1v17z' fill='%23000'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 1h-1v14H1v1h14V1z' fill='gray'/%3E%3Cpath fill='silver' d='M2 2h12v13H2z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7 4H6v7h1v-1h1V9h1V8h1V7H9V6H8V5H7V4z' fill='%23000'/%3E%3C/svg%3E");
  width: 16px;
}
.window[role="tabpanel"] {
  position: relative;
  z-index: 2;
}
menu[role="tablist"] {
  display: flex;
  list-style-type: none;
  margin: 0 0 -2px;
  padding-left: 3px;
  position: relative;
  text-indent: 0;
}
menu[role="tablist"] > li {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  box-shadow:
    inset -1px 0 #0a0a0a,
    inset 1px 1px #dfdfdf,
    inset -2px 0 grey,
    inset 2px 2px #fff;
  z-index: 1;
}
menu[role="tablist"] > li[aria-selected="true"] {
  background-color: silver;
  margin-left: -3px;
  margin-top: -2px;
  padding-bottom: 2px;
  position: relative;
  z-index: 8;
}
menu[role="tablist"] > li > a {
  color: #222;
  display: block;
  margin: 6px;
  text-decoration: none;
}
menu[role="tablist"] > li[aria-selected="true"] > a:focus {
  outline: none;
}
menu[role="tablist"] > li > a:focus {
  outline: 1px dotted #222;
}
menu[role="tablist"].multirows > li {
  flex-grow: 1;
  text-align: center;
}
.sunken-panel {
  border: 2px groove transparent;
  border-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='5' height='5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='gray' d='M0 0h4v1H0z'/%3E%3Cpath fill='gray' d='M0 0h1v4H0z'/%3E%3Cpath fill='%230a0a0a' d='M1 1h2v1H1z'/%3E%3Cpath fill='%230a0a0a' d='M1 1h1v2H1z'/%3E%3Cpath fill='%23fff' d='M0 4h5v1H0z'/%3E%3Cpath fill='%23fff' d='M4 0h1v5H4z'/%3E%3Cpath fill='%23dfdfdf' d='M3 1h1v3H3z'/%3E%3Cpath fill='%23dfdfdf' d='M1 3h3v1H1z'/%3E%3C/svg%3E")
    2;
  box-sizing: border-box;
  overflow: auto;
}
.sunken-panel,
table {
  background-color: #fff;
}
table {
  border-collapse: collapse;
  position: relative;
  text-align: left;
  white-space: nowrap;
}
table > thead > tr > * {
  background: silver;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
  box-sizing: border-box;
  font-weight: 400;
  height: 17px;
  padding: 0 6px;
  position: sticky;
  top: 0;
}
table.interactive > tbody > tr {
  cursor: pointer;
}
table > tbody > tr.highlighted {
  background-color: navy;
  color: #fff;
}
table > tbody > tr > * {
  height: 14px;
  padding: 0 6px;
}
.progress-indicator {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  border-radius: 0;
  box-shadow:
    inset -2px -2px #dfdfdf,
    inset 2px 2px grey;
  box-sizing: border-box;
  height: 32px;
  padding: 4px;
  position: relative;
}
.progress-indicator > .progress-indicator-bar {
  background-color: navy;
  display: block;
  height: 100%;
}
.progress-indicator.segmented > .progress-indicator-bar {
  background-color: transparent;
  background-image: linear-gradient(90deg, navy 16px, transparent 0 2px);
  background-repeat: repeat;
  background-size: 18px 100%;
  width: 100%;
}
.field-border {
  background: #fff;
}
.field-border,
.field-border-disabled {
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px grey,
    inset -2px -2px #dfdfdf,
    inset 2px 2px #0a0a0a;
  padding: 2px;
}
.field-border-disabled {
  background: silver;
}
.status-field-border {
  background: silver;
  box-shadow:
    inset -1px -1px #dfdfdf,
    inset 1px 1px grey;
  padding: 1px;
}

/* desktop.css */
:root {
  --text-body: 16px;
  --text-small: 14px;
  --text-heading: 20px;
  --text-ui: 14px;
}

@font-face {
  font-family: "VT323";
  src: url("/assets/fonts/VT323-Regular.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0020-024F, U+2000-206F, U+20AC, U+2122;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: #316e70;
  color: #172e2d;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: var(--text-body);
  line-height: 1.6;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
  font-weight: normal;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a,
p,
h2,
h3 {
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid #a33912;
  outline-offset: 3px;
}

button {
  cursor: pointer;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #222;
  background: silver;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
  font:
    var(--text-ui) "Pixelated MS Sans Serif",
    Arial,
    sans-serif;
  padding: 8px 14px;
  min-height: 34px;
}

nav a:active {
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #0a0a0a,
    inset -2px -2px #dfdfdf,
    inset 2px 2px grey;
}

#restore,
#restart,
#skip-boot {
  min-height: 36px;
  font:
    var(--text-body) / 1.3 Tahoma,
    Arial,
    sans-serif;
  padding: 6px 16px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  padding: 12px;
  background: white;
  z-index: 110;
}

.skip:focus {
  top: 12px;
}

.site-shell {
  max-width: 1240px;
  margin: auto;
  padding: 24px 40px;
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 26px;
}

nav a {
  text-decoration: none;
}

.windows {
  display: grid;
  grid-auto-flow: row dense;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.window {
  min-width: 0;
  border: 0;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: var(--text-body);
  line-height: 1.6;
  scroll-margin-top: 16px;
}

.title-bar {
  gap: 12px;
  min-height: 30px;
}

.title-bar .title-bar-text {
  font:
    bold var(--text-ui) / 1.4 "Pixelated MS Sans Serif",
    Arial,
    sans-serif;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-bar-controls {
  flex-shrink: 0;
}

.title-bar .title-bar-controls button[aria-label="Close"],
.title-bar .title-bar-controls button[aria-label].close {
  min-width: 24px;
  min-height: 24px;
  background-position: center;
  background-size: 12px 11px;
  image-rendering: pixelated;
}

.title-bar .title-bar-controls button[aria-label="Minimize"] {
  background-position: left 5px bottom 5px;
  background-size: 9px 3px;
  image-rendering: pixelated;
}

.title-bar .title-bar-controls button[aria-label="Maximize"],
.title-bar .title-bar-controls button[aria-label="Restore"] {
  background-position: center;
  background-size: 12px 12px;
  image-rendering: pixelated;
}

.title-bar-controls button:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -4px;
}

.window-body {
  margin: 8px;
  padding: 16px;
}

.window-body > h3 {
  font-size: var(--text-heading);
  font-weight: bold;
}

.window-body p + p {
  margin-top: 18px;
}

.portrait {
  grid-column: 2;
  grid-row: span 2;
}

.portrait img {
  display: block;
  width: calc(100% - 24px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 16px auto;
}

figcaption {
  font-size: var(--text-small);
  padding: 0 16px 18px;
}

.quote .window-body {
  background: #e5e9b0;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 24px;
}

blockquote {
  font-size: 40px;
}

.research,
.blog {
  grid-column: 1;
}

.socials,
.contact {
  grid-column: 2;
}

.inset {
  margin: 8px;
}

.publication-scroll {
  height: 540px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  background: #fff;
}

.publications {
  margin: 0;
  padding: 0;
  list-style: none;
}

.publications li {
  padding: 20px 22px;
  border-bottom: 1px solid #b0b2a6;
}

.publications .featured {
  background: #f0efd2;
}

.publication-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--text-small);
  margin-bottom: 9px;
}

.featured-badge {
  color: #4d3902;
  background: #e9d77b;
  border: 1px solid #7a6c30;
  padding: 1px 8px;
}

.featured-badge span {
  font-family: monospace;
  font-size: var(--text-body);
}

.publications h3 {
  font-size: var(--text-heading);
  line-height: 1.4;
  margin-bottom: 10px;
}

.publications p {
  font-size: var(--text-small);
  margin-top: 5px;
}

.status-bar {
  margin: 6px 1px 1px;
}

.status-bar-field {
  padding: 5px 8px;
  font:
    var(--text-small) / 1.5 "Pixelated MS Sans Serif",
    Arial,
    sans-serif;
}

.bookmarks {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.bookmarks li + li {
  border-top: 1px solid #b0b2a6;
}

.bookmarks a {
  display: block;
  padding: 9px 0;
}

.blog-scroll {
  max-height: 380px;
  overflow-y: auto;
  background: #fff;
}

.blog-entry {
  padding: 22px;
}

.blog-entry h3 {
  font-size: var(--text-heading);
  margin: 10px 0;
}

.draft {
  display: inline-block;
  font-size: var(--text-small);
  background: #e5e9b0;
  color: #333e14;
  padding: 2px 6px;
}

.contact p {
  font-size: var(--text-body);
}

footer {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: #f2f4df;
  font-size: var(--text-small);
  align-items: center;
  padding: 28px 0 10px;
}

footer > span {
  margin-right: auto;
}

.footer-credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
  margin-left: auto;
  text-align: right;
}

dialog {
  color: inherit;
  padding: 3px;
}

dialog::backdrop {
  background: #102c36b8;
}

#post-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: 85dvh;
}

#post-content p {
  margin-top: 22px;
}

#crash,
#boot {
  background: #0000a5;
  color: #fff;
  border: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: clamp(24px, 8vw, 120px);
  overflow-y: auto;
}

#crash h2,
#boot h2 {
  margin: 36px 0;
  font-size: clamp(32px, 5vw, 56px);
}

#crash button,
#boot button {
  margin-top: 32px;
}

#boot {
  background: #111;
}

#boot pre {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border: 0;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 32px 0;
}

#boot-progress {
  display: block;
  width: min(100%, 480px);
  height: 24px;
  margin-top: 24px;
  accent-color: #5686df;
}

#crash :focus-visible,
#boot :focus-visible {
  outline-color: white;
}

.article-shell {
  max-width: 820px;
  margin: 32px auto;
  padding: 0 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 740px) {
  .site-shell {
    padding: 20px 12px;
  }

  .windows {
    display: flex;
    flex-direction: column;
  }

  .windows > * {
    width: 100%;
  }

  .window-body {
    padding: 18px;
  }

  .publication-scroll {
    height: min(540px, 70dvh);
  }

  .publications li {
    padding: 18px 14px;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }

  .windows {
    display: block;
  }

  [data-window][hidden] {
    display: block !important;
  }

  .publication-scroll,
  .blog-scroll {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  nav,
  .close,
  dialog,
  footer {
    display: none !important;
  }
}

#typed-name {
  white-space: pre;
}

.cursor {
  animation: cursor-blink 1s step-end 5;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

#photo-dialog figcaption {
  padding: 16px 0 0;
  text-align: center;
}

.publication-frame {
  display: flex;
  margin: 8px;
  overflow: hidden;
}

.publication-frame .publication-scroll {
  flex: 1;
  min-width: 0;
  border: 0;
  margin: 0;
}

#boot {
  font-family: "VT323", "VT323 Fallback", monospace;
  background: #000;
  font-size: 24px;
  line-height: 1.25;
  padding: 40px;
}

#boot .bios-brand {
  font-size: 36px;
  margin-bottom: 12px;
}

#boot-log {
  min-height: 310px;
}

.bios-footer {
  border-top: 1px solid #aaa;
  padding-top: 14px;
}

#boot.windows-boot {
  background:
    radial-gradient(ellipse at 20% 65%, #ffffffd9 0%, transparent 40%),
    radial-gradient(ellipse at 80% 20%, #ffffffc9 0%, transparent 38%),
    linear-gradient(#4289c7, #c8e4f5 70%, #f5faff);
  color: #162b49;
  text-align: center;
}

#windows-screen {
  max-width: 680px;
  margin: 8vh auto 28px;
}

.boot-logo {
  width: 156px;
  height: 156px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  transform: perspective(500px) rotateY(-16deg) rotate(-8deg);
  margin: 0 auto 28px;
}

.boot-logo i {
  border: 3px solid #17334a;
  background: #e64b35;
  box-shadow: 3px 3px 0 #17334a33;
}

.boot-logo i:nth-child(2),
.boot-logo i:nth-child(6) {
  background: #65ad45;
}

.boot-logo i:nth-child(4),
.boot-logo i:nth-child(8) {
  background: #3487ce;
}

.boot-logo i:nth-child(3),
.boot-logo i:nth-child(7) {
  background: #f4ca36;
}

.boot-wordmark {
  font:
    bold 48px/1.1 Tahoma,
    Arial,
    sans-serif;
}

.boot-wordmark span {
  display: block;
  font:
    20px/1.5 Tahoma,
    Arial,
    sans-serif;
  margin: 12px 0 40px;
}

#boot-progress {
  background: silver;
  margin: auto;
  width: min(100%, 360px);
  height: 28px;
}

#boot-progress > #boot-fill {
  width: 0;
}

#boot.windows-boot :focus-visible {
  outline-color: #183c8a;
}

@media (max-width: 740px) {
  #boot {
    padding: 24px 18px;
    font-size: 20px;
  }
  #boot .bios-brand {
    font-size: 28px;
  }
  #boot-log {
    min-height: 350px;
  }
  .boot-wordmark {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
  }
}

#crash {
  font:
    26px/1.5 "VT323",
    "VT323 Fallback",
    monospace;
}

#crash h2 {
  font:
    normal clamp(36px, 5vw, 56px) / 1.2 "VT323",
    "VT323 Fallback",
    monospace;
}

#boot.windows-boot {
  padding-bottom: 80px;
}

#windows-screen #boot-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
  padding: 2px;
}

.boot-wordmark {
  font-style: italic;
  font-size: clamp(48px, 8vw, 80px);
  letter-spacing: -2px;
}

.boot-wordmark span {
  font-size: 28px;
  letter-spacing: 4px;
}

.publications li,
.blog-entry {
  display: flow-root;
}

.thumbnail-link {
  float: right;
  margin: 0 0 16px 20px;
}

.content-thumbnail {
  display: block;
  width: 100px;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  border: 1px solid #808080;
}

.content-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  margin: 0 auto 24px;
}

@media (max-width: 480px) {
  .thumbnail-link {
    float: none;
    display: table;
    margin: 0 0 16px;
  }

  .content-thumbnail {
    width: 76px;
    max-height: 120px;
  }
}

.blog-entry > time,
#post-content > time,
.article-shell article > time {
  font-size: var(--text-small);
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: var(--text-body);
}

.article-shell article > h2 {
  margin: 24px 0 8px;
  font-size: var(--text-heading);
  font-weight: bold;
}

.title-bar {
  background: linear-gradient(90deg, #000080, #0867a7);
}

footer a:focus-visible {
  outline-color: #fff;
}

.publication-scroll:focus-visible {
  outline-offset: -3px;
}

.window.maximized .publication-frame {
  flex: 1;
  min-height: 0;
}

.title-bar-controls button {
  flex-shrink: 0;
}

@media (forced-colors: active) {
  .window,
  .task,
  #start-toggle,
  .start-panel {
    border: 1px solid CanvasText;
  }

  .title-bar .title-bar-controls button[aria-label] {
    background-image: none;
    color: ButtonText;
    border: 1px solid ButtonText;
  }

  .title-bar-controls button[aria-label="Minimize"]::after {
    content: "_";
  }

  .title-bar-controls button[aria-label="Maximize"]::after {
    content: "□";
  }

  .title-bar-controls button[aria-label="Restore"]::after {
    content: "❐";
  }

  .title-bar-controls button[aria-label^="Close"]::after,
  .title-bar-controls button.close::after {
    content: "×";
  }

  :focus-visible {
    outline: 2px solid Highlight;
  }
}

/* Shared title: subpages return home; the desktop button only replays text. */
.site-title {
  margin: 8px 0 20px;
  font-family: "VT323", "VT323 Fallback", monospace;
  font-size: 88px;
  color: #f2f4df;
  min-height: 1em;
  font-weight: normal;
  line-height: 1;
}
.site-title a,
.site-title button {
  color: inherit;
  text-decoration: none;
  font: inherit;
}
.site-title button {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  min-width: 0;
}
[data-title-text] {
  white-space: pre;
}
[data-replay-title] [data-title-text] {
  text-align: left;
  display: inline-block;
  width: var(--title-width, 10ch);
}
[data-replay-title] .cursor {
  display: inline-block;
  width: 1ch;
  transform: translateX(var(--cursor-offset, 0ch));
}
html.reduce-motion .site-title .cursor {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .site-title .cursor {
    animation: none;
  }
}

.site-title .cursor {
  color: #edeea0;
}
@media (max-width: 740px) {
  .site-title {
    font-size: clamp(44px, 10vw, 68px);
  }
}
html.high-contrast .site-title,
html.high-contrast .site-title .cursor {
  color: #fff;
}
@media (forced-colors: active) {
  .site-title,
  .site-title .cursor {
    color: CanvasText;
  }
}

/* Consistent chrome for all windows, including disabled standalone controls. */
.title-bar .title-bar-controls button[aria-label] {
  min-width: 24px;
  min-height: 24px;
}
.title-bar .title-bar-controls button:disabled {
  opacity: 1;
  background-color: #c0c0c0;
  color: #808080;
  text-shadow: 1px 1px #fff;
  cursor: default;
}
[data-window]:focus {
  outline: none;
}
[data-window] > .title-bar {
  background: linear-gradient(90deg, #808080, #b5b5b5);
}
[data-window].is-active-window > .title-bar {
  background: linear-gradient(90deg, #000080, #1084d0);
}
.messenger-launch-button {
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #c0c0c0;
  color: #111;
  border: 2px outset #eee;
  text-decoration: none;
}

[data-static-title] .cursor {
  animation: none;
}

.title-bar .title-bar-controls button[aria-label="Minimize"]:disabled {
  background-image: url("/assets/icons/disabled-minimize.svg");
  background-size: 10.5px 4.5px;
  background-position: left 5px bottom 3.5px;
}
.title-bar .title-bar-controls button[aria-label="Close"]:disabled {
  background-image: url("/assets/icons/disabled-close.svg");
  background-size: 13.5px 12.5px;
  background-position: calc(50% + 0.75px) calc(50% + 0.75px);
}
.title-bar .title-bar-controls button[aria-label="Maximize"]:disabled {
  background-size: 13.333px 13.333px;
  background-position: calc(50% + 0.667px) calc(50% + 0.667px);
}

.portrait picture {
  display: contents;
}

/* Keep the photo slot independent of a srcset candidate's intrinsic size. */
#toggle-photo {
  width: calc(100% - 20px);
}

/* WOFF2-first local overrides; keep the upstream 98.css file intact. */
@font-face {
  font-family: "Pixelated MS Sans Serif";
  src:
    url("/vendor/98.css/ms_sans_serif.woff2") format("woff2"),
    url("/vendor/98.css/ms_sans_serif.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0-10FFFF;
}
@font-face {
  font-family: "Pixelated MS Sans Serif";
  src:
    url("/vendor/98.css/ms_sans_serif_bold.woff2") format("woff2"),
    url("/vendor/98.css/ms_sans_serif_bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0-10FFFF;
}
/* VT323 uses a .4em cell. Courier's .6em cell is scaled to match it. */
@font-face {
  font-family: "VT323 Fallback";
  src: local("Courier New");
  size-adjust: 66.667%;
  ascent-override: 120%;
  descent-override: 30%;
  line-gap-override: 0%;
  unicode-range: U+0-10FFFF;
}
img[src*="/icons/silk/"] {
  image-rendering: pixelated;
}

@media (forced-colors: active) {
  /* Explicit system colors keep the footer legible in forced-color rendering
     and full-page captures, including when site contrast settings are enabled. */
  footer {
    color: CanvasText !important;
    background: Canvas !important;
  }
  footer a {
    color: LinkText !important;
  }
}

/* taskbar.css */
html,
body {
  background-color: var(--screen-edge-color, #c0c0c0);
}

body {
  overflow: hidden;
}

#desktop-viewport {
  background-color: #316e70;
  height: calc(100dvh - var(--taskbar-height, 64px));
  overflow-y: auto;
}

.has-maximized-window #desktop-viewport {
  overflow: hidden;
}

#desktop-viewport > .site-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

#desktop-viewport > .site-shell > * {
  flex-shrink: 0;
}

#desktop-viewport > .site-shell > footer {
  margin-top: auto;
}

.site-shell > header {
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .site-shell > footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-shell > footer > span,
  .footer-credits {
    margin: 0;
  }

  .footer-credits {
    justify-content: flex-start;
    text-align: left;
    gap: 8px 20px;
  }
}

.taskbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
  background: silver;
  color: #222;
  box-shadow:
    inset 0 1px #dfdfdf,
    inset 0 2px #fff;
  font:
    14px/1.3 Tahoma,
    Arial,
    sans-serif;
}

#start-menu {
  flex: none;
}

#start-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 10px;
  list-style: none;
  cursor: pointer;
  font:
    bold 18px/1.2 "Pixelated MS Sans Serif",
    Arial,
    sans-serif;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
}

#start-toggle::-webkit-details-marker {
  display: none;
}

#start-menu[open] > summary,
.task.is-active:not(.is-minimized) {
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #0a0a0a,
    inset -2px -2px #dfdfdf,
    inset 2px 2px grey;
  background: #dfdfdf;
}

.start-panel {
  position: absolute;
  bottom: 100%;
  left: 8px;
  display: flex;
  width: min(300px, calc(100vw - 16px));
  max-height: calc(100dvh - 64px - env(safe-area-inset-bottom));
  padding: 3px;
  background: silver;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
}

.start-brand {
  padding: 14px 6px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: linear-gradient(to top, #000080, #1084d0);
  color: #fff;
  font:
    bold 24px/1.2 Tahoma,
    Arial,
    sans-serif;
  letter-spacing: 1px;
}

#start-navigation {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  flex: 1;
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow-y: auto;
}

#start-navigation a,
#start-navigation button {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 44px;
  width: 100%;
  padding: 8px 10px;
  gap: 10px;
  flex-shrink: 0;
  background: transparent;
  box-shadow: none;
  color: #222;
  text-shadow: none;
  font:
    16px/1.3 Tahoma,
    Arial,
    sans-serif;
  text-decoration: none;
}

#start-navigation #restore {
  margin-top: 6px;
  border-top: 1px solid grey;
}

#start-navigation a:hover,
#start-navigation a:focus-visible,
#start-navigation button:hover,
#start-navigation button:focus-visible {
  background: #000080;
  color: #fff;
  outline: none;
}

.tasks {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  padding: 3px;
}

.task {
  display: flex;
  align-items: center;
  flex: 1 0 125px;
  max-width: 210px;
  min-width: 0;
  padding: 3px;
  background: silver;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
}

.task a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 4px;
  flex: 1;
  min-width: 0;
  min-height: 28px;
  padding: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  box-shadow: none;
  font:
    14px/1.3 Tahoma,
    Arial,
    sans-serif;
}

.task a:active {
  box-shadow: none;
}

#taskbar-clock {
  flex: none;
  padding: 9px 12px;
  white-space: nowrap;
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px grey;
}

.has-maximized-window {
  overflow: hidden;
}

.window.maximized {
  position: fixed;
  inset: 8px 8px calc(var(--taskbar-height, 64px) + 8px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  margin: 0;
  width: auto;
  height: auto;
}

.window.maximized > .title-bar {
  position: sticky;
  top: 0;
  flex: none;
  z-index: 1;
}

.window.maximized .publication-scroll,
.window.maximized .blog-scroll {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
}

@media (max-width: 600px) {
  .tasks {
    display: none;
  }

  #taskbar-clock {
    margin-left: auto;
  }
}

@media print {
  #desktop-viewport {
    height: auto;
    overflow: visible;
  }

  .taskbar {
    display: none;
  }

  .window.maximized {
    position: static;
    display: block;
  }

  body {
    padding-bottom: 0;
    overflow: visible;
  }
}

#task-actions {
  position: fixed;
  z-index: 110;
  width: 180px;
  padding: 4px;
}

#task-actions button {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 8px 14px;
  text-align: left;
  color: #222;
  text-shadow: none;
  box-shadow: none;
  font:
    14px/1.3 Tahoma,
    Arial,
    sans-serif;
}

#task-actions button:disabled {
  color: grey;
}

#task-actions button:not(:disabled):hover,
#task-actions button:focus-visible {
  background: #000080;
  color: #fff;
  outline: none;
}

@media print {
  #task-actions {
    display: none;
  }
}

[data-start-status] {
  margin-left: auto;
  padding-left: 14px;
  font-size: 12px;
}

#task-actions {
  max-width: calc(100vw - 8px);
}

#start-navigation .power-action {
  border-top: 1px solid gray;
  margin-top: 6px;
}

.portrait-image {
  margin: 10px;
}

.portrait.maximized .portrait-image {
  flex: 1;
  min-height: 0;
}

.portrait.maximized img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

#shutdown {
  max-width: none;
  width: 100vw;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 20vh 24px 24px;
  text-align: center;
  background: #000;
  color: #eaa852;
  font-family: "VT323", monospace;
}

#shutdown h2 {
  font: inherit;
  font-size: 36px;
}

#shutdown p {
  font-size: 24px;
}

.program-icon {
  flex: none;
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

#start-navigation .program-icon {
  width: 24px;
  height: 24px;
}

.task-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#start-navigation .power-action {
  border-top: 2px groove #fff;
}

.start-brand {
  text-align: left;
}

@media (min-width: 601px) and (max-width: 1200px) {
  .tasks {
    overflow-x: visible;
  }

  .task {
    flex: 0 0 40px;
    max-width: 40px;
  }

  .task a {
    justify-content: center;
    padding: 5px 0;
  }

  .task-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

button.portrait-image,
button.portrait-image:active {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
}

button.portrait-image:focus-visible {
  outline: 3px solid #a33912;
  outline-offset: 2px;
}

.portrait.maximized button.portrait-image {
  cursor: zoom-out;
}

/* wallpaper.css */
#desktop-viewport[data-wallpaper],
#wallpaper-preview {
  background-color: #316e70;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#desktop-viewport[data-wallpaper="avery"],
#wallpaper-preview[data-wallpaper="avery"] {
  background-image: url("/assets/wallpapers/avery.png");
}

#desktop-viewport[data-wallpaper="avery"] header h1,
#desktop-viewport[data-wallpaper="avery"] footer {
  background: #316e70;
  padding: 12px;
}

#desktop-viewport[data-wallpaper="avery"] header h1 {
  width: fit-content;
  max-width: 100%;
}

#desktop-viewport[data-wallpaper="avery"] footer a:focus-visible {
  outline-color: #fff;
}

@media (max-width: 600px) {
  #desktop-viewport[data-wallpaper="avery"] footer {
    padding: 28px 0 10px;
  }
}

#display-properties {
  width: min(440px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 3px;
  color: #172e2d;
  background: silver;
}

#display-properties .window-body {
  padding: 10px;
}
#display-properties fieldset {
  margin: 0;
  padding: 16px;
}
#display-properties legend,
#display-properties label,
#display-properties select,
#display-properties button {
  font: inherit;
}
#display-properties label {
  display: block;
  margin: 14px 0 6px;
}
#wallpaper-choice {
  width: 100%;
  min-height: 84px;
}
#wallpaper-choice option {
  padding: 5px 8px;
}
.monitor-preview {
  width: min(260px, 100%);
  margin: 0 auto;
  padding: 12px 12px 0;
  background: #dfdfdf;
  box-shadow:
    inset -2px -2px #808080,
    inset 2px 2px #fff,
    2px 2px #0a0a0a;
}
#wallpaper-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 3px solid #404040;
}
.preview-taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: silver;
  border-top: 1px solid white;
}
.monitor-chin {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.monitor-chin span {
  width: 5px;
  height: 5px;
  background: #008000;
  border: 1px solid #404040;
}
.wallpaper-note {
  font-size: var(--text-small);
  margin-top: 12px;
}
#wallpaper-status {
  min-height: 24px;
  font-size: var(--text-small);
  margin: 8px 0;
}
.wallpaper-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.wallpaper-actions button {
  min-height: 36px;
}

#wallpaper-choice,
#wallpaper-choice:focus {
  background: #fff;
  color: #000;
}

#wallpaper-choice option:checked {
  background: #000080;
  color: #fff;
}

/* media-player.css */
#media-player {
  width: min(760px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 3px;
  background: silver;
}

#media-player .title-bar-controls button {
  min-width: 24px;
  min-height: 24px;
}

#media-player .title-bar {
  position: sticky;
  top: 0;
  z-index: 1;
}

#media-player .title-bar-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#media-caption {
  margin: 0;
  padding: 10px 12px;
  font-size: var(--text-small);
}

#media-player #media-screen {
  margin: 0 5px;
  width: calc(100% - 10px);
  min-height: 0;
  flex: 0 1 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow:
    inset 1px 1px #808080,
    inset -1px -1px #fff;
  padding: 2px;
}

#media-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

#media-player .status-bar {
  margin: 0 5px 3px;
  font:
    var(--text-small) / 1.5 Tahoma,
    Arial,
    sans-serif;
}

#media-player .status-bar-field {
  padding: 6px 8px;
}

#media-player.media-maximized {
  width: calc(100vw - 16px);
  height: calc(100dvh - 16px);
  max-height: none;
}

#media-player.media-maximized[open] {
  display: flex;
  flex-direction: column;
}

#media-player.media-maximized #media-screen {
  flex: 1;
  aspect-ratio: auto;
}

#media-player .title-bar,
#media-caption,
#media-player .status-bar {
  flex: none;
}

#media-controls {
  flex: none;
  margin: 6px 5px 0;
  padding: 8px;
  min-width: 0;
  border: 0;
  font:
    var(--text-small) / 1.4 Tahoma,
    Arial,
    sans-serif;
}

.media-seek-row,
.media-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-seek-row {
  margin-bottom: 8px;
}

#media-seek {
  flex: 1;
  min-width: 0;
}

#media-time {
  flex: none;
  min-width: 96px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#media-controls button {
  min-height: 32px;
  min-width: 48px;
  font: inherit;
}

#media-controls #media-mute {
  min-width: 70px;
}

.transport-symbol {
  font:
    16px/1 Arial,
    sans-serif;
}

#media-volume {
  width: 100px;
  min-width: 48px;
}

#media-control-status {
  margin-left: auto;
}

@media (max-width: 600px) {
  .media-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }

  #media-controls button {
    min-height: 40px;
  }

  #media-volume {
    flex: 1;
  }

  #media-control-status {
    flex-basis: 100%;
    margin: 0;
  }
}

.publication-list .presentation-link,
a.presentation-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 8px 0 4px;
  padding: 6px 12px;
  background: silver;
  color: #000;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
  font: inherit;
  text-decoration: none;
  vertical-align: middle;
}

a.presentation-link:hover {
  color: #000080;
}

a.presentation-link:active {
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #0a0a0a,
    inset -2px -2px #dfdfdf,
    inset 2px 2px #808080;
}

a.presentation-link:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -5px;
}

.presentation-play {
  color: #000080;
  font:
    16px/1 Arial,
    sans-serif;
}

#media-player > .window-scroll-body {
  display: flex;
  flex-direction: column;
  overflow: clip;
}
#media-player > .window-scroll-body > * {
  flex-shrink: 0;
}

/* Consent is document content, not a video: let it keep its natural height.
   Only this state may scroll on very short screens. */
#media-player #media-screen:has(.privacy-video-placeholder) {
  flex: none;
  aspect-ratio: auto;
}
#media-player > .window-scroll-body:has(.privacy-video-placeholder) {
  overflow: auto;
}
#media-player:has(.privacy-video-placeholder) #media-controls {
  display: none;
}

/* recovery-button.css */
.recovery-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 75px;
  min-height: 36px;
  margin-top: 32px;
  padding: 6px 16px;
  border: 0;
  border-radius: 0;
  background: silver;
  color: #222;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
  font:
    16px/1.3 Tahoma,
    Arial,
    sans-serif;
  text-decoration: none;
  text-shadow: none;
  -webkit-font-smoothing: none;
  cursor: pointer;
}

.recovery-button:active {
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #0a0a0a,
    inset -2px -2px #dfdfdf,
    inset 2px 2px grey;
}

.recovery-button:focus-visible {
  outline: 1px dotted #fff;
  outline-offset: 3px;
}

/* accessibility-settings.css */
#accessibility-settings {
  width: min(540px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 3px;
  background: silver;
  color: #172e2d;
}
#accessibility-settings .window-body {
  padding: 12px;
}
#accessibility-settings fieldset {
  margin: 10px 0;
  padding: 12px;
}
#accessibility-settings .preference {
  margin: 8px 0;
}
#accessibility-settings label {
  font: inherit;
}
#accessibility-settings .preference p {
  margin: 4px 0 0 24px;
  font-size: var(--text-small);
}
#accessibility-settings .window-body button {
  font: inherit;
  min-height: 32px;
}
#accessibility-status {
  min-height: 1.6em;
  margin: 12px 0;
}
.accessibility-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.readable-font body,
.readable-font body * {
  font-family: Arial, Helvetica, sans-serif !important;
}
.large-text {
  --text-body: 20px;
  --text-small: 18px;
  --text-heading: 24px;
  --text-ui: 18px;
}
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.large-controls button,
.large-controls summary,
.large-controls .task a,
.large-controls .start-items a {
  min-width: 44px;
  min-height: 44px;
}
.large-controls .title-bar {
  flex-wrap: wrap;
  gap: 4px;
}
.large-controls .title-bar-controls {
  margin-left: auto;
}
.large-controls .title-bar-controls button {
  width: 44px;
  height: 44px;
  min-width: 44px !important;
  min-height: 44px !important;
}
.high-contrast body,
.high-contrast #desktop-viewport[data-wallpaper],
.high-contrast #desktop-viewport header h1,
.high-contrast #desktop-viewport footer {
  background: #000 !important;
  color: #fff !important;
}
.high-contrast .window,
.high-contrast dialog,
.high-contrast .window-body,
.high-contrast .taskbar,
.high-contrast .start-panel,
.high-contrast .publication-list,
.high-contrast .publication,
.high-contrast .blog-list {
  background: #fff !important;
  color: #000 !important;
}
.high-contrast .title-bar {
  background: #000 !important;
  color: #fff !important;
}
.high-contrast a:focus-visible,
.high-contrast button:focus-visible,
.high-contrast summary:focus-visible,
.high-contrast [data-window]:focus {
  outline: 3px solid #000;
  box-shadow: 0 0 0 6px #fff;
}
.high-contrast footer a:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 6px #000;
}

#accessibility-settings legend {
  font: inherit;
}
.large-controls #accessibility-settings label {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.high-contrast .publications,
.high-contrast .publications li,
.high-contrast .blog-entry,
.high-contrast #wallpaper-status,
.high-contrast #accessibility-status {
  background-color: #fff !important;
  color: #000 !important;
}
.high-contrast .featured-badge {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #000;
}
.high-contrast .start-brand {
  background: #000;
}

.large-text body:has(.system-name) {
  font-size: clamp(30px, 3.75vw, 40px);
}
.large-controls .recovery-button {
  min-height: 44px;
  min-width: 44px;
}

.large-controls .title-bar .title-bar-controls button[aria-label="Close"],
.large-controls .title-bar .title-bar-controls button.close {
  background-size: 24px 22px;
  background-position: center;
}
.large-controls .title-bar .title-bar-controls button[aria-label="Maximize"],
.large-controls .title-bar .title-bar-controls button[aria-label="Restore"],
.large-controls .title-bar .title-bar-controls button[data-maximize] {
  background-size: 24px 24px;
  background-position: center;
}
.large-controls .title-bar .title-bar-controls button[data-minimize] {
  background-size: 18px 6px;
  background-position: left 9px bottom 9px;
}
.large-controls #start-navigation a,
.large-controls #start-navigation button {
  min-height: 52px;
}
.large-controls #start-navigation .program-icon,
.large-controls .task .program-icon {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
}
.large-controls #accessibility-settings .window-body button {
  min-height: 44px;
}
.large-controls #accessibility-settings .preference {
  margin: 4px 0;
}
.large-controls #accessibility-settings fieldset {
  margin: 8px 0;
  padding: 8px 12px;
}
#accessibility-settings > .title-bar {
  position: sticky;
  top: 0;
  z-index: 1;
}

.large-text #start-navigation a,
.large-text #start-navigation button {
  font-size: var(--text-body);
}
.large-text .taskbar,
.large-text .task a,
.large-text #task-actions button {
  font-size: var(--text-ui);
}
.large-text #start-toggle {
  font-size: 22px;
}
.large-text [data-start-status] {
  font-size: 16px;
}
.large-text .transport-symbol,
.large-text .presentation-play {
  font-size: 20px;
}
.large-controls #media-controls button,
.large-controls #task-actions button {
  min-height: 44px;
}
.large-controls .transport-symbol {
  font-size: 24px;
}
.high-contrast #start-navigation a,
.high-contrast #start-navigation button {
  color: #000;
}
.high-contrast #start-navigation a:hover,
.high-contrast #start-navigation button:hover,
.high-contrast #start-navigation a:focus-visible,
.high-contrast #start-navigation button:focus-visible {
  background: #000;
  color: #fff;
}
.high-contrast .status-bar-field,
.high-contrast #media-controls,
.high-contrast #task-actions {
  background: #fff;
  color: #000;
}
.high-contrast .presentation-link,
.high-contrast .presentation-play {
  color: #000;
}
#accessibility-settings .accessibility-note {
  font-size: var(--text-small);
  margin: 8px 0 12px;
}
.high-contrast button,
.high-contrast select,
.high-contrast .task a,
.high-contrast #start-toggle,
.high-contrast .presentation-link {
  background-color: #fff;
  color: #000;
}
.high-contrast button:disabled {
  color: #595959;
  text-shadow: none;
}

.large-controls #start-toggle {
  min-height: 44px;
  padding: 4px 14px;
  gap: 8px;
}
.large-controls #start-toggle img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.high-contrast #crash .title-bar-text,
.high-contrast #boot h2,
.high-contrast #boot pre,
.high-contrast #boot .boot-wordmark,
.high-contrast #shutdown h2,
.high-contrast .system-name {
  color: #000;
}
.high-contrast #crash :focus-visible,
.high-contrast #boot :focus-visible,
.high-contrast #shutdown :focus-visible {
  outline-color: #000;
}

/* /privacy.css */
.privacy-window {
  width: min(520px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 3px;
  color: #172e2d;
  background: silver;
  font-size: var(--text-body, 16px);
}
.privacy-window > .title-bar {
  position: sticky;
  top: 0;
  z-index: 1;
}
.privacy-window .window-body {
  padding: 12px;
  margin: 0;
}
.privacy-window .window-body button,
.privacy-window label,
.privacy-window legend {
  font: inherit;
}
.privacy-window .window-body button {
  min-height: 32px;
}
.privacy-window p {
  margin: 12px 0;
}
.privacy-brand,
.privacy-alert {
  display: flex;
  align-items: center;
  gap: 16px;
}
.privacy-brand strong {
  font:
    bold 24px Arial,
    sans-serif;
}
.privacy-brand {
  padding-bottom: 12px;
  border-bottom: 2px groove white;
}
.privacy-alert {
  margin: 8px 0 20px;
}
.privacy-alert img,
.privacy-brand img {
  flex-shrink: 0;
  image-rendering: pixelated;
}
.privacy-alert h2 {
  margin: 0;
  font:
    bold var(--text-heading, 20px) / 1.3 Arial,
    sans-serif;
}
.privacy-report {
  width: 100%;
  table-layout: fixed;
  border-spacing: 0;
  padding: 2px;
  background: #fff;
  color: #172e2d;
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #808080,
    inset -2px -2px #dfdfdf,
    inset 2px 2px #0a0a0a;
  text-align: left;
  font: inherit;
  font-size: var(--text-small, 14px);
}
.privacy-report caption {
  text-align: left;
  margin-bottom: 6px;
  font-weight: bold;
}
.privacy-report th,
.privacy-report td {
  padding: 8px;
  vertical-align: top;
  overflow-wrap: anywhere;
  white-space: normal;
}
.privacy-report thead th {
  background: silver;
  color: #172e2d;
  font-weight: normal;
  box-shadow:
    inset -1px -1px #808080,
    inset 1px 1px #fff;
  padding: 4px 8px;
}
.privacy-report tbody th {
  font-weight: normal;
}
.privacy-report th:first-child {
  width: 46%;
}
.privacy-report td {
  border-left: 1px solid #dfdfdf;
}
.privacy-component,
.privacy-report-status {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.privacy-component img {
  flex: 0 0 16px;
  image-rendering: pixelated;
}
.privacy-report-status::before {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  background: #e6b541;
  border: 1px solid #765400;
}
.privacy-report-status.is-off::before {
  background: silver;
  border-color: #555;
}
.high-contrast .privacy-report thead th {
  background: white;
  color: black;
  box-shadow: none;
  border-bottom: 1px solid black;
}
.high-contrast .privacy-report td {
  border-color: black;
}
.high-contrast .privacy-report-status::before {
  background: white;
  border-color: black;
}
.privacy-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
#privacy-settings .privacy-tools + .privacy-actions {
  margin-top: 20px;
}
.privacy-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}
.privacy-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 16px;
}
.privacy-window fieldset {
  padding: 12px;
  margin: 16px 0;
}
.privacy-preference {
  margin: 12px 0;
}
.privacy-preference p {
  margin: 6px 0 0 24px;
  font-size: var(--text-small, 14px);
}
#privacy-preview-note {
  border: 1px solid;
  padding: 8px;
  font-weight: bold;
}
.privacy-status-line,
#privacy-reload {
  font-size: var(--text-small, 14px);
}
.privacy-page-entry {
  margin: 16px auto;
  max-width: 960px;
  padding: 0 16px;
}
.privacy-video-placeholder {
  background: silver;
  color: #172e2d;
  padding: 20px;
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.privacy-video-placeholder p {
  margin: 0;
}
.privacy-video-placeholder button {
  align-self: flex-start;
  font: inherit;
  min-height: 32px;
}
.large-controls .privacy-window .window-body button,
.large-controls .privacy-window label,
.large-controls .privacy-video-placeholder button {
  min-height: 44px;
}
.large-controls .privacy-window label {
  display: flex;
  align-items: center;
}
.high-contrast .privacy-report,
.high-contrast .privacy-video-placeholder {
  color: black;
  background: white;
}
@media (max-width: 400px) {
  .privacy-alert {
    gap: 12px;
  }
  .privacy-alert img {
    width: 48px;
    height: 48px;
  }
  .privacy-choices {
    grid-template-columns: 1fr;
  }
}

#privacy-policy-dialog {
  width: min(720px, calc(100vw - 24px));
}
#privacy-policy-content h2 {
  font-size: var(--text-heading, 20px);
  margin-top: 24px;
}
.privacy-policy-actions {
  padding: 12px;
  align-items: center;
  justify-content: space-between;
}

#privacy-policy-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#privacy-policy-dialog > .title-bar,
#privacy-policy-dialog > .privacy-policy-actions {
  flex-shrink: 0;
}
#privacy-policy-content {
  min-height: 0;
  overflow: auto;
}
.privacy-page-entry {
  color: #f6f2d6;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.subpage-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 24px auto;
  padding: 0 16px;
  gap: 16px 24px;
  color: #f2f4df;
  font:
    var(--text-small, 14px) / 1.5 Arial,
    sans-serif;
}
.subpage-footer > span {
  margin-right: auto;
  white-space: nowrap;
}
.subpage-footer .footer-credits {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 20px;
  margin-left: auto;
  text-align: right;
}
.subpage-footer a {
  color: inherit;
}
@media (max-width: 600px) {
  .subpage-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .subpage-footer .footer-credits {
    flex: none;
    justify-content: flex-start;
    text-align: left;
    margin-left: 0;
  }
}

body:has(> .subpage-footer) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body:has(> .subpage-footer) > .article-shell {
  width: 100%;
}
body > .subpage-footer {
  width: min(960px, 100%);
  margin-top: auto;
  padding-top: 24px;
}
footer a {
  font: inherit;
  -webkit-font-smoothing: auto;
}
.subpage-footer {
  font-family: Tahoma, Verdana, Arial, sans-serif;
}

.privacy-trademark {
  font-family: inherit;
  font-size: 0.6em;
  line-height: 0;
  vertical-align: super;
  margin-left: 0.2em;
}

/* Include programmatic focus restored after a settings dialog closes. */
footer a:focus {
  outline-color: #fff;
}

.privacy-report-status.is-allowed::before {
  background: #398839;
  border-color: #205020;
}
.high-contrast .privacy-report-status.is-allowed::before {
  background: black;
  border-color: black;
}

/* /window-layout.css */
/* Shared chrome contract: only the content scrolls, never the title/footer. */
dialog.window[open],
.home-messenger > .window,
.window.maximized {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: clip;
}

.window > :is(.title-bar, .status-bar, .privacy-policy-actions, figcaption) {
  flex-shrink: 0;
}

dialog.window > :is(.window-body, .window-scroll-body),
.home-messenger > .window > .window-body,
.window.maximized > .window-body {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  overflow: auto;
}

/* Lists have an existing nested scrollport; remove only its inset frame. */
.window > .publication-frame,
.window > .blog-scroll {
  margin: 0;
  border: 0;
}
.publication-frame > .publication-scroll {
  margin: 0;
}
.window > .status-bar {
  margin-top: 0;
}

/* 98.css skins both buttons at each end; retain only one directional arrow. */
::-webkit-scrollbar-button:vertical:start:increment,
::-webkit-scrollbar-button:vertical:end:decrement,
::-webkit-scrollbar-button:horizontal:start:increment,
::-webkit-scrollbar-button:horizontal:end:decrement {
  display: none;
}

/* On narrow screens, scroll the complete messenger stack as one page. */
@media (max-width: 650px) {
  .home-messenger {
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--taskbar-height, 64px));
    max-height: none;
    padding: 12px;
    overflow: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
  }

  .home-messenger > .window,
  .home-messenger > .window.maximized {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    overflow: visible;
  }

  .home-messenger > .window > .window-body {
    flex: none;
    overflow: visible;
  }

  .home-messenger > .window.maximized > .title-bar {
    position: static;
  }

  body.messenger-open #desktop-viewport {
    overflow: hidden;
  }
}
