:root {
  --taskbar: rgba(12, 16, 19, 0.96);
  --taskbar-hover: rgba(255, 255, 255, 0.12);
  --taskbar-active: #76b9ed;
  --win-blue: #0078d7;
  --win-blue-dark: #005a9e;
  --chrome: #f6f6f6;
  --chrome-line: #d5d5d5;
  --text: #1f1f1f;
  --muted: #666;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  --font: "Segoe UI", "Segoe UI Variable", Arial, sans-serif;
  --icon-font: "Segoe MDL2 Assets", "Segoe UI Symbol", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  background: #02365f;
  user-select: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  background: transparent;
}

.asset-icon {
  display: inline-block;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
}

.github-mark,
.social-mark,
.about-mark,
.media-mark {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: #15181c;
  font-weight: 700;
  letter-spacing: 0;
}

.social-mark {
  background: #2456b8;
}

.about-mark {
  background: #0078d7;
  font-family: Georgia, serif;
  font-style: italic;
}

.media-mark {
  background: #1d1d1d;
  font-size: 16px;
}

.desktop-asset {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.title-asset {
  width: 16px;
  height: 16px;
}

.folder-asset {
  width: 42px;
  height: 42px;
}

.tile-asset {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}

.task-asset {
  position: absolute;
  left: 12px;
  top: 8px;
  width: 24px;
  height: 24px;
}

.task-mark {
  position: absolute;
  left: 12px;
  top: 8px;
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.title-glyph {
  width: 16px;
  height: 16px;
  font-size: 8px;
}

.desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #02365f url("./assets/wallpapers/windows-10.jpg") center / cover no-repeat;
}

.desktop::before {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.02);
  content: "";
  pointer-events: none;
}

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

.desktop-icon {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 82px;
  padding: 5px 4px;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  font-size: 13px;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

.icon-monitor,
.icon-folder,
.icon-bin,
.icon-note {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.icon-monitor {
  width: 46px;
  height: 36px;
}

.icon-monitor::before {
  position: absolute;
  inset: 0 4px 9px 4px;
  border: 2px solid #9edcff;
  background: linear-gradient(135deg, #034878, #24a6ff);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  content: "";
}

.icon-monitor::after {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 8px;
  border-bottom: 3px solid #c8c8c8;
  background: #d8d8d8;
  transform: perspective(20px) rotateX(28deg);
  content: "";
}

.icon-folder,
.mini-folder {
  width: 38px;
  height: 30px;
  border-radius: 2px;
  background: linear-gradient(#ffd966, #f2ad1d);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.07);
}

.icon-folder::before,
.mini-folder::before {
  position: absolute;
  left: 2px;
  top: -5px;
  width: 17px;
  height: 8px;
  border-radius: 2px 2px 0 0;
  background: #ffe38a;
  content: "";
}

.icon-folder.down::after,
.icon-folder.music::after,
.icon-folder.picture::after,
.icon-folder.video::after {
  position: absolute;
  right: -5px;
  bottom: 4px;
  color: #188de0;
  font-size: 24px;
  font-weight: 700;
}

.icon-folder.down::after { content: "↓"; }
.icon-folder.music::after { content: "♪"; }
.icon-folder.picture::after { content: "▧"; }
.icon-folder.video::after { content: "▣"; }

.icon-bin {
  width: 34px;
  height: 42px;
  border: 2px solid rgba(220, 239, 255, 0.9);
  border-radius: 2px 2px 6px 6px;
  background: linear-gradient(160deg, rgba(170, 213, 241, 0.65), rgba(255, 255, 255, 0.35));
}

.icon-bin::before {
  position: absolute;
  left: -3px;
  top: -8px;
  width: 38px;
  height: 5px;
  border-radius: 3px;
  background: #d5e9f7;
  content: "";
}

.icon-bin::after {
  position: absolute;
  left: 11px;
  top: 13px;
  color: #168bd7;
  content: "♻";
}

.icon-note,
.mini-note {
  width: 32px;
  height: 36px;
  border: 1px solid #c8d6e2;
  background:
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(0, 120, 215, 0.18) 6px 7px),
    linear-gradient(135deg, #fdfefe, #cae6f9);
  transform: rotate(-8deg);
}

.icon-note::before,
.mini-note::before {
  position: absolute;
  top: 0;
  left: 4px;
  right: 4px;
  height: 4px;
  background: repeating-linear-gradient(90deg, #79a9c7 0 2px, transparent 2px 4px);
  content: "";
}

.window {
  position: absolute;
  z-index: 5;
  min-width: 340px;
  min-height: 220px;
  display: none;
  overflow: hidden;
  border: 1px solid #8f8f8f;
  background: #fff;
  box-shadow: var(--shadow);
}

.window.active {
  display: flex;
  flex-direction: column;
}

.window.focused {
  border-color: #6aa6db;
}

.window.maximized {
  inset: 0 0 40px 0 !important;
  width: auto !important;
  height: auto !important;
}

.window-titlebar {
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  background: #fff;
  color: #111;
  font-size: 12px;
}

.title-left {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 9px;
}

.mini-folder,
.mini-note,
.mini-gear {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 14px;
}

.mini-folder::before {
  top: -3px;
  width: 8px;
  height: 5px;
}

.mini-note {
  width: 14px;
  height: 16px;
}

.mini-gear {
  display: grid;
  place-items: center;
  color: var(--win-blue);
}

.mini-gear::before {
  content: "⚙";
}

.window-controls {
  display: flex;
  align-self: stretch;
}

.window-controls button {
  width: 46px;
  height: 100%;
  font-size: 16px;
}

.window-controls button:hover {
  background: #e5e5e5;
}

.window-controls button:last-child:hover {
  color: #fff;
  background: #e81123;
}

.ribbon,
.notepad-menu {
  display: flex;
  align-items: center;
  height: 29px;
  border-bottom: 1px solid var(--chrome-line);
  background: #fbfbfb;
  font-size: 12px;
}

.ribbon button,
.notepad-menu button {
  height: 100%;
  padding: 0 14px;
}

.ribbon .selected {
  color: #fff;
  background: var(--win-blue);
}

.address-bar {
  height: 40px;
  display: grid;
  grid-template-columns: 30px 30px 30px minmax(150px, 1fr) 210px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 1px solid #e4e4e4;
  background: #fff;
  font-size: 12px;
}

.address-bar button,
.crumb,
.explorer-search {
  height: 28px;
  border: 1px solid #d9d9d9;
  background: #fff;
}

.address-bar button {
  color: #777;
  font-size: 19px;
}

.crumb {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.explorer-search,
.settings-search {
  position: relative;
  display: flex;
  align-items: center;
}

.explorer-search span,
.settings-search span {
  position: absolute;
  left: 10px;
  color: #858585;
  pointer-events: none;
}

.explorer-search input,
.settings-search input {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0 10px;
  background: transparent;
}

.explorer-search:focus-within span,
.settings-search:focus-within span {
  display: none;
}

.explorer-body {
  display: grid;
  grid-template-columns: 172px 1fr;
  min-height: 0;
  flex: 1;
}

.explorer-sidebar {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 12px 0;
  border-right: 1px solid #ededed;
  background: #fbfbfb;
}

.explorer-sidebar button {
  height: 28px;
  padding: 0 18px;
  text-align: left;
  font-size: 13px;
}

.explorer-sidebar button:hover,
.explorer-sidebar .selected {
  background: #e5f3ff;
}

.explorer-content {
  padding: 16px 18px;
  overflow: auto;
}

.explorer-content h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #3f5f96;
  font-size: 13px;
  font-weight: 400;
}

.explorer-content h2::before {
  content: "⌄";
  color: #777;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 18px 36px;
  margin-bottom: 22px;
}

.folder-grid button,
.folder-grid a {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 50px;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.folder-grid button:hover,
.folder-grid a:hover {
  background: #e5f3ff;
}

.folder-grid .icon-folder {
  grid-row: 1 / 3;
}

.folder-grid .folder-asset {
  grid-row: 1 / 3;
}

.folder-grid .friend-avatar {
  width: 36px;
  height: 36px;
  border: 1px solid #b8b8b8;
  background: #fff;
  object-fit: cover;
}

.folder-grid strong {
  font-size: 13px;
  font-weight: 400;
}

.folder-grid small {
  color: #777;
}

.empty-recent {
  margin: 8px 0 0 54px;
  color: #858585;
  font-size: 13px;
}

.statusbar,
.notepad-status {
  height: 24px;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  border-top: 1px solid #ededed;
  background: #f8f8f8;
  color: #555;
  font-size: 12px;
}

.statusbar {
  padding-left: 13px;
}

.notepad-window textarea {
  flex: 1;
  width: 100%;
  min-height: 0;
  resize: none;
  border: 0;
  padding: 6px;
  font: 14px Consolas, "Courier New", monospace;
  outline: none;
}

.notepad-status {
  justify-content: flex-end;
  gap: 34px;
  padding: 0 12px;
}

.settings-body {
  flex: 1;
  padding: 30px 34px;
  background: #f2f2f2;
}

.settings-body h2 {
  margin: 0 0 22px;
  text-align: center;
  font-weight: 300;
}

.settings-search {
  width: min(100%, 430px);
  height: 34px;
  margin: 0 auto 26px;
  border: 1px solid #b7b7b7;
  background: #fff;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.settings-grid button,
.settings-grid a {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 14px;
  min-height: 106px;
  padding: 14px 16px;
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition: background 140ms ease, outline-color 140ms ease, transform 140ms ease;
}

.settings-grid button:hover,
.settings-grid a:hover {
  background: #e6e6e6;
  transform: translateY(-1px);
}

.settings-grid .project-card.selected {
  outline: 1px solid #0078d7;
  background: #1e3d58;
}

.settings-grid button > span,
.settings-card-icon {
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  align-self: center;
}

.settings-grid strong {
  font-weight: 400;
}

.project-name-red {
  color: #ff5f6d;
  text-shadow: 0 0 10px rgba(255, 95, 109, .28);
}

@keyframes project-rgb {
  0% { color: #ff4d6d; text-shadow: 0 0 10px rgba(255, 77, 109, .32); }
  20% { color: #ffb703; text-shadow: 0 0 10px rgba(255, 183, 3, .28); }
  40% { color: #50ff87; text-shadow: 0 0 10px rgba(80, 255, 135, .3); }
  60% { color: #48cae4; text-shadow: 0 0 10px rgba(72, 202, 228, .3); }
  80% { color: #b388ff; text-shadow: 0 0 12px rgba(179, 136, 255, .34); }
  100% { color: #ff4d6d; text-shadow: 0 0 10px rgba(255, 77, 109, .32); }
}

.project-card[data-project-title="kuudere.cc"] strong span {
  animation: project-rgb 2.8s linear infinite;
}

.project-name-green {
  color: #5dff9b;
  text-shadow: 0 0 10px rgba(93, 255, 155, .28);
}

.project-name-purple {
  color: #c9a5ff;
  text-shadow: 0 0 12px rgba(201, 165, 255, .36);
}

.project-name-light {
  color: #f0f6fc;
}

.settings-grid small {
  display: block;
  color: #f0f6fc;
  line-height: 1.4;
}

.active-projects-body .settings-grid > button:not(.project-card) {
  display: none;
}

.active-projects-body.detail-open h2,
.active-projects-body.detail-open .settings-search,
.active-projects-body.detail-open .settings-grid {
  display: none;
}

@keyframes project-detail-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-detail {
  min-height: 100%;
  display: none;
  padding: 18px 20px;
  border: 1px solid #3a414c;
  background: #111418;
}

.active-projects-body.detail-open .project-detail {
  display: block;
  animation: project-detail-in 180ms ease-out both;
}

.project-back {
  height: 28px;
  margin-bottom: 22px;
  padding: 0 12px;
  border: 1px solid #3a414c;
  color: #f0f6fc;
  background: #242a32;
}

.project-back:hover {
  border-color: #0078d7;
  background: #1e3d58;
}

.project-detail strong {
  display: block;
  margin-bottom: 12px;
  color: #f0f6fc;
  font-size: 24px;
  font-weight: 300;
}

.project-detail strong.rgb-title {
  animation: project-rgb 2.8s linear infinite;
}

.project-detail p {
  margin: 0;
  color: #c9d1d9;
  line-height: 1.5;
  font-size: 14px;
}

.project-detail-meta {
  margin-top: 22px !important;
  color: #8b949e !important;
  font-size: 12px !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-detail-meta::first-letter {
  color: inherit;
}

.project-status {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #8b949e;
}

.project-status.active {
  background: #3fb950;
}

.project-status.idle {
  background: #d29922;
}

.hub-window {
  border-color: #111;
  background: #111315;
}

.dark-titlebar {
  background: #1d2024;
  color: #f2f2f2;
}

.dark-titlebar .window-controls button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dark-titlebar .window-controls button:last-child:hover {
  background: #e81123;
}

.media-window {
  width: 236px;
  height: 272px;
  min-width: 236px;
  min-height: 272px;
  max-width: 236px;
  max-height: 272px;
  border: 1px solid #7f7f7f;
  background: #000;
  box-shadow: none;
}

.media-titlebar {
  height: 31px;
  flex: 0 0 31px;
  background: #fff;
  color: #000;
}

.media-titlebar .title-left {
  gap: 0;
  padding-left: 8px;
}

.media-titlebar .media-mark {
  width: 16px;
  height: 16px;
  border-color: #2b8fd4;
  color: #fff;
  background:
    linear-gradient(90deg, #ff9d12 0 42%, transparent 42%),
    linear-gradient(135deg, transparent 0 42%, #1b8ee8 43% 100%);
  font-size: 9px;
}

.media-titlebar .title-left > span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.media-titlebar .window-controls button {
  width: 46px;
  height: 31px;
  color: #111;
}

.media-titlebar .window-controls button:hover {
  background: #e5e5e5;
}

.media-titlebar .window-controls button:last-child:hover {
  color: #fff;
  background: #e81123;
}

.media-body {
  position: relative;
  flex: 1;
  overflow: hidden;
  color: #fff;
  background: #000;
}

.media-body::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 10px;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(#fff 0 0) 0 0 / 5px 5px no-repeat,
    linear-gradient(#fff 0 0) 10px 0 / 5px 5px no-repeat,
    linear-gradient(#fff 0 0) 0 10px / 5px 5px no-repeat,
    linear-gradient(#fff 0 0) 13px 13px / 5px 5px no-repeat;
  filter: drop-shadow(0 1px 1px #000);
  pointer-events: none;
  z-index: 3;
}

.media-art {
  position: absolute;
  left: 0;
  right: 0;
  top: 58px;
  height: 139px;
  background-position: center;
  background-size: cover;
  transition: filter 220ms ease;
}

.media-art.has-art {
  filter: saturate(1.08) contrast(1.08) brightness(0.78);
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.55)),
    radial-gradient(circle at 50% 58%, rgba(95, 92, 70, 0.48), transparent 34%),
    linear-gradient(145deg, #071214, #020202);
}

.media-placeholder span {
  font-size: 42px;
}

.media-placeholder p {
  margin: 0;
  font-size: 11px;
}

.media-overlay {
  position: absolute;
  inset: 0;
  min-height: 0;
  display: block;
  padding: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), transparent 34%),
    linear-gradient(transparent 68%, rgba(0, 0, 0, 0.72) 78%, #000 85%);
}

.media-time-row {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 61px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  color: transparent;
  font-size: 0;
}

.media-progress {
  height: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  background: linear-gradient(#2f2f2f, #151515);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.9);
}

.media-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(#49c6ff, #1387e5);
}

.media-info {
  position: absolute;
  top: 10px;
  left: 9px;
  right: 42px;
  display: block;
  min-width: 0;
  text-shadow: 0 1px 2px #000;
}

.media-info strong,
.media-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-info strong {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.media-info span {
  display: none;
}

.media-controls {
  position: absolute;
  left: 25px;
  right: 8px;
  bottom: 7px;
  height: 39px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  color: #e8e8e8;
}

.media-controls::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 1px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
}

.media-controls span {
  display: grid;
  place-items: center;
  color: #f4f4f4;
  font-size: 0;
  text-shadow: 0 1px 1px #000;
}

.media-controls span::before {
  font-size: 14px;
}

.media-controls span:nth-child(1) {
  width: 11px;
  height: 11px;
  margin-right: 8px;
  border-radius: 1px;
  background: linear-gradient(#fdfdfd, #d7d7d7);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.media-controls span:nth-child(2),
.media-controls span:nth-child(4) {
  width: 35px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  background: linear-gradient(#5c5c5c, #171717);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.26);
}

.media-controls span:nth-child(2)::before {
  content: "|<<";
  font-size: 11px;
}

.media-controls span:nth-child(4)::before {
  content: ">>|";
  font-size: 11px;
}

.media-controls span:nth-child(5) {
  width: 18px;
  height: 18px;
  margin-left: 4px;
  background:
    linear-gradient(90deg, #f5f5f5 0 6px, transparent 6px),
    linear-gradient(45deg, transparent 38%, #f5f5f5 39% 62%, transparent 63%);
  background-size: 10px 10px, 16px 16px;
  background-repeat: no-repeat;
  background-position: 2px 6px, 7px 3px;
}

.media-controls button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d8eaff;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 50% 34%, #ffffff 0 7%, #91d7ff 8% 36%, #176ed2 58%, #0a3d8a 100%);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.9),
    inset 0 1px 3px rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-3px);
  font-size: 0;
}

.media-controls button::before {
  content: "II";
  font-size: 18px;
}

/* Restored square Windows 10-style player. */
.media-window {
  width: 430px;
  height: 430px;
  min-width: 360px;
  min-height: 360px;
  max-width: none;
  max-height: none;
  aspect-ratio: 1 / 1;
  border-color: #111;
  background: #171717;
  box-shadow: var(--shadow);
}

.media-titlebar {
  height: 34px;
  flex: 0 0 auto;
  background: #191919;
  color: #f2f2f2;
}

.media-titlebar .title-left {
  gap: 8px;
  padding-left: 9px;
}

.media-titlebar .media-mark {
  width: 16px;
  height: 16px;
  border-color: rgba(255, 255, 255, 0.55);
  background: #1d1d1d;
  font-size: 8px;
}

.media-titlebar .title-left > span:last-child {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

.media-titlebar .window-controls button {
  width: 46px;
  height: 100%;
  color: #f2f2f2;
}

.media-titlebar .window-controls button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.media-titlebar .window-controls button:last-child:hover {
  color: #fff;
  background: #e81123;
}

.media-body {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(145deg, #1d2c22, #090909);
}

.media-body::after,
.media-controls::after,
.media-controls button::before,
.media-controls span::before {
  content: none;
}

.media-art {
  inset: 0;
  height: auto;
}

.media-art.has-art {
  filter: saturate(1.05) contrast(1.04);
}

.media-placeholder {
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(55, 80, 64, 0.8), rgba(17, 17, 17, 0.95)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 18px);
}

.media-placeholder span {
  font-size: 56px;
}

.media-placeholder p {
  font-size: 13px;
}

.media-overlay {
  inset: auto 0 0;
  min-height: 116px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  gap: 7px;
  padding: 0 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72) 20%, rgba(20, 20, 20, 0.96));
}

.media-time-row {
  position: static;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  color: #cfcfcf;
  font-size: 10px;
}

.media-progress {
  height: 3px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.media-progress span {
  border-radius: 0;
  background: #ff8c00;
}

.media-info {
  position: static;
  display: grid;
  align-content: center;
  gap: 3px;
  text-shadow: none;
}

.media-info strong {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
}

.media-info span {
  display: block;
  color: #c8c8c8;
  font-size: 12px;
}

.media-controls {
  position: static;
  height: auto;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.media-controls span {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  color: #e8e8e8;
  background: none;
  font-size: 14px;
  box-shadow: none;
}

.media-controls span:nth-child(1),
.media-controls span:nth-child(2),
.media-controls span:nth-child(4),
.media-controls span:nth-child(5) {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.media-controls button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: none;
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
  transform: none;
}

.media-controls span,
.media-controls button {
  position: relative;
  font-size: 0;
}

.media-controls span::before,
.media-controls span::after,
.media-controls button::before,
.media-controls button::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.media-controls span:nth-child(1)::before {
  width: 14px;
  height: 9px;
  border-top: 1.5px solid #e8e8e8;
  border-bottom: 1.5px solid #e8e8e8;
  transform: skewY(-28deg);
}

.media-controls span:nth-child(1)::after {
  right: 0;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid #e8e8e8;
  border-right: 1.5px solid #e8e8e8;
  transform: rotate(45deg);
}

.media-controls span:nth-child(2)::before,
.media-controls span:nth-child(4)::before {
  top: 3px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.media-controls span:nth-child(2)::before {
  left: 4px;
  border-right: 8px solid #e8e8e8;
  filter: drop-shadow(-5px 0 0 #e8e8e8);
}

.media-controls span:nth-child(4)::before {
  right: 4px;
  border-left: 8px solid #e8e8e8;
  filter: drop-shadow(5px 0 0 #e8e8e8);
}

.media-controls span:nth-child(5)::before {
  width: 15px;
  height: 12px;
  border: 1.5px solid #e8e8e8;
  border-left-color: transparent;
  border-radius: 50%;
}

.media-controls span:nth-child(5)::after {
  right: 0;
  top: 3px;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid #e8e8e8;
  border-right: 1.5px solid #e8e8e8;
  transform: rotate(45deg);
}

.media-controls button::before,
.media-controls button::after {
  top: 7px;
  width: 3px;
  height: 12px;
  background: #fff;
}

.media-controls button::before {
  left: 9px;
}

.media-controls button::after {
  right: 9px;
}

/* Clean icon-only media controls. */
.media-controls {
  gap: 17px;
}

.media-controls span {
  width: 18px !important;
  height: 18px !important;
  color: transparent !important;
  background: #e8e8e8 !important;
  background-color: #e8e8e8 !important;
  font-size: 0 !important;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.media-controls span::before,
.media-controls span::after {
  content: none !important;
}

.media-controls span:nth-child(1) {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M17 3h4v4h-2V6.4l-4.3 4.3-1.4-1.4L17.6 5H17V3zM3 7h3.8c1.8 0 3.3.8 4.5 2.3l1 1.2-1.5 1.3-1-1.3C9 9.5 8 9 6.8 9H3V7zm16 10.6V17h2v4h-4v-2h.6l-4.4-4.4 1.4-1.4L19 17.6zM3 15h3.8c1.2 0 2.2-.5 3-1.5l.9-1.1 1.5 1.3-.9 1.1C10.1 16.3 8.6 17 6.8 17H3v-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M17 3h4v4h-2V6.4l-4.3 4.3-1.4-1.4L17.6 5H17V3zM3 7h3.8c1.8 0 3.3.8 4.5 2.3l1 1.2-1.5 1.3-1-1.3C9 9.5 8 9 6.8 9H3V7zm16 10.6V17h2v4h-4v-2h.6l-4.4-4.4 1.4-1.4L19 17.6zM3 15h3.8c1.2 0 2.2-.5 3-1.5l.9-1.1 1.5 1.3-.9 1.1C10.1 16.3 8.6 17 6.8 17H3v-2z'/%3E%3C/svg%3E");
}

.media-controls span:nth-child(2) {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 5h2v14H5V5zm3 7 11-7v14L8 12z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 5h2v14H5V5zm3 7 11-7v14L8 12z'/%3E%3C/svg%3E");
}

.media-controls span:nth-child(4) {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M17 5h2v14h-2V5zM5 5l11 7-11 7V5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M17 5h2v14h-2V5zM5 5l11 7-11 7V5z'/%3E%3C/svg%3E");
}

.media-controls span:nth-child(5) {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M17.7 6.3A8 8 0 1 0 20 12h-2a6 6 0 1 1-1.8-4.3L13 11h8V3l-3.3 3.3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M17.7 6.3A8 8 0 1 0 20 12h-2a6 6 0 1 1-1.8-4.3L13 11h8V3l-3.3 3.3z'/%3E%3C/svg%3E");
}

.media-controls button {
  font-size: 0 !important;
}

.media-controls button::before,
.media-controls button::after {
  content: "" !important;
  top: 7px !important;
  width: 3px !important;
  height: 12px !important;
  border: 0 !important;
  background: #fff !important;
}

.media-controls button::before {
  left: 9px !important;
}

.media-controls button::after {
  right: 9px !important;
}

.hub-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 22px;
  color: #f2f2f2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 32px,
    #101214;
}

.hub-body.compact {
  padding: 22px 24px 18px;
}

.hub-body.compact .link-section {
  gap: 7px;
}

.hub-body.compact .link-section a,
.hub-body.compact .link-section button {
  min-height: 38px;
  padding: 8px 12px;
}

.hub-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hub-kicker {
  margin: 0 0 6px;
  color: #9aa4af;
  font-size: 12px;
}

.hub-body h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 30px;
  font-weight: 600;
}

.hub-body p {
  margin: 0;
  color: #c5cbd3;
  line-height: 1.5;
}

.hub-open {
  align-self: start;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: #0078d7;
  text-decoration: none;
  font-size: 12px;
}

.hub-open:hover {
  background: #168be8;
}

.link-section {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.link-section h3 {
  margin: 0 0 4px;
  color: #9bbcff;
  font-size: 14px;
  font-weight: 600;
}

.link-section h3::before {
  content: "# ";
  color: #fff;
}

.link-section a,
.link-section button,
.repo-link {
  display: grid;
  gap: 2px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  text-decoration: none;
}

.link-section a:hover,
.link-section button:hover,
.repo-link:hover {
  border-color: rgba(118, 185, 237, 0.8);
  background: rgba(0, 120, 215, 0.24);
}

.link-section span,
.repo-link span {
  color: #aeb7c2;
  font-size: 12px;
}

.repo-link {
  grid-template-columns: minmax(0, 1fr) auto;
}

.repo-link strong,
.repo-link span {
  grid-column: 1;
}

.repo-link em {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: #9bbcff;
  font-style: normal;
  font-size: 12px;
}

.github-repos-window,
.github-contrib-window {
  border: 1px solid #8f8f8f;
  background: #f2f2f2;
  box-shadow: var(--shadow);
}

.repo-window-body,
.contrib-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  color: #111;
  background: #f2f2f2;
  font-size: 12px;
}

.repo-toolbar {
  height: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-bottom: 1px solid #d2d2d2;
  background: #f8f8f8;
}

.repo-toolbar span {
  overflow: hidden;
  color: #555;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-toolbar button {
  height: 26px;
  padding: 0 12px;
  border: 1px solid #adadad;
  background: #e9e9e9;
}

.repo-toolbar button:hover {
  border-color: #0078d7;
  background: #e5f1fb;
}

.repo-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fff;
}

.repo-list-row {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 9px 10px;
  border-bottom: 1px solid #e2e2e2;
  color: #111;
  text-decoration: none;
}

.repo-list-row:hover {
  background: #e5f1fb;
}

.repo-list-row strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.repo-list-row strong img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.repo-list-row span {
  overflow: hidden;
  color: #555;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-list-row small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #777;
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d0d0;
}

.lang-dot.ts,
.lang-dot.TypeScript { background: #3178c6; }
.lang-dot.css,
.lang-dot.CSS { background: #563d7c; }
.lang-dot.js,
.lang-dot.JavaScript { background: #f1e05a; }
.lang-dot.html,
.lang-dot.HTML { background: #e34c26; }

.repo-statusbar {
  height: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-top: 1px solid #d2d2d2;
  color: #555;
  background: #f7f7f7;
}

.repo-statusbar span {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 6px;
  border-right: 1px solid #d2d2d2;
}

.repo-statusbar span:last-child {
  border-right: 0;
  border-left: 1px solid #d2d2d2;
}

.github-repos-window {
  border-color: #1b1f23;
  background: #111418;
}

.github-repos-window .xp-titlebar {
  color: #f4f4f4;
  background: #171a1f;
}

.github-repos-window .window-controls button {
  color: #f4f4f4;
}

.github-repos-window .window-controls button:hover {
  background: #2a3038;
}

.github-repos-window .window-controls button:last-child:hover {
  background: #e81123;
}

.github-repos-window .repo-window-body {
  color: #f2f2f2;
  background: #111418;
}

.github-repos-window .repo-toolbar {
  border-bottom-color: #2a3038;
  background: #171a1f;
}

.github-repos-window .repo-toolbar span {
  color: #c9d1d9;
}

.github-repos-window .repo-toolbar button {
  border-color: #3a414c;
  color: #f2f2f2;
  background: #242a32;
}

.github-repos-window .repo-toolbar button:hover {
  border-color: #0078d7;
  background: #1e3d58;
}

.github-repos-window .repo-list {
  background: #0d1117;
}

.github-repos-window .repo-list-row {
  border-bottom-color: #252b33;
  color: #f0f6fc;
}

.github-repos-window .repo-list-row:hover {
  background: #161b22;
}

.github-repos-window .repo-list-row span {
  color: #9aa4af;
}

.github-repos-window .repo-list-row small {
  color: #8b949e;
}

.github-repos-window .repo-statusbar {
  border-top-color: #2a3038;
  color: #c9d1d9;
  background: #171a1f;
}

.github-repos-window .repo-statusbar span,
.github-repos-window .repo-statusbar span:last-child {
  border-color: #2a3038;
}

.contrib-body {
  padding-top: 10px;
  overflow: hidden;
}

.contrib-months {
  height: 16px;
  display: grid;
  grid-template-columns: repeat(53, 10px);
  gap: 3px;
  padding: 0 14px 0 18px;
  color: #555;
  font-size: 11px;
}

.contrib-months span {
  overflow: hidden;
  line-height: 13px;
  white-space: nowrap;
}

.contrib-grid {
  height: 92px;
  display: block;
  padding: 3px 14px 0 18px;
}

.contrib-svg,
.contrib-canvas,
.contrib-image {
  display: block;
}

.contrib-cell {
  display: block;
  width: 10px;
  height: 10px;
  background: #e6ebef;
  fill: #e6ebef;
}

.contrib-cell.empty {
  visibility: hidden;
}

.contrib-cell.level-1 { background: #9be9a8; fill: #9be9a8; }
.contrib-cell.level-2 { background: #40c463; fill: #40c463; }
.contrib-cell.level-3 { background: #30a14e; fill: #30a14e; }
.contrib-cell.level-4 { background: #216e39; fill: #216e39; }

.contrib-legend {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin: 4px 14px 9px 0;
  color: #555;
  font-size: 11px;
}

.contrib-legend i {
  width: 10px;
  height: 10px;
  background: #ebedf0;
}

.contrib-legend i:nth-of-type(2) { background: #9be9a8; }
.contrib-legend i:nth-of-type(3) { background: #40c463; }
.contrib-legend i:nth-of-type(4) { background: #30a14e; }
.contrib-legend i:nth-of-type(5) { background: #216e39; }

.contrib-statusbar {
  margin-top: auto;
}

.about-window {
  min-width: 410px;
  min-height: 290px;
  border: 1px solid #8f8f8f;
  border-radius: 0;
  background: #f2f2f2;
  box-shadow: var(--shadow);
}

.xp-titlebar {
  height: 31px;
  color: #111;
  background: #fff;
  text-shadow: none;
}

.xp-titlebar .window-controls {
  align-items: stretch;
  gap: 0;
  padding-right: 0;
}

.xp-titlebar .window-controls button {
  width: 46px;
  height: 100%;
  border: 0;
  border-radius: 0;
  color: #111;
  background: transparent;
  font-size: 16px;
  line-height: 1;
}

.xp-titlebar .window-controls button:last-child {
  background: transparent;
}

.xp-titlebar .window-controls button:hover {
  background: #e5e5e5;
  filter: none;
}

.xp-titlebar .window-controls button:last-child:hover {
  color: #fff;
  background: #e81123;
}

.about-dialog {
  flex: 1;
  padding: 7px 9px 10px;
  color: #111;
  background: #f2f2f2;
  font-family: var(--font);
  font-size: 13px;
}

.about-top {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  align-items: start;
}

.lanyard-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d0d0d0;
  background: #111;
  color: #5da4ff;
  font-weight: 700;
}

.about-avatar {
  border-radius: 0;
}

.lanyard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-summary p {
  margin: 0 0 3px;
  line-height: 1.25;
}

.about-summary strong span {
  color: #58a6ff;
}

@keyframes tpm-rgb {
  0% { color: #ff3b5c; }
  20% { color: #ff9f1c; }
  40% { color: #2ee86f; }
  60% { color: #22d3ee; }
  80% { color: #7c5cff; }
  100% { color: #ff3b5c; }
}

.about-summary strong span {
  animation: tpm-rgb 2.6s linear infinite;
  font-weight: 700;
}

.about-text {
  margin: 10px 0 8px;
  line-height: 1.35;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-radius: 50%;
  background: #faa61a;
}

.status-dot.online { background: #3ba55d; }
.status-dot.idle { background: #faa61a; }
.status-dot.dnd { background: #ed4245; }
.status-dot.offline,
.status-dot.unknown { background: #747f8d; }

.social-fieldset {
  margin: 0;
  padding: 8px 8px 9px;
  border: 1px solid #c8c8c8;
  border-radius: 0;
  background: #f7f7f7;
}

.social-fieldset legend {
  padding: 0 4px;
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.social-buttons a {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid #adadad;
  border-radius: 0;
  color: #1f1f1f;
  background: #e9e9e9;
  box-shadow: none;
  text-decoration: none;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
}

.social-buttons a:hover {
  border-color: #0078d7;
  background: #e5f1fb;
}

.social-buttons a:last-child {
  grid-column: 1 / 2;
}

.social-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  object-fit: contain;
}

.lanyard-hidden {
  display: none;
}

.uses-window {
  min-width: 300px;
  min-height: 340px;
}

.uses-dialog {
  flex: 1;
  padding: 10px;
  color: #111;
  background: #f2f2f2;
  font-family: var(--font);
  font-size: 13px;
}

.uses-fieldset {
  margin: 0 0 12px;
  padding: 12px 10px 10px;
  border: 1px solid #c8c8c8;
  background: #f7f7f7;
}

.uses-fieldset legend {
  padding: 0 4px;
}

.uses-fieldset ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uses-fieldset li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 18px;
  white-space: nowrap;
}

.use-icon {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.pc-icon::before {
  position: absolute;
  inset: 1px 1px 4px;
  border: 1px solid #5f7f9e;
  background: linear-gradient(#dff5ff, #6aa7c9);
  content: "";
}

.pc-icon::after {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 1px;
  height: 3px;
  background: #777;
  content: "";
}

.mouse-icon {
  width: 14px;
  flex-basis: 14px;
  height: 9px;
  border: 1px solid #5f6870;
  border-radius: 50%;
  background: linear-gradient(145deg, #c7ddea 0%, #8297a5 55%, #31404a 100%);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .75);
  transform: rotate(-16deg);
}

.mouse-icon::before {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 6px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  content: "";
}

.blender-icon::before {
  color: #f5792a;
  font-size: 14px;
  content: "⚙";
}

.hammer-icon::before {
  color: #d7a600;
  font-size: 13px;
  content: "⌂";
}

.use-img {
  object-fit: contain;
}

.presence-status {
  color: #111;
  font-size: 13px;
}

.presence-status.online { color: #111; }
.presence-status.idle { color: #111; }
.presence-status.dnd { color: #111; }
.presence-status.offline { color: #111; }

.start-menu {
  position: absolute;
  z-index: 30;
  left: 0;
  bottom: 40px;
  width: 520px;
  height: 474px;
  display: none;
  grid-template-columns: 48px 208px 1fr;
  color: #fff;
  background: rgba(27, 31, 35, 0.96);
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.34);
}

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

.start-rail {
  display: grid;
  grid-template-rows: 48px 1fr repeat(5, 50px);
  background: rgba(0, 0, 0, 0.16);
}

.start-rail button,
.app-list button,
.tile {
  color: #fff;
}

.start-rail button:hover,
.app-list button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.app-list {
  padding: 18px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.app-list h2,
.tiles h2 {
  margin: 0 0 12px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
}

.app-list button {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  text-align: left;
}

.tiles {
  align-content: start;
  display: grid;
  grid-template-columns: repeat(2, 104px);
  grid-auto-rows: 104px;
  gap: 4px;
  padding: 28px;
}

.tiles h2 {
  grid-column: 1 / -1;
  height: 18px;
  padding: 0;
}

.tile {
  display: grid;
  align-content: end;
  justify-items: start;
  padding: 12px;
  text-align: left;
}

.tile.orange {
  background: #d87800;
}

.tile.blue {
  background: #1676ca;
}

.tile.dark {
  background: #23272d;
}

.tile.purple {
  background: #5a3fb0;
}

.tile.teal {
  background: #007c80;
}

.tile.large {
  grid-column: span 1;
}

.tile > span,
.tile > img {
  margin-bottom: 12px;
  font-size: 42px;
}

.tile strong {
  font-size: 12px;
  font-weight: 400;
}

.context-menu {
  position: absolute;
  z-index: 80;
  display: none;
  width: 194px;
  margin: 0;
  padding: 5px 0;
  border: 1px solid #979797;
  background: #f2f2f2;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.24);
}

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

.context-menu button {
  height: 28px;
  padding: 0 24px;
  text-align: left;
  font-size: 12px;
}

.context-menu button:hover {
  background: #d9ecff;
}

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

.taskbar {
  position: absolute;
  z-index: 60;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  display: flex;
  align-items: stretch;
  color: #fff;
  background: var(--taskbar);
  backdrop-filter: blur(10px);
}

.start-button,
.task-icon,
.tray-caret,
.tray-icon,
.clock,
.notify {
  position: relative;
  width: 48px;
  min-width: 48px;
  color: #fff;
}

.start-button:hover,
.task-icon:hover,
.tray-caret:hover,
.tray-icon:hover,
.clock:hover,
.notify:hover {
  background: var(--taskbar-hover);
}

.start-asset {
  width: 21px;
  height: 21px;
  margin: auto;
}

.task-search {
  position: relative;
  width: 368px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(0, 0, 0, 0.5);
  background: #f3f3f3;
}

.task-search span {
  position: relative;
  width: 20px;
  height: 20px;
}

.task-search span::before {
  position: absolute;
  inset: 0;
  color: #151515;
  font-family: var(--icon-font);
  font-size: 18px;
  line-height: 20px;
  content: "\E721";
}

.task-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #111;
  font-size: 15px;
}

.task-icon.active::after,
.task-icon.running::after {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 0;
  height: 2px;
  background: var(--taskbar-active);
  content: "";
}

.task-icon.cortana::before {
  position: absolute;
  left: 15px;
  top: 11px;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  content: "";
}

.task-icon.task-view::before {
  position: absolute;
  left: 14px;
  top: 12px;
  width: 20px;
  height: 14px;
  background:
    linear-gradient(#fff 0 0) 0 0 / 15px 1px no-repeat,
    linear-gradient(#fff 0 0) 0 6px / 15px 1px no-repeat,
    linear-gradient(#fff 0 0) 0 13px / 15px 1px no-repeat,
    linear-gradient(#fff 0 0) 0 0 / 1px 14px no-repeat,
    linear-gradient(#fff 0 0) 15px 0 / 1px 14px no-repeat,
    linear-gradient(#fff 0 0) 19px 4px / 1px 6px no-repeat;
  content: "";
}

.task-icon.task-view::after {
  position: absolute;
  left: 32px;
  top: 13px;
  width: 2px;
  height: 2px;
  background: #fff;
  box-shadow: 0 10px #fff;
  content: "";
}

.task-icon .mini-folder,
.task-icon .mini-note {
  position: absolute;
  left: 16px;
  top: 11px;
}

.task-spacer {
  flex: 1;
}

.tray-caret,
.tray-icon {
  width: 34px;
  min-width: 34px;
  font-size: 18px;
}

.tray-icon {
  font-size: 13px;
}

.tray-caret::before,
.tray-icon::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--icon-font);
}

.tray-caret::before {
  font-size: 11px;
  content: "\E70E";
}

.tray-icon.network::before {
  font-size: 14px;
  content: "\E839";
}

.tray-icon.volume::before {
  font-size: 15px;
  content: "\E995";
}

.clock {
  display: grid;
  place-content: center;
  min-width: 82px;
  gap: 1px;
  text-align: center;
  font-size: 12px;
}

.notify::before {
  position: absolute;
  left: 14px;
  top: 10px;
  width: 18px;
  height: 16px;
  border: 2px solid #fff;
  content: "";
}

.notify::after {
  position: absolute;
  left: 27px;
  top: 24px;
  width: 8px;
  height: 8px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  content: "";
}

/* Dark mode layer */
.window,
.about-window,
.uses-window,
.github-repos-window,
.github-contrib-window,
.settings-window {
  border-color: #252b33;
  background: #101317;
  color: #f0f6fc;
}

.window.focused {
  border-color: #0078d7;
}

.window-titlebar,
.xp-titlebar,
.github-repos-window .xp-titlebar {
  color: #f4f4f4;
  background: #171a1f;
}

.title-left,
.window-controls button,
.xp-titlebar .window-controls button,
.github-repos-window .window-controls button {
  color: #f4f4f4;
}

.window-controls button:hover,
.xp-titlebar .window-controls button:hover,
.github-repos-window .window-controls button:hover {
  background: #2a3038;
}

.window-controls button:last-child:hover,
.xp-titlebar .window-controls button:last-child:hover,
.github-repos-window .window-controls button:last-child:hover {
  color: #fff;
  background: #e81123;
}

.ribbon,
.notepad-menu,
.address-bar,
.settings-header,
.repo-toolbar,
.github-repos-window .repo-toolbar {
  border-color: #2a3038;
  color: #d7dde5;
  background: #171a1f;
}

.ribbon button,
.notepad-menu button,
.address-bar button,
.crumb,
.explorer-search,
.settings-search,
.repo-toolbar button,
.github-repos-window .repo-toolbar button {
  border-color: #3a414c;
  color: #f2f2f2;
  background: #242a32;
}

.ribbon button:hover,
.notepad-menu button:hover,
.address-bar button:hover,
.folder-grid button:hover,
.folder-grid a:hover,
.settings-grid button:hover,
.settings-grid a:hover,
.repo-toolbar button:hover,
.github-repos-window .repo-toolbar button:hover,
.context-menu button:hover {
  border-color: #0078d7;
  background: #1e3d58;
}

.explorer-search input,
.settings-search input,
.task-search input,
.notepad-window textarea {
  color: #f0f6fc;
}

.explorer-search span,
.settings-search span {
  color: #8b949e;
}

.explorer-body,
.explorer-content,
.repo-window-body,
.contrib-body,
.about-dialog,
.uses-dialog,
.settings-body,
.notepad-window textarea,
.github-repos-window .repo-window-body {
  color: #f0f6fc;
  background: #0d1117;
}

.explorer-sidebar {
  border-color: #252b33;
  background: #111418;
}

.explorer-sidebar button {
  color: #d7dde5;
}

.explorer-sidebar button:hover,
.explorer-sidebar .selected {
  color: #fff;
  background: #1e3d58;
}

.explorer-content h2,
.folder-grid strong,
.uses-fieldset li,
.about-summary p,
.about-text,
.presence-status,
.presence-status.online,
.presence-status.idle,
.presence-status.dnd,
.presence-status.offline {
  color: #f0f6fc;
}

.folder-grid small,
.empty-recent,
.repo-toolbar span,
.repo-list-row span,
.repo-list-row small,
.github-repos-window .repo-toolbar span,
.github-repos-window .repo-list-row span,
.github-repos-window .repo-list-row small {
  color: #9aa4af;
}

.folder-grid .friend-avatar,
.lanyard-avatar {
  border-color: #3a414c;
  background: #0d1117;
}

.social-fieldset,
.uses-fieldset {
  border-color: #3a414c;
  color: #f0f6fc;
  background: #111418;
}

.social-fieldset legend,
.uses-fieldset legend {
  color: #d7dde5;
}

.social-buttons a,
.settings-grid button,
.settings-grid a {
  border-color: #3a414c;
  color: #f0f6fc;
  background: #242a32;
}

.social-buttons a:hover {
  border-color: #0078d7;
  background: #1e3d58;
}

.about-summary strong span {
  color: #58a6ff;
}

.repo-list,
.github-repos-window .repo-list {
  background: #0d1117;
}

.repo-list-row,
.github-repos-window .repo-list-row {
  border-color: #252b33;
  color: #f0f6fc;
}

.repo-list-row:hover,
.github-repos-window .repo-list-row:hover {
  background: #161b22;
}

.repo-statusbar,
.statusbar,
.notepad-status,
.github-repos-window .repo-statusbar {
  border-color: #2a3038;
  color: #c9d1d9;
  background: #171a1f;
}

.repo-statusbar span,
.repo-statusbar span:last-child {
  border-color: #2a3038;
}

.contrib-months,
.contrib-legend {
  color: #c9d1d9;
}

.contrib-cell,
.contrib-legend i {
  background: #161b22;
  fill: #161b22;
}

.context-menu {
  border-color: #3a414c;
  color: #f0f6fc;
  background: #171a1f;
}

.context-menu button {
  color: #f0f6fc;
}

.context-menu hr {
  border-top-color: #2a3038;
}

.task-search {
  border-color: rgba(255, 255, 255, 0.08);
  background: #171a1f;
}

.task-search span::before {
  color: #f0f6fc;
}

.task-search input::placeholder {
  color: #c9d1d9;
}

@media (max-width: 860px) {
  .task-search {
    width: 210px;
  }

  .start-menu {
    width: min(100vw, 472px);
    grid-template-columns: 48px 170px 1fr;
  }

  .tiles {
    grid-template-columns: repeat(2, 86px);
    grid-auto-rows: 86px;
    padding: 24px 16px;
  }

  .explorer-window {
    left: 96px !important;
    width: calc(100vw - 110px) !important;
  }

  .notepad-window {
    left: 110px !important;
    width: calc(100vw - 120px) !important;
  }
}

@media (max-width: 620px) {
  .desktop-icons {
    gap: 9px;
  }

  .window {
    left: 8px !important;
    right: 8px;
    width: auto !important;
    min-width: 0;
  }

  .explorer-body {
    grid-template-columns: 1fr;
  }

  .explorer-sidebar {
    display: none;
  }

  .folder-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .task-search {
    width: 46px;
    padding: 0;
    justify-content: center;
  }

  .task-search input {
    display: none;
  }

  .start-menu {
    height: calc(100vh - 40px);
    grid-template-columns: 48px 1fr;
  }

  .tiles {
    display: none;
  }

  .clock {
    min-width: 70px;
  }
}
