:root {
  --usdc: #2775ca;
  --usdc-deep: #08306b;
  --ink: #07090d;
  --win: #c0c0c0;
  --text: #111;
  --dock: 58px;
  --green: #1f9d55;
  --red: #cc1f1a;
  --gold: #e6b325;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; }
body {
  overflow: hidden;
  color: #fff;
  font-family: Tahoma, "Segoe UI", Verdana, sans-serif;
}
button, input { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; border: 0; }
::selection { background: #000080; color: #fff; }

a.btn, .btn {
  min-width: 72px;
  padding: 4px 12px;
  background: var(--win);
  color: #000;
  border: 2px solid #fff;
  border-right-color: #000;
  border-bottom-color: #000;
  box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf;
  font-size: 12px;
  line-height: 1.25;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn:active, #start-btn[aria-expanded="true"] {
  border-color: #000 #fff #fff #000;
  box-shadow: inset 1px 1px #808080, inset -1px -1px #fff;
}
.btn.default { outline: 1px dotted #000; outline-offset: -4px; }
.btn:focus-visible, a:focus-visible, .sm-item:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -3px;
}

/* Boot */
#boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 4px),
    #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
}
body.ready #boot { display: none; }
.boot-card { width: min(440px, calc(100% - 32px)); }
.boot-card img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #2775ca;
}
.boot-title {
  margin: 14px 0 0;
  font-family: "Pixelify Sans", Tahoma, sans-serif;
  font-size: 28px;
  letter-spacing: .04em;
}
.boot-sub { margin: 4px 0 14px; color: #9bb6d4; font-size: 13px; }
.progress {
  height: 22px;
  padding: 2px;
  background: #fff;
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
  text-align: left;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, #2775ca 0 12px, #1a5ca3 12px 14px);
}
.boot-msg {
  margin: 8px 0 0;
  font-family: "Pixelify Sans", Tahoma, sans-serif;
  letter-spacing: .08em;
  min-height: 1.2em;
}
.boot-hint { margin: 16px 0 0; color: #667; font-size: 12px; }

/* Desktop */
#os { position: fixed; inset: 0; overflow: hidden; }
#wallpaper {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,14,.42), rgba(5,8,14,.78)),
    linear-gradient(rgba(39,117,202,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39,117,202,.07) 1px, transparent 1px),
    url("banner.png") center/cover no-repeat;
  background-size: auto, 28px 28px, 28px 28px, cover;
  box-shadow: inset 0 0 140px rgba(0,0,0,.55);
}
#wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
}

#icons {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 6px;
  bottom: 66px;
  width: 98px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 2px;
}
.icon {
  appearance: none;
  width: 90px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  text-shadow: 1px 1px 0 #000, 0 0 4px #000;
  padding: 4px 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.icon span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 86px;
}
.icon svg, .icon img { width: 32px; height: 32px; object-fit: cover; }
.icon.selected { background: rgba(39,117,202,.5); border: 1px dotted #fff; }
.icon:focus-visible { outline: 1px dotted #fff; }

#windows { position: absolute; z-index: 3; left: 0; right: 0; top: 0; bottom: var(--dock); }

.window {
  display: none;
  position: absolute;
  min-width: 260px;
  max-width: calc(100% - 8px);
  max-height: calc(100% - 8px);
  flex-direction: column;
  background: var(--win);
  color: var(--text);
  color-scheme: light;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf, 4px 4px 0 rgba(0,0,0,.45);
  padding: 2px;
}
.window.active { box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf, 5px 5px 0 rgba(0,0,0,.55); }
.window.max {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
}

.titlebar {
  margin: 2px 2px 0;
  padding: 3px 3px 3px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #808080, #b5b5b5);
  color: #e4e4e4;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  user-select: none;
  touch-action: none;
  cursor: default;
}
.window.active .titlebar {
  background: linear-gradient(90deg, #08306b 0%, #2775ca 58%, #9dceff 100%);
  color: #fff;
}
.wico { width: 14px; height: 14px; object-fit: cover; flex: none; }
.titlebar .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-btns { display: flex; gap: 2px; flex: none; }
.tb {
  width: 16px;
  height: 14px;
  padding: 0;
  line-height: 10px;
  font-size: 10px;
  font-weight: 700;
  background: var(--win);
  color: #000;
  border: 1px solid #fff;
  border-right-color: #000;
  border-bottom-color: #000;
  box-shadow: inset -1px -1px #808080;
}
.tb:active { border-color: #000 #fff #fff #000; }
.tb.close { font-size: 11px; line-height: 11px; }

.menubar {
  display: flex;
  gap: 0;
  padding: 1px 2px 2px;
  user-select: none;
}
.menu { position: relative; }
.menu > button {
  padding: 2px 7px;
  background: transparent;
  border: 1px solid transparent;
  font-size: 12px;
}
.menu:hover > button, .menu.open > button { border-color: #fff #808080 #808080 #fff; }
.menu-pop {
  display: none;
  position: absolute;
  z-index: 5;
  left: 0;
  top: 100%;
  min-width: 190px;
  background: var(--win);
  padding: 2px;
  border: 1px solid #000;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #404040, 2px 2px 0 rgba(0,0,0,.35);
}
.menu:hover .menu-pop, .menu:focus-within .menu-pop { display: block; }
.menu-pop button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 4px 18px 4px 16px;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.menu-pop button:hover { background: #000080; color: #fff; }
.menu-pop hr { border: 0; border-top: 1px solid #808080; border-bottom: 1px solid #fff; margin: 3px 2px; }

.window-body { overflow: auto; padding: 8px; }
.window[style*="height"] .window-body,
.window.max .window-body { flex: 1 1 auto; min-height: 0; }
.window-body::-webkit-scrollbar { width: 16px; height: 16px; }
.window-body::-webkit-scrollbar-thumb {
  background: var(--win);
  border: 2px solid #fff;
  border-right-color: #000;
  border-bottom-color: #000;
}
.window-body::-webkit-scrollbar-track { background: #e8e4dc; }
.window-body h2 {
  font-family: "Pixelify Sans", Tahoma, sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: .02em;
}
.window-body h3 { margin: 12px 0 6px; font-size: 13px; }
.window-body p { margin: 0 0 8px; line-height: 1.45; }
.window a { color: #000080; }
.window a.btn { color: #000; }
.well {
  background: #000;
  padding: 2px;
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
}
.well img { display: block; width: 100%; height: auto; }
.caption { margin: 4px 0 8px; font-size: 11px; color: #333; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, .72fr);
  gap: 10px;
  margin-top: 10px;
}
.kicker {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--usdc-deep);
  font-weight: 700;
}
.glitch {
  position: relative;
  display: inline-block;
  margin: 0;
  font-family: "Pixelify Sans", Tahoma, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: .95;
  letter-spacing: .02em;
  font-weight: 700;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}
.glitch::before {
  color: #2775ca;
  animation: g1 3.2s infinite linear;
  clip-path: inset(8% 0 55% 0);
}
.glitch::after {
  color: #d21c1c;
  animation: g2 2.6s infinite linear;
  clip-path: inset(48% 0 18% 0);
}
@keyframes g1 {
  0%, 82%, 100% { transform: none; opacity: 0; }
  84% { opacity: .9; transform: translate(-3px, 0); }
  88% { transform: translate(3px, 1px); }
  92% { opacity: 0; }
}
@keyframes g2 {
  0%, 74%, 100% { opacity: 0; transform: none; }
  76% { opacity: .8; transform: translate(2px, -1px); }
  80% { opacity: 0; }
}
.symbol {
  margin: 4px 0;
  font-family: "Pixelify Sans", Tahoma, sans-serif;
  font-size: 22px;
  color: var(--usdc);
}
.hero-logo { width: 112px; height: 112px; object-fit: cover; float: left; margin: 0 10px 6px 0; }
.poster {
  background: #07090d;
  color: #fff;
  padding: 12px;
  font-family: "Pixelify Sans", Tahoma, sans-serif;
  letter-spacing: .04em;
  min-height: 100%;
}
.poster .ln { font-size: 18px; line-height: 1.25; }
.poster .ghost { color: #9ec9ff; }
.arrows { list-style: none; margin: 10px 0 0; padding: 0; font-size: 16px; }
.arrows li::before { content: "-> "; color: #7ec8ff; }

.actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 10px; padding: 0; }
.chips li {
  background: #d8d4cc;
  border: 2px solid #fff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.stats div {
  padding: 6px 8px;
  background: #d8d4cc;
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
}
.stats b { display: block; font-size: 11px; color: #444; font-weight: 700; }
.stats span { font-weight: 700; font-size: 14px; }

.ca-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
  padding: 4px 6px;
}
.ca-bar .tag {
  font-family: "Pixelify Sans", Tahoma, sans-serif;
  font-size: 13px;
  color: #08306b;
  flex: none;
}
.ca-bar code {
  flex: 1;
  font-family: "VT323", monospace;
  font-size: 20px;
  line-height: 1;
  word-break: break-all;
}

.loadrow { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.loadrow .progress { flex: 1; }
.loadrow em { font-style: normal; font-family: "Pixelify Sans", Tahoma, sans-serif; font-size: 13px; }

.callout {
  background: #ffffe1;
  border: 1px solid #000;
  padding: 8px 10px;
  margin: 0 0 10px;
  line-height: 1.4;
}
.callout strong { display: block; margin-bottom: 2px; }

.statusbar {
  display: flex;
  gap: 3px;
  padding: 2px;
  user-select: none;
}
.statusbar span {
  border: 1px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
  padding: 1px 6px;
  font-size: 11px;
  min-height: 18px;
}
.statusbar span:first-child { flex: 1; }

.dialog { display: flex; gap: 12px; align-items: flex-start; padding: 10px 10px 4px; }
.dialog svg { width: 32px; height: 32px; flex: none; }
.dialog p { margin: 0 0 6px; }
.dialog-btns { display: flex; justify-content: center; gap: 8px; padding: 6px 10px 12px; }

.term { background: #07090d; color: #d5e4ee; font-family: "VT323", monospace; font-size: 20px; padding: 8px; }
.tick {
  display: grid;
  grid-template-columns: 52px 1fr auto 68px;
  gap: 6px;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tick .sym { color: #fff; }
.tick .px { text-align: right; }
.tick .chg.up { color: #3ddc84; }
.tick .chg.down { color: #ff5c5c; }
.spark { width: 64px; height: 22px; }
.spark polyline { fill: none; stroke: #3ddc84; stroke-width: 1.6; }
.tick.down .spark polyline { stroke: #ff5c5c; }
.tape-note { font-family: Tahoma, sans-serif; font-size: 11px; color: #8aa; margin-top: 6px; }

table.grid { width: 100%; border-collapse: collapse; background: #fff; font-size: 12px; }
table.grid th, table.grid td { border: 1px solid #b0b0b0; padding: 4px 8px; text-align: left; }
table.grid th {
  background: var(--win);
  border-color: #fff #808080 #808080 #fff;
  font-weight: 700;
}
table.grid tr:nth-child(even) td { background: #f4f4f4; }
table.grid td.num { font-family: "VT323", monospace; font-size: 18px; word-break: break-all; }

.alloc { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.alloc .row { display: grid; grid-template-columns: 92px 1fr 36px; gap: 8px; align-items: center; font-size: 12px; }
.track {
  height: 16px;
  background: #fff;
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
}
.track b { display: block; height: 100%; background: var(--usdc); }
.track b.gold { background: var(--gold); }
.track b.zero { background: transparent; }

fieldset {
  border: 2px groove #dfdfdf;
  margin: 0 0 10px;
  padding: 8px 10px 10px;
}
legend { padding: 0 4px; font-weight: 700; }

.wizard {
  display: grid;
  grid-template-columns: 150px 1fr;
  background: #fff;
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
  min-height: 280px;
}
.wizard aside {
  background: linear-gradient(#9dceff, #2775ca 28%, #08306b);
  color: #fff;
  padding: 12px 10px;
}
.wizard aside strong {
  font-family: "Pixelify Sans", Tahoma, sans-serif;
  font-size: 18px;
  display: block;
  text-shadow: 1px 1px 0 #08306b;
}
.wizard aside img { width: 100%; margin-top: 12px; border: 2px solid #fff; }
.wizard-main { padding: 10px 12px; }
.step { margin: 0 0 10px; }
.step b { color: var(--usdc-deep); }

.help {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 250px;
  background: #fff;
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
}
.help-nav { background: var(--win); padding: 4px; display: flex; flex-direction: column; }
.help-nav button {
  text-align: left;
  padding: 5px 6px;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.help-nav button.on, .help-nav button:hover { background: #000080; color: #fff; }
.help-view { padding: 10px 12px; }

.paper {
  background: #fff;
  color: #111;
  min-height: 220px;
  padding: 8px 10px;
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
  font-family: "VT323", monospace;
  font-size: 20px;
  line-height: 1.2;
  white-space: pre-wrap;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 150px;
  background: #07090d;
  padding: 8px;
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
}
.chart i { display: block; flex: 1; height: 20%; background: #2775ca; min-height: 2px; }
#pump-log {
  margin-top: 6px;
  height: 92px;
  overflow: auto;
  background: #07090d;
  color: #b7ffcf;
  font-family: "VT323", monospace;
  font-size: 18px;
  padding: 4px 8px;
}

.files { background: #fff; border: 2px solid #808080; border-right-color: #fff; border-bottom-color: #fff; }
.file, .file.head {
  display: grid;
  grid-template-columns: 1.3fr .8fr .5fr;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 3px 8px;
  border: 0;
  background: #fff;
  font-size: 12px;
}
.file.head { background: var(--win); font-weight: 700; border-bottom: 1px solid #808080; }
.file:hover { background: #000080; color: #fff; }
.addr {
  margin: 0 0 6px;
  background: #fff;
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
  padding: 3px 6px;
  font-size: 12px;
}

.phase { margin: 0 0 8px; }
.phase-h { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.box {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
  font-size: 11px;
  flex: none;
}
.about-grid, .sys, .socials { display: grid; gap: 12px; }
.about-grid { grid-template-columns: 200px 1fr; }
.sys { grid-template-columns: 88px 1fr; }
.sys-side, .socials a.card {
  background: linear-gradient(#08306b, #2775ca);
}
.sys-side { padding: 8px; }
.sys-side img { width: 100%; border: 2px solid #fff; }
.socials { grid-template-columns: 1fr 1fr; }
.socials a.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 120px;
  padding: 12px;
  color: #fff;
  text-decoration: none;
  border: 2px solid #fff;
  border-right-color: #000;
  border-bottom-color: #000;
}
.socials a.card b {
  font-family: "Pixelify Sans", Tahoma, sans-serif;
  font-size: 22px;
}
.socials a.card span { color: #d6e8ff; font-size: 12px; word-break: break-all; }
.quote {
  margin: 8px 0;
  padding: 8px 10px;
  background: #07090d;
  color: #fff;
  font-family: "Pixelify Sans", Tahoma, sans-serif;
  letter-spacing: .04em;
}

/* Dock */
#dock {
  position: absolute;
  z-index: 40;
  left: 0; right: 0; bottom: 0;
  height: var(--dock);
  display: flex;
  flex-direction: column;
}
#marquee {
  height: 22px;
  overflow: hidden;
  background: var(--usdc-deep);
  color: #fff;
  border-top: 1px solid #000;
  display: flex;
  align-items: center;
  font-family: "Pixelify Sans", Tahoma, sans-serif;
  font-size: 13px;
  letter-spacing: .05em;
}
#marquee .track { display: flex; white-space: nowrap; animation: tick 32s linear infinite; }
#marquee:hover .track { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
#taskbar {
  height: 36px;
  background: var(--win);
  border-top: 2px solid #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  color: #000;
}
#start-btn {
  font-weight: 700;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 2px 10px 2px 4px;
}
#start-btn img { width: 18px; height: 18px; object-fit: cover; }
#tasks { display: flex; gap: 4px; flex: 1; min-width: 0; overflow: hidden; }
.task {
  max-width: 170px;
  min-width: 0;
  flex: 1 1 110px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-align: left;
  padding-left: 4px;
  padding-right: 6px;
}
.task::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: url("logo.png") center/cover;
}
.task span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task.on {
  border-color: #808080 #fff #fff #808080;
  background: #dcdad5;
  box-shadow: inset 1px 1px #808080;
}
.tray {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
  min-height: 26px;
}
.tray-chip {
  background: var(--usdc);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 1px 4px;
}
#sound-btn, #clock {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 11px;
  color: #000;
}
#clock { font-variant-numeric: tabular-nums; min-width: 58px; text-align: right; }
#sound-btn.muted { opacity: .45; }

#startmenu {
  display: none;
  position: absolute;
  z-index: 70;
  left: 2px;
  bottom: var(--dock);
  width: min(320px, calc(100vw - 8px));
  background: var(--win);
  color: #000;
  border: 2px solid #fff;
  border-right-color: #000;
  border-bottom-color: #000;
  box-shadow: inset -1px -1px #808080, 3px 3px 0 rgba(0,0,0,.4);
}
#startmenu.show { display: flex; }
.sm-side {
  width: 28px;
  flex: none;
  background: linear-gradient(#9dceff, #2775ca 30%, #08306b);
  color: #fff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Pixelify Sans", Tahoma, sans-serif;
  letter-spacing: .18em;
  font-size: 13px;
  text-shadow: 1px 1px 0 #08306b;
}
.sm-list { flex: 1; max-height: calc(100vh - 80px); overflow: auto; padding: 4px 0; }
.sm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: #000;
  text-decoration: none;
  font-size: 12px;
  text-align: left;
}
.sm-item svg { width: 16px; height: 16px; flex: none; }
.sm-item:hover { background: #000080; color: #fff; }
.sep { height: 0; margin: 4px 6px; border-top: 1px solid #808080; border-bottom: 1px solid #fff; }

#context {
  display: none;
  position: fixed;
  z-index: 75;
  min-width: 180px;
  background: var(--win);
  color: #000;
  padding: 2px;
  border: 1px solid #000;
  box-shadow: inset 1px 1px #fff, 2px 2px 0 rgba(0,0,0,.35);
}
#context.show { display: block; }
#context button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 4px 16px;
  border: 0;
  background: transparent;
  font-size: 12px;
}
#context button:hover { background: #000080; color: #fff; }
#context hr { border: 0; border-top: 1px solid #808080; border-bottom: 1px solid #fff; margin: 3px 1px; }

#shutdown {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #000;
  color: #e86b00;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
#shutdown[hidden] { display: none; }
#shutdown p {
  font-family: "VT323", monospace;
  font-size: clamp(22px, 4vw, 34px);
  margin: 12px 0;
}
#shutdown img { width: 96px; height: 96px; object-fit: cover; }
#shutdown .actions { justify-content: center; }

#toast {
  display: none;
  position: fixed;
  z-index: 85;
  right: 12px;
  bottom: 70px;
  max-width: 280px;
  background: #ffffe1;
  color: #000;
  border: 1px solid #000;
  box-shadow: 2px 2px 0 #000;
  padding: 8px 10px;
  font-size: 12px;
}
#toast.show { display: block; }

@media (max-width: 860px) {
  html, body { overflow: hidden; }
  #os { overflow: auto; -webkit-overflow-scrolling: touch; }
  #wallpaper { position: fixed; }
  #icons, #context, .tb-btns { display: none !important; }
  #windows {
    position: relative;
    inset: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 8px 78px;
  }
  .window[data-feed="1"] {
    display: flex !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    max-width: none;
  }
  .window[data-feed="1"] .window-body {
    flex: none;
    overflow: visible;
    min-height: auto;
    max-height: none;
  }
  .window[data-dialog="1"] {
    position: fixed !important;
    left: 10px !important;
    top: 10px !important;
    width: calc(100vw - 20px) !important;
    height: auto !important;
    max-height: calc(100vh - 80px);
    z-index: 80 !important;
  }
  #dock { position: fixed; }
  #startmenu { position: fixed; bottom: 58px; }
  .hero-grid, .about-grid, .wizard, .help, .socials, .sys, .stats {
    grid-template-columns: 1fr;
  }
  .sm-item { padding: 10px 12px; font-size: 14px; }
  .hero-logo { width: 84px; height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
