:root {
  --xp-blue: #1f65d6;
  --xp-blue-dark: #0b2c79;
  --xp-blue-light: #4f98ff;
  --xp-green: #5db237;
  --xp-green-dark: #3e7d24;
  --xp-sky-top: #7fcbff;
  --xp-sky-mid: #48a4f8;
  --xp-sky-low: #2b82e0;
  --xp-hill-back: #73c94f;
  --xp-hill-mid: #57b13c;
  --xp-hill-front: #3f9a2f;
  --window-bg: #ece9d8;
  --window-border: #0c2458;
  --desktop-start: #2f77d8;
  --desktop-end: #0f4da8;
  --text: #0f1728;
  --shadow: 0 16px 28px rgba(3, 21, 53, 0.34), 0 3px 10px rgba(8, 37, 90, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  font-family: "Trebuchet MS", sans-serif;
  color: var(--text);
  font-size: clamp(14px, 0.85vw + 10px, 18px);
}

body {
  background: linear-gradient(180deg, var(--xp-sky-top), var(--xp-sky-mid) 45%, var(--xp-sky-low));
}

body,
.desktop,
.desktop-icons,
.desktop-icon,
.icon-art,
.icon-label {
  user-select: none;
  -webkit-user-select: none;
}

button,
input,
a {
  font: inherit;
}

.is-hidden {
  display: none !important;
}

.preboot-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 1.15rem 1.35rem;
  background: #000;
  color: #f1f1f1;
  font-family: "VT323", monospace;
  font-size: clamp(1.1rem, 0.5vw + 0.95rem, 1.45rem);
  line-height: 1.3;
}

.preboot-screen.is-blank .preboot-shell,
.preboot-screen.is-blank .preboot-menu {
  opacity: 0;
}

.preboot-shell p,
.preboot-menu__title,
.preboot-option,
.preboot-hint {
  margin: 0;
}

.preboot-shell > *,
.preboot-menu > * {
  opacity: 0;
  transform: translateY(1px);
  transition: opacity 70ms linear, transform 70ms linear;
}

.preboot-shell > .is-visible,
.preboot-menu > .is-visible {
  opacity: 1;
  transform: translateY(0);
}

.preboot-menu {
  width: min(30rem, 92vw);
  margin-top: 1rem;
  border: 1px solid #9ea8b6;
}

.preboot-menu__title {
  padding: 0.35rem 0.7rem;
  background: #4f5b72;
  color: #f4f6fb;
}

.preboot-option {
  padding: 0.26rem 0.7rem;
  border-top: 1px solid rgba(158, 168, 182, 0.35);
}

.preboot-option.is-selected {
  border: none;
  width: 100%;
  background: #f0f0f0;
  color: #000;
  text-align: left;
  cursor: pointer;
}

.preboot-option.is-selected:disabled {
  color: #000;
  cursor: default;
  opacity: 1;
}

.preboot-option.is-disabled {
  color: #6f82a8;
}

.preboot-hint {
  padding: 0.32rem 0.7rem;
  border-top: 1px solid #9ea8b6;
  color: #c7d1e4;
}

.boot-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #010409;
  color: white;
  z-index: 50;
}

.boot-logo {
  font-family: "VT323", monospace;
  font-size: clamp(3rem, 12vw, 7rem);
  text-transform: lowercase;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.boot-word {
  color: #f4f9ff;
}

.boot-xp {
  color: #e98b17;
}

.boot-subtitle {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #85a7d7;
}

.boot-bar {
  width: min(24rem, 70vw);
  height: 1.4rem;
  border-radius: 999px;
  border: 1px solid #32527f;
  padding: 0.18rem;
  background: #061223;
  overflow: hidden;
}

.boot-bar span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7cecff, #2e83ff, #7cecff);
  animation: loading 1.4s linear infinite;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: grid;
  grid-template-rows: 4rem 1fr 4rem;
  background: linear-gradient(180deg, #5d7fd4, #6889dc);
}

.welcome-screen__top-band,
.welcome-screen__bottom-band {
  position: relative;
  background: linear-gradient(180deg, #1b409f, #13358f);
}

.welcome-screen__top-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.72);
}

.welcome-screen__bottom-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: #f09a18;
}

.welcome-screen__bottom-band::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 7.25rem;
  height: 100%;
  background: linear-gradient(90deg, rgba(87, 43, 170, 0.92), rgba(49, 42, 168, 0));
}

.welcome-screen__panel {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.welcome-screen__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 6% 6%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%);
  pointer-events: none;
}

.welcome-screen__text {
  position: relative;
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 2.4vw + 1.8rem, 4.2rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.desktop {
  position: relative;
  min-height: 100vh;
  padding: 2rem;
  background:
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.3), transparent 18%),
    radial-gradient(circle at 68% 18%, rgba(255, 255, 255, 0.18), transparent 14%),
    linear-gradient(180deg, #8fd0ff 0%, #66b5ff 18%, #3f95ef 48%, #327fde 78%, #3278d5 100%);
  overflow: hidden;
}

.wallpaper-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  filter: blur(1.2px);
  box-shadow:
    3.6rem 0.55rem 0 0 rgba(255, 255, 255, 0.94),
    1.5rem -1.15rem 0 0 rgba(255, 255, 255, 0.9),
    6.4rem -0.45rem 0 0 rgba(255, 255, 255, 0.9);
  opacity: 0.9;
}

.cloud::after {
  content: "";
  position: absolute;
  inset: -1.4rem -2.4rem;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(22px);
}

.cloud-one {
  top: 12%;
  left: 26%;
  width: 6rem;
  height: 1.8rem;
  animation: driftCloud 44s linear infinite;
}

.cloud-two {
  top: 28%;
  left: 60%;
  width: 8.6rem;
  height: 2.6rem;
  transform: scale(1.25);
  animation: driftCloud 58s linear infinite reverse;
}

.cloud-three {
  top: 20%;
  left: 78%;
  width: 7.4rem;
  height: 2.2rem;
  opacity: 0.88;
  animation: driftCloud 52s linear infinite;
}

.cloud-four {
  top: 43%;
  left: 42%;
  width: 4.6rem;
  height: 1.45rem;
  opacity: 0.7;
  animation: driftCloud 62s linear infinite reverse;
}

.cloud-five {
  top: 33%;
  left: 10%;
  width: 5.8rem;
  height: 1.8rem;
  opacity: 0.75;
  animation: driftCloud 56s linear infinite;
}

.cloud-streak {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
  filter: blur(7px);
  opacity: 0.65;
  transform: rotate(10deg);
}

.streak-one {
  top: 8%;
  left: 50%;
  width: 18rem;
  height: 1.8rem;
}

.streak-two {
  top: 36%;
  left: 49%;
  width: 22rem;
  height: 1.2rem;
  transform: rotate(8deg);
  opacity: 0.52;
}

.terrain-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.terrain-mountains {
  fill: url(#mountainFade);
  opacity: 0.6;
}

.terrain-hill {
  fill: url(#hillBase);
}

.terrain-highlight {
  fill: url(#hillGlow);
  opacity: 0.82;
}

.terrain-foreground {
  fill: url(#hillFront);
  opacity: 0.95;
}

.wallpaper-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 44%, rgba(255, 255, 255, 0.16), transparent 18%),
    radial-gradient(circle at 70% 26%, rgba(255, 255, 255, 0.12), transparent 14%),
    radial-gradient(circle at 45% 74%, rgba(216, 255, 142, 0.08), transparent 22%);
  pointer-events: none;
}

.desktop-icons {
  position: absolute;
  inset: 0 0 3.4rem 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 90ms linear;
}

.desktop-icons.is-refreshing {
  opacity: 0;
}

.desktop-icon {
  position: absolute;
  width: 5.5rem;
  min-height: 5.25rem;
  border: none;
  background: transparent;
  color: white;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.68),
    0 0 6px rgba(0, 45, 114, 0.18);
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  padding: 0.5rem;
  border-radius: 0.65rem;
  cursor: pointer;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: none;
}

.desktop-icon .icon-art,
.desktop-icon .icon-label {
  pointer-events: none;
}

.desktop-icon.is-cut {
  opacity: 0.5;
}

.desktop-icon.is-drop-target .icon-art {
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.9),
    0 0 0 3px rgba(37, 94, 203, 0.45),
    0 2px 6px rgba(5, 33, 83, 0.22);
}

.recycle-bin {
  z-index: 2;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(143, 198, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 12px rgba(16, 68, 157, 0.14);
}

.desktop-icon.is-selected {
  background:
    linear-gradient(180deg, rgba(133, 192, 255, 0.36), rgba(54, 118, 219, 0.28));
  outline: 1px dotted rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 16px rgba(18, 71, 162, 0.14);
}

.desktop-icon.is-selected .icon-label {
  display: inline-block;
  width: auto;
  padding: 0.08rem 0.18rem;
  background: rgba(37, 97, 211, 0.72);
  border: 1px dotted rgba(255, 255, 255, 0.95);
}

.icon-art {
  min-width: clamp(2.75rem, 4.4vw, 3.35rem);
  min-height: clamp(2.75rem, 4.4vw, 3.35rem);
  display: grid;
  place-items: center;
  padding: 0.1rem;
  filter: drop-shadow(0 2px 2px rgba(0, 28, 92, 0.4));
}

.icon-art img {
  display: block;
  width: clamp(2.65rem, 4.2vw, 3.25rem);
  height: clamp(2.65rem, 4.2vw, 3.25rem);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

.icon-label {
  display: block;
  width: 100%;
  font-size: clamp(0.75rem, 0.55vw + 0.55rem, 0.9rem);
  line-height: 1.05;
  text-align: center;
  word-break: break-word;
}

.selection-box {
  position: absolute;
  z-index: 3;
  border: 1px dashed rgba(255, 255, 255, 0.95);
  background: rgba(76, 134, 237, 0.25);
  pointer-events: none;
}

.desktop-context-menu {
  position: absolute;
  z-index: 20;
  min-width: 11.2rem;
  padding: 0.15rem 0;
  background: #f5f5f5;
  border: 1px solid #9aa8bb;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.24);
}

.desktop-context-menu button {
  width: 100%;
  min-height: 1.55rem;
  padding: 0.22rem 1rem 0.22rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 0.92rem;
}

.desktop-context-menu button:hover {
  background: linear-gradient(180deg, #2d74df, #1d5fca);
  color: white;
}

.desktop-context-menu button.is-hidden {
  display: none !important;
}

.desktop-context-menu button:disabled {
  color: #9aa0a8;
  cursor: default;
}

.desktop-context-menu button:disabled:hover {
  background: transparent;
  color: #9aa0a8;
}

.window {
  position: absolute;
  z-index: 2;
  width: min(44rem, calc(100vw - 2rem));
  min-width: min(20rem, calc(100vw - 2rem));
  height: clamp(18rem, 56vh, 34rem);
  min-height: 18rem;
  max-height: calc(100dvh - 5.25rem);
  border: 1px solid #083b89;
  border-radius: 0.65rem 0.65rem 0 0;
  background:
    linear-gradient(180deg, #fdfcf5 0%, #f3efdf 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: none;
  outline: 1px solid rgba(179, 218, 255, 0.42);
}

.window.active {
  display: block;
}

.window.is-resizing,
.window.is-dragging {
  user-select: none;
}

.window.maximized {
  max-height: none;
}

.window-bar {
  position: relative;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.52), transparent 38%),
    linear-gradient(180deg, #5cb8ff 0%, #2f7fe7 45%, #1b5dc7 52%, #1749a8 100%);
  color: white;
  padding: 0.45rem 0.45rem 0.45rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(7, 45, 119, 0.55);
}

.window-title {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.window-title img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0, 30, 95, 0.28));
}

.window-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 40%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.12));
  pointer-events: none;
}

.window-bar.msn {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.56), transparent 40%),
    linear-gradient(180deg, #81defe 0%, #37a8de 42%, #1b7bbc 60%, #12689e 100%);
}

.window-controls {
  display: flex;
  gap: 0.25rem;
}

.window-control {
  width: 1.8rem;
  height: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(181, 209, 255, 0.92) 55%, rgba(121, 160, 232, 0.96));
  color: #08316d;
  border-radius: 0.28rem;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(12, 48, 111, 0.2);
}

.window-control.close {
  background:
    linear-gradient(180deg, #ffb29d, #f06d4e 52%, #cf4831);
  color: white;
}

.window-content {
  height: calc(100% - 2.45rem);
  padding: 1rem;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #f7f4e7, #eee8d5);
}

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

.resize-handle.edge-top,
.resize-handle.edge-bottom {
  left: 0.75rem;
  right: 0.75rem;
  height: 0.5rem;
}

.resize-handle.edge-left,
.resize-handle.edge-right {
  top: 0.75rem;
  bottom: 0.75rem;
  width: 0.5rem;
}

.resize-handle.edge-top {
  top: 0;
  cursor: ns-resize;
}

.resize-handle.edge-right {
  right: 0;
  cursor: ew-resize;
}

.resize-handle.edge-bottom {
  bottom: 0;
  cursor: ns-resize;
}

.resize-handle.edge-left {
  left: 0;
  cursor: ew-resize;
}

.resize-handle.corner {
  width: 1rem;
  height: 1rem;
}

.resize-handle.corner-top-left {
  top: 0;
  left: 0;
  cursor: nwse-resize;
}

.resize-handle.corner-top-right {
  top: 0;
  right: 0;
  cursor: nesw-resize;
}

.resize-handle.corner-bottom-right {
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
}

.resize-handle.corner-bottom-left {
  left: 0;
  bottom: 0;
  cursor: nesw-resize;
}

.resize-handle.corner-bottom-right::after {
  content: "";
  position: absolute;
  right: 0.1rem;
  bottom: 0.1rem;
  width: 0.9rem;
  height: 0.9rem;
  border-right: 2px solid rgba(12, 36, 88, 0.7);
  border-bottom: 2px solid rgba(12, 36, 88, 0.7);
  border-bottom-right-radius: 0.1rem;
}

.hero-card {
  padding: 1.2rem;
  border: 1px solid #8ca6d9;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(229, 239, 255, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 4px 10px rgba(45, 91, 170, 0.08);
}

.system-tag {
  margin: 0 0 0.5rem;
  color: #2652a0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.hero-card h1,
.window-content h2 {
  margin-top: 0;
}

.hero-card h1 {
  font-size: clamp(1.7rem, 1.6vw + 1rem, 2.7rem);
}

.hero-actions,
.contact-shortcuts,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card--split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 0.9fr);
  gap: 1rem;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.quote-line {
  margin: 0;
  color: #2e4f8c;
  font-style: italic;
}

.persona-chips,
.cv-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.persona-chips span,
.cv-chip-list span {
  padding: 0.28rem 0.55rem;
  border: 1px solid #9cb5dd;
  border-radius: 999px;
  background: linear-gradient(180deg, #fdfefe, #e4efff);
  color: #1d4b91;
  font-size: 0.84rem;
}

.profile-sheet,
.cv-header-card,
.cv-panel,
.drive-card,
.gallery-card {
  border: 1px solid #9eb6da;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 245, 255, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.profile-sheet {
  padding: 0.95rem;
}

.profile-sheet__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 0.8rem;
  border: 1px solid #ffffff;
  border-radius: 0.45rem;
  box-shadow:
    0 0 0 1px rgba(76, 115, 176, 0.35),
    0 0.55rem 1rem rgba(18, 52, 111, 0.16);
}

.profile-sheet h2 {
  margin-bottom: 0.8rem;
}

.info-list,
.project-preview__meta {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.info-list div,
.project-preview__meta div {
  display: grid;
  gap: 0.15rem;
}

.info-list dt,
.project-preview__meta dt {
  color: #3760a9;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-list dd,
.project-preview__meta dd {
  margin: 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.status-grid article,
.project-preview,
.game-panel,
.chat-shell,
.contact-sidebar {
  border: 1px solid #9eb6da;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 245, 255, 0.78));
  padding: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.explorer-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.explorer-card,
.drive-card {
  width: 100%;
  padding: 0.85rem 0.9rem;
  text-align: left;
  cursor: pointer;
}

.explorer-card {
  border: 1px solid #9eb6da;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.explorer-card strong,
.drive-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #173d7a;
}

.explorer-card span {
  display: block;
  color: #30476c;
  line-height: 1.25;
}

.drive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.drive-card {
  border-radius: 0.5rem;
  border: 1px solid #98b3de;
}

.drive-card p {
  margin: 0;
  color: #32496f;
}

.drive-card__badge {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 2px 2px rgba(17, 58, 123, 0.22));
}

.drive-card__badge img {
  width: 2.45rem;
  height: 2.45rem;
  object-fit: contain;
}

.folder-toolbar,
.project-row {
  display: grid;
  grid-template-columns: 2fr 1fr 0.7fr;
  gap: 1rem;
  align-items: center;
}

.folder-toolbar {
  background:
    linear-gradient(180deg, #f5f9ff, #dce9ff);
  border: 1px solid #abc1ea;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.project-list {
  margin: 0.8rem 0 1rem;
  display: grid;
  gap: 0.35rem;
}

.project-row {
  border: 1px solid #bed0ec;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  padding: 0.7rem 0.75rem;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.project-row:hover,
.project-row:focus-visible {
  background: #edf4ff;
}

.project-row.is-active {
  background: linear-gradient(180deg, #dceaff, #edf5ff);
  border-color: #88a9de;
}

.project-preview {
  display: grid;
  gap: 0.95rem;
}

.project-preview__header p,
.project-preview__body ul {
  margin: 0;
}

.project-preview__body ul {
  padding-left: 1.1rem;
}

.project-preview__status {
  margin: 0 0 0.55rem;
  color: #305497;
  font-weight: 700;
}

.project-preview__actions {
  margin-top: auto;
}

.msn-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) 1fr;
  gap: 1rem;
}

.profile-bubble {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.contact-facts {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #c7d8f0;
}

.plain-list,
.timeline-list {
  margin: 0;
  padding-left: 1.15rem;
}

.plain-list li + li,
.timeline-list li + li {
  margin-top: 0.45rem;
}

.timeline-list li {
  display: grid;
  gap: 0.18rem;
}

.timeline-list span {
  color: #435773;
}

.chat-log {
  min-height: 13rem;
  max-height: min(18rem, 44vh);
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 0.72rem;
  margin-bottom: 0.8rem;
  padding: 0.85rem;
  border: 1px solid #b8cdee;
  border-radius: 0.72rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 246, 255, 0.9)),
    radial-gradient(circle at 12% 0, rgba(141, 192, 255, 0.22), transparent 34%);
  box-shadow:
    inset 0 1px 2px rgba(20, 61, 123, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.82);
}

.chat-message {
  --chat-avatar-size: 2.35rem;
  display: grid;
  align-items: end;
  gap: 0.45rem;
  max-width: min(88%, 43rem);
  line-height: 1.28;
}

.chat-message.system {
  justify-self: center;
  display: block;
  width: min(100%, 36rem);
  max-width: 92%;
  color: #5b6e8f;
  font-size: 0.88rem;
  font-style: italic;
  text-align: center;
}

.chat-message.self {
  justify-self: end;
  grid-template-columns: minmax(0, 1fr) var(--chat-avatar-size);
}

.chat-message.other {
  justify-self: start;
  grid-template-columns: var(--chat-avatar-size) minmax(0, 1fr);
}

.chat-status {
  display: inline-block;
  padding: 0.18rem 0.65rem;
  border: 1px solid rgba(127, 157, 205, 0.32);
  border-radius: 999px;
  background: rgba(244, 249, 255, 0.76);
}

.chat-bubble {
  position: relative;
  display: block;
  padding: 0.62rem 0.78rem;
  border-radius: 0.86rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 1px 2px rgba(18, 61, 128, 0.1);
}

.chat-message.self .chat-bubble {
  grid-column: 1;
  border: 1px solid #91c87d;
  border-bottom-right-radius: 0.25rem;
  background:
    linear-gradient(180deg, #ebffe4, #cdf0be);
}

.chat-message.self .chat-bubble::after {
  content: "";
  position: absolute;
  right: -0.42rem;
  bottom: 0.48rem;
  border-width: 0.42rem 0 0.42rem 0.46rem;
  border-style: solid;
  border-color: transparent transparent transparent #cdf0be;
}

.chat-message.other .chat-bubble {
  grid-column: 2;
  border: 1px solid #f0cf69;
  border-bottom-left-radius: 0.25rem;
  background:
    linear-gradient(180deg, #fff8cf, #ffe99b);
}

.chat-message.other .chat-bubble::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  bottom: 0.48rem;
  border-width: 0.42rem 0.46rem 0.42rem 0;
  border-style: solid;
  border-color: transparent #ffe99b transparent transparent;
}

.chat-avatar {
  width: var(--chat-avatar-size);
  height: var(--chat-avatar-size);
  border: 1px solid rgba(54, 92, 151, 0.38);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #f9fcff, #d6e8ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 1px 2px rgba(15, 45, 96, 0.16);
}

.chat-avatar--jordi {
  overflow: hidden;
}

.chat-avatar--jordi img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-avatar--guest {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, #f8fbff 0 16%, transparent 17%),
    linear-gradient(180deg, #eef6ff, #c9ddf8);
}

.chat-avatar--guest::before,
.chat-avatar--guest::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #8da8cf, #5d789f);
}

.chat-avatar--guest::before {
  top: 0.48rem;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
}

.chat-avatar--guest::after {
  bottom: 0.42rem;
  width: 1.35rem;
  height: 0.86rem;
  border-radius: 50% 50% 0.35rem 0.35rem;
}

.chat-form {
  display: flex;
  gap: 0.6rem;
}

.msn-formoid-bridge {
  padding: 0.75rem;
  border: 1px solid #9eb8e2;
  border-radius: 0.7rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(225, 238, 255, 0.86)),
    radial-gradient(circle at 0 0, rgba(105, 161, 242, 0.22), transparent 36%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 3px rgba(18, 61, 128, 0.12);
}

.chat-form--stacked {
  flex-direction: column;
}

.chat-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.chat-form__field {
  display: grid;
  gap: 0.24rem;
  margin: 0;
  color: #204477;
  font-weight: 700;
  font-size: 0.86rem;
}

.chat-form__field span {
  padding-left: 0.1rem;
}

.contact-board {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.contact-board span {
  padding: 0.24rem 0.55rem;
  border: 1px solid #a2bde7;
  border-radius: 999px;
  background: linear-gradient(180deg, #fdfefe, #e4efff);
  color: #1d4b91;
  font-size: 0.82rem;
}

.chat-form input,
.chat-form textarea,
.search-panel input {
  flex: 1;
  border: 1px solid #7fa0d9;
  background: linear-gradient(180deg, #ffffff, #f6f8fc);
  padding: 0.7rem;
  font: inherit;
  box-shadow:
    inset 0 1px 2px rgba(9, 42, 104, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.85);
}

.chat-form input:focus,
.chat-form textarea:focus {
  outline: 2px solid rgba(73, 134, 236, 0.32);
  border-color: #346fd2;
}

.chat-form textarea {
  min-height: 5.2rem;
  resize: vertical;
}

.msn-form-alert {
  padding: 0.52rem 0.68rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.25;
}

.msn-form-alert[hidden] {
  display: none;
}

.msn-form-alert.alert-success {
  border: 1px solid #8fca7c;
  background: linear-gradient(180deg, #e7f9df, #d3efc6);
  color: #235a1f;
}

.msn-form-alert.alert-danger {
  border: 1px solid #d58d8d;
  background: linear-gradient(180deg, #fff0ed, #ffd2cb);
  color: #8d241d;
}

.chat-form .btn-loading {
  cursor: wait;
  filter: saturate(0.86);
  opacity: 0.82;
}

.chat-form .btn-loading::after {
  content: "...";
  min-width: 1.1rem;
  margin-left: 0.2rem;
}

.cv-header-card {
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.cv-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.cv-panel {
  padding: 0.9rem;
}

.cv-panel h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.xp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid #204f96;
  border-radius: 0.42rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #e9f1ff 48%, #c4d8ff 52%, #b4cbfa 100%);
  color: #103b7c;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(14, 56, 129, 0.18);
}

.xp-button.secondary {
  background:
    linear-gradient(180deg, #ffffff 0%, #eff8ff 48%, #d9edff 52%, #cfe5ff 100%);
}

.duck-field {
  position: relative;
  min-height: clamp(9rem, 24vh, 11rem);
  border: 1px dashed #80a7df;
  background:
    linear-gradient(180deg, #d8efff 0 66%, #74c76d 66% 100%);
  overflow: hidden;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.interest-card {
  padding: 0.9rem;
  border: 1px solid #9eb6da;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.interest-card h3,
.gallery-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.9fr);
  gap: 1rem;
}

.media-stage,
.playlist-panel {
  padding: 1rem;
  border: 1px solid #9eb6da;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(233, 243, 255, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.playlist-panel h3 {
  margin-top: 0;
}

.playlist-panel {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.playlist-item {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid #b6caeb;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  text-align: left;
  cursor: pointer;
}

.playlist-item.is-active {
  border-color: #7da5df;
  background: linear-gradient(180deg, #dfeeff, #eff6ff);
}

.playlist-item strong,
.playlist-item span {
  display: block;
}

.playlist-item span {
  margin-top: 0.25rem;
  color: #415673;
}

.equalizer {
  display: flex;
  align-items: end;
  gap: 0.35rem;
  height: 4rem;
  margin: 1rem 0 1.2rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #87a8d9;
  border-radius: 0.45rem;
  background: linear-gradient(180deg, #0f2756, #1f4b90);
}

.equalizer span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #91f4ff, #54b4ff 55%, #2a74ec);
}

.equalizer span:nth-child(1) { height: 42%; }
.equalizer span:nth-child(2) { height: 75%; }
.equalizer span:nth-child(3) { height: 58%; }
.equalizer span:nth-child(4) { height: 88%; }
.equalizer span:nth-child(5) { height: 49%; }
.equalizer span:nth-child(6) { height: 68%; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.gallery-card {
  padding: 0.8rem;
}

.gallery-card__thumb {
  display: block;
  width: 100%;
  height: 7rem;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #e8f1ff, #bfd5ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0.45rem 0.9rem rgba(16, 48, 102, 0.13);
}

.gallery-card__thumb.is-art {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.55), transparent 24%),
    linear-gradient(135deg, #7f4fff, #f46d9b 55%, #ffc36f);
}

.gallery-card__thumb.is-brand {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 40%),
    linear-gradient(135deg, #0c1f4c, #215ec7 58%, #83c8ff);
}

.gallery-card__thumb.is-web {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.32), transparent 22%),
    linear-gradient(135deg, #fff9df, #c7e6ff 52%, #78a8ff);
}

.gallery-card__thumb.is-archive {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(135deg, #6e8b58, #b8d88b 52%, #efe4b5);
}

.notepad-sheet {
  padding: 0.8rem 1rem 0.9rem 2.35rem;
  margin-bottom: 1rem;
  border: 1px solid #c3d2e9;
  background:
    linear-gradient(90deg, rgba(226, 134, 134, 0.36) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(180deg, #fefefe 0 1.9rem, #dce6f6 1.9rem 1.95rem);
  background-position: 1.1rem 0, 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.notepad-line {
  margin: 0;
  min-height: 1.95rem;
  line-height: 1.5;
  padding: 0.25rem 0;
}

.notepad-line.is-quote {
  color: #26519d;
  font-style: italic;
}

.notepad-line.is-heading {
  color: #1d4b91;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.window-browser {
  min-width: min(28rem, calc(100vw - 2rem));
  min-height: 26rem;
}

.window-bar.browser {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.56), transparent 40%),
    linear-gradient(180deg, #8bd6ff 0%, #3b91e8 42%, #1d63ca 62%, #17459a 100%);
}

.browser-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #d8e8fb;
}

.ie-chrome {
  position: relative;
  border-bottom: 1px solid #8aa9d4;
  background:
    linear-gradient(180deg, #f9fbff, #dbe9fb 54%, #c7daf4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ie-menubar,
.ie-navrow,
.ie-addressbar,
.ie-favorites,
.ie-statusbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.55rem;
}

.ie-menubar {
  gap: 1rem;
  color: #173b79;
  font-size: 0.86rem;
  position: relative;
}

.ie-menubar button {
  border: 0;
  background: transparent;
  color: #173b79;
  padding: 0.08rem 0.2rem;
  cursor: pointer;
}

.ie-menubar button:hover:not(:disabled),
.ie-menubar button:focus-visible:not(:disabled) {
  outline: 1px solid #7fa0d9;
  background: linear-gradient(180deg, #ffffff, #dfeaff);
}

.ie-menubar button:disabled {
  color: #8899b2;
  cursor: not-allowed;
  text-decoration: none;
}

.ie-menu-dropdown {
  position: absolute;
  z-index: 6;
  top: 2.1rem;
  left: 0.55rem;
  min-width: 13rem;
  max-width: min(28rem, calc(100% - 1.1rem));
  padding: 0.35rem;
  border: 1px solid #7b99c7;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  box-shadow: 0 0.6rem 1.2rem rgba(16, 48, 102, 0.18);
}

.ie-menu-dropdown button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #173b79;
  padding: 0.35rem 0.55rem;
  text-align: left;
  cursor: pointer;
}

.ie-menu-dropdown button:hover,
.ie-menu-dropdown button:focus-visible {
  background: linear-gradient(180deg, #e9f3ff, #cfe1fb);
  outline: 1px solid #9bb7df;
}

.ie-menu-dropdown button:disabled {
  color: #8b9ab0;
  cursor: not-allowed;
}

.ie-menu-dropdown p {
  margin: 0;
  color: #173b79;
  line-height: 1.35;
}

.ie-navrow {
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid #aec4e5;
}

.ie-button,
.ie-favorites button,
.ie-history-list button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid #8aa9d4;
  border-radius: 0.25rem;
  background:
    linear-gradient(180deg, #ffffff, #e9f1fc 48%, #d3e2f7);
  color: #163d7b;
  padding: 0.32rem 0.55rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ie-button img,
.xp-button img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}

.ie-button:disabled {
  color: #7d8da5;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.ie-addressbar label,
.ie-favorites label,
.ie-history span {
  color: #213f75;
  font-weight: 700;
}

.ie-addressbar input,
.ie-favorites select {
  flex: 1;
  min-width: 8rem;
  border: 1px solid #7fa0d9;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  padding: 0.5rem 0.65rem;
  color: #0d3671;
  box-shadow: inset 0 1px 2px rgba(9, 42, 104, 0.12);
}

.ie-favorites {
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.ie-history {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.55rem;
  border-top: 1px solid #aec4e5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(215, 229, 250, 0.48));
}

.ie-history-list {
  display: flex;
  flex: 1;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.05rem;
}

.ie-history-list button {
  flex: 0 0 auto;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.ie-history-list button.is-current {
  border-color: #2d6dcc;
  background: linear-gradient(180deg, #dff0ff, #bad8ff);
  color: #0f4aa1;
}

.ie-history-note {
  flex: 0 0 auto;
  align-self: center;
  color: #506b96;
  font-size: 0.82rem;
  white-space: nowrap;
}

.ie-frame-shell {
  position: relative;
  flex: 1;
  min-height: 14rem;
  margin: 0.55rem;
  border: 1px solid #6d8ec4;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(226, 237, 255, 0.42)),
    #ffffff;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 0.45rem 0.9rem rgba(18, 48, 101, 0.15);
}

.ie-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.ie-frame-overlay,
.ie-frame-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.55rem;
  padding: 1.5rem;
  text-align: center;
  color: #14346d;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.94), rgba(226, 238, 255, 0.86) 46%, rgba(198, 218, 247, 0.92)),
    repeating-linear-gradient(45deg, rgba(41, 98, 177, 0.08) 0 0.45rem, rgba(255, 255, 255, 0.08) 0.45rem 0.9rem);
}

.ie-frame-overlay strong,
.ie-frame-fallback strong {
  font-size: 1.35rem;
  color: #0d4fa8;
}

.ie-frame-fallback {
  max-width: 32rem;
  inset: auto 50% 1.2rem auto;
  transform: translateX(50%);
  border: 1px solid #8aa9d4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(236, 245, 255, 0.95));
  box-shadow: 0 0.6rem 1.4rem rgba(14, 46, 103, 0.22);
}

.ie-statusbar {
  justify-content: space-between;
  border-top: 1px solid #9cb6dd;
  background: linear-gradient(180deg, #eef5ff, #d7e5fa);
  color: #244574;
  font-size: 0.85rem;
}

.duck {
  position: absolute;
  border: none;
  background: transparent;
  font-family: "VT323", monospace;
  font-size: 1.8rem;
  cursor: pointer;
}

.search-results {
  display: grid;
  gap: 0.45rem;
  min-width: 100%;
}

.search-result {
  border: 1px solid #bed0ec;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  padding: 0.7rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.toast {
  position: absolute;
  right: 1.5rem;
  bottom: 5.25rem;
  z-index: 4;
  max-width: 18rem;
  padding: 0.8rem 1rem;
  border: 1px solid #5d80ba;
  background: #fff8c7;
  box-shadow: var(--shadow);
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  height: 3.4rem;
  display: flex;
  align-items: stretch;
  background:
    radial-gradient(circle at 50% -180%, rgba(255, 255, 255, 0.48), transparent 38%),
    linear-gradient(180deg, #3d82f2 0%, #215fd8 42%, #184eb7 52%, #0d3d9f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 -2px 6px rgba(5, 25, 79, 0.28);
}

.taskbar-windows {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.16rem;
  padding: 0 0.3rem;
  overflow: hidden;
}

.taskbar-window {
  flex: 1 1 8.5rem;
  width: 0;
  min-width: 2.75rem;
  max-width: 10.5rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(121, 168, 255, 0.34) 52%, rgba(62, 113, 215, 0.34));
  color: white;
  font-size: 0.96rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 1px 2px rgba(6, 33, 90, 0.18);
}

.taskbar-window__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0, 19, 76, 0.28));
}

.taskbar-window span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskbar-window.is-dragging {
  opacity: 0.65;
}

.taskbar-window.is-active {
  background:
    linear-gradient(180deg, #2c6cf0, #1d58cf 52%, #1947a8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 1px 3px rgba(8, 36, 95, 0.28);
}

.taskbar-window.is-minimized {
  opacity: 0.75;
}

.start-button {
  min-width: 7rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  color: white;
  font-weight: 700;
  font-style: italic;
  font-size: 1.2rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.42), transparent 32%),
    linear-gradient(180deg, #6fce58 0%, #43ad33 46%, #2f8c22 56%, #26731a 100%);
  border-radius: 0 1.5rem 1.5rem 0;
  text-transform: lowercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    2px 0 6px rgba(9, 57, 18, 0.18);
}

.start-button img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0, 63, 10, 0.32));
}

.start-menu {
  position: absolute;
  left: 0;
  bottom: 3.8rem;
  width: min(24.5rem, calc(100vw - 1rem));
  background:
    linear-gradient(180deg, #3f90ef 0%, #1c5ec8 14%, #1951b2 100%);
  border: 1px solid #1b4d9c;
  border-radius: 0 0.45rem 0 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.start-menu__banner {
  min-height: 4.55rem;
  padding: 0.85rem 1rem 0.7rem;
  display: grid;
  align-content: end;
  gap: 0.18rem;
  color: white;
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 255, 255, 0.4), transparent 22%),
    linear-gradient(180deg, #5aabff 0%, #2573d9 56%, #1f5fc2 100%);
}

.start-menu__banner strong {
  font-size: 1.32rem;
}

.start-menu__banner span {
  font-size: 0.82rem;
  opacity: 0.92;
}

.start-menu__body {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 23rem;
  background: linear-gradient(90deg, #ffffff 0 54%, #d8e8ff 54% 100%);
}

.start-menu__column {
  padding: 0.6rem 0.45rem;
  display: grid;
  align-content: start;
  gap: 0.18rem;
}

.start-menu__column.is-secondary {
  border-left: 1px solid rgba(91, 129, 190, 0.4);
}

.start-menu__item {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.start-menu__item.is-primary {
  font-weight: 700;
}

.start-menu__item:hover,
.start-menu__item:focus-visible,
.start-menu__footer-action:hover,
.start-menu__footer-action:focus-visible {
  background: linear-gradient(180deg, #2d74df, #1d5fca);
  color: white;
}

.start-menu__icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 1px 1px rgba(0, 28, 92, 0.24));
}

.start-menu__icon img {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
}

.start-menu__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(180deg, #2e79df, #1f5ec8);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.start-menu__footer-action {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0.32rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(135, 184, 255, 0.24));
  color: white;
  cursor: pointer;
}

.start-menu__footer-action img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0, 18, 65, 0.24));
}

.start-menu__footer-action.is-logoff {
  background: linear-gradient(180deg, #f8d45c, #e5ac2d 52%, #bf7c18);
}

.start-menu__footer-action.is-shutdown {
  background: linear-gradient(180deg, #ffae89, #f06d4e 52%, #cf4831);
}

.taskbar-tray {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  color: white;
}

.shutdown-dialog {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  background: rgba(16, 36, 82, 0.36);
  backdrop-filter: grayscale(1) brightness(0.82);
}

.shutdown-dialog__window {
  width: min(23.5rem, calc(100vw - 1.5rem));
  border: 1px solid #123f91;
  border-radius: 0.18rem;
  box-shadow:
    0 10px 26px rgba(8, 18, 44, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, #2b66d4, #1d4ea8);
  overflow: hidden;
}

.shutdown-dialog__header {
  padding: 0.42rem 0.72rem 0.48rem;
  color: white;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
  background: linear-gradient(180deg, #3d86ed, #255dbe 52%, #1d4fa9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.shutdown-dialog__content {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 1.2rem;
  padding: 1.35rem 1.15rem 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, #7fb7fa, #5d9ae8 58%, #4f8ddd);
}

.shutdown-choice {
  display: grid;
  gap: 0.42rem;
  justify-items: center;
  align-content: start;
  width: 5.65rem;
  min-height: 6rem;
  padding: 0.28rem 0.22rem 0.1rem;
  border: none;
  border-radius: 0.22rem;
  background: transparent;
  color: white;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  transition: background-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.shutdown-choice:hover,
.shutdown-choice:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.shutdown-choice:active {
  transform: translateY(1px);
}

.shutdown-choice__icon {
  width: 2.95rem;
  height: 2.95rem;
  display: grid;
  place-items: center;
  border-radius: 0.34rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 1.52rem;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 1px 2px rgba(0, 0, 0, 0.18);
}

.shutdown-choice__icon img {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 16, 74, 0.22));
}

.shutdown-choice > span:last-child {
  max-width: 5.3rem;
  text-align: center;
  line-height: 1.06;
  font-weight: 700;
}

.shutdown-choice.is-standby .shutdown-choice__icon {
  background: linear-gradient(180deg, #8e6f2f, #735117);
}

.shutdown-choice.is-logoff .shutdown-choice__icon {
  background: linear-gradient(180deg, #f0c85a, #d4931f);
}

.shutdown-choice.is-power .shutdown-choice__icon {
  background: linear-gradient(180deg, #ff9f72, #ef643e);
}

.shutdown-choice.is-restart .shutdown-choice__icon {
  background: linear-gradient(180deg, #56c95f, #279d32);
}

.shutdown-dialog__footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.82rem 0.9rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 20%),
    linear-gradient(180deg, #285fc2, #1a479d);
  border-top: 1px solid rgba(0, 26, 82, 0.34);
}

.shutdown-dialog__footer .xp-button {
  min-width: 7.2rem;
}

.shutdown-transition {
  position: fixed;
  inset: 0;
  z-index: 68;
  display: grid;
  place-items: stretch;
  background: #5f82d8;
}

.shutdown-transition__panel {
  display: grid;
  grid-template-rows: 4rem 1fr 4rem;
  height: 100%;
}

.shutdown-transition__top-band,
.shutdown-transition__bottom-band {
  position: relative;
  background: linear-gradient(180deg, #1c42a2, #143793);
}

.shutdown-transition__top-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
}

.shutdown-transition__bottom-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: #f09a18;
}

.shutdown-transition__body {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(180deg, #678be2, #5a7fd8);
}

.shutdown-transition__text {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 2.1vw + 1.6rem, 3.8rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: grid;
  place-items: center;
  background: rgba(13, 31, 72, 0.18);
}

.confirm-dialog__window {
  position: fixed;
  width: min(27rem, calc(100vw - 2rem));
  border: 1px solid #184ca8;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #f6f0de, #f0ead8);
}

.confirm-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.32rem 0.32rem 0.32rem 0.7rem;
  color: white;
  font-weight: 700;
  background: linear-gradient(180deg, #2f6fe5, #174eae);
  cursor: move;
}

.confirm-dialog__close {
  width: 1.65rem;
  height: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 0.25rem;
  background: linear-gradient(180deg, #ffb29d, #f06d4e 52%, #cf4831);
  color: white;
  cursor: pointer;
}

.confirm-dialog__content {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1.3rem 1rem 1rem;
}

.confirm-dialog__icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #dbf2ff, #92c7ff 52%, #6aa4e2);
  color: #1b5ab3;
  font-size: 1.35rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 1px 2px rgba(6, 33, 90, 0.14);
}

.confirm-dialog__icon img {
  width: 2.05rem;
  height: 2.05rem;
  object-fit: contain;
}

.confirm-dialog__message {
  margin: 0;
  line-height: 1.35;
}

.confirm-dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: 0 1rem 0.95rem;
}

.confirm-dialog__window.is-shaking {
  animation: confirmDialogShake 90ms linear 2;
}

@keyframes confirmDialogShake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(8px);
  }
  75% {
    transform: translateX(-6px);
  }
  100% {
    transform: translateX(0);
  }
}

.power-screen {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #000;
}

@keyframes loading {
  from {
    transform: translateX(-180%);
  }
  to {
    transform: translateX(280%);
  }
}

@keyframes driftCloud {
  0% {
    transform: translateX(-4vw);
  }
  50% {
    transform: translateX(3vw);
  }
  100% {
    transform: translateX(-4vw);
  }
}


@media (max-width: 480px) {
  html,
  body {
    overflow: auto;
  }

  .desktop {
    min-height: 100dvh;
    padding: 1rem 1rem 5rem;
  }

  .desktop-icons {
    position: relative;
    inset: auto;
    min-height: 0;
    width: 100%;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    pointer-events: auto;
  }

  .desktop-icon {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
  }

  .selection-box {
    display: none !important;
  }

  .window,
  .window.maximized {
    position: relative;
    inset: auto !important;
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    margin-bottom: 1rem;
  }

  .window-content {
    height: auto;
    overflow: visible;
  }

  .resize-handle {
    display: none;
  }

  .status-grid,
  .msn-layout,
  .hero-card--split,
  .explorer-strip,
  .drive-grid,
  .cv-sections,
  .interest-grid,
  .media-layout,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .toast {
    position: static;
    margin: 1rem 0 4rem;
  }
}

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

  .folder-toolbar,
  .project-row {
    grid-template-columns: 1.5fr 1fr 0.6fr;
    gap: 0.55rem;
    font-size: 0.88rem;
  }

  .chat-form,
  .hero-actions,
  .contact-shortcuts,
  .search-panel {
    flex-direction: column;
  }

  .chat-form__row {
    grid-template-columns: 1fr;
  }

  .ie-menubar {
    display: none;
  }

  .ie-navrow,
  .ie-addressbar,
  .ie-favorites,
  .ie-history {
    align-items: stretch;
    flex-direction: column;
  }

  .ie-history-list {
    flex-direction: column;
    overflow-x: visible;
  }

  .ie-frame-shell {
    min-height: 22rem;
  }

  .ie-frame-fallback {
    inset: 1rem;
    transform: none;
  }

  .taskbar-tray {
    gap: 0.6rem;
    padding: 0 0.75rem;
    font-size: 0.9rem;
  }

  .taskbar-window {
    flex-basis: 7rem;
    min-width: 2.4rem;
  }
}
