:root {
  --xp-blue-deep: #0831d9;
  --xp-blue: #0a4bd8;
  --xp-blue-light: #3f8cf3;
  --xp-face: #ece9d8;
  --xp-face-dark: #d8d2c0;
  --xp-text: #1a1a1a;
  --xp-link: #1a4fa0;
  --titlebar-h: 28px;
  --taskbar-h: 40px;
  --font: Tahoma, "Segoe UI", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: #0b3c95;
  color: var(--xp-text);
  font-family: var(--font);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: default;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #ffb13a;
  outline-offset: 1px;
}

svg {
  display: block;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.muted {
  color: #6f7d90;
  font-size: 11.5px;
}

.seo {
  max-width: 860px;
  margin: 40px auto;
  padding: 36px 40px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  color: #1c2a3d;
  line-height: 1.6;
}

.seo h1 {
  margin: 0 0 12px;
  font-size: 32px;
  color: #0a3a8c;
}

.seo h2 {
  margin: 28px 0 8px;
  font-size: 20px;
  color: #0a3a8c;
}

.seo h3 {
  margin: 14px 0 4px;
  font-size: 15px;
}

.seo p {
  margin: 0 0 8px;
}

.seo nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.seo a {
  color: #1a4fa0;
}

.seo article {
  padding: 10px 0;
  border-bottom: 1px solid #e3e8ef;
}

.seo footer {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid #e3e8ef;
  font-size: 12px;
  color: #6b7a8e;
}

.js .seo {
  display: none;
}

html:not(.js) body {
  overflow: auto;
  background: #dfe8f4;
}

html:not(.js) .shell,
html:not(.js) .boot,
html:not(.js) .screensaver,
html:not(.js) .power-screen,
html:not(.js) .dialogs,
html:not(.js) .context-menu {
  display: none !important;
}

.shell {
  position: fixed;
  inset: 0;
}

.desktop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  user-select: none;
}

html.booted .boot {
  display: none !important;
}

.desktop.is-refreshing .wallpaper {
  animation: wall-refresh 0.3s ease;
}

@keyframes wall-refresh {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.5; }
}

.desktop-icons.is-arranging .desk-icon {
  animation: icon-arrange 0.4s ease;
}

@keyframes icon-arrange {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
}

.wallpaper {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.desktop[data-wallpaper="desktop"] .wallpaper {
  background-image: url("../img/desktop.jpg");
}

.desktop[data-wallpaper="meadow"] .wallpaper {
  background-image: url("../assets/wallpaper-meadow.svg");
}

.desktop[data-wallpaper="sunset"] .wallpaper {
  background-image: url("../assets/wallpaper-sunset.svg");
}

.desktop[data-wallpaper="night"] .wallpaper {
  background-image: url("../assets/wallpaper-night.svg");
}

.desktop-icons {
  position: absolute;
  top: 12px;
  left: 10px;
  bottom: calc(var(--taskbar-h) + 6px);
  right: 10px;
  display: flex;
  flex-flow: column wrap;
  align-content: flex-start;
  gap: 4px;
  overflow: hidden;
}

.desk-icon {
  width: 88px;
  padding: 6px 4px 7px;
  border: 1px dotted transparent;
  border-radius: 3px;
  background: transparent;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 5px rgba(0, 0, 0, 0.5);
  flex: 0 0 auto;
}

.desk-icon svg {
  width: 46px;
  height: 46px;
  margin: 0 auto 4px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.desk-icon span {
  display: block;
  font-size: 11.5px;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.desk-icon:hover {
  background: rgba(255, 255, 255, 0.14);
}

.desk-icon.is-selected {
  background: rgba(11, 68, 190, 0.5);
  border-color: rgba(255, 255, 255, 0.85);
}

.windows {
  position: absolute;
  inset: 0 0 var(--taskbar-h) 0;
  pointer-events: none;
  z-index: 10;
}

.xp-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  min-height: 180px;
  background: var(--xp-face);
  border: 3px solid var(--xp-blue-deep);
  border-radius: 8px 8px 0 0;
  box-shadow: 2px 4px 18px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  overflow: hidden;
  pointer-events: auto;
  z-index: 20;
}

.xp-window.is-opening {
  animation: win-open 0.16s ease-out;
}

.xp-window:not(.is-active) .titlebar {
  filter: saturate(0.72) brightness(0.9);
}

.xp-window.is-maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-width: 0;
  border-radius: 0;
}

.xp-window.is-active {
  box-shadow: 3px 5px 24px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

@keyframes win-open {
  from {
    opacity: 0.35;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.titlebar {
  height: var(--titlebar-h);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 3px 0 6px;
  background: linear-gradient(to bottom, #0a5ff5 0%, #0a4bd8 8%, #2a7bf0 42%, #1d63e0 88%, #0b3fc4 100%);
  color: #fff;
  user-select: none;
  touch-action: none;
}

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.titlebar-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.titlebar-text {
  font-size: 12.5px;
  font-weight: 700;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.titlebar-buttons {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.tb-btn {
  position: relative;
  width: 21px;
  height: 20px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  background: linear-gradient(to bottom, #7db9f8 0%, #3f86ec 45%, #2464d8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 0 1px rgba(0, 0, 0, 0.4);
}

.tb-btn:hover {
  filter: brightness(1.12);
}

.tb-btn:active {
  filter: brightness(0.88);
}

.tb-min::before {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 5px;
  width: 8px;
  height: 2px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.tb-max::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 8px;
  height: 7px;
  border: 1.6px solid #fff;
  border-top-width: 2.4px;
}

.xp-window.is-maximized .tb-max::before {
  left: 5px;
  top: 4px;
  width: 7px;
  height: 6px;
  box-shadow: 2px 2px 0 -1px #2464d8, 2px 2px 0 0 #fff;
}

.tb-close {
  margin-left: 2px;
  border-color: #ffd9cf;
  background: linear-gradient(to bottom, #f6a58f 0%, #e2593a 45%, #c72a10 100%);
}

.tb-close:hover {
  background: linear-gradient(to bottom, #ffbeab 0%, #ee6a45 45%, #dd3818 100%);
}

.tb-close::before,
.tb-close::after {
  content: "";
  position: absolute;
  left: 9.5px;
  top: 4px;
  width: 2px;
  height: 11px;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
}

.tb-close::before {
  transform: rotate(45deg);
}

.tb-close::after {
  transform: rotate(-45deg);
}

.window-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--xp-face);
  overflow: hidden;
}

.menu-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 1px;
  height: 23px;
  padding: 0 4px;
  background: var(--xp-face);
  border-bottom: 1px solid #d5d0bf;
  font-size: 12px;
  user-select: none;
  overflow: hidden;
}

.menu-bar span {
  padding: 3px 8px;
  white-space: nowrap;
}

.menu-bar span:hover {
  background: #316ac5;
  color: #fff;
}

.toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  min-height: 32px;
  background: linear-gradient(to bottom, #fdfdfd, #e9e5d8);
  border-bottom: 1px solid #c9c4b4;
  overflow: hidden;
}

.toolbar-sep {
  width: 1px;
  height: 20px;
  background: #c9c4b4;
  margin: 0 3px;
}

.address-label {
  font-size: 11.5px;
  color: #4a4a3a;
  margin-left: 8px;
  white-space: nowrap;
}

.address-bar {
  flex: 1;
  min-width: 80px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 6px;
  background: #fff;
  border: 1px solid #7f9db9;
  font-size: 12px;
  overflow: hidden;
}

.address-bar svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.address-bar span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xp-btn {
  min-width: 75px;
  padding: 4px 10px;
  border: 1px solid #7a7a6a;
  border-radius: 3px;
  background: linear-gradient(to bottom, #fdfdfd 0%, #f1eee4 45%, #ddd7c4 100%);
  box-shadow: inset 0 0 0 1px #fff;
  font-size: 12px;
  color: #1a1a1a;
  white-space: nowrap;
}

.xp-btn:hover {
  border-color: #e5a43b;
  background: linear-gradient(to bottom, #fffdf3 0%, #ffe9b8 45%, #ffd77a 100%);
}

.xp-btn:active {
  background: linear-gradient(to bottom, #e8c76e, #f5e3ad);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.25);
}

.xp-btn.is-small {
  min-width: 0;
  padding: 3px 8px;
  font-size: 11.5px;
}

.xp-btn.is-default {
  border-color: #2c5fb3;
  box-shadow: inset 0 0 0 1px #fff, 0 0 0 1px #7ea6e8;
}

.page-pad {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px;
  background: #fff;
}

.section-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #1a4fa0;
}

.page-pad p {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.5;
}

.status-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 23px;
  padding: 2px 6px;
  background: var(--xp-face);
  border-top: 1px solid #aca899;
  font-size: 11.5px;
  color: #3a3a3a;
  overflow: hidden;
}

.status-bar span {
  display: block;
  padding: 1px 7px;
  border: 1px solid #d6d2c2;
  border-top-color: #aca899;
  border-left-color: #aca899;
  background: #f5f3ea;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-bar .status-grow {
  flex: 1;
  border-color: transparent;
  background: transparent;
}

.demo-note {
  margin-top: 14px !important;
  padding: 6px 9px;
  background: #fff9dd;
  border: 1px solid #e8d48a;
  border-radius: 2px;
  color: #7a6a3a !important;
  font-size: 11.5px !important;
}

.explorer {
  background: #fff;
}

.explorer-body {
  flex: 1;
  min-height: 0;
  display: flex;
  background: #fff;
}

.task-pane {
  width: 192px;
  flex: none;
  padding: 10px 8px;
  overflow: auto;
  background: linear-gradient(to bottom, #eef5ff, #dce9fb);
  border-right: 1px solid #b6c9e6;
}

.pane-head {
  margin-top: 8px;
  padding: 4px 8px;
  background: linear-gradient(to bottom, #4a95f0, #1f5fc4);
  border-radius: 4px 4px 0 0;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.35);
}

.pane-head:first-child {
  margin-top: 0;
}

.pane-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 5px 0;
  background: #fff;
  border: 1px solid #cfd9e8;
  border-top: none;
}

.pane-list li button {
  display: block;
  width: 100%;
  padding: 3px 8px;
  border: none;
  background: transparent;
  color: var(--xp-link);
  text-align: left;
  font-size: 11.5px;
}

.pane-list li button:hover {
  text-decoration: underline;
}

.explorer-main {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 14px 18px;
  background: #fff;
}

.explorer-main h3 {
  margin: 14px 0 6px;
  font-size: 13px;
  color: #1a4fa0;
}

.explorer-main > p {
  max-width: 70ch;
}

.sysinfo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 16px;
  max-width: 760px;
  margin: 12px 0;
  padding: 10px 12px;
  background: #f3f7fd;
  border: 1px solid #d3dfee;
  border-radius: 3px;
}

.sysinfo div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
}

.sysinfo span {
  color: #5a6a80;
}

.sysinfo strong {
  font-weight: 600;
  text-align: right;
}

.drive-list {
  display: grid;
  gap: 4px;
}

.drive {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 2px;
  text-align: left;
}

.drive:hover {
  background: #eaf2ff;
  border-color: #b9d2f2;
}

.drive svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.drive strong {
  display: block;
  font-size: 12.5px;
  color: #1a1a1a;
}

.drive small {
  display: block;
  font-size: 11px;
  color: #66788f;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 12px;
  background: #fbfdff;
  border: 1px solid #d7e1ef;
  border-radius: 4px;
}

.event-date {
  width: 64px;
  flex: none;
  padding: 6px 0;
  border-radius: 4px;
  background: linear-gradient(to bottom, #3f8cf3, #0b3fc4);
  color: #fff;
  text-align: center;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

.event-date span {
  display: block;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.event-date small {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
}

.event-info {
  flex: 1;
  min-width: 0;
}

.event-info h3 {
  margin: 0 0 3px;
  font-size: 14px;
  color: #163a75;
}

.event-info p {
  margin: 0 0 2px;
  font-size: 12px;
  color: #3c4a5e;
}

.event-info p.muted {
  color: #7a8798;
}

.music-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #d8e2f0;
}

.track-list li + li {
  border-top: 1px solid #e8eef8;
}

.track-list a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto 54px;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  color: #17324f;
  text-decoration: none;
  font-size: 12.5px;
}

.track-list a:hover {
  background: #eaf3ff;
}

.track-num {
  color: #8a9bb0;
  font-size: 11px;
}

.track-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  color: #6a7a90;
  font-size: 11.5px;
  white-space: nowrap;
}

.track-play {
  color: var(--xp-link);
  font-size: 11px;
  text-align: right;
}

.synth {
  padding: 14px;
  background: linear-gradient(to bottom, #f3f7ff, #e3ecfb);
  border: 1px solid #c8d8ef;
  border-radius: 4px;
}

.synth h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #1a4fa0;
}

.synth-cover {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 108px;
  margin: 12px 0;
  padding: 12px;
  background: radial-gradient(circle at 50% 15%, #1e3a63, #07111f 75%);
  border: 2px solid #9fb6d6;
  border-radius: 3px;
  overflow: hidden;
}

.synth-cover span {
  flex: 1;
  height: 28%;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, #2a7ed8, #7df3ff);
  opacity: 0.85;
  transform-origin: bottom center;
}

.synth-cover span:nth-child(1) { height: 34%; }
.synth-cover span:nth-child(2) { height: 52%; }
.synth-cover span:nth-child(3) { height: 30%; }
.synth-cover span:nth-child(4) { height: 66%; }
.synth-cover span:nth-child(5) { height: 44%; }
.synth-cover span:nth-child(6) { height: 78%; }
.synth-cover span:nth-child(7) { height: 56%; }
.synth-cover span:nth-child(8) { height: 40%; }
.synth-cover span:nth-child(9) { height: 62%; }
.synth-cover span:nth-child(10) { height: 32%; }

.synth.is-playing .synth-cover span {
  animation: eq 0.72s ease-in-out infinite alternate;
}

.synth.is-playing .synth-cover span:nth-child(2n) { animation-delay: 0.11s; }
.synth.is-playing .synth-cover span:nth-child(3n) { animation-delay: 0.23s; }
.synth.is-playing .synth-cover span:nth-child(4n) { animation-delay: 0.34s; }
.synth.is-playing .synth-cover span:nth-child(5n) { animation-delay: 0.17s; }

@keyframes eq {
  from { transform: scaleY(0.42); }
  to { transform: scaleY(1.08); }
}

.synth-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.synth-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #3c4a5e;
}

.synth-volume input {
  width: 110px;
  accent-color: #2a6bdd;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.shot:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

.shot-art {
  display: block;
  position: relative;
  height: 120px;
  overflow: hidden;
  border: 1px solid #b9c6d6;
  border-bottom: none;
}

.shot-caption {
  display: block;
  padding: 5px 8px;
  background: #f4f7fb;
  border: 1px solid #dbe4f0;
  color: #33475f;
  font-size: 11.5px;
}

.shot-sunset .shot-art {
  background: linear-gradient(to bottom, #3a1e4e 0%, #8c3a63 42%, #e07a55 68%, #ffd08a 100%);
}

.shot-sunset .shot-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  background: #ffe8ad;
  box-shadow: 0 0 26px 12px rgba(255, 208, 130, 0.55);
}

.shot-sunset .shot-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(to bottom, #3a1e4e, #140a20);
  clip-path: polygon(0 45%, 22% 20%, 44% 48%, 66% 12%, 100% 50%, 100% 100%, 0 100%);
}

.shot-cassette .shot-art {
  background:
    radial-gradient(circle at 30% 64%, #2a2a2a 0 9px, #454545 10px 12px, transparent 13px),
    radial-gradient(circle at 70% 64%, #2a2a2a 0 9px, #454545 10px 12px, transparent 13px),
    linear-gradient(to bottom, #f0d9a5, #c99f58);
}

.shot-cassette .shot-art::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 18%;
  height: 34%;
  border-radius: 3px;
  background: linear-gradient(to bottom, #fdf6e3, #e2cfa0);
  border: 1px solid #b08f4e;
}

.shot-cassette .shot-art::after {
  content: "";
  position: absolute;
  left: 34%;
  right: 34%;
  bottom: 12%;
  height: 10px;
  border-radius: 5px;
  background: #3a3a3a;
}

.shot-monitor .shot-art {
  background: linear-gradient(135deg, #dce6f2, #a9b8cc);
}

.shot-monitor .shot-art::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 16%;
  height: 56%;
  border: 6px solid #3d4a5c;
  border-radius: 6px;
  background: radial-gradient(circle at 30% 25%, #bde6ff, #2a7ed8 70%);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.35);
}

.shot-monitor .shot-art::after {
  content: "";
  position: absolute;
  left: 42%;
  right: 42%;
  bottom: 13%;
  height: 16%;
  background: #5c6a7d;
  clip-path: polygon(25% 0, 75% 0, 92% 100%, 8% 100%);
}

.shot-phone .shot-art {
  background: linear-gradient(135deg, #e6edf5, #b8c6d8);
}

.shot-phone .shot-art::before {
  content: "";
  position: absolute;
  left: 36%;
  top: 9%;
  width: 28%;
  height: 82%;
  border-radius: 10px;
  background: linear-gradient(to bottom, #2f3a48, #101720);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.shot-phone .shot-art::after {
  content: "";
  position: absolute;
  left: 41%;
  top: 16%;
  width: 18%;
  height: 28%;
  border-radius: 3px;
  background: linear-gradient(to bottom, #a9e2ff, #4b8fce);
  box-shadow: 0 34px 0 -3px #7c8fa5;
}

.shot-disco .shot-art {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.55), transparent 34%),
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px) 0 0 / 13px 13px,
    linear-gradient(135deg, #5b2a86, #1b1035 70%);
}

.shot-disco .shot-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 1.4px, transparent 1.8px) 0 0 / 8px 8px,
    radial-gradient(circle at 35% 30%, #ffffff, #9db8d8 70%);
  box-shadow: 0 0 24px rgba(160, 210, 255, 0.8);
}

.shot-disco .shot-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background: linear-gradient(to top, rgba(10, 4, 25, 0.9), transparent);
}

.shot-yard .shot-art {
  background:
    linear-gradient(to bottom, #9fd6ff 0%, #cfeaff 46%, #7fbf5a 46%, #4e8f2d 100%);
}

.shot-yard .shot-art::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 48%;
  top: 22%;
  bottom: 40%;
  background:
    repeating-linear-gradient(to bottom, transparent 0 8px, rgba(40, 80, 120, 0.25) 8px 9px),
    linear-gradient(to right, #c8d6e4, #93a8bd);
  border: 1px solid #6c8096;
}

.shot-yard .shot-art::after {
  content: "";
  position: absolute;
  right: 10%;
  top: 34%;
  width: 34%;
  height: 30%;
  background: linear-gradient(to right, #d9e4ef, #a6b8ca);
  border: 1px solid #6c8096;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d3dfef;
  border-radius: 4px;
  background: #fbfdff;
  color: #1c3557;
  text-align: left;
  text-decoration: none;
}

.contact-card:hover {
  background: #eef6ff;
  border-color: #8fb6ea;
}

.contact-card svg {
  width: 38px;
  height: 38px;
  flex: none;
}

.contact-card strong {
  display: block;
  font-size: 12.5px;
}

.contact-card small {
  display: block;
  margin-top: 2px;
  color: #6b7d93;
  font-size: 11.5px;
}

.notepad-toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--xp-face);
  border-bottom: 1px solid #d5d0bf;
}

.notepad-toolbar .muted {
  margin-left: auto;
  font-size: 11px;
}

.note-area {
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 10px 12px;
  border: none;
  outline: none;
  resize: none;
  background: #fff;
  color: #111;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
}

.recycle-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid #dbe4f0;
}

.recycle-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 12px;
}

.recycle-list li + li {
  border-top: 1px solid #e8eef8;
}

.recycle-list svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.recycle-list small {
  margin-left: auto;
  color: #7a8798;
}

.recycle-list .recycle-empty {
  justify-content: center;
  padding: 26px 10px;
  color: #7a8798;
}

.recycle-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tabs {
  flex: none;
  display: flex;
  gap: 2px;
  padding: 8px 10px 0;
  background: var(--xp-face);
  border-bottom: 1px solid #b6b09e;
}

.tab {
  padding: 4px 12px;
  border: 1px solid #b6b09e;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to bottom, #f4f1e6, #ded8c6);
  font-size: 11.5px;
  color: #4a4a3a;
}

.tab.is-active {
  position: relative;
  top: 1px;
  padding-bottom: 5px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 600;
}

.display-layout {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
  background: #fff;
}

.display-preview {
  flex: 0 1 240px;
}

.monitor {
  width: 224px;
  padding: 12px 12px 20px;
  border: 2px solid #93a5ba;
  border-radius: 12px;
  background: linear-gradient(to bottom, #eef2f7, #c4cfdd);
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(0, 0, 0, 0.18);
}

.monitor-screen {
  height: 140px;
  border: 3px solid #3b4a5e;
  border-radius: 4px;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
}

.monitor-screen[data-wallpaper="desktop"] {
  background-image: url("../img/desktop.jpg");
}

.monitor-screen[data-wallpaper="meadow"] {
  background-image: url("../assets/wallpaper-meadow.svg");
}

.monitor-screen[data-wallpaper="sunset"] {
  background-image: url("../assets/wallpaper-sunset.svg");
}

.monitor-screen[data-wallpaper="night"] {
  background-image: url("../assets/wallpaper-night.svg");
}

.monitor-stand {
  width: 60px;
  height: 18px;
  margin: 0 auto -8px;
  background: #aab7c7;
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
}

.wallpaper-list {
  display: grid;
  gap: 6px;
  min-width: 190px;
}

.wall-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
}

.wall-option:hover {
  background: #eef5ff;
}

.wall-option input {
  accent-color: #2a6bdd;
}

.wall-thumb {
  width: 58px;
  height: 40px;
  flex: none;
  border: 1px solid #8fa3bb;
  background-position: center;
  background-size: cover;
}

.wall-thumb-desktop {
  background-image: url("../img/desktop.jpg");
}

.wall-thumb-meadow {
  background-image: url("../assets/wallpaper-meadow.svg");
}

.wall-thumb-sunset {
  background-image: url("../assets/wallpaper-sunset.svg");
}

.wall-thumb-night {
  background-image: url("../assets/wallpaper-night.svg");
}

.dialog-buttons {
  flex: none;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px 14px 14px;
  background: var(--xp-face);
}

.help-layout {
  display: flex;
  padding: 0;
  background: #fff;
}

.help-side {
  width: 182px;
  flex: none;
  background: #eef4fd;
  border-right: 1px solid #cfdcee;
  overflow: auto;
}

.help-topic {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-bottom: 1px solid #dce6f4;
  background: transparent;
  color: var(--xp-link);
  text-align: left;
  font-size: 11.5px;
}

.help-topic:hover {
  background: #dbe9fb;
}

.help-topic.is-active {
  background: #d0e3fb;
  font-weight: 700;
}

.help-content {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  overflow: auto;
}

.help-content ul {
  margin: 0;
  padding-left: 18px;
}

.help-content li {
  margin: 6px 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.start-menu {
  position: absolute;
  left: 0;
  bottom: var(--taskbar-h);
  z-index: 9000;
  width: 460px;
  max-width: calc(100vw - 6px);
  max-height: calc(100vh - var(--taskbar-h));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--xp-blue-deep);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 3px -3px 18px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  font-size: 12.5px;
}

.start-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 12px;
  background: linear-gradient(to bottom, #1c6ddc 0%, #0a49c4 100%);
  border-bottom: 2px solid #ff9c00;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.start-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
}

.start-avatar svg {
  width: 32px;
  height: 32px;
}

.start-body {
  display: flex;
  min-height: 0;
  overflow: auto;
}

.start-col {
  padding: 7px 6px;
}

.start-col-main {
  width: 252px;
  flex: none;
  background: #fff;
}

.start-col-side {
  flex: 1;
  width: 200px;
  background: linear-gradient(to bottom, #dbe9fb, #c8dcf7);
  border-left: 1px solid #a9c6ea;
}

.start-label {
  margin: 3px 7px 4px;
  color: #7a8798;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.start-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 8px;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: #1a1a1a;
  text-align: left;
  font-size: 12.5px;
}

.start-item svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.start-item span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.start-item:hover {
  background: #2f71cd;
  color: #fff;
}

.start-item.is-side {
  color: #163a75;
  font-weight: 600;
  font-size: 12px;
}

.start-item.is-side:hover {
  color: #fff;
}

.start-sep {
  height: 1px;
  margin: 6px 8px;
  background: #d9d2c2;
}

.start-col-side .start-sep {
  background: #aec7e8;
}

.start-foot {
  flex: none;
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  padding: 6px;
  background: linear-gradient(to bottom, #1c6ddc 0%, #0a49c4 100%);
  border-top: 2px solid #ff9c00;
}

.start-foot-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: #fff;
  font-size: 12px;
}

.start-foot-btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.start-foot-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8000;
  display: flex;
  align-items: stretch;
  height: var(--taskbar-h);
  background: linear-gradient(to bottom, #3f8cf3 0%, #245edb 8%, #1b52c9 50%, #1b4fc4 90%, #0a3aa8 100%);
  border-top: 1px solid #6fa8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  user-select: none;
}

.start-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  margin-right: 6px;
  padding: 0 18px 0 10px;
  border: none;
  border-right: 1px solid #0b3a9e;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(to bottom, #6fd257 0%, #46ad36 12%, #2f8c22 55%, #1f6b16 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 2px 0 4px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  text-shadow: 1px 1px 2px #1d4a0d;
}

.start-btn:hover {
  filter: brightness(1.08);
}

.start-btn.is-open {
  background: linear-gradient(to bottom, #2f7c22 0%, #46ad36 30%, #6fd257 100%);
  box-shadow: inset 1px 2px 5px rgba(0, 0, 0, 0.45);
}

.start-orb {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.start-orb svg {
  width: 19px;
  height: 19px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}

.start-text {
  transform: translateY(-1px);
}

.quick-launch {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  margin-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.quick-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
}

.quick-btn svg {
  width: 23px;
  height: 23px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.quick-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.task-list {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.task-list::-webkit-scrollbar {
  display: none;
}

.task-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 118px;
  max-width: 178px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid #0a3a9e;
  border-radius: 3px;
  background: linear-gradient(to bottom, #4a95f0, #1b52c9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 11.5px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  overflow: hidden;
}

.task-btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.task-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-btn:hover {
  filter: brightness(1.1);
}

.task-btn.is-active {
  background: linear-gradient(to bottom, #1a4faf, #0a3a9e);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: 600;
}

.task-btn.is-minimized {
  opacity: 0.82;
}

.tray {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px 0 8px;
  border-left: 1px solid #0a4fb0;
  background: linear-gradient(to bottom, #26a6f5 0%, #0f8ee9 20%, #0b7fd8 60%, #0a6fc4 100%);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.35);
  color: #fff;
}

.tray-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: transparent;
}

.tray-btn svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.35));
}

.tray-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.tray-clock {
  height: 100%;
  min-width: 62px;
  padding: 0 6px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 12px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

.tray-clock:hover {
  background: rgba(255, 255, 255, 0.15);
}

.context-menu {
  position: absolute;
  z-index: 9500;
  min-width: 182px;
  padding: 2px;
  background: #fff;
  border: 1px solid #aca899;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  font-size: 12px;
}

.context-menu button {
  display: block;
  width: 100%;
  padding: 4px 22px;
  border: none;
  background: none;
  color: #1a1a1a;
  text-align: left;
}

.context-menu button:hover {
  background: #316ac5;
  color: #fff;
}

.context-menu button:disabled {
  color: #9a9a8a;
}

.context-menu button:disabled:hover {
  background: none;
  color: #9a9a8a;
}

.ctx-sep {
  height: 1px;
  margin: 3px 6px;
  background: #d5d0bf;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  color: #fff;
  font-family: var(--font);
}

.boot-stage {
  position: absolute;
  inset: 0;
}

.boot-bios {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
}

.boot-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.boot-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  width: 46px;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 14px rgba(80, 160, 255, 0.45));
}

.boot-mark span {
  width: 21px;
  height: 21px;
  border-radius: 4px;
}

.boot-mark span:nth-child(1) { background: #f35325; }
.boot-mark span:nth-child(2) { background: #81bc06; }
.boot-mark span:nth-child(3) { background: #05a6f0; }
.boot-mark span:nth-child(4) { background: #ffba08; }

.boot-title {
  font-family: "Trebuchet MS", Tahoma, sans-serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1;
  text-shadow: 0 0 26px rgba(90, 170, 255, 0.35);
}

.boot-sub {
  margin-top: 10px;
  color: #a9c7ea;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.boot-bar {
  width: 300px;
  height: 14px;
  margin-top: 30px;
  padding: 2px;
  border: 1px solid #5f7492;
  border-radius: 7px;
  background: #0a0f18;
  overflow: hidden;
}

.boot-bar i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: repeating-linear-gradient(90deg, #3f8cf3 0 13px, transparent 13px 19px);
  animation: boot-slide 0.75s linear infinite;
}

@keyframes boot-slide {
  from { background-position: 0 0; }
  to { background-position: 19px 0; }
}

.boot-status {
  margin: 14px 0 0;
  color: #91aaca;
  font-size: 12px;
}

.boot-skip {
  position: absolute;
  bottom: 28px;
  margin: 0;
  color: #5e7391;
  font-size: 11px;
}

.boot-welcome {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 75% 15%, rgba(255, 255, 255, 0.22), transparent 40%),
    linear-gradient(to bottom, #0a3a8c 0%, #1f5fc4 20%, #4b8cf0 52%, #1c56b8 100%);
  color: #fff;
}

.welcome-top {
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
  padding: 0 28px 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), transparent);
}

.welcome-brand {
  font-size: 26px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.welcome-brand-sub {
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.85;
}

.welcome-main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 20px 40px;
}

.welcome-left {
  width: 320px;
  flex: none;
  padding-right: 40px;
  text-align: center;
}

.welcome-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  width: 56px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 20px rgba(160, 210, 255, 0.55));
}

.welcome-mark span {
  width: 25px;
  height: 25px;
  border-radius: 5px;
}

.welcome-mark span:nth-child(1) { background: #f35325; }
.welcome-mark span:nth-child(2) { background: #81bc06; }
.welcome-mark span:nth-child(3) { background: #05a6f0; }
.welcome-mark span:nth-child(4) { background: #ffba08; }

.welcome-logo {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.45);
}

.welcome-left p {
  margin: 8px 0 0;
  color: #d5e9ff;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.welcome-divider {
  width: 2px;
  height: 220px;
  flex: none;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.7), transparent);
}

.welcome-right {
  width: 360px;
  flex: none;
  padding-left: 50px;
}

.welcome-right h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 400;
}

.welcome-right p {
  margin: 0 0 18px;
  font-size: 12.5px;
  opacity: 0.9;
}

.user-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.user-tile svg {
  width: 46px;
  height: 46px;
  flex: none;
}

.user-tile strong {
  display: block;
  font-size: 15px;
}

.user-tile small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  opacity: 0.82;
}

.user-tile:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.welcome-bottom {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 54px;
  padding: 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.08);
  font-size: 12px;
}

.welcome-hint {
  opacity: 0.8;
}

.screensaver {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

.screensaver-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-family: "Trebuchet MS", Tahoma, sans-serif;
  font-size: 42px;
  text-shadow: 0 0 22px rgba(90, 170, 255, 0.7);
  animation: drift 20s linear infinite alternate;
}

.screensaver-logo .boot-mark {
  margin: 0;
}

.screensaver p {
  position: absolute;
  bottom: 30px;
  margin: 0;
  color: #4d5f78;
  font-size: 12px;
}

@keyframes drift {
  from { transform: translate(-14vw, -12vh); }
  to { transform: translate(14vw, 12vh); }
}

.power-screen {
  position: fixed;
  inset: 0;
  z-index: 10500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #000;
  color: #fff;
  text-align: center;
}

.power-inner h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 400;
}

.power-inner p {
  margin: 0;
  color: #9fb0c8;
  font-size: 13px;
}

.power-back {
  position: absolute;
  right: 30px;
  bottom: 30px;
}

.power-screen.is-standby {
  cursor: default;
}

.power-screen.is-standby .power-inner h2 {
  font-size: 14px;
  color: #7d8ea8;
}

.dialogs {
  position: absolute;
  inset: 0 0 var(--taskbar-h) 0;
  z-index: 9600;
  pointer-events: none;
}

.dialog-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: 380px;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 70px);
  border: 3px solid var(--xp-blue-deep);
  border-radius: 8px 8px 4px 4px;
  background: var(--xp-face);
  box-shadow: 3px 5px 24px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  overflow: hidden;
  animation: win-open 0.15s ease-out;
}

.dialog-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px 8px;
  overflow: auto;
}

.dialog-icon {
  width: 40px;
  height: 40px;
  flex: none;
}

.dialog-text {
  min-width: 0;
  flex: 1;
}

.dialog-text h3 {
  margin: 0 0 5px;
  font-size: 13px;
}

.dialog-text p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #2c2c2c;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px 16px 16px;
}

.dialog-content {
  padding: 14px 16px 4px;
}

.dialog-content .synth-volume {
  margin-top: 10px;
}

.shot-view {
  display: block;
  height: 220px;
  border: 1px solid #b9c6d6;
  border-radius: 2px;
  background-position: center;
  background-size: cover;
}

.shot-view .shot-art {
  height: 100%;
  border: none;
  border-radius: 2px;
}

.dialog-content .demo-note {
  margin-top: 0 !important;
}

.shell ::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

.shell ::-webkit-scrollbar-track {
  background: #f0eee4;
  border: 1px solid #d5d0bf;
}

.shell ::-webkit-scrollbar-thumb {
  border: 1px solid #8a8a7a;
  border-radius: 2px;
  background: linear-gradient(to right, #fdfdfd, #d8d2c0);
}

.shell ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to right, #fffdf3, #e8d49a);
}

body.is-dragging {
  user-select: none;
}

.desktop[data-wallpaper="school"] .wallpaper {
  background-image: url("../img/vypusk/hero.jpg");
}

.desktop[data-wallpaper="hall"] .wallpaper {
  background-image: url("../img/vypusk/hall.jpg");
}

.monitor-screen[data-wallpaper="school"] {
  background-image: url("../img/vypusk/hero.jpg");
}

.monitor-screen[data-wallpaper="hall"] {
  background-image: url("../img/vypusk/hall.jpg");
}

.wall-thumb-school {
  background-image: url("../img/vypusk/hero.jpg");
}

.wall-thumb-hall {
  background-image: url("../img/vypusk/hall.jpg");
}

.meeting-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 168px;
  padding: 18px 20px;
  border: 1px solid #6c8096;
  border-radius: 4px;
  overflow: hidden;
  background: url("../img/vypusk/hero.jpg") center / cover no-repeat;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.72);
}

.meeting-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 25, 60, 0.85), rgba(6, 25, 60, 0.08));
}

.meeting-hero > * {
  position: relative;
  z-index: 1;
}

.meeting-kicker {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d5e9ff;
}

.meeting-hero h2 {
  margin: 4px 0 1px;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.meeting-hero p {
  margin: 0;
  font-size: 12.5px;
  color: #e8f4ff;
}

.meeting-timer-label {
  margin: 14px 0 6px !important;
  font-size: 10.5px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6a80 !important;
}

.meeting-countdown {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.count-block {
  min-width: 68px;
  padding: 8px 12px;
  border: 1px solid #0b3a9e;
  border-radius: 4px;
  background: linear-gradient(to bottom, #4a95f0, #1b52c9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #fff;
  text-align: center;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

.count-block span {
  display: block;
  font-family: "Trebuchet MS", Tahoma, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.count-block small {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
}

.meeting-countdown.is-past {
  display: block;
}

.meeting-past {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid #c8d8ef;
  border-radius: 4px;
  background: #f3f7fd;
}

.meeting-past strong {
  color: #1a4fa0;
}

.meeting-past span {
  color: #5a6a80;
  font-size: 12px;
}

.meeting-past .xp-btn {
  margin-left: auto;
}

.meeting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.meeting-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #c8d8ef;
  border-radius: 4px;
  background: #fff;
}

.meeting-card-media {
  height: 90px;
  overflow: hidden;
  background: #dce9fb;
}

.meeting-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meeting-card-body {
  padding: 8px 10px 10px;
}

.meeting-card-body h3 {
  margin: 0 0 5px;
  font-size: 12.5px;
  color: #1a4fa0;
}

.meeting-card-body p {
  margin: 0 0 4px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #3c4a5e;
}

.meeting-map {
  display: inline-block;
  margin-top: 2px;
  color: #1a5fc4;
  font-size: 11.5px;
}

.meeting-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.class-pad {
  padding: 12px 14px;
}

.class-hint {
  margin-bottom: 8px !important;
}

.class-scroll {
  overflow: auto;
  padding: 6px;
  border: 1px solid #b6c9e6;
  border-radius: 3px;
  background: #0b1a33;
}

.class-canvas {
  position: relative;
  min-width: 720px;
  line-height: 0;
}

.class-photo {
  display: block;
  width: 100%;
  height: auto;
}

.class-caption {
  margin-top: 8px !important;
  color: #5a6a80 !important;
  font-size: 11.5px !important;
  text-align: center;
}

.face-hotspot {
  position: absolute;
  width: 7.2%;
  aspect-ratio: 1 / 1.35;
  padding: 0;
  border: 0;
  border-radius: 50% / 60%;
  background: transparent;
  overflow: hidden;
  z-index: 2;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.face-hotspot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--face-img);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.face-hotspot:hover,
.face-hotspot:focus-visible {
  transform: scale(1.1);
  z-index: 6;
  box-shadow: 0 0 0 2px #ffd45e, 0 0 16px rgba(0, 0, 0, 0.6);
}

.face-hotspot:hover::after,
.face-hotspot:focus-visible::after {
  opacity: 1;
}

.face-hotspot.no-face::after {
  background-image: linear-gradient(135deg, #1c56c4, #6ab0ff);
}

.face-hotspot.no-face:hover::before,
.face-hotspot.no-face:focus-visible::before {
  content: "?";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.person-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.person-card img {
  width: 130px;
  max-width: 40%;
  flex: none;
  border: 2px solid #fff;
  border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.person-card h3 {
  margin: 0 0 4px;
  color: #1a4fa0;
}

.person-card p {
  margin: 0;
  color: #5a6a80;
  font-size: 12px;
}

.timeline-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 130px;
  padding: 16px 18px;
  border: 1px solid #6c8096;
  border-radius: 4px;
  overflow: hidden;
  background: url("../img/vypusk/hall.jpg") center / cover no-repeat;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.72);
}

.timeline-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 20, 45, 0.86), rgba(8, 20, 45, 0.08));
}

.timeline-banner > * {
  position: relative;
  z-index: 1;
}

.timeline-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d5e9ff;
}

.timeline-banner h2 {
  margin: 3px 0 2px;
  font-size: 24px;
  line-height: 1;
}

.timeline-banner p {
  margin: 0;
  font-size: 12px;
  color: #dbe8f8;
}

.quote-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #c8d8ef;
  border-radius: 4px;
  background: #f3f7fd;
}

.quote-row {
  min-width: 0;
}

.quote-label {
  display: inline-block;
  margin-bottom: 2px;
  padding: 1px 6px;
  border-radius: 8px;
  background: #dbe9fb;
  color: #1a4fa0;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quote-row p {
  margin: 0;
  color: #2c3e55;
  font-size: 12px;
  line-height: 1.4;
}

.quote-card .xp-btn {
  align-self: center;
}

.timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 12px 0 10px;
}

.timeline-filter {
  padding: 4px 9px;
  border: 1px solid #7a7a6a;
  border-radius: 3px;
  background: linear-gradient(to bottom, #fdfdfd, #ddd7c4);
  font-size: 11.5px;
}

.timeline-filter:hover {
  border-color: #e5a43b;
  background: linear-gradient(to bottom, #fffdf3, #ffd77a);
}

.timeline-filter.is-active {
  border-color: #2c5fb3;
  background: linear-gradient(to bottom, #4a95f0, #1b52c9);
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

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

.news-card {
  padding: 9px 11px;
  border: 1px solid #d3dfef;
  border-left-width: 4px;
  border-radius: 3px;
  background: #fbfdff;
}

.news-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.news-date {
  color: #5a6a80;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-tag {
  padding: 1px 6px;
  border: 1px solid #d3e3fb;
  border-radius: 8px;
  background: #eaf2ff;
  color: #1a4fa0;
  font-size: 9.5px;
  white-space: nowrap;
}

.news-card h3 {
  margin: 0 0 4px;
  color: #163a75;
  font-size: 12.5px;
  line-height: 1.3;
}

.news-card p {
  margin: 0;
  color: #4c5d72;
  font-size: 11.5px;
  line-height: 1.45;
}

.news-card[data-category="tech"] { border-left-color: #2a7ed8; }
.news-card[data-category="music"] { border-left-color: #3f9b3f; }
.news-card[data-category="movie"] { border-left-color: #9a5ac4; }
.news-card[data-category="event"] { border-left-color: #e0a22a; }
.news-card[data-category="sport"] { border-left-color: #d94a4a; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid #c8d8ef;
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
  text-align: left;
}

.gallery-card:hover {
  border-color: #8fb6ea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e8eef7;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.gallery-card:hover .gallery-thumb img {
  transform: scale(1.04);
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px 1px;
  color: #1a3557;
  font-size: 11px;
}

.gallery-meta strong {
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gallery-meta span {
  flex: none;
  color: #7a8798;
}

.gallery-date {
  display: block;
  padding: 0 7px 6px;
  color: #8a97a8;
  font-size: 10px;
}

.dialog-window.photo-dialog {
  width: min(860px, calc(100vw - 20px));
}

.photo-dialog .dialog-icon {
  display: none;
}

.photo-dialog .dialog-body {
  padding: 12px 14px 4px;
}

.photo-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
  width: 100%;
}

.photo-viewer-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 460px;
  overflow: hidden;
  border: 1px solid #9fb6d6;
  border-radius: 2px;
  background: #0b1a33;
}

.photo-viewer-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 460px;
}

.photo-viewer-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.photo-viewer-meta {
  margin: 0 0 8px !important;
  color: #3c4a5e;
  font-size: 11.5px !important;
}

.photo-viewer-meta a {
  color: #1a5fc4;
}

.photo-comments {
  flex: 1;
  min-height: 80px;
  max-height: 220px;
  overflow: auto;
  padding: 6px 8px;
  border: 1px solid #d3dfef;
  background: #fbfdff;
}

.photo-comment {
  padding: 5px 0;
  border-bottom: 1px solid #e8eef8;
}

.photo-comment:last-child {
  border-bottom: none;
}

.photo-comment-head {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
}

.photo-comment-head strong {
  color: #1a4fa0;
}

.photo-comment-head span {
  color: #8a97a8;
}

.photo-comment p {
  margin: 2px 0 0;
  color: #2c3e55;
  font-size: 11.5px;
  line-height: 1.4;
}

.photo-comment-form {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.photo-comment-form input,
.photo-comment-form textarea {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #7f9db9;
  background: #fff;
  font-size: 11.5px;
}

.photo-comment-form textarea {
  min-height: 48px;
  resize: vertical;
}

.photo-comment-form .muted {
  margin: 0;
  font-size: 10px;
}

.photo-viewer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.wish-form {
  margin: 10px 0 14px;
  padding: 10px;
  border: 1px solid #c8d8ef;
  border-radius: 4px;
  background: #f3f7fd;
}

.wish-form-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px;
}

.wish-form label {
  display: block;
  color: #3c4a5e;
  font-size: 11px;
  font-weight: 600;
}

.wish-form input,
.wish-form textarea {
  width: 100%;
  margin-top: 3px;
  padding: 4px 6px;
  border: 1px solid #7f9db9;
  background: #fff;
  font-size: 12px;
}

.wish-form textarea {
  min-height: 64px;
  resize: vertical;
}

.wish-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.wish-form-actions .muted {
  font-size: 10.5px;
}

.wish-list {
  display: grid;
  gap: 8px;
}

.wish-item {
  padding: 8px 10px;
  border: 1px solid #d3dfef;
  border-radius: 3px;
  background: #fff;
}

.wish-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.wish-name {
  color: #1a4fa0;
  font-size: 12.5px;
  font-weight: 700;
}

.wish-date {
  color: #8a97a8;
  font-size: 10.5px;
}

.page-pad .wish-text {
  margin: 0 !important;
  color: #2c3e55;
  font-size: 12.5px !important;
  line-height: 1.45;
}

.music-aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.album-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #c8d8ef;
  border-radius: 4px;
  background: #f3f7fd;
}

.album-cover {
  flex: none;
  width: 84px;
  height: 84px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.album-meta strong {
  display: block;
  color: #1a4fa0;
  font-size: 13px;
}

.album-meta small {
  display: block;
  color: #6a7a90;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.track-list a {
  grid-template-columns: 22px minmax(0, 1fr) auto 40px 36px 50px;
  gap: 6px;
}

.track-head {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto 40px 36px 50px;
  gap: 6px;
  padding: 0 10px 4px;
  color: #7a8798;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.track-name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
}

.track-time,
.track-votes {
  color: #6a7a90;
  font-size: 11px;
  text-align: right;
}

.track-votes {
  color: #1a5fc4;
  font-weight: 600;
}

.music-note {
  margin-top: 8px !important;
  font-size: 10.5px !important;
}

@media (max-width: 900px) {
  .desktop-icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px 4px;
    left: 4px;
    right: 4px;
    top: 6px;
    bottom: calc(var(--taskbar-h) + 4px);
    align-content: start;
    overflow: auto;
  }

  .desk-icon {
    width: auto;
    min-width: 0;
    padding: 4px 2px;
  }

  .desk-icon svg {
    width: 38px;
    height: 38px;
  }

  .desk-icon span {
    font-size: 10.5px;
  }

  .xp-window {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-width: 0;
    border-radius: 0;
  }

  .xp-window .titlebar {
    height: 34px;
    padding-left: 8px;
  }

  .xp-window .titlebar-buttons .tb-min,
  .xp-window .titlebar-buttons .tb-max {
    display: none;
  }

  .tb-btn {
    width: 28px;
    height: 25px;
  }

  .tb-close::before,
  .tb-close::after {
    left: 13px;
    top: 5px;
    height: 14px;
  }

  .titlebar-text {
    font-size: 13px;
  }

  .start-menu {
    width: 100%;
    max-width: none;
    border-radius: 0;
  }

  .start-col-main {
    flex: 1;
    width: auto;
  }

  .start-col-side {
    width: 154px;
    flex: none;
  }

  .start-item {
    padding: 6px 8px;
  }

  .start-btn {
    padding: 0 12px 0 8px;
    gap: 5px;
  }

  .start-text {
    font-size: 13px;
  }

  .start-orb {
    width: 23px;
    height: 23px;
  }

  .quick-launch {
    display: none;
  }

  .task-btn {
    min-width: 38px;
    max-width: 38px;
    padding: 0;
    justify-content: center;
  }

  .task-btn span {
    display: none;
  }

  .tray {
    padding-left: 5px;
  }

  .tray-btn[data-action="network"],
  .tray-btn[data-action="security"] {
    display: none;
  }

  .tray-clock {
    min-width: 52px;
    font-size: 11px;
    padding: 0 4px;
  }

  .music-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .display-layout {
    flex-direction: column;
    align-items: center;
  }

  .display-preview {
    flex: none;
  }

  .wallpaper-list {
    width: 100%;
    min-width: 0;
  }

  .help-layout {
    flex-direction: column;
  }

  .help-side {
    width: 100%;
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid #cfdcee;
  }

  .help-topic {
    width: auto;
    flex: none;
    border-bottom: none;
    border-right: 1px solid #dce6f4;
    white-space: nowrap;
  }

  .task-pane {
    display: none;
  }

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

  .event-card {
    flex-wrap: wrap;
  }

  .event-info {
    flex: 1 1 60%;
  }

  .event-card .xp-btn {
    width: 100%;
  }

  .boot-title {
    font-size: 36px;
  }

  .boot-bar {
    width: min(300px, 70vw);
  }

  .welcome-top {
    height: 54px;
    padding: 0 16px 10px;
  }

  .welcome-brand {
    font-size: 20px;
  }

  .welcome-brand-sub {
    font-size: 10px;
  }

  .welcome-main {
    flex-direction: column;
    padding: 20px 16px;
  }

  .welcome-left {
    width: 100%;
    padding: 0;
  }

  .welcome-divider {
    width: 78%;
    height: 2px;
    margin: 18px 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
  }

  .welcome-right {
    width: 100%;
    max-width: 340px;
    padding: 0;
    text-align: center;
  }

  .welcome-right h2 {
    font-size: 21px;
  }

  .user-tile {
    text-align: left;
  }

  .welcome-bottom {
    height: 46px;
    padding: 0 16px;
    font-size: 11px;
  }

  .screensaver-logo {
    font-size: 30px;
  }

  .screensaver-logo .boot-mark {
    transform: scale(0.8);
  }

  .power-back {
    right: 16px;
    bottom: 20px;
  }

  .power-inner h2 {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .desktop-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .start-col-side {
    display: none;
  }

  .start-col-main {
    width: 100%;
  }

  .dialog-window {
    left: 8px !important;
    width: calc(100vw - 16px) !important;
  }

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

  .shot-art {
    height: 140px;
  }

  .sysinfo div {
    flex-direction: column;
    gap: 0;
  }

  .sysinfo strong {
    text-align: left;
  }

  .track-list a {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }

  .track-play {
    display: none;
  }

  .track-artist {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 900px) {
  .meeting-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .meeting-hero {
    min-height: 140px;
  }

  .meeting-hero h2 {
    font-size: 25px;
  }

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

  .quote-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-card .xp-btn {
    justify-self: start;
  }

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

  .photo-viewer {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-viewer-stage {
    min-height: 180px;
    max-height: 40vh;
  }

  .photo-viewer-stage img {
    max-height: 40vh;
  }

  .photo-comments {
    max-height: 160px;
  }

  .wish-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .class-canvas {
    min-width: 680px;
  }

  .meeting-past .xp-btn {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .meeting-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .count-block {
    min-width: 0;
    padding: 6px 4px;
  }

  .count-block span {
    font-size: 19px;
  }

  .count-block small {
    font-size: 9px;
  }

  .meeting-actions .xp-btn {
    flex: 1;
  }

  .meeting-past .xp-btn {
    width: 100%;
  }

  .timeline-banner {
    min-height: 110px;
  }

  .timeline-banner h2 {
    font-size: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .gallery-meta {
    flex-direction: column;
    gap: 1px;
  }

  .gallery-meta span {
    font-size: 9.5px;
  }

  .gallery-date {
    font-size: 9px;
  }

  .photo-dialog .dialog-body {
    padding: 8px;
  }

  .photo-viewer {
    gap: 8px;
  }

  .photo-viewer-stage {
    min-height: 150px;
    max-height: 36vh;
  }

  .photo-viewer-stage img {
    max-height: 36vh;
  }

  .photo-comments {
    max-height: 130px;
  }

  .wish-form {
    padding: 8px;
  }

  .class-canvas {
    min-width: 620px;
  }

  .class-pad {
    padding: 8px;
  }

  .track-list a {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }

  .track-head {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }

  .track-head span:nth-child(3),
  .track-head span:nth-child(5),
  .track-head span:nth-child(6) {
    display: none;
  }

  .track-artist,
  .track-votes,
  .track-play {
    display: none;
  }

  .track-time {
    display: block;
  }

  .album-cover {
    width: 64px;
    height: 64px;
  }

  .person-card {
    align-items: flex-start;
  }

  .person-card img {
    width: 96px;
  }
}

.toolbar .upload-photo-btn {
  margin-left: auto;
  flex: none;
}

.upload-dialog {
  width: 560px;
}

.upload-dialog .dialog-body {
  align-items: flex-start;
}

.upload-dialog .dialog-icon {
  margin-top: 2px;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.upload-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: #35557a;
}

.upload-author input {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  background: #fff;
  font: inherit;
  color: #1a1a1a;
}

.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px;
  border: 2px dashed #9db8dc;
  border-radius: 4px;
  background: #f6faff;
  color: #35557a;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.upload-drop:hover,
.upload-drop.is-over {
  border-color: #2a6bdd;
  background: #eaf4ff;
}

.upload-drop svg {
  width: 42px;
  height: 42px;
}

.upload-drop strong {
  font-size: 12.5px;
}

.upload-drop span {
  font-size: 11px;
  color: #6a7a90;
}

.upload-files {
  min-height: 16px;
  margin: 0;
  color: #35557a;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.upload-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: #35557a;
}

.upload-bar {
  flex: 1;
  height: 14px;
  padding: 2px;
  border: 1px solid #7f9db9;
  background: #fff;
}

.upload-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(to bottom, #8fd0ff, #2b7de0);
  transition: width 0.15s;
}

.upload-status {
  min-height: 16px;
  margin: 0;
  font-size: 11px;
  color: #35557a;
}

.upload-status.is-error {
  color: #a11b1b;
}

.upload-status.is-success {
  color: #176b2a;
}

.upload-note {
  margin: 0 !important;
  font-size: 10.5px;
}

@media (max-width: 900px) {
  .upload-dialog .dialog-text {
    width: auto;
  }

  .upload-dialog .dialog-body {
    gap: 8px;
    padding: 12px 10px 4px;
  }

  .upload-dialog .dialog-icon {
    display: none;
  }

  .upload-drop {
    padding: 14px 8px;
  }
}
@media (max-width: 900px) {
  .gallery-archive-label,
  .gallery-hint-sep,
  .gallery-toolbar-hint {
    display: none;
  }

  .toolbar .upload-photo-btn {
    margin-left: auto;
  }
}

/* Minesweeper and Solitaire */

.game-menubar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1px;
  flex: none;
  height: 24px;
  padding: 2px 4px;
  background: #c0c0c0;
  border-bottom: 1px solid #8c8c8c;
  font-size: 11px;
  user-select: none;
}

.game-menu-wrap {
  position: relative;
}

.game-menu-title {
  padding: 3px 8px;
  border: 0;
  background: transparent;
  color: #111;
  font: inherit;
  cursor: pointer;
}

.game-menu-title:hover,
.game-menu-title:focus-visible {
  background: #316ac5;
  color: #fff;
  outline: none;
}

.game-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  z-index: 120;
  min-width: 178px;
  padding: 2px;
  border: 1px solid #7a7a7a;
  background: #fff;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.game-menu button {
  display: block;
  width: 100%;
  padding: 4px 12px;
  border: 0;
  background: transparent;
  color: #111;
  font: 11px Tahoma, sans-serif;
  text-align: left;
  cursor: pointer;
}

.game-menu button:hover,
.game-menu button:focus-visible {
  background: #316ac5;
  color: #fff;
  outline: none;
}

.game-menu-sep {
  height: 1px;
  margin: 3px 5px;
  background: #c8c8c8;
}

.ms-body {
  background: #c0c0c0;
}

.ms-app {
  --ms-cell: 20px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 10px 10px;
  overflow: auto;
  background: #c0c0c0;
}

.ms-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 660px;
  padding: 5px 7px;
  border: 3px solid;
  border-color: #fff #7b7b7b #7b7b7b #fff;
  background: #c0c0c0;
}

.ms-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 29px;
  padding: 0 5px;
  border: 1px solid #7b7b7b;
  background: #050505;
  color: #ff2727;
  font-family: "Lucida Console", Consolas, monospace;
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.45);
}

.ms-face {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 3px solid;
  border-color: #fff #7b7b7b #7b7b7b #fff;
  background: #c0c0c0;
  line-height: 0;
  cursor: pointer;
}

.ms-face:active {
  border-color: #7b7b7b #fff #fff #7b7b7b;
}

.ms-face svg {
  width: 28px;
  height: 28px;
  margin: 2px;
}

.ms-face .ms-face-dead,
.ms-face .ms-face-win {
  display: none;
}

.ms-face.is-lost .ms-face-smile,
.ms-face.is-won .ms-face-smile {
  display: none;
}

.ms-face.is-lost .ms-face-dead,
.ms-face.is-won .ms-face-win {
  display: block;
}

.ms-board-wrap {
  max-width: 100%;
  margin-top: 8px;
  padding: 3px;
  overflow: auto;
  border: 3px solid;
  border-color: #7b7b7b #fff #fff #7b7b7b;
  background: #c0c0c0;
}

.ms-board {
  display: grid;
  gap: 0;
  width: max-content;
  background: #c0c0c0;
}

.ms-cell {
  width: var(--ms-cell);
  height: var(--ms-cell);
  padding: 0;
  border: 2px solid;
  border-color: #fff #7b7b7b #7b7b7b #fff;
  background: #c0c0c0;
  color: #111;
  font: bold 12px Tahoma, sans-serif;
  line-height: calc(var(--ms-cell) - 4px);
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.ms-cell:active {
  border-color: #7b7b7b #fff #fff #7b7b7b;
}

.ms-cell.is-open {
  border: 1px solid #a5a5a5;
  background: #c0c0c0;
  cursor: default;
  line-height: calc(var(--ms-cell) - 2px);
}

.ms-cell.is-flagged::before,
.ms-cell.is-mine.is-open::before {
  display: block;
  width: 100%;
  height: 100%;
  line-height: calc(var(--ms-cell) - 2px);
}

.ms-cell.is-flagged::before {
  content: "\2691";
  color: #d40000;
  font-size: calc(var(--ms-cell) * 0.76);
}

.ms-cell.is-mine.is-open::before {
  content: "\2739";
  color: #111;
  font-size: calc(var(--ms-cell) * 0.8);
}

.ms-cell.is-wrong {
  box-shadow: inset 0 0 0 1px #c80000;
}

.ms-cell.is-exploded {
  background: #ff2020;
}

.ms-cell.n1 { color: #0000ff; }
.ms-cell.n2 { color: #008000; }
.ms-cell.n3 { color: #ff0000; }
.ms-cell.n4 { color: #000080; }
.ms-cell.n5 { color: #800000; }
.ms-cell.n6 { color: #008080; }
.ms-cell.n7 { color: #000000; }
.ms-cell.n8 { color: #808080; }

.ms-status {
  align-self: flex-start;
  margin: 8px 0 0;
  color: #1b1b1b;
  font-size: 11px;
}

.sol-body {
  background: #075c2e;
}

.sol-app {
  --sol-w: 72px;
  --sol-h: 100px;
  --sol-gap: 8px;
  --sol-offset: 20px;
  flex: 1;
  min-height: 0;
  padding: 10px 12px 8px;
  overflow: auto;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    #086b35;
  color: #fff;
}

.sol-top,
.sol-tableau {
  width: calc(7 * var(--sol-w) + 6 * var(--sol-gap));
  margin-right: auto;
  margin-left: auto;
}

.sol-top {
  display: flex;
  gap: var(--sol-gap);
  align-items: flex-start;
}

.sol-spacer {
  flex: 1;
}

.sol-slot {
  position: relative;
  box-sizing: border-box;
  width: var(--sol-w);
  height: var(--sol-h);
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.1);
}

.sol-stock,
.sol-waste,
.sol-foundation {
  cursor: pointer;
}

.sol-foundation {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.22);
}

.sol-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.28);
  font-size: 26px;
  pointer-events: none;
}

.sol-empty.is-red {
  color: rgba(255, 180, 180, 0.35);
}

.sol-tableau {
  display: grid;
  grid-template-columns: repeat(7, var(--sol-w));
  gap: var(--sol-gap);
  align-items: start;
  margin-top: 14px;
  min-height: var(--sol-h);
}

.sol-pile {
  position: relative;
  min-height: var(--sol-h);
  border-radius: 4px;
}

.sol-pile:empty::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  border-radius: 4px;
}

.sol-card {
  position: absolute;
  left: 0;
  box-sizing: border-box;
  width: var(--sol-w);
  height: var(--sol-h);
  padding: 0;
  border: 1px solid #5b6c80;
  border-radius: 4px;
  background: #fff;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35);
  color: #111;
  font-family: Tahoma, Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}

.sol-card.is-red {
  color: #c00000;
}

.sol-card.is-back {
  border-color: #16395f;
  background: repeating-linear-gradient(45deg, #1e5b9d 0 5px, #2c74bd 5px 10px);
}

.sol-card.is-back::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.13) 0 6px, transparent 6px 12px);
}

.sol-card.is-selected {
  outline: 3px solid #ffd84a;
  outline-offset: -3px;
  box-shadow: 0 0 0 1px #8a6d00, 3px 3px 7px rgba(0, 0, 0, 0.4);
}

.sol-rank {
  position: absolute;
  top: 4px;
  left: 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.sol-suit-small {
  position: absolute;
  top: 18px;
  left: 5px;
  font-size: 11px;
  line-height: 1;
}

.sol-suit-big {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  opacity: 0.9;
}

.sol-corner-bottom {
  position: absolute;
  right: 5px;
  bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(180deg);
}

.sol-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: calc(7 * var(--sol-w) + 6 * var(--sol-gap));
  margin: 8px auto 0;
  padding: 7px 3px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #eaffef;
  font-size: 11px;
}

@media (max-width: 900px) {
  .ms-app {
    --ms-cell: 18px;
    padding: 6px;
  }

  .ms-panel {
    max-width: 100%;
  }

  .ms-counter {
    min-width: 50px;
    height: 26px;
    font-size: 18px;
  }

  .ms-face {
    width: 34px;
    height: 34px;
  }

  .sol-app {
    --sol-w: 44px;
    --sol-h: 62px;
    --sol-gap: 3px;
    --sol-offset: 14px;
    padding: 8px 6px 6px;
  }

  .sol-rank {
    top: 2px;
    left: 3px;
    font-size: 10px;
  }

  .sol-suit-small {
    top: 12px;
    left: 3px;
    font-size: 8px;
  }

  .sol-suit-big {
    font-size: 20px;
  }

  .sol-corner-bottom {
    right: 3px;
    bottom: 2px;
    font-size: 9px;
  }

  .sol-empty {
    font-size: 18px;
  }

  .sol-status {
    gap: 5px;
    padding-top: 5px;
    font-size: 9px;
  }
}
