@font-face {
  font-family: "Pixel Sans";
  src: url("fonts/ms_sans_serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Pixel Sans";
  src: url("fonts/ms_sans_serif_bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --teal: #008080;
  --face: #c0c0c0;
  --light: #dfdfdf;
  --white: #ffffff;
  --shadow: #808080;
  --dark: #0a0a0a;
  --navy: #000080;
  --text: #000000;
  --taskbar-h: 28px;
  --raised: inset -1px -1px var(--dark), inset 1px 1px var(--white), inset -2px -2px var(--shadow), inset 2px 2px var(--light);
  --pressed: inset -1px -1px var(--white), inset 1px 1px var(--dark), inset -2px -2px var(--light), inset 2px 2px var(--shadow);
  --sunken: inset -1px -1px var(--white), inset 1px 1px var(--shadow), inset -2px -2px var(--light), inset 2px 2px var(--dark);
  --shallow: inset -1px -1px var(--white), inset 1px 1px var(--shadow);
  --window: inset -1px -1px var(--dark), inset 1px 1px var(--light), inset -2px -2px var(--shadow), inset 2px 2px var(--white);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  background: #f8f8f6;
  color: var(--text);
  font: 11px/1.3 "Pixel Sans", Tahoma, "MS Sans Serif", Arial, sans-serif;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }

.icon { display: inline-block; flex: none; line-height: 0; }
.icon svg { display: block; image-rendering: pixelated; }

/* ---------- Bevels ---------- */
.raised { background: var(--face); box-shadow: var(--raised); }
.shallow { box-shadow: var(--shallow); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 23px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: var(--face);
  box-shadow: var(--raised);
  cursor: pointer;
}
.button:active, .button.pressed { box-shadow: var(--pressed); }
.button:active > *, .button.pressed > * { transform: translate(1px, 1px); }
.button:focus-visible { outline: 1px dotted var(--dark); outline-offset: -5px; }

input[type="search"], input[type="text"], select {
  height: 21px;
  padding: 2px 4px;
  border: 0;
  border-radius: 0;
  background: var(--white);
  box-shadow: var(--sunken);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  user-select: text;
  -webkit-user-select: text;
}
input[type="search"]::-webkit-search-cancel-button { display: none; }
select {
  padding-right: 20px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17'%3E%3Crect width='16' height='17' fill='%23c0c0c0'/%3E%3Cpath d='M0 0h15v1H1v15H0zM15 0h1v17h-1zM0 16h16v1H0z' fill='%230a0a0a'/%3E%3Cpath d='M1 1h13v1H2v13H1z' fill='%23fff'/%3E%3Cpath d='M14 1h1v15h-1zM1 15h14v1H1z' fill='%23808080'/%3E%3Cpath d='M4 7h7v1H4zM5 8h5v1H5zM6 9h3v1H6zM7 10h1v1H7z' fill='%23000'/%3E%3C/svg%3E") no-repeat right 2px center;
}

/* ---------- Scrollbars ---------- */
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track {
  background-color: var(--face);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='1' fill='%23fff'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23fff'/%3E%3C/svg%3E");
}
::-webkit-scrollbar-thumb { background: var(--face); box-shadow: var(--raised); }
::-webkit-scrollbar-corner { background: var(--face); }
::-webkit-scrollbar-button:single-button { display: block; width: 16px; height: 16px; background-color: var(--face); box-shadow: var(--raised); background-repeat: no-repeat; background-position: center; }
::-webkit-scrollbar-button:single-button:active { box-shadow: var(--pressed); }
::-webkit-scrollbar-button:single-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 0h1v1H3zM2 1h3v1H2zM1 2h5v1H1zM0 3h7v1H0z'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:single-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 0h7v1H0zM1 1h5v1H1zM2 2h3v1H2zM3 3h1v1H3z'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:single-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='M0 3h1v1H0zM1 2h1v3H1zM2 1h1v5H2zM3 0h1v7H3z'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:single-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 0h1v7H0zM1 1h1v5H1zM2 2h1v3H2zM3 3h1v1H3z'/%3E%3C/svg%3E"); }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-color: var(--face) #e0e0e0; }
}

/* ---------- Wallpaper ---------- */
#wallpaper {
  position: fixed;
  inset: 0 0 var(--taskbar-h) 0;
  z-index: 0;
  width: 100%;
  height: calc(100% - var(--taskbar-h));
  image-rendering: pixelated;
}
#wallpaper.collage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: 110px;
  overflow: hidden;
  image-rendering: auto;
}
#wallpaper.collage img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
#wallpaper.collage::after {
  content: "";
  position: fixed;
  inset: 0 0 var(--taskbar-h) 0;
  background: var(--teal);
  mix-blend-mode: multiply;
  opacity: 0.92;
}
#desktop { z-index: 1; }
.desktop-icon .label, .hint {
  color: var(--white);
  text-shadow: -1px 0 var(--dark), 1px 0 var(--dark), 0 -1px var(--dark), 0 1px var(--dark), 1px 1px var(--dark);
}

/* ---------- Desktop ---------- */
#desktop {
  position: fixed;
  inset: 0 0 var(--taskbar-h) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 24px 16px;
  overflow: auto;
}
.brand { text-align: center; color: var(--white); }
.brand h1 {
  margin: 0;
  font-size: 66px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  text-shadow: 3px 3px 0 var(--navy), 6px 6px 0 var(--dark);
}
.brand p {
  margin: 14px 0 0;
  font-size: 11px;
  display: inline-block;
  padding: 3px 8px;
  background: var(--face);
  color: var(--text);
  box-shadow: var(--raised);
}
#desktop-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 18px;
  max-width: 920px;
}
@media (min-width: 641px) {
  #desktop-icons { display: grid; grid-template-columns: repeat(var(--cols, 4), 112px); gap: 24px 40px; }
}
.desktop-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 112px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--white);
  text-align: center;
  cursor: default;
}
.desktop-icon .icon { position: relative; }
.desktop-icon .label {
  max-width: 108px;
  padding: 1px 3px;
  overflow-wrap: anywhere;
  text-shadow: 1px 1px 0 var(--dark);
}
.desktop-icon .wip {
  display: block;
  margin-top: 1px;
  color: #ffff80;
}
.desktop-icon .badge {
  position: absolute;
  right: -10px;
  bottom: 0;
  line-height: 0;
}
.desktop-icon:focus { outline: none; }
.desktop-icon.selected .label { background: var(--navy); outline: 1px dotted #ffff80; text-shadow: none; }
.desktop-icon.selected .icon svg { filter: brightness(0.55) sepia(1) hue-rotate(190deg) saturate(4); }
.hint { margin: 0; color: #9fd8d8; text-shadow: 1px 1px 0 #004848; }

/* Light wallpapers: dark text instead of white. */
.light-desktop .brand h1 { color: var(--navy); text-shadow: 3px 3px 0 var(--face), 6px 6px 0 var(--shadow); }
.light-desktop .desktop-icon .label { color: var(--text); text-shadow: none; }
.light-desktop .desktop-icon.selected .label { color: var(--white); }
.light-desktop .desktop-icon .wip { color: #806000; }
.light-desktop .desktop-icon.selected .wip { color: #ffff80; }
.touch-hint { display: none; }
@media (hover: none) and (pointer: coarse) {
  .mouse-hint { display: none; }
  .touch-hint { display: inline; }
}

/* ---------- Windows ---------- */
.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  min-height: 120px;
  padding: 3px;
  background: var(--face);
  box-shadow: var(--window);
  overflow: hidden;
  resize: both;
}
.window.maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: calc(100% - var(--taskbar-h)) !important;
  resize: none;
}
.window.minimized { display: none; }

.title-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  flex: none;
  padding: 0 2px 0 3px;
  background: var(--shadow);
  color: var(--face);
  font-weight: 700;
  touch-action: none;
}
.window.active .title-bar { background: var(--navy); color: var(--white); }
.title-bar .title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.title-bar .controls { display: flex; flex: none; }
.title-bar .controls button {
  display: grid;
  place-items: center;
  width: 16px;
  height: 14px;
  padding: 0;
  border: 0;
  background: var(--face);
  box-shadow: var(--raised);
  cursor: pointer;
}
.title-bar .controls button:active { box-shadow: var(--pressed); }
.title-bar .controls button:active .icon { transform: translate(1px, 1px); }
.title-bar .controls .close { margin-left: 2px; }

.window-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: 2px;
}

.field {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--white);
  box-shadow: var(--sunken);
  padding: 2px;
}
.field:focus { outline: none; }

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 2px 2px 4px;
  border-bottom: 1px solid var(--shadow);
  box-shadow: 0 1px var(--white);
  margin-bottom: 4px;
}
.toolbar .group { display: flex; }
.toolbar .tool {
  width: 24px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.toolbar .tool:hover { box-shadow: var(--shallow); }
.toolbar .tool.pressed {
  box-shadow: var(--pressed);
  background-color: var(--light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='1' fill='%23fff'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23fff'/%3E%3C/svg%3E");
}
.toolbar .tool.pressed .icon { transform: translate(1px, 1px); }
.toolbar .divider { width: 2px; height: 20px; margin: 0 3px; box-shadow: inset 1px 0 var(--shadow), inset -1px 0 var(--white); }
.toolbar label { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 140px; }
.toolbar input { flex: 1; min-width: 0; }

.about {
  display: flex;
  margin: 0;
  gap: 6px;
  align-items: baseline;
  padding: 0 2px 5px;
}
.about .status-tag {
  flex: none;
  padding: 0 4px;
  background: #ffff80;
  box-shadow: inset 0 0 0 1px var(--dark);
}
.about.past .status-tag { background: var(--light); }

.statusbar { display: flex; gap: 2px; margin-top: 2px; flex: none; }
.statusbar > span { flex: 1; padding: 2px 4px; box-shadow: var(--shallow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statusbar > span + span { flex: 0 1 120px; }

/* ---------- Folder views ---------- */
.items { position: relative; }
.item { cursor: default; }
.item .name { padding: 0 2px; }
.items:focus-within .item.selected .name, .item.selected .name { background: var(--navy); color: var(--white); }
.item.selected:focus .name { outline: 1px dotted #ffff80; }
.item:focus { outline: none; }

.view-large {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px 4px;
  padding: 6px 2px;
  align-items: start;
}
.view-large .item { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.view-large .thumb { display: grid; place-items: center; width: 96px; height: 76px; }
.view-large .thumb img { max-width: 96px; max-height: 76px; width: auto; height: auto; background: var(--shadow); box-shadow: 0 0 0 1px var(--shadow); }
.view-large .name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  max-width: 104px;
}
.view-large .item.selected .name { -webkit-line-clamp: unset; }
.view-large .item.selected .thumb img { opacity: 0.7; box-shadow: 0 0 0 2px var(--navy); }

.view-small {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px 8px;
  padding: 2px;
}
.view-small .item, .view-list .item { display: flex; align-items: center; gap: 3px; min-width: 0; height: 18px; }
.view-small .name, .view-list .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.view-list {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 1px 12px;
  height: 100%;
  padding: 2px;
}
.field:has(> .view-list) { overflow-y: hidden; }
.view-list .item { width: 240px; }

.view-details { width: 100%; border-collapse: collapse; table-layout: fixed; }
.view-details th {
  position: sticky;
  top: -2px;
  z-index: 1;
  padding: 0;
  background: var(--face);
  font-weight: 400;
  text-align: left;
}
.view-details th button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 18px;
  padding: 0 6px;
  border: 0;
  background: var(--face);
  box-shadow: var(--raised);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}
.view-details th button:active { box-shadow: var(--pressed); }
.view-details th.num button { justify-content: flex-end; flex-direction: row-reverse; gap: 4px; }
.view-details td { height: 18px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-details td.num { text-align: right; }
.view-details td:first-child { padding-left: 2px; }
.view-details td:first-child .cell { display: flex; align-items: center; gap: 3px; min-width: 0; }
.view-details td:first-child .name { overflow: hidden; text-overflow: ellipsis; }
.view-details th.c-folder-cell { width: 110px; }
.view-details th.c-size-cell { width: 80px; }
.view-details th.c-type-cell { width: 110px; }
.view-details th.c-date-cell { width: 120px; }
.sort-arrow { font-size: 8px; }

.empty { padding: 8px; color: var(--shadow); }

/* ---------- Viewers ---------- */
.viewer {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--shadow);
  box-shadow: var(--sunken);
  padding: 2px;
}
.viewer img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.viewer.loading::after { content: "Loading..."; color: var(--white); }
.viewer.loading img { display: none; }

.player {
  flex: 1;
  min-height: 0;
  background: #000;
  box-shadow: var(--sunken);
  padding: 2px;
}
.player iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.player.web, .player.web iframe { background: var(--white); }
.player { position: relative; }
.player .busy {
  position: absolute;
  inset: 2px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  background: #000;
  color: var(--white);
  cursor: wait;
}
.player.web .busy { background: var(--white); color: var(--text); }
/* The Windows 95 busy cursor: sand runs down, then the glass flips over */
.player .busy .icon { animation: hourglass-flip 1.2s steps(1) infinite; }
@keyframes hourglass-flip { 75% { transform: rotate(90deg); } 87.5% { transform: rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { .player .busy .icon { animation: none; } }
.toolbar a.button { flex: none; color: var(--text); text-decoration: none; }

.notepad {
  flex: 1;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 4px 6px;
  border: 0;
  resize: none;
  background: var(--white);
  box-shadow: var(--sunken);
  font: 13px/1.35 "Courier New", Courier, monospace;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}

/* ---------- Find ---------- */
.find-form { display: flex; gap: 8px; align-items: flex-start; padding: 4px 2px 8px; flex: none; }
.find-tabs { flex: 1; min-width: 0; }
.find-tabs .tab {
  position: relative;
  display: inline-block;
  padding: 3px 8px 2px;
  background: var(--face);
  box-shadow: inset 1px 1px var(--white), inset -1px 0 var(--dark), inset -2px 0 var(--shadow);
  z-index: 1;
  margin-bottom: -1px;
}
.find-panel { display: grid; grid-template-columns: auto 1fr; gap: 6px 6px; align-items: center; padding: 10px 8px; box-shadow: var(--raised); }
.find-panel input, .find-panel select { width: 100%; min-width: 0; }
.find-buttons { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; }
.find-buttons .button { min-width: 80px; }

/* ---------- All Work ---------- */
#stream-button { min-height: 28px; padding: 0 14px; gap: 6px; }
.toolbar label.inline { flex: none; min-width: 0; }
.stream {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 44px 32px;
  padding: 36px 40px 64px;
  align-items: end;
}
.stream-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.stream-tile .frame { display: grid; place-items: center; width: 100%; aspect-ratio: 1; container-type: inline-size; }
.stream-tile img { max-width: 100%; max-height: 100cqw; width: auto; height: auto; box-shadow: 0 0 0 1px var(--light); }
.stream-tile:hover img, .stream-tile:focus-visible img { box-shadow: 0 0 0 2px var(--navy); }
.stream-tile:focus { outline: none; }
.stream-tile:focus-visible .caption { outline: 1px dotted var(--dark); }
.stream-tile .caption { max-width: 100%; padding: 0 2px; color: var(--shadow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Display Properties ---------- */
.display-props { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 6px; padding: 8px 6px 4px; }
.monitor {
  position: relative;
  align-self: center;
  width: 168px;
  height: 128px;
  padding: 10px 10px 18px;
  margin-bottom: 14px;
  background: var(--face);
  box-shadow: var(--raised);
}
.monitor-screen { width: 100%; height: 100%; box-shadow: var(--sunken); }
.monitor-stand {
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 64px;
  height: 10px;
  transform: translateX(-50%);
  background: var(--face);
  box-shadow: var(--raised);
}
.listbox {
  flex: 1;
  min-height: 80px;
  padding: 2px;
  background: var(--white);
  box-shadow: var(--sunken);
  overflow-y: auto;
  outline: none;
}
.listbox .option { padding: 1px 3px; cursor: default; }
.listbox .option.selected { background: var(--navy); color: var(--white); }
.listbox:focus-visible .option.selected { outline: 1px dotted #ffff80; outline-offset: -1px; }
.dialog-buttons { display: flex; justify-content: flex-end; gap: 6px; flex: none; }
.dialog-buttons .button { min-width: 72px; }

/* ---------- Taskbar ---------- */
#taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 3px;
  height: var(--taskbar-h);
  padding: 2px 2px 2px 2px;
  background: var(--face);
  box-shadow: inset 0 1px var(--light), inset 0 2px var(--white);
}
#start-button { flex: none; height: 22px; padding: 0 5px 0 3px; gap: 3px; }
#start-hint {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px 0 6px;
  border: 1px solid var(--dark);
  background: #ffffe1;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
#start-hint .arrow { display: inline-block; font-size: 9px; animation: nudge 1s steps(2) infinite; }
@keyframes nudge { 50% { transform: translateX(-4px); } }
@media (prefers-reduced-motion: reduce) { #start-hint .arrow { animation: none; } }
#tasks { display: flex; gap: 3px; flex: 1; min-width: 0; height: 100%; }
#tasks .button { flex: 0 1 160px; min-width: 0; height: 22px; justify-content: flex-start; padding: 0 6px 0 4px; }
#tasks .button span.text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#tasks .button.pressed { font-weight: 700; background-color: var(--light); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='1' fill='%23fff'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23fff'/%3E%3C/svg%3E"); }
#tray { flex: none; display: flex; align-items: center; height: 22px; padding: 0 10px; }

/* ---------- Start menu ---------- */
#start-menu {
  position: fixed;
  left: 2px;
  bottom: calc(var(--taskbar-h) - 2px);
  z-index: 100001;
  display: flex;
  min-width: 200px;
  padding: 3px;
}
.start-banner {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 22px;
  padding: 6px 0;
  background: var(--shadow);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 1px;
}
.start-banner span { color: var(--face); }
.start-banner b { color: var(--white); }
.menu { list-style: none; margin: 0; padding: 0; flex: 1; }
.menu li { position: relative; }
.menu .menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 2px 18px 2px 6px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.menu .menu-item:hover, .menu .menu-item:focus-visible, .menu li.open > .menu-item { background: var(--navy); color: var(--white); outline: none; }
.menu .has-sub > .menu-item::after {
  content: "";
  position: absolute;
  right: 6px;
  border: 4px solid transparent;
  border-left-color: currentColor;
  border-right: 0;
}
.menu .separator { height: 2px; margin: 3px 2px; box-shadow: inset 0 1px var(--shadow), inset 0 -1px var(--white); }
.menu .submenu {
  position: absolute;
  left: calc(100% - 2px);
  bottom: -3px;
  min-width: 170px;
  padding: 3px;
  list-style: none;
  margin: 0;
}
.menu .submenu .menu-item { min-height: 22px; }
.menu li:not(.open) > .submenu { display: none; }
@media (hover: hover) {
  .menu li.has-sub:hover > .submenu { display: block; }
  .menu li.has-sub:hover > .menu-item { background: var(--navy); color: var(--white); }
}

.noscript { position: fixed; inset: 40% 0 auto; text-align: center; color: var(--white); }

/* ---------- Phones: every window is full screen ---------- */
@media (max-width: 640px) {
  body { font-size: 13px; }
  #desktop { justify-content: flex-start; gap: 24px; padding-top: 40px; }
  .brand h1 { font-size: 44px; text-shadow: 2px 2px 0 var(--navy), 4px 4px 0 var(--dark); }
  .brand p { font-size: 13px; }
  #desktop-icons { gap: 14px 4px; }
  .desktop-icon { width: 104px; }
  .window {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: calc(100% - var(--taskbar-h)) !important;
    resize: none;
  }
  .window .controls .maximize { display: none; }
  .title-bar { height: 24px; }
  .title-bar .controls button { width: 22px; height: 20px; }
  .view-large { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .view-details th.c-date-cell { width: 92px; }
  .view-details th.c-size-cell { width: 64px; }
  .view-details .c-type-cell, .view-details .c-folder-cell { display: none; }
  .stream { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 28px 16px; padding: 20px 16px 40px; }
  .listbox .option { padding: 7px 8px; }
  .dialog-buttons .button { flex: 1; min-height: 32px; }
  .find-form { flex-direction: column; align-items: stretch; }
  .find-buttons { flex-direction: row; padding-top: 0; }
  #start-menu { min-width: 240px; }
  .menu .submenu { left: 24px; bottom: 100%; }
}
