﻿:root {
  --ink: #10211f;
  --ink-soft: #3d5652;
  --canvas: #f7f6f2;
  --card: #fffdf7;
  --line: #d9d7cd;
  --accent: #0f8b8d;
  --accent-2: #e07a5f;
  --ok: #2a9d8f;
  --warn: #e9c46a;
  --muted: #f0eee5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.5;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 14% 18%, rgba(15, 139, 141, 0.18), transparent 36%),
    radial-gradient(circle at 85% 0%, rgba(224, 122, 95, 0.15), transparent 28%),
    linear-gradient(180deg, #f7f6f2 0%, #f4f2eb 100%);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  background: rgba(247, 246, 242, 0.85);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.top-nav {
  display: flex;
  gap: 14px;
}

.top-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 10px;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.top-nav a:hover {
  background: var(--muted);
}

.top-nav a.active {
  background: var(--ink);
  color: #ffffff;
}

.hero {
  padding: 72px 0 28px;
}

.eyebrow {
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 6vw, 3.9rem);
  max-width: 18ch;
}

h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.lead {
  max-width: 64ch;
  color: var(--ink-soft);
  margin-top: 10px;
}

.pill-row {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.85rem;
}

.section {
  padding: 26px 0 12px;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

.cards {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(16, 33, 31, 0.06);
}

.card h3 {
  margin-bottom: 6px;
}

.card p {
  color: var(--ink-soft);
  margin: 0;
}

.card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.tracker {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  overflow: hidden;
}

.track-row {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.track-row:last-child {
  border-bottom: 0;
}

.phase {
  font-weight: 700;
}

.state {
  text-align: right;
  font-weight: 700;
}

.done {
  background: rgba(42, 157, 143, 0.08);
}

.active {
  background: rgba(233, 196, 106, 0.2);
}

.upcoming {
  background: rgba(61, 86, 82, 0.06);
}

.page-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(16, 33, 31, 0.1);
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.footer-wrap {
  padding: 16px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .four-up,
  .three-up,
  .two-up {
    grid-template-columns: 1fr 1fr;
  }

  .track-row {
    grid-template-columns: 100px 1fr;
  }

  .state {
    text-align: left;
    grid-column: 2;
    font-size: 0.9rem;
  }

  .nav-wrap {
    flex-wrap: wrap;
    gap: 10px;
  }

  .top-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-wrap {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .four-up,
  .three-up,
  .two-up {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }
}

.desk-main {
  width: min(1300px, 96vw);
  margin: 0 auto;
  padding: 24px 0 34px;
}

.desk-intro {
  padding: 18px 0 10px;
}

.retro-desktop-page {
  height: 100%;
  overflow: hidden;
  background: #0f3b35;
}

.retro-desktop-page .bg-mesh,
.retro-desktop-page .site-header,
.retro-desktop-page .desk-intro {
  display: none;
}

.retro-desktop-page .desk-main {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.desk-shell {
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
  height: min(76vh, 860px);
  border: 1px solid #7f998a;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(140deg, #174a44 0%, #1b6a60 38%, #2b8f81 100%);
  box-shadow: 0 28px 72px rgba(8, 26, 24, 0.32);
}

.retro-desktop-page .desk-shell {
  height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.desk-shell.refresh-flash {
  filter: brightness(1.1) saturate(1.06);
}

.desk-wallpaper {
  position: absolute;
  inset: 0;
}

.desk-wallpaper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 210, 140, 0.24), transparent 28%);
  transition: background 0.15s linear;
}

.desk-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.24;
}

.desk-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 42%, rgba(4, 18, 16, 0.5) 100%);
}

.desk-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  opacity: 0.07;
  animation: noiseShift 0.45s steps(2) infinite;
}

.desktop-icons {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.desktop-icon {
  width: 104px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #e9fff7;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.desktop-icon:hover,
.desktop-icon.selected {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(12, 44, 40, 0.28);
}

.icon-glyph {
  width: 44px;
  height: 34px;
  display: inline-block;
  border-radius: 5px;
  position: relative;
}

.icon-glyph.folder {
  background: linear-gradient(180deg, #eecb74 0%, #c6932a 100%);
}

.icon-glyph.folder::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 7px;
  left: 4px;
  top: -5px;
  border-radius: 4px 4px 0 0;
  background: #d8b25d;
}

.icon-glyph.monitor {
  background: linear-gradient(180deg, #98b8ff 0%, #4b6fc8 100%);
}

.icon-glyph.monitor::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -6px;
  height: 6px;
  border-radius: 2px;
  background: #2a3d66;
}

.icon-glyph.globe {
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #b9f4ff 0%, #368daa 66%);
}

.icon-glyph.file {
  background: linear-gradient(180deg, #e6f0ef 0%, #a7bfbc 100%);
}

.icon-glyph.file::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #f7fdfd;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.icon-label {
  font-size: 0.76rem;
  line-height: 1.25;
  text-align: center;
}

.desktop-icon.runtime-deleted {
  display: none;
}

.icon-rename-input {
  width: 100%;
  border: 1px solid #d7e7e5;
  background: rgba(255, 255, 255, 0.95);
  color: #11312d;
  font-size: 0.76rem;
  line-height: 1.2;
  text-align: center;
  padding: 2px 3px;
}

.desk-window {
  position: absolute;
  z-index: 3;
  min-width: 340px;
  max-width: min(86vw, 760px);
  min-height: 220px;
  border: 1px solid #102c27;
  border-radius: 10px;
  background: #d8e6e4;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.desk-window.snap-left {
  left: 0 !important;
  top: 0 !important;
  width: 50% !important;
  height: calc(100% - var(--taskbar-height, 34px));
  max-width: none !important;
  min-width: 0 !important;
}

.desk-window.snap-right {
  left: 50% !important;
  top: 0 !important;
  width: 50% !important;
  height: calc(100% - var(--taskbar-height, 34px));
  max-width: none !important;
  min-width: 0 !important;
}

.desk-window.closed,
.desk-window.minimized {
  display: none;
}

.desk-window.maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: calc(100% - var(--taskbar-height, 34px));
  max-width: none !important;
  min-width: 0 !important;
}

.desk-window.active {
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.44);
}

.desk-titlebar {
  cursor: move;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #f4fffc;
  padding: 7px 10px;
  background: linear-gradient(90deg, #0f3d73 0%, #1f658e 100%);
  font-size: 0.88rem;
  font-weight: 700;
}

.desk-controls {
  display: flex;
  gap: 5px;
}

.desk-controls button {
  width: 24px;
  height: 20px;
  border: 1px solid #dbe8f7;
  border-radius: 4px;
  background: #f3f9ff;
  color: #10211f;
  font-size: 0.72rem;
  font-family: inherit;
  cursor: pointer;
}

.desk-controls button:hover {
  background: #d6e9ff;
}

.desk-content {
  padding: 14px;
  color: #213533;
  font-size: 0.93rem;
  background: #e4f0ee;
  height: calc(100% - 36px);
  overflow: auto;
}

.desk-content h3 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif;
}

.resize-handle {
  position: absolute;
  z-index: 2;
}

.resize-handle.se {
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
}

.resize-handle.e {
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  cursor: ew-resize;
}

.resize-handle.s {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 8px;
  cursor: ns-resize;
}

.desk-content p,
.desk-content li,
.desk-content span {
  color: #324f4a;
}

.drive-grid {
  display: grid;
  gap: 10px;
}

.drive-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid #afc8c5;
  border-radius: 8px;
  background: #f6fbfa;
  padding: 10px 12px;
}

.desk-taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-top: 1px solid #183833;
  background: linear-gradient(180deg, #1e4740 0%, #133833 100%);
}

.start-menu {
  position: absolute;
  left: 8px;
  bottom: 46px;
  width: 220px;
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #0f3f39;
  border-radius: 8px;
  padding: 8px;
  background: linear-gradient(180deg, #f0faf8 0%, #dcecea 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

.start-menu.open {
  display: flex;
}

.menu-item {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid #b7d0cd;
  border-radius: 6px;
  background: #f8fffe;
  color: #163330;
  font-family: inherit;
  cursor: pointer;
}

.menu-item.has-submenu:focus {
  outline: 2px solid #6aaea0;
  outline-offset: 1px;
}

.menu-item:hover {
  background: #d6ece8;
}

.submenu {
  position: absolute;
  top: -1px;
  left: 100%;
  min-width: 180px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #9bbab4;
  border-radius: 6px;
  background: #e9f6f4;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.has-submenu:hover .submenu {
  display: flex;
}

.submenu button {
  border: 1px solid #b6cecb;
  border-radius: 4px;
  background: #f8fffe;
  color: #173431;
  text-align: left;
  padding: 6px 8px;
  font-family: inherit;
  cursor: pointer;
}

.submenu button:hover {
  background: #d5ece8;
}

.context-menu {
  position: absolute;
  z-index: 25;
  min-width: 190px;
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #0f423c;
  border-radius: 8px;
  padding: 8px;
  background: linear-gradient(180deg, #f6fffd 0%, #deedeb 100%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}

.context-menu.open {
  display: flex;
}

.context-item {
  border: 1px solid #b9d1ce;
  border-radius: 6px;
  background: #f8fffe;
  color: #173431;
  text-align: left;
  font-family: inherit;
  padding: 7px 8px;
  cursor: pointer;
}

.context-item:hover {
  background: #d8efeb;
}

.context-menu hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #bed5d1;
}

.snap-preview {
  position: absolute;
  z-index: 4;
  border: 2px dashed rgba(235, 255, 247, 0.82);
  background: rgba(183, 240, 225, 0.24);
  pointer-events: none;
  display: none;
}

.snap-preview.show {
  display: block;
}

.boot-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(31, 80, 73, 0.9) 0%, rgba(9, 34, 30, 0.96) 70%);
}

.boot-overlay.done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.boot-panel {
  width: min(460px, 84vw);
  border: 1px solid #77c2b1;
  border-radius: 12px;
  background: #102c27;
  color: #d7fff5;
  padding: 18px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4);
}

.boot-logo {
  margin: 0 0 6px;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
}

.boot-text {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: #9cd7cb;
}

.boot-progress-track {
  border: 1px solid #7cc3b2;
  border-radius: 999px;
  overflow: hidden;
  background: #082520;
  height: 12px;
}

.boot-progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2bd2ad 0%, #d6ff7b 100%);
  transition: width 0.22s ease;
}

.start-btn,
.task-btn {
  border: 1px solid #8fd5c2;
  border-radius: 6px;
  padding: 7px 12px;
  color: #e7fff8;
  background: rgba(13, 58, 50, 0.9);
  font-family: inherit;
  cursor: pointer;
}

.start-btn {
  font-weight: 700;
}

.task-buttons {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.task-btn {
  white-space: nowrap;
  font-size: 0.82rem;
}

.task-btn.active {
  border-color: #fbf29f;
  background: rgba(39, 105, 94, 0.92);
}

.task-btn.minimized {
  opacity: 0.7;
}

.task-clock {
  border: 1px solid #7cc3b1;
  border-radius: 6px;
  min-width: 70px;
  text-align: center;
  color: #d7fff5;
  padding: 7px 10px;
  font-size: 0.85rem;
  background: rgba(8, 39, 33, 0.8);
}

.explorer-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.explorer-path {
  border: 1px solid #8a8a8a;
  background: #efefef;
  padding: 5px 7px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explorer-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  align-content: start;
}

.explorer-item {
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 6px;
  min-height: 42px;
  cursor: pointer;
}

.explorer-item.selected,
.explorer-item:hover {
  border-color: #000080;
  background: rgba(0, 0, 128, 0.12);
}

.explorer-item .icon-glyph {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
}

.explorer-item-label {
  font-size: 11px;
  line-height: 1.2;
}

.notepad-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #8a8a8a;
  background: #ffffff;
}

.notepad-toolbar {
  border-bottom: 1px solid #9a9a9a;
  background: #e9e9e9;
  padding: 4px 6px;
  font-size: 11px;
}

.notepad-editor {
  flex: 1;
  width: 100%;
  border: 0;
  resize: none;
  outline: none;
  padding: 8px;
  font-size: 12px;
  line-height: 1.35;
  font-family: "Courier New", monospace;
}

.launcher-shell {
  display: grid;
  gap: 12px;
}

.launcher-shell p {
  margin: 0;
}

.launcher-actions {
  display: flex;
  justify-content: flex-end;
}

.launcher-open {
  border: 1px solid #000;
  background: #c0c0c0;
  padding: 5px 10px;
  cursor: pointer;
}

.launcher-open:active {
  transform: translateY(1px);
}

.status-web-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.status-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid #8faaa6;
  background: #d3e4e1;
}

.status-source {
  font-size: 11px;
  color: #27413e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-actions {
  display: flex;
  gap: 6px;
}

.status-actions button {
  border: 1px solid #789793;
  background: #edf7f5;
  color: #183431;
  font-size: 11px;
  padding: 4px 7px;
  cursor: pointer;
}

.status-iframe {
  width: 100%;
  border: 0;
  flex: 1;
  background: #0f1115;
}

@keyframes noiseShift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(1px, -1px);
  }
}

@media (max-width: 980px) {
  .desk-shell {
    height: min(74vh, 760px);
  }

  .retro-desktop-page .desk-shell {
    height: 100dvh;
  }

  .desk-window {
    min-width: 300px;
  }
}

@media (max-width: 760px) {
  .desk-shell {
    height: 78vh;
  }

  .retro-desktop-page .desk-shell {
    height: 100dvh;
  }

  .desktop-icons {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: min-content;
    gap: 8px;
    right: 10px;
  }

  .desktop-icon {
    width: 100%;
    max-width: 132px;
  }

  .desk-window {
    left: 8px !important;
    width: calc(100% - 16px) !important;
    max-width: none;
  }

  .desk-window.maximized {
    height: calc(100% - 54px);
  }

  .start-menu {
    width: min(82vw, 260px);
  }

  .submenu {
    left: 0;
    top: 100%;
  }

  .drive-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Vintage desktop skin override: inspired by late-90s Windows shell visuals */
.retro-desktop-page {
  font-family: Tahoma, "MS Sans Serif", "Segoe UI", sans-serif;
  background: #008080;
}

.retro-desktop-page .desk-shell {
  --pointer-x: 50%;
  --pointer-y: 50%;
  background: #008080;
}

.retro-desktop-page .desk-wallpaper {
  background-image: url("assets/retro/wallpaper-classic.svg");
  background-size: cover;
  background-position: center;
}

.retro-desktop-page .desk-wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/retro/scanlines.svg");
  background-size: 4px 4px;
  opacity: 0.28;
  pointer-events: none;
}

.retro-desktop-page .desk-wallpaper::before,
.retro-desktop-page .desk-grid,
.retro-desktop-page .desk-noise,
.retro-desktop-page .desk-vignette {
  display: none;
}

.retro-desktop-page .desktop-icons {
  top: 10px;
  left: 12px;
  gap: 10px;
}

.retro-desktop-page .desktop-icon {
  width: 76px;
  min-height: 76px;
  border: 1px dotted transparent;
  border-radius: 0;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000000;
  padding: 4px 3px 6px;
  gap: 5px;
}

.retro-desktop-page .desktop-icon:hover,
.retro-desktop-page .desktop-icon.selected {
  border-color: #ffffff;
  background: rgba(0, 0, 128, 0.45);
}

.retro-desktop-page .icon-glyph {
  width: 34px;
  height: 34px;
  border-radius: 0;
  border: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.retro-desktop-page .icon-glyph.folder {
  background-image: url("assets/retro/icon-folder.svg");
}

.retro-desktop-page .icon-glyph.folder::before {
  content: none;
}

.retro-desktop-page .icon-glyph.monitor {
  background-image: url("assets/retro/icon-computer.svg");
}

.retro-desktop-page .icon-glyph.monitor::before {
  content: none;
}

.retro-desktop-page .icon-glyph.file {
  background-image: url("assets/retro/icon-file.svg");
}

.retro-desktop-page .icon-glyph.file::before {
  content: none;
}

.retro-desktop-page .icon-glyph.globe {
  background-image: url("assets/retro/icon-network.svg");
}

.retro-desktop-page .icon-glyph.globe::before {
  content: none;
}

.retro-desktop-page .icon-label {
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: 0;
}

.retro-desktop-page .icon-rename-input {
  border: 1px solid #000000;
  box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #808080;
  background: #ffffff;
  color: #000000;
  font-size: 11px;
}

.retro-desktop-page .desk-window {
  border: 1px solid #000000;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #ffffff, inset -2px -2px 0 #000000, inset 2px 2px 0 #dfdfdf;
}

.retro-desktop-page .desk-window.active {
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #ffffff, inset -2px -2px 0 #000000, inset 2px 2px 0 #dfdfdf, 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.retro-desktop-page .desk-titlebar {
  color: #ffffff;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 4px;
}

.retro-desktop-page .desk-controls {
  gap: 2px;
}

.retro-desktop-page .desk-controls button,
.retro-desktop-page .start-btn,
.retro-desktop-page .task-btn,
.retro-desktop-page .task-clock,
.retro-desktop-page .menu-item,
.retro-desktop-page .submenu button,
.retro-desktop-page .context-item {
  border: 1px solid #000000;
  border-radius: 0;
  background: #c0c0c0;
  color: #000000;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #ffffff;
  font-family: Tahoma, "MS Sans Serif", "Segoe UI", sans-serif;
}

.retro-desktop-page .desk-controls button {
  width: 18px;
  height: 16px;
  font-size: 10px;
  line-height: 1;
  padding: 0;
}

.retro-desktop-page .desk-controls button:active,
.retro-desktop-page .start-btn:active,
.retro-desktop-page .task-btn:active,
.retro-desktop-page .menu-item:active,
.retro-desktop-page .submenu button:active,
.retro-desktop-page .context-item:active {
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #ffffff;
}

.retro-desktop-page .desk-content {
  background: #c0c0c0;
  color: #000000;
  font-size: 12px;
  padding: 10px;
}

.retro-desktop-page .desk-content h3 {
  font-family: Tahoma, "MS Sans Serif", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.retro-desktop-page .desk-content p,
.retro-desktop-page .desk-content li,
.retro-desktop-page .desk-content span {
  color: #000000;
}

.retro-desktop-page .desk-content .card,
.retro-desktop-page .desk-content .tracker,
.retro-desktop-page .desk-content .drive-card {
  border: 1px solid #7f7f7f;
  border-radius: 0;
  background: #d4d0c8;
  box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #808080;
}

.retro-desktop-page .desk-content .track-row {
  border-bottom: 1px solid #b1b1b1;
  background: #d4d0c8;
}

.retro-desktop-page .notepad-shell,
.retro-desktop-page .explorer-path {
  border: 1px solid #7f7f7f;
  box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #808080;
}

.retro-desktop-page .notepad-toolbar {
  background: #d4d0c8;
  border-bottom: 1px solid #7f7f7f;
}

.retro-desktop-page .explorer-item.selected,
.retro-desktop-page .explorer-item:hover {
  background: #000080;
  color: #ffffff;
}

.retro-desktop-page .explorer-item.selected .explorer-item-label,
.retro-desktop-page .explorer-item:hover .explorer-item-label,
.retro-desktop-page .explorer-item.selected span,
.retro-desktop-page .explorer-item:hover span {
  color: #ffffff;
}

.retro-desktop-page .launcher-open {
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #ffffff;
}

.retro-desktop-page .status-toolbar {
  border-bottom: 1px solid #7f7f7f;
  background: #d4d0c8;
}

.retro-desktop-page .status-source {
  color: #000000;
}

.retro-desktop-page .status-actions button {
  border: 1px solid #000000;
  background: #c0c0c0;
  color: #000000;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #ffffff;
}

.retro-desktop-page .status-actions button:active {
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #ffffff;
}

.retro-desktop-page .desk-window.maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: calc(100% - var(--taskbar-height, 34px));
  max-width: none !important;
  min-width: 0 !important;
}

.retro-desktop-page .desk-window.snap-left {
  left: 0 !important;
  top: 0 !important;
  width: 50% !important;
  height: calc(100% - var(--taskbar-height, 34px));
  max-width: none !important;
  min-width: 0 !important;
}

.retro-desktop-page .desk-window.snap-right {
  left: 50% !important;
  top: 0 !important;
  width: 50% !important;
  height: calc(100% - var(--taskbar-height, 34px));
  max-width: none !important;
  min-width: 0 !important;
}

.retro-desktop-page .desk-taskbar {
  gap: 6px;
  padding: 2px 3px;
  border-top: 1px solid #ffffff;
  background-color: #c0c0c0;
  background-image: url("assets/retro/taskbar-texture.svg");
  background-size: 100% 100%;
  box-shadow: inset 0 1px 0 #dfdfdf;
}

.retro-desktop-page .start-btn {
  min-width: 58px;
  padding: 3px 8px 3px 20px;
  font-size: 12px;
  font-weight: 700;
  position: relative;
  text-align: left;
}

.retro-desktop-page .start-btn::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 11px;
  height: 11px;
  background-image: url("assets/retro/start-badge.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.retro-desktop-page .task-buttons {
  gap: 4px;
}

.retro-desktop-page .task-btn {
  min-width: 120px;
  max-width: 190px;
  padding: 3px 7px;
  font-size: 11px;
}

.retro-desktop-page .task-btn.active {
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #ffffff;
  background: #b8b8b8;
}

.retro-desktop-page .task-clock {
  min-width: 58px;
  padding: 3px 8px;
  font-size: 11px;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #ffffff;
}

.retro-desktop-page .start-menu,
.retro-desktop-page .submenu,
.retro-desktop-page .context-menu {
  border: 1px solid #000000;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #ffffff;
  padding: 2px;
  gap: 2px;
}

.retro-desktop-page .start-menu {
  width: 198px;
  bottom: 28px;
  padding-left: 24px;
}

.retro-desktop-page .start-menu::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  bottom: 2px;
  width: 20px;
  background-image: url("assets/retro/start-rail.svg");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.retro-desktop-page .menu-item,
.retro-desktop-page .submenu button,
.retro-desktop-page .context-item {
  padding: 4px 7px;
  font-size: 11px;
}

.retro-desktop-page .menu-item:hover,
.retro-desktop-page .submenu button:hover,
.retro-desktop-page .context-item:hover,
.retro-desktop-page .menu-item:focus {
  background: #000080;
  color: #ffffff;
  box-shadow: none;
}

.retro-desktop-page .context-menu hr {
  border-top: 1px solid #808080;
  margin: 2px 0;
}

.retro-desktop-page .snap-preview {
  border: 1px dotted #000080;
  background: rgba(0, 0, 128, 0.15);
}

.retro-desktop-page .boot-overlay {
  background: #000000;
}

.retro-desktop-page .boot-panel {
  border: 1px solid #ffffff;
  border-radius: 0;
  background: #000000;
  color: #c6c6c6;
  box-shadow: none;
}

.retro-desktop-page .boot-logo {
  font-family: Tahoma, "MS Sans Serif", "Segoe UI", sans-serif;
  font-size: 17px;
}

.retro-desktop-page .boot-text {
  color: #c6c6c6;
}

.retro-desktop-page .boot-progress-track {
  border: 1px solid #808080;
  border-radius: 0;
  background: #000000;
  height: 11px;
}

.retro-desktop-page .boot-progress-fill {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
}

@media (max-width: 760px) {
  .retro-desktop-page .desktop-icons {
    top: 8px;
    left: 8px;
    right: auto;
    grid-template-columns: repeat(2, minmax(70px, 1fr));
  }

  .retro-desktop-page .desktop-icon {
    max-width: 90px;
  }

  .retro-desktop-page .task-btn {
    min-width: 96px;
  }
}
