:root {
      /* Обои рабочего стола — можно заменить на любой URL */
      --wallpaper: url('https://r4.wallpaperflare.com/wallpaper/1008/301/293/windows-xp-microsoft-windows-hills-wallpaper-88564dc8d0509cf8203cd1fe28d2544a.jpg');

      /* Tokens */
      --color-primary: #0e68f1;
      --color-primary-strong: #245DDB;
      --color-accent: #0D9BEF;
      --color-surface: #f8f4e8;
      --color-window-border: #1b4bb3;
      --shadow-bar: 0 4px 4px 0 rgba(109, 178, 255, 0.70) inset, 0 -5px 7px 0 rgba(0, 0, 0, 0.22) inset, 0 10px 8px 0 #3888E9 inset;
      --shadow-window-strong: 0 12px 28px rgba(0,0,0,0.45);
      --radius-window: 12px;
      --radius-button: 8px;
      --radius-icon: 3px;
      --font-ui: Tahoma, sans-serif;
      --color-start-left: #ffffff;
      --color-start-right: #d3e5fa;
      --color-text-strong: #111111;
      --color-text-subtle: #4a4a4a;

      --xp-blue: #245edb;
      --xp-blue-dark: #1b3c8b;
      --xp-blue-light: #5a8cf0;
      --xp-green: #3fa000;
      --xp-gray: #ece9d8;
      --xp-window-bg: #f2f2f2;
      --xp-border: #3b4b66;
      --taskbar-height: 34px;
      --mobile-window-bottom-offset: 34px;
      --mobile-desktop-bottom-clearance: calc(var(--taskbar-height) + env(safe-area-inset-bottom, 0px) + 54px);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      user-select: none;
    }

    html, body {
      width: 100%;
      height: 100%;
      overflow: hidden;
      font-family: Tahoma, sans-serif;
      font-size: 12px;
    }

    body {
      background: var(--wallpaper) center/cover no-repeat fixed;
    }

    /* Глобальные ссылки — по умолчанию для тёмных фонов */
    a {
      color: #cce3ff;
      text-decoration: underline;
    }
    a:hover {
      color: #ffffff;
    }

    /* Ссылки внутри окон XP — тёмно-синие */
    .xp-content a {
      color: #000080;
      text-decoration: underline;
    }
    .xp-content a:hover {
      color: #551a8b;
    }

    /* ===== BOOT SCREEN ===== */
    .boot-screen {
      position: fixed;
      inset: 0;
      background: radial-gradient(circle at 50% 45%, #0a0f1a 0%, #030509 52%, #000 100%);
      color: #fff;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      font-family: Tahoma, sans-serif;
    }

    .boot-logo-icon {
      width: 140px;
      height: 80px;
      background: url("Assets/Win logo.png") center/contain no-repeat;
      margin-bottom: 12px;
    }

    .boot-logo {
      margin-bottom: 26px;
      text-align: center;
    }
    .boot-logo-img {
      display: block;
      width: 320px;
      max-width: 80vw;
      height: auto;
      margin: 0 auto;
    }
    .boot-logo-sub {
      margin-top: 8px;
      font-size: 14px;
      color: #ffffff;
      opacity: 0.85;
      text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    }

    .boot-bar-shell {
      width: min(214px, 53vw);
      height: 24px;
      border-radius: 4px;
      border: 1px solid rgba(255,255,255,0.12);
      background: linear-gradient(90deg, rgba(15,24,42,0.85), rgba(9,14,24,0.92));
      padding: 2px;
      overflow: hidden;
      box-shadow: 0 4px 14px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
    }
    .boot-bar-fill {
      width: 100%;
      height: 100%;
      border-radius: 4px;
      background: url("Assets/loader.png") no-repeat 0 50%;
      background-size: auto 100%;
      animation: boot-tiles 1.2s linear infinite;
      filter: drop-shadow(0 0 8px rgba(79,196,255,0.55));
    }

    .boot-footer {
      position: absolute;
      bottom: 40px;
      font-size: 11px;
      opacity: 0.7;
    }

    @keyframes boot-tiles {
      from { background-position: -110px 50%; }
      to   { background-position: calc(100% + 110px) 50%; }
    }

    /* ===== LOGIN SCREEN ===== */
    .login-screen {
      position: fixed;
      inset: 0;
      background: linear-gradient(180deg, #3f6fc5 0%, #4d7dd3 50%, #4a7ad0 100%);
      display: none;
      flex-direction: column;
      z-index: 9000;
      color: #ffffff;
      font-family: Tahoma, sans-serif;
    }
    .login-topbar {
      height: 80px;
      background: linear-gradient(180deg, #1a338d 0%, #0d1f78 100%);
      border-top: 1px solid rgba(255,255,255,0.28);
      border-bottom: 2px solid #c14b28;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        inset 0 -1px 0 rgba(0,0,0,0.35);
    }
    .login-body {
      flex: 1;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 80px;
      position: relative;
      padding: 40px 40px 60px;
    }
    .login-left-pane {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }
    .login-main-logo {
      width: 165px;
      max-width: 60vw;
      height: auto;
      filter: none;
    }
    .login-main-title {
      font-size: 16px;
      font-weight: 400;
      letter-spacing: -0.5px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      color: #f5f7ff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    }
    .login-main-xp {
      font-size: 18px;
      color: #e2461f;
      font-weight: 700;
      letter-spacing: 0;
      position: relative;
      top: -6px;
    }
    .login-main-sub {
      font-size: 14px;
      color: #d5e1ff;
      margin-top: -6px;
      text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    }
    .welcome-body {
      justify-content: center;
    }
    .welcome-title {
      font-size: clamp(22px, 6vw, 44px);
      font-weight: 700;
      color: #f5f7ff;
      letter-spacing: -0.2px;
      line-height: 1.15;
      text-align: center;
      max-width: 90vw;
    }
    .login-instruction {
      margin-top: 10px;
      font-size: 13px;
      color: #e8eeff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    .login-divider {
      width: 2px;
      align-self: stretch;
      background: linear-gradient(
        180deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.55) 18%,
        rgba(255,255,255,0.55) 82%,
        rgba(255,255,255,0) 100%
      );
      box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
      opacity: 0.6;
    }
    .login-right-pane {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .login-user-card {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 10px 32px 10px 12px;
      border-radius: 12px;
      border: none;
      background: none;
      box-shadow: none;
      cursor: pointer;
      color: #ffffff;
      transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    }
    .login-user-card:hover {
      background: #00309c;
      box-shadow: none;
    }
    .login-user-card:focus-visible {
      outline: 2px solid rgba(255,255,255,0.7);
      outline-offset: 3px;
    }
    .login-avatar-frame {
      width: 64px;
      height: 64px;
      border-radius: 10px;
      background: #fff;
      border: 1px solid rgba(0,0,0,0.12);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      flex-shrink: 0;
    }
    .login-avatar-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .login-user-text {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
    }
    .login-user-name {
      font-size: 17px;
      font-weight: 600;
      color: #ffffff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    }
    .login-user-role {
      font-size: 12px;
      color: #d8e3ff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    .login-bottom {
      height: 80px;
      background: linear-gradient(180deg, #0f298c 0%, #0a1c6d 100%);
      border-top: 2px solid #c14b28;
      border-bottom: 1px solid rgba(0,0,0,0.35);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 18px;
      color: #e6edff;
      font-size: 12px;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.22),
        inset 0 -1px 0 rgba(0,0,0,0.4);
    }
    .login-bottom-left {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
    }
    .restart-icon {
      width: 26px;
      height: 26px;
      border-radius: 4px;
      background: url('Assets/onoff.png') center/contain no-repeat;
      box-shadow: 0 2px 6px rgba(0,0,0,0.25);
      flex-shrink: 0;
    }
    .login-bottom-left:hover .restart-icon {
      filter: brightness(0.9);
    }
    .restart-text {
      color: #e6edff;
      font-size: 12px;
    }
    .welcome-screen .login-bottom-left,
    .welcome-screen .login-bottom-right,
    .restart-screen .login-bottom-left,
    .restart-screen .login-bottom-right {
      display: none;
    }
    .login-bottom-right {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 2px;
      text-align: right;
      color: #e6edff;
      font-size: 12px;
    }
    @media (max-width: 720px) {
      .login-body {
        flex-direction: column;
        gap: 32px;
        padding: 30px 18px 40px;
        justify-content: center;
      }
      .login-divider {
        display: block;
        width: min(280px, 100%);
        height: 2px;
        align-self: center;
        background: linear-gradient(
          90deg,
          rgba(255,255,255,0) 0%,
          rgba(255,255,255,0.55) 18%,
          rgba(255,255,255,0.55) 82%,
          rgba(255,255,255,0) 100%
        );
      }
      .login-left-pane {
        width: 100%;
      }
      .login-main-logo {
        width: 135px;
        max-width: 70vw;
        height: auto;
      }
      .login-right-pane {
        width: 100%;
        display: flex;
        justify-content: center;
      }
      .login-user-card {
        padding: 10px 18px;
      }
      .login-bottom {
        flex-direction: column;
        height: 80px;
        justify-content: center;
        align-items: center;
        gap: 6px;
        text-align: center;
      }
      .login-bottom-right {
        display: none;
      }
      .login-bottom-left {
        justify-content: center;
        text-align: center;
      }
    }

    /* Shutdown modal */
    .shutdown-modal {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(2px);
      z-index: 9500;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .shutdown-modal.visible {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
    .login-screen.grayscale-mode #shutdownModal {
      backdrop-filter: blur(2px) grayscale(1);
    }
.shutdown-dialog {
  display: inline-flex;
  flex-direction: column;
  width: 320px;
  min-width: 320px;
  min-height: 0;
  max-width: calc(100vw - 40px);
  background: linear-gradient(180deg, #0f3a9e 0%, #0c2f86 25%, #0c2f86 80%, #0a1f62 100%);
  border-radius: var(--radius-window);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  color: #ffffff;
  overflow: hidden;
  border: 2px solid #0a1e61;
}
    .shutdown-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 16px;
      font-size: 18px;
      font-weight: 500;
      background: linear-gradient(180deg, #2459c3 0%, #1b4aa7 100%);
      border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    .shutdown-title {
      text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    }
    .shutdown-logo {
      width: 30px;
      height: auto;
    }
    .shutdown-body {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 70px;
      padding: 26px 20px 22px;
      background:
        linear-gradient(180deg, #7aa0e8 0%, #6c92dc 45%, #6a90d9 100%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.05) 1px, rgba(0,0,0,0.03) 1px, rgba(0,0,0,0.03) 3px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.05), rgba(255,255,255,0.05) 1px, rgba(0,0,0,0.03) 1px, rgba(0,0,0,0.03) 3px);
      background-blend-mode: normal, multiply, multiply;
    }
    .shutdown-option {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      background: none;
      border: none;
      color: #f5f8ff;
      cursor: pointer;
      font-size: 13px;
      font-weight: 400;
      text-shadow: 0 1px 2px rgba(0,0,0,0.5);
      transition: transform 0.12s ease, filter 0.12s ease;
    }
    .shutdown-option:hover {
    }
    .shutdown-option:hover .shutdown-icon {
      filter: brightness(0.9);
    }
    .shutdown-icon {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 3px 8px rgba(0,0,0,0.4);
      border: 1px solid rgba(255,255,255,0.7);
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      display: inline-block;
    }
    .shutdown-icon-green {
      background: url('Assets/restart.png') center/contain no-repeat;
      border: none;
      box-shadow: none;
    }
    .shutdown-icon-red {
      background: url('Assets/off.png') center/contain no-repeat;
      border: none;
      box-shadow: none;
    }
    .shutdown-footer {
      padding: 12px 16px;
      background: #0f2b7a;
      display: flex;
      justify-content: flex-end;
    }
    .shutdown-cancel {
      min-width: 78px;
      padding: 6px 12px;
      border-radius: 4px;
      border: 1px solid #c2c7d0;
      background: linear-gradient(180deg, #ffffff 0%, #e6e6e6 100%);
      color: #000;
      cursor: pointer;
      font-size: 13px;
      height: 24px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    }
    .shutdown-cancel:hover {
      filter: brightness(0.98);
      box-shadow:
        inset 0 0 0 1px #f08a24,
        inset 0 1px 0 rgba(255,255,255,0.8);
    }

    .login-screen > * {
      transition: filter 0.6s ease;
    }
    .login-screen.grayscale-mode > :not(#shutdownModal) {
      filter: grayscale(1);
    }

    #desktop, #taskbar {
      transition: filter 0.6s ease;
    }
    body.desktop-shutdown #desktop,
    body.desktop-shutdown #taskbar {
      filter: grayscale(1);
    }

    /* ===== DESKTOP ===== */
    :root {
      --desktop-icon-cell-size: 84px;
      --desktop-icon-img-size: 37px;
      --desktop-icon-font-size: 14.5px;
      --desktop-icon-line-height: 24px;
      --desktop-icon-padding: 8px;
      --desktop-icon-grid-gap: 4px;
    }

    #desktop {
      position: fixed;
      inset: 0;
      background: var(--wallpaper) center/cover no-repeat fixed;
      display: none;
      overflow: hidden;
    }

.desktop-icons {
  display: grid;
  grid-auto-rows: var(--desktop-icon-cell-size);
  grid-template-columns: repeat(auto-fill, var(--desktop-icon-cell-size));
  padding: 28px 0 0 24px;
  grid-gap: var(--desktop-icon-grid-gap);
  height: calc(100% - 34px);
  place-content: start start;
}

.desktop-icon {
  border-radius: var(--radius-icon);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: var(--desktop-icon-padding);
  box-sizing: border-box;
}
    .desktop-icon.trash-target {
      position: fixed;
      right: 16px;
      bottom: 56px;
      width: var(--desktop-icon-cell-size);
      height: var(--desktop-icon-cell-size);
      padding: var(--desktop-icon-padding);
      z-index: 6;
      background: rgba(0,0,0,0.02);
    }
    .desktop-icon:hover {
      background-color: rgba(49,106,197,0.22);
    }
    .desktop-icon.trash-target.drag-over {
      border-color: rgba(12,93,255,0.5);
      background-color: rgba(12,93,255,0.18);
      box-shadow: 0 0 0 2px rgba(12,93,255,0.2);
    }
    .desktop-icon:focus,
    .desktop-icon:focus-visible {
      outline: none;
      border-color: rgba(0,153,255,0.4);
      box-shadow: 0 0 0 2px rgba(0,153,255,0.28);
      background-color: rgba(156,193,255,0.32);
    }
    .desktop-icon.selected {
      border-color: rgba(0,153,255,0.7);
      box-shadow: 0 0 0 2px rgba(0,153,255,0.45), 0 0 12px rgba(0,153,255,0.35);
      background-color: rgba(49,106,197,0.18);
    }
#selectionBox {
}
    .desktop-icon img {
      width: var(--desktop-icon-img-size);
      height: var(--desktop-icon-img-size);
      margin-bottom: 2px;
      transform: translateY(2px);
    }
.desktop-label {
  font-size: var(--desktop-icon-font-size);
  line-height: calc(var(--desktop-icon-line-height) * 0.72);
  letter-spacing: 0.3px;
  text-align: center;
  transform: translateY(1px);
  font-weight: 400;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.wmp-window .xp-title-icon {
  background: url('Assets/win logo sq.png') center/cover no-repeat;
}
.game-window .xp-title-icon {
  background: url('Assets/invaders game logo.png') center/cover no-repeat;
}
.wmp-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(#fdfdfd, #e9e9e9);
  min-height: 0;
}
.wmp-menu {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #1f2e5e;
  padding: 4px 6px;
  border: 1px solid #b8c4d9;
  border-radius: 3px;
  background: linear-gradient(#f7f7f7, #dcdcdc);
}
.wmp-screen {
  flex: 1;
  background: #000;
  border: 1px solid #9f9b92;
  border-radius: 0;
  overflow: hidden;
  min-height: 0;
}
.wmp-screen video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: none;
}
.wmp-screen iframe {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  border: none;
}
.wmp-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 6px 10px;
  border: 1px solid #b8c4d9;
  border-top: none;
  background: linear-gradient(1deg, #6A97CC -12.37%, #6A97CC 11.82%, #FFF 61.71%, #F1F7FD 66.71%, #6A97CC 96.76%, #6A97CC 147.48%);
  position: relative;
  --wmp-btn-bg: radial-gradient(circle at 30% 30%, #ffffff 0%, #d7dfea 70%, #c7d2e6 100%);
  --wmp-btn-border: #8a98b7;
  width: 100%;
}
.wmp-seek {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 6px;
  cursor: pointer;
}
.wmp-seek-track,
.wmp-seek-fill {
  position: absolute;
  top: 1px;
  height: 4px;
  border-radius: 4px;
}
.wmp-seek-track {
  left: 0;
  right: 0;
  background: #c1cfe8;
  border: 1px solid #8ea0c5;
}
.wmp-seek-fill {
  left: 0;
  width: 0%;
  background: linear-gradient(#6dff8d, #24c05f);
  border: 1px solid #1e9b4d;
  box-sizing: border-box;
}
.wmp-controls > .wmp-btn,
.wmp-controls > .wmp-controls-right {
  margin-top: 0;
}
.wmp-player {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.wmp-controls.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.wmp-player.is-fullscreen .wmp-controls {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 9999;
  display: inline-flex;
  width: auto;
  min-width: 0;
  max-width: calc(100vw - 24px);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
.wmp-controls-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wmp-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--wmp-btn-border);
  background: var(--wmp-btn-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 1px rgba(0,0,0,0.25);
  position: relative;
  cursor: pointer;
}
.wmp-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.wmp-btn-icon img,
.wmp-btn-icon svg {
  width: 70%;
  height: 70%;
  display: block;
}
.wmp-btn:active {
  transform: translateY(1px);
}
.wmp-btn-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #001489 0%, #31DFFB 100%);
  border-color: #2b6bd3;
}
.wmp-btn-play::before {
  content: none;
}
.wmp-btn-play.is-playing::before {
  content: none;
}
.wmp-btn-prev::before,
.wmp-btn-next::before {
  content: none;
}
.wmp-btn-fullscreen::before {
  content: none;
}
.wmp-btn-play .icon-pause,
.wmp-btn-mute .icon-mute {
  display: none;
}
.wmp-btn-play.is-playing .icon-play,
.wmp-btn-mute.is-muted .icon-volume {
  display: none;
}
.wmp-btn-play.is-playing .icon-pause,
.wmp-btn-mute.is-muted .icon-mute {
  display: block;
}
.wmp-btn-fullscreen .icon-collapse {
  display: none;
}
.wmp-btn-fullscreen.is-fullscreen .icon-expand {
  display: none;
}
.wmp-btn-fullscreen.is-fullscreen .icon-collapse {
  display: block;
}
.wmp-volume {
  display: flex;
  align-items: center;
  --wmp-level: 70%;
}
#wmpVolume {
  width: 110px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 6px;
  cursor: pointer;
}
#wmpVolume::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #67de7f 0%, #2dbf58 100%) left / var(--wmp-level) 100% no-repeat,
    #c1cfe8;
  border: 1px solid #8ea0c5;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4);
}
#wmpVolume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--wmp-btn-border);
  background: var(--wmp-btn-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 1px rgba(0,0,0,0.25);
  margin-top: -6px;
}
#wmpVolume::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #67de7f 0%, #2dbf58 100%) left / var(--wmp-level) 100% no-repeat,
    #c1cfe8;
  border: 1px solid #8ea0c5;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4);
}
#wmpVolume::-moz-range-progress {
  background: transparent;
  border: none;
}
#wmpVolume::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--wmp-btn-border);
  background: var(--wmp-btn-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 1px rgba(0,0,0,0.25);
}
.wmp-status {
  font-size: 11px;
  color: #1f2e5e;
  padding: 2px 4px;
  border: 1px solid #b8c4d9;
  border-radius: 3px;
  background: #eef2ff;
}

/* IE-style about window */
.xp-window *,
.ie-shell *,
.wiki-page * {
  outline: none !important;
}
.ie-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #f2f2f2;
  border: 1px solid #a9a9a9;
  box-shadow: inset 0 1px 0 #fff;
  height: 100%;
}
.ie-menubar {
  display: flex;
  gap: 4px;
  padding: 0;
  font-size: 12px;
  color: #1b1b1b;
  background: #efebd8;
  border: none;
  border-radius: 0;
  white-space: nowrap;
}
.ie-divider {
  height: 1px;
  background: #c2b9a9;
  width: 100%;
}
.ie-menu-btn {
  border: 1px solid transparent;
  background: none;
  padding: 2px 6px;
  border-radius: 2px;
  cursor: default;
  font-size: 12px;
  color: #1b1b1b;
}
.ie-menu-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.ie-menu-btn:active,
.ie-menu-btn:focus {
  border-color: #9c9c9c;
  background: #dfe7f5;
  outline: none;
}
.projects-toolbar {
  display: flex;
  padding: 0 4px;
  align-items: flex-start;
  gap: 4px;
  align-self: stretch;
}
.ie-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  background: #efebd8;
  border: none;
  border-radius: 0;
}
.ie-nav-btns {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  background: #efebd8;
}
.ie-nav-left,
.ie-nav-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}
.ie-nav-sep {
  width: 1px;
  height: 20px;
  background: #c2b9a9;
  display: inline-block;
}
.ie-nav-btns .ie-btn {
  background: #efebd8;
}
.ie-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  height: auto;
  background: #efebd8;
  border: none;
  border-radius: 0;
}
.ie-ribbon .ie-btn,
.ie-ribbon .ie-icon {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.ie-ribbon img.ie-btn {
  width: 24px;
  height: 24px;
  display: block;
}
.ie-ribbon .ie-icon-print {
  cursor: pointer;
  transition: filter 0.15s ease;
}
.ie-nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}
.ie-nav-search-label {
  font-size: 11px;
  color: #1b1b1b;
}
.ie-ribbon .ie-icon-print:hover {
  filter: brightness(0.9);
}
.ie-btn {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: #efebd8;
  border: none;
  box-shadow: none;
  position: relative;
  padding: 0;
}
.ie-icon-back,
.ie-icon-forward {
  border: none;
  box-shadow: none;
  background: transparent;
}
.ie-icon-back { background: #efebd8 url('Assets/Icon back.png') center/contain no-repeat; }
.ie-icon-forward { background: #efebd8 url('Assets/Icon next.png') center/contain no-repeat; }
.ie-icon-refresh { background: #efebd8 url('Assets/refresh.png') center/contain no-repeat; }
.ie-icon-fav { background: #efebd8 url('Assets/fav.png') center/contain no-repeat; }
.ie-icon-print { background: #efebd8 url('Assets/print.png') center/contain no-repeat; }
.ie-btn.disabled {
  opacity: 0.65;
  pointer-events: none;
}
#window-projects .ie-ribbon img,
#window-clients .ie-ribbon img,
#window-projects .ie-nav-search-label,
#window-clients .ie-nav-search-label {
  opacity: 0.65;
}
.ie-btn::after,
.ie-btn::before {
  content: none;
}
/* XP-style toolbar buttons (About window) */
.ie-xp-tb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 2px 5px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: none;
  cursor: default;
  color: #1b1b1b;
  font-family: inherit;
  font-size: 10px;
  white-space: nowrap;
  min-width: 38px;
}
.ie-xp-tb-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}
.ie-xp-tb-btn:not(.disabled):hover {
  border-color: #9c9c9c;
  background: #dfe7f5;
}
.ie-xp-tb-btn.disabled { opacity: 0.55; }
.ie-xp-back {
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 4px 2px 4px 6px;
  min-width: 52px;
  cursor: pointer;
  opacity: 1 !important;
}
.ie-xp-back:hover {
  border-color: #9c9c9c;
  background: #dfe7f5;
}
.ie-xp-back span:first-of-type { margin-left: 3px; }
.ie-xp-arr {
  font-size: 8px;
  color: #444;
  padding-left: 3px;
  margin-left: 2px;
  border-left: 1px solid #c2b9a9;
  height: 20px;
  display: flex;
  align-items: center;
}
.ie-xp-stop {
  font-size: 16px;
  line-height: 20px;
  color: #c00;
  font-weight: 700;
  display: block;
  width: 20px;
  text-align: center;
}
.ie-xp-emoji {
  font-size: 16px;
  line-height: 20px;
  display: block;
  width: 20px;
  text-align: center;
}

.ie-address {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  margin: 0;
  background: #efebd8;
  border: 1px solid #c8c1b1;
  border-radius: 2px;
  padding: 6px 8px;
}
.ie-address-label {
  font-size: 12px;
  color: #1b1b1b;
  white-space: nowrap;
}
/* inner wrap: globe + input + arrow */
.ie-address-inner {
  flex: 1;
  display: flex;
  align-items: center;
  height: 22px;
  background: #fff;
  border: 1px solid #9caec2;
  border-radius: 1px;
  overflow: hidden;
}
.ie-address-favicon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0 2px;
}
.ie-address-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 2px;
  font-size: 12px;
  font-family: inherit;
  background: transparent;
  color: #000;
}
.ie-address-arrow {
  width: 16px;
  height: 100%;
  background: #efebd8;
  border-left: 1px solid #9caec2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #444;
  flex-shrink: 0;
}
.ie-go {
  height: 22px;
  width: 26px;
  padding: 0;
  border: none;
  outline: none;
  border-radius: 1px;
  background: transparent url('Assets/go.png') center/contain no-repeat;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
}
.ie-go.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.ie-links-label {
  font-size: 11px;
  color: #1b1b1b;
  white-space: nowrap;
  flex-shrink: 0;
}
.ie-content {
  background: #ffffff;
  border: 1px solid #c8c1b1;
  border-radius: 2px;
  padding: 0;
  min-height: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}
.ie-tab-panel { display: none; }
.ie-tab-panel.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border: none;
  overflow-x: hidden;
  overflow-y: auto;
}
.ie-favorites {
  display: none;
  padding: 10px;
  border-top: 1px solid #c8c1b1;
}
.ie-favorites ul { margin: 6px 0 0 14px; }
.ie-fav-title { font-weight: 700; margin-bottom: 6px; }
.ie-toast {
  margin-top: 6px;
  padding: 6px 8px;
  background: #fffbda;
  border: 1px solid #e0d38a;
  font-size: 12px;
  display: inline-flex;
  gap: 6px;
}
.ie-toast[hidden] { display: none; }
.ie-toast-link { color: #0a3c8b; text-decoration: underline; cursor: pointer; }
.ie-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 0;
  height: 28px;
  border-bottom: none;
}
.ie-tab {
  padding: 6px 10px;
  background: linear-gradient(#f7f7f7, #e1e1e1);
  border: none;
  border-bottom: none;
  border-radius: 0;
  font-size: 12px;
  color: #1b1b1b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ie-tab-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.ie-tab.active {
  background: #fff;
  border-color: transparent;
}
.ie-tab-close {
  border: 1px solid #9caec2;
  background: linear-gradient(#ffffff, #e7eef7);
  border-radius: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  font-weight: 700;
  color: #1f4f8a;
}
.ie-tab-title { white-space: nowrap; }
.ie-tab-new {
  border: 1px solid #9caec2;
  background: linear-gradient(#ffffff, #e7eef7);
  border-radius: 0;
  width: 26px;
  height: 22px;
  cursor: pointer;
  font-weight: 700;
  color: #1f4f8a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.ie-tab-new:hover {
  filter: brightness(0.96);
}
.ie-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #e7eef7);
  border: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  font-size: 12px;
  color: #1f4f8a;
}
.ie-icon::before { content: ''; }
.ie-icon-back::before { content: '←'; }
.ie-icon-forward::before { content: '→'; }
.ie-icon-refresh::before { content: '⟳'; }
.ie-icon-home::before { content: '⌂'; }
.ie-icon-fav::before { content: '★'; }
.ie-icon-print::before { content: '🖨'; }
.ie-icon-download::before { content: '⬇'; }
.ie-icon-go::before { content: 'Go'; font-weight: 700; }
.ie-icon-newtab::before { content: '▢'; font-size: 13px; }
.ie-status {
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  color: #1f2e5e;
  background: linear-gradient(#f4f1e9, #dfd9cc);
  border: 1px solid #c8c1b1;
  border-radius: 2px;
}
.wiki-page {
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.wiki-page hr {
  margin: 8px 0;
}
.wiki-page h3 {
  margin: 12px 0 8px;
}
.wiki-page h3:first-of-type {
  margin-top: 0;
}

@media print {
  html,
  body {
    height: auto;
    overflow: visible;
    background: none;
  }
  body.print-wiki > *:not(#window-about) {
    display: none !important;
  }
  body.print-wiki * {
    visibility: hidden;
  }
  body.print-wiki #window-about,
  body.print-wiki #window-about * {
    visibility: visible;
  }
  body.print-wiki #window-about {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    box-shadow: none;
    border: none;
    overflow: visible;
    resize: none;
    display: block;
  }
  body.print-wiki #window-about .xp-window,
  body.print-wiki #window-about .ie-shell,
  body.print-wiki #window-about .ie-content,
  body.print-wiki #window-about .wiki-page {
    border: none;
    box-shadow: none;
  }
  body.print-wiki #window-about .xp-titlebar,
  body.print-wiki #window-about .xp-statusbar,
  body.print-wiki #window-about .ie-menubar,
  body.print-wiki #window-about .ie-ribbon,
  body.print-wiki #window-about .ie-address,
  body.print-wiki #window-about .wiki-toolbar {
    display: none;
  }
  body.print-wiki #window-about .xp-content,
  body.print-wiki #window-about .ie-shell,
  body.print-wiki #window-about .ie-content,
  body.print-wiki #window-about .ie-tab-panel.wiki-page.active {
    display: block;
  }
  body.print-wiki #window-about .xp-content,
  body.print-wiki #window-about .ie-shell,
  body.print-wiki #window-about .ie-content,
  body.print-wiki #window-about .ie-tab-panel.wiki-page {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    flex: none;
  }
  body.print-wiki #window-about .ie-tab-panel.wiki-page {
    max-height: none;
    display: block;
  }
  body.print-wiki #window-about .wiki-infobox-image img {
    width: 160px;
    height: 160px;
    object-fit: cover;
  }
}
.wiki-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  justify-content: flex-start;
  border-bottom: 1px solid #d0d0d0;
}
.wiki-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.wiki-search {
  flex: 1;
  width: 100%;
  height: 24px;
  border: 1px solid #9caec2;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 12px;
}
.wiki-search:focus { outline: 1px solid #4a90e2; }
.wiki-search-btn {
  height: 24px;
  padding: 0 10px;
  border: 1px solid #296ccf;
  border-radius: 4px;
  background: linear-gradient(#e6f1ff, #bcd9ff);
  color: #0a3c8b;
  font-weight: 700;
  cursor: pointer;
}
.wiki-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}
.wiki-intro-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  flex-wrap: nowrap;
}
.wiki-text {
  flex: 1;
  min-width: 0;
  order: 1;
}
.wiki-link {
  color: #0a3c8b;
  text-decoration: underline;
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wiki-separator {
  height: 1px;
  background: #c8c8c8;
  margin: 0 0 10px;
  width: 100%;
}
.wiki-header h1 {
  font-size: 18px;
  margin-bottom: 4px;
}
.wiki-subtitle {
  font-size: 12px;
  color: #545454;
  margin-bottom: 10px;
}
.wiki-header {
  margin-top: 12px;
}
.wiki-infobox {
  width: 240px;
  border: 1px solid #c8c1b1;
  background: #f8f8f8;
  padding: 8px;
  margin: 0 0 10px 10px;
  order: 2;
  flex-shrink: 0;
}
.wiki-infobox-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #d0d0d0;
  margin-bottom: 8px;
}
.wiki-infobox-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  border-bottom: 1px solid #e2e2e2;
  padding: 3px 0;
}
.wiki-infobox-row:last-child {
  border-bottom: none;
}
.wiki-infobox-label {
  font-weight: 700;
  color: #333;
}
.wiki-infobox-value {
  text-align: right;
  color: #444;
}
.wiki-list {
  margin: 6px 0 10px 18px;
}
.wiki-list li {
  margin-bottom: 4px;
}
.wiki-note {
  font-size: 11px;
  color: #444;
}
@media (max-width: 900px) {
  .wiki-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-bottom: 24px;
  }
  .wiki-logo {
    margin: 0 auto;
  }
  .wiki-search {
    width: 100%;
    height: 44px !important;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 6px;
  }
  .wiki-search-btn {
    display: none;
  }
  .wiki-links { display: none; }
  .wiki-intro-row {
    flex-direction: column;
    gap: 12px;
  }
  .wiki-text {
    order: 2;
    width: 100%;
  }
  .wiki-infobox {
    width: 100%;
    margin: 0;
    order: 1;
  }
  .wiki-infobox-image img {
    width: 100%;
    height: auto;
  }
  .ie-content,
  .ie-tab-panel.active {
    height: 100%;
    min-height: calc(100vh - 120px);
  }
  .wiki-page {
    display: flex;
    flex-direction: column;
  }
  .ie-nav-btns {
    padding-top: 4px;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ie-nav-btns::-webkit-scrollbar { width: 0; height: 0; display: none; }
  .ie-nav-left, .ie-nav-right { flex: 0 0 auto; }
  .ie-nav-right { margin-left: 0; }
  .ie-nav-btns .ie-xp-tb-btn { flex: 0 0 auto; }
  .ie-ribbon {
    height: auto;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .ie-address {
    position: sticky;
    top: 58px;
    z-index: 3;
    overflow: hidden;
  }
}
@media (max-width: 567px) {
  .wiki-links {
    max-width: 220px;
  }
  .wiki-link:nth-child(n+2) {
    max-width: 90px;
  }
  .wiki-link:nth-child(n+3) {
    max-width: 70px;
  }
}

    /* ===== TASKBAR ===== */
    #taskbar {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      height: var(--taskbar-height);
      width: 100vw;
      background: var(--color-primary-strong);
      box-shadow: var(--shadow-bar);
      display: flex;
      align-items: center;
      padding: 0;
      gap: 0;
      z-index: 1000;
      color: #fff;
      font-size: 11px;
    }

    #startButton {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 3px 16px;
      width: 100px;
      border-radius: 0 var(--radius-button) var(--radius-button) 0; /* слева без скругления */
      border: 1px solid #185312;
      background: linear-gradient(#62d14f, #2e7c1f);
      cursor: pointer;
      font-weight: bold;
      font-size: 13px;
      text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
      color: #ffffff; /* белый текст */
      height: 34px;
      box-sizing: border-box;
    }
    #startButton.active {
      box-shadow: inset 0 0 4px rgba(0,0,0,0.9);
      transform: translateY(1px);
    }
#startOrb {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
  background: url('Assets/win logo sq.png') center/cover no-repeat;
}

    #taskButtons {
      flex: 1;
      display: flex;
      gap: 0;
      padding: 0 10px;
      overflow-x: auto;
      scrollbar-width: thin;
    }
    #taskAudio {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 20px;
    }
    .task-sound-btn {
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      border: none;
      background: transparent;
      box-shadow: none;
      cursor: pointer;
    }
    .task-sound-btn img {
      width: 16px;
      height: 16px;
      display: block;
      pointer-events: none;
    }
    /* Динамик визуально читается выше «?»: опускаем на 1px для ровной строки. */
    .task-sound-btn .icon-volume {
      transform: translateY(1px);
    }
    .task-sound-btn .icon-mute {
      display: none;
    }
    .task-sound-btn.is-muted .icon-volume {
      display: none;
    }
    .task-sound-btn.is-muted .icon-mute {
      display: block;
    }
    .task-volume-panel {
      --task-volume-level: 100%;
      position: absolute;
      left: 50%;
      bottom: calc(100% + 8px);
      transform: translateX(-50%);
      display: none;
      align-items: center;
      justify-content: center;
      width: 36px;
      min-height: 132px;
      padding: 12px 8px;
      background: linear-gradient(180deg, #f9fbff 0%, #d7e7fb 100%);
      border: 1px solid #2d5ea8;
      border-radius: 7px;
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
    }
    .task-volume-panel.is-open {
      display: flex;
    }
    .task-volume-panel::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: -6px;
      width: 10px;
      height: 10px;
      background: #d7e7fb;
      border-right: 1px solid #2d5ea8;
      border-bottom: 1px solid #2d5ea8;
      transform: translateX(-50%) rotate(45deg);
    }
    #taskVolume {
      width: 96px;
      height: 6px;
      -webkit-appearance: none;
      appearance: none;
      background: transparent;
      cursor: pointer;
      transform: rotate(-90deg);
      transform-origin: center;
    }
    #taskVolume::-webkit-slider-runnable-track {
      height: 6px;
      border-radius: 999px;
      background:
        linear-gradient(180deg, #67de7f 0%, #2dbf58 100%) left / var(--task-volume-level) 100% no-repeat,
        #c1cfe8;
      border: 1px solid #8ea0c5;
      box-shadow: inset 0 1px 1px rgba(255,255,255,0.4);
    }
    #taskVolume::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 14px;
      height: 14px;
      margin-top: -5px;
      border-radius: 50%;
      background: linear-gradient(180deg, #ffffff 0%, #cfe0fb 100%);
      border: 1px solid #607cac;
      box-shadow: 0 1px 2px rgba(0,0,0,0.25);
    }
    #taskVolume::-moz-range-track {
      height: 6px;
      border-radius: 999px;
      background: #c1cfe8;
      border: 1px solid #8ea0c5;
      box-shadow: inset 0 1px 1px rgba(255,255,255,0.4);
    }
    #taskVolume::-moz-range-progress {
      height: 6px;
      border-radius: 999px;
      background: linear-gradient(180deg, #67de7f 0%, #2dbf58 100%);
    }
    #taskVolume::-moz-range-thumb {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: linear-gradient(180deg, #ffffff 0%, #cfe0fb 100%);
      border: 1px solid #607cac;
      box-shadow: 0 1px 2px rgba(0,0,0,0.25);
    }
    .task-btn {
      background: #ececec;
      border: 1px solid #444;
      border-radius: 8px;
      padding: 2px 8px;
      font-size: 11px;
      white-space: nowrap;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
      color: #000;
      height: 26px; /* по высоте как Пуск */
      box-sizing: border-box;
    }
    .task-btn.open {
      display: flex;
      min-width: 36px;
      max-width: 160px;
      padding: 5px 15px 4px 10px;
      align-items: center;
      gap: 3px;
      flex: 1 0 0;
      border-radius: 3px;
      border: 1px solid rgba(8, 41, 111, 0.5);
      background: linear-gradient(180deg, #164DBC 0%, #184EB8 100%);
      box-shadow: 1px 0.5px 2px 0 rgba(0, 0, 0, 0.5) inset, -1px -1px 3px 0 #2A5DB6 inset;
      color: #fff;
      height: auto;
    }
    .task-btn.minimized {
      display: flex;
      min-width: 36px;
      max-width: 160px;
      padding: 4px 15px 5px 10px;
      align-items: center;
      gap: 3px;
      flex: 1 0 0;
      border-radius: 3px;
      border: 1px solid rgba(8, 41, 111, 0.5);
      background: linear-gradient(180deg, #4892F7 0%, #397DF3 29.8%, #3980F4 66.35%, #3981F4 100%);
      box-shadow: -1px -0.5px 3px 0 #2652B0 inset, 2px 0 2px 0 rgba(155, 197, 255, 0.5) inset;
      color: #fff;
      height: auto;
    }
    .task-btn.active {
      background: #c9d5ff;
    }
    .task-btn.open.active {
      background: linear-gradient(180deg, #164DBC 0%, #184EB8 100%);
    }
    .task-btn-icon {
      width: 14px;
      height: 14px;
      background: linear-gradient(#5a8cf0, #1b3c8b) center/cover no-repeat;
      border-radius: 3px;
      flex-shrink: 0;
    }
    .task-btn-label {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    #taskClock {
      min-width: 76px;
      font-size: 11px;
      text-shadow: none;
      padding: 4px 10px 4px 6px;
      border-radius: 0;
      background: #0D9BEF;
      box-shadow: -2px 0 1px 0 rgba(0, 0, 0, 0.50), 5px 5px 5px 0 #16ACF0 inset, -2px -4px 15px 0 rgba(0, 0, 0, 0.25) inset;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 6px;
    }
    #taskClockTime {
      display: block;
      min-width: 34px;
      text-align: left;
    }

    /* ===== START MENU ===== */
    #startMenu {
      position: fixed;
      left: 0;
      bottom: 34px;
      width: 420px;
      box-sizing: border-box;
      background: #FFF;
      border-radius: 6px 6px 0 0;
      border: 1px solid #215CC5;
      box-shadow: -4px 0 4px -1px rgba(0, 46, 137, 0.25) inset, 2px 2px 4px 0 rgba(0, 0, 0, 0.50);
      display: none;
      flex-direction: column;
      z-index: 1100;
      overflow: hidden;
      color: #ffffff;
    }

    .start-header {
      width: 100%;
      height: 64px;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 6px;
      background: linear-gradient(180deg, #74AAE8 0%, #1969D2 0.78%, #2174DB 6.39%, #4792EC 13.18%, #448BE3 91.95%, #2577DF 95.86%, #0D5BC7 100%);
      box-shadow: 5px 0 6px -4px #91A3D9 inset, 0 -5px 40px 10px rgba(9, 74, 189, 0.66) inset;
      color: #fff;
    }
    .start-logo {
      width: 28px;
      height: 28px;
      flex-shrink: 0;
      background: url('Assets/win logo sq.png') center/contain no-repeat;
    }
    .start-divider {
      width: 376px;
      max-width: 100%;
      height: 3px;
      background: linear-gradient(90deg, rgba(255, 138, 29, 0.00) 0%, #FF8A1D 50%, rgba(255, 138, 29, 0.00) 100%);
      margin: 0 auto;
    }
.start-avatar {
  width: 52px;
  height: 52px;
  border-radius: 3px;
  border: 2px solid hsla(0, 0%, 100%, .7);
  background: url('Assets/avatar.webp') center/cover no-repeat;
  box-shadow: 0 0 0 1px rgba(0, 95, 184, .6), inset 0 0 2px 1px hsla(0, 0%, 100%, .35);
  margin: 0;
  flex-shrink: 0;
}
    .start-user-block {
      display: flex;
      flex-direction: column;
      font-size: 11px;
    }
.start-user-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
  letter-spacing: .5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .6);
}
    .start-user-site a {
      color: #cce3ff;
      font-size: 11px;
    }

.start-body {
  display: flex;
  background: #ffffff;
  color: #111111;
  font-size: 12px;
}
.start-left {
  display: flex;
  min-height: 374px;
  padding: 6px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1 1 0;
  width: 50%;
  background: #ffffff;
  border-right: 1px solid #b7c8df;
}
.start-right {
  width: 50%;
  height: 374px;
  padding: 8px 6px 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1 1 0;
  flex-shrink: 1;
  border-left: 1px solid #9bbfe9;
  background: linear-gradient(180deg, #d6e4f5 0%, #c6d6ea 100%);
}

    .start-item {
      width: 100%;
      display: flex;
      padding: 2px;
      align-items: center;
      gap: 4px;
      align-self: stretch;
      min-height: 0;
      border-radius: 4px;
      border: none;
      background: none;
      cursor: pointer;
      text-align: left;
      color: var(--color-text-strong);
    }
    .start-item > span {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      align-self: center;
      overflow: hidden;
      color: #373738;
      text-overflow: ellipsis;
      font-family: Tahoma, sans-serif;
      font-size: 11px;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
    }
    .start-item-icon {
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
}
.start-item-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
a.start-item, a.start-item:hover, a.start-item:visited { text-decoration: none !important; }
a.start-item span { text-decoration: none !important; }
.start-item:hover {
  background: #316ac5;
  color: #ffffff;
}
.start-item:hover > span {
  color: #ffffff;
}
.start-all-programs {
  justify-content: center;
  gap: 4px;
  padding-right: 12px;
}
.start-all-programs > span {
  font-weight: 700;
}
.start-all-programs-arrow {
  width: auto;
  height: 20px;
  flex-shrink: 0;
}
.start-divider {
  width: 100%;
  height: 1px;
  align-self: stretch;
  background: linear-gradient(90deg, rgba(211, 211, 200, 0) 0%, #d3d3c8 50%, rgba(211, 211, 200, 0) 100%);
}

    .start-link-card {
      display: flex;
      align-items: center;
      box-sizing: border-box;
      margin: 0;
      padding: 6px 8px;
      gap: 6px;
      border-radius: 4px;
      background: transparent;
      cursor: pointer;
      font-size: 11px;
      color: #17337f;
      width: 100%;
      transition: background-color .05s ease;
    }
.start-link-card:hover {
  background: rgba(150, 184, 233, 0.28);
  color: #17337f;
}
.start-link-card:hover .start-link-text-title,
.start-link-card:hover .start-link-text-sub {
  color: #17337f;
}
.start-link-divider-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  min-height: 8px;
  width: 100%;
  flex: 0 0 auto;
  background: transparent;
}
.start-link-divider {
  display: block;
  width: 134px;
  min-height: 1px;
  height: 1px;
  border-bottom: 1px solid #bfd8f7;
  background: linear-gradient(90deg, #9fc4f5 0%, #6daaf8 50%, #9fc4f5 100%);
  box-sizing: border-box;
}
.start-link-img {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.start-link-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.start-link-text-title {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 11px;
  color: #14327d;
}
    .start-link-text-sub {
      font-size: 11px;
      color: #1f3f8f;
    }

.start-footer {
  display: flex;
  height: 40px;
  padding: 10px;
  gap: 10px;
  background: linear-gradient(180deg,#428ee9 0,#3786e5 10%,#3482e3 21%,#297ae0 35%,#2476dc 40%,#1e70d9 46%,#1b6cd3 53%,#1667cf 67%,#1164cf 68%,#0e60cb 80%,#0e60cb 88%,#1868ce);
  justify-content: flex-end;
  align-items: center;
  align-self: stretch;
}
    .start-footer-btn {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 2px;
      font-size: 14px;
      line-height: 1.2;
      border: none;
      background: none;
      cursor: pointer;
      color: #e7f1ff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.45);
      transition: transform 0.08s ease, filter 0.12s ease;
    }
    .start-footer-btn:hover {
      filter: brightness(1.05);
      transform: translateY(-1px);
    }
    .start-footer-btn:active {
      transform: translateY(0);
    }
    .start-footer-icon {
      width: 24px;
      height: 24px;
      border-radius: 0;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      flex-shrink: 0;
    }
    .start-footer-text {
      color: #e7f1ff;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.1px;
    }
    .logout-icon {
      background-image: url('Assets/onoff.png');
    }
    .start-footer .shutdown-icon {
      background-image: url('Assets/off.png');
      border: none;
      outline: none;
      box-shadow: none;
    }

    /* Focus glow */
    button:focus-visible,
    .desktop-icon:focus-visible,
    .start-item:focus-visible,
    .project-folder:focus-visible,
    .task-btn:focus-visible,
    .start-link-card:focus-visible {
      outline: none;
      box-shadow: 0 0 0 2px rgba(0,153,255,0.35), 0 0 8px rgba(0,153,255,0.25);
    }
    #startLogout,
    #startShutdown {
      display: flex;
      padding: 2px;
      align-items: center;
      gap: 5px;
      background: none;
      border: none;
      box-shadow: none;
    }
    #startShutdown,
    #startShutdown .start-footer-text {
      text-shadow: none;
    }

    /* ===== WINDOWS ===== */
.xp-window.vimeo-preloading {
  display: flex !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
}
.xp-window {
  position: absolute;
  top: 80px;
  left: 140px;
  width: min(640px, 90vw);
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  min-width: 260px;
  min-height: 180px;
  background: var(--xp-window-bg);
  border: 2px solid var(--xp-border);
  border-radius: var(--radius-window);
  box-shadow: 0 8px 18px rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
  z-index: 5;
  resize: both;
  overflow: hidden;
  font-size: 12px;
}
#window-about {
  width: min(800px, 95vw);
  min-width: 320px;
  height: min(700px, calc(95vh - 120px));
  min-height: 400px;
}
#window-game {
  width: 750px;
  height: 548px;
  max-width: 95vw;
  max-height: 90vh;
}
#window-showreel {
  min-width: 360px;
}
    .xp-window.active {
      border-color: #1c3f94;
    }

    .xp-titlebar {
      height: 30px;
      background: linear-gradient(180deg, var(--color-primary) 0%, #1961DD 50%, #026AFE 100%);
      box-shadow: 0 1.8px 1.2px 0 #3291FF inset;
      border-radius: var(--radius-window) var(--radius-window) 0 0;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 4px 0 8px;
      font-size: 12px;
      font-weight: bold;
      cursor: grab;
      user-select: none;
      touch-action: none;
    }
    .xp-titlebar:active {
      cursor: grabbing;
    }
    .xp-title {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }
.xp-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xp-title-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: url('Assets/iexplore.exe_14_32528-7.png') center/cover no-repeat;
}
/* Project windows: Word icon + "Office XP — " title prefix */
.xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .xp-title-icon {
  background: url('Assets/Иконка Microsoft Word.png') center/contain no-repeat;
}
.xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .xp-title span::before {
  content: 'Office XP — ';
}
    .xp-controls {
      display: flex;
      gap: 2px;
    }
.project-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: url('Assets/Maximize.png') center/contain no-repeat;
  color: transparent;
  cursor: pointer;
  text-decoration: none;
}
.project-page-btn:visited {
  color: transparent;
}
.project-page-btn:hover {
  filter: brightness(0.95);
}
.project-page-btn::before {
  content: none;
}
.xp-btn {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid #102362;
  background: linear-gradient(#fefefe, #c3cfeb);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.xp-btn:hover {
  background: linear-gradient(#fffdf4, #ffcf8e);
}
.xp-btn.minimize {
  background: url('Assets/Minimize.png') center/contain no-repeat;
  border-color: transparent;
  color: transparent;
}
.xp-btn.close {
  background: url('Assets/Close.png') center/contain no-repeat;
  border-color: transparent;
  color: transparent;
}
.xp-btn.close:hover {
  filter: brightness(0.95);
}

.xp-content {
      padding: 0;
      font-size: 12px;
      line-height: 1.5;
      flex: 1;
      overflow: auto;
    }

#window-showreel .xp-content {
  overflow: hidden;
}

.xp-statusbar {
  height: 20px;
  background: #efebd8;
  border-top: none;
  font-size: 11px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  color: #333;
    }

    .xp-section-title {
      color: #000;
      font-family: Arial;
      font-size: 16px;
      font-style: normal;
      font-weight: 700;
      line-height: normal;
      margin-bottom: 6px;
    }
    #window-clients .xp-section-title {
      color: rgba(255, 255, 255, 0.66);
      font-family: "Trebuchet MS";
      font-size: 32px;
      font-style: normal;
      font-weight: 700;
      line-height: normal;
    }
    #window-clients .clients-main p {
      color: #fff;
    }
    .xp-section-sub {
      font-weight: bold;
      font-size: 12px;
      margin-top: 8px;
      margin-bottom: 4px;
    }

    /* ABOUT */
    #window-about .xp-content p { margin-bottom: 6px; }
#aboutVideo {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  border: 1px solid #9f9b92;
  background:#000;
  margin-top: 6px;
  height: auto;
  object-fit: cover;
}

    /* PROJECTS */
    #window-projects .clients-main p { margin-bottom: 8px; }
    .projects-layout {
      display: grid;
      grid-template-columns: 230px 1fr;
      gap: 4px;
      flex: 1;
      min-height: 0;
    }
    #window-clients .projects-layout {
      background: #6375d6;
    }
    .projects-nav {
      position: relative;
      display: flex;
      width: 230px;
      padding: 20px 10px 10px 10px;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      align-self: stretch;
      box-sizing: border-box;
      border-right: 1px solid rgba(255, 255, 255, 0.33);
      background: linear-gradient(180deg, #7BA2E7 0%, #6B85DC 100%);
    }
    .projects-nav::before {
      display: none;
    }
    .projects-filter-widget {
      display: flex;
      height: auto;
      min-height: auto;
      flex-direction: column;
      align-items: flex-start;
      align-self: stretch;
      border: none;
      border-radius: 3px 3px 0 0;
      box-sizing: border-box;
      overflow: hidden;
    }
    .projects-filter-header {
      display: flex;
      min-height: 24px;
      padding: 3px 6px;
      justify-content: space-between;
      align-items: center;
      align-self: stretch;
      border-radius: 3px 3px 0 0;
      background: linear-gradient(90deg, #FFF 0%, #C6D3F7 100%);
      font-size: 11px;
      color: #1f2e5e;
      border: none;
    }
    .projects-filter-header span {
      color: var(--Foreground-Link, #215DC6);
      font-family: Arial;
      font-size: 11px;
      font-style: normal;
      font-weight: 700;
      line-height: normal;
    }
    .projects-filter-group {
      display: flex;
      flex: 0 0 auto;
      padding: 10px;
      flex-direction: column;
      align-items: flex-start;
      gap: 5px;
      align-self: stretch;
      border: none;
      border-radius: 0;
      background: #D6DFF7;
      overflow: visible;
      scrollbar-width: none;
    }
    .projects-filter-group::-webkit-scrollbar {
      width: 0;
      height: 0;
    }
    .projects-filter-group.is-interacting {
      scrollbar-width: thin;
    }
    .projects-filter-group.is-interacting::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    .projects-filter-group.is-interacting::-webkit-scrollbar-thumb {
      background: rgba(83, 104, 141, 0.45);
      border-radius: 999px;
    }
    .projects-filter-group.is-interacting::-webkit-scrollbar-track {
      background: transparent;
    }
    .projects-filter {
      display: flex;
      padding: 2px 0;
      flex-direction: row;
      align-items: center;
      gap: 5px;
      align-self: stretch;
      text-align: left;
      border: none;
      background: transparent;
      font-size: 11px;
      cursor: pointer;
    }
    .projects-filter-title {
      color: #1f2e5e;
    }
    .projects-filter-icon {
      display: flex;
      width: 20px;
      height: 20px;
      justify-content: center;
      align-items: center;
      aspect-ratio: 1 / 1;
      background: rgba(255, 255, 255, 0.6);
      border-radius: 3px;
    }
    .projects-filter.active {
      background: transparent;
      border-color: transparent;
    }
    .projects-filter.active .projects-filter-title {
      color: #123E8D;
      font-weight: 700;
    }
    .projects-filter--product { cursor: pointer; text-decoration: none !important; }
    .projects-filter--product:hover,
    .projects-filter--product:hover .projects-filter-title { background: transparent !important; border-color: transparent !important; text-decoration: none !important; }
    @media (max-width: 640px) { .projects-my-products { display: none !important; } }
    .projects-main {
      min-width: 0;
      overflow: auto;
      text-align: left;
    }
    #window-projects .clients-main,
    #window-clients .clients-main {
      flex: 1 1 auto;
      min-width: 0;
      min-height: 0;
      overflow: auto;
      text-align: left;
    }
    #window-projects .clients-main {
      padding: 16px;
      background: #fff;
    }
    #window-clients .clients-main {
      padding: 16px;
      background: #6375d6 url('Assets/Control Panel 1.png') no-repeat right bottom;
    }
    .clients-hero {
      margin-bottom: 12px;
    }
    .clients-hero-image {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 16px;
    }
    #window-contacts {
      width: 50vw;
      height: 50vh;
      min-width: 280px;
      min-height: 280px;
    }
    #window-contacts .xp-content {
      background: #000;
      padding: 16px;
      font-family: "Courier New", monospace;
      overflow: hidden;
    }
    .contacts-hero {
      margin-bottom: 12px;
    }
    .contacts-hero img {
      width: 100%;
      display: block;
      border-radius: 16px;
    }
    #window-contacts .contacts-title {
      color: #fff;
      font-family: "Courier New", monospace;
      font-size: 20px;
      font-style: normal;
      font-weight: 700;
      line-height: 1.2;
      background: #000;
      display: inline-block;
      padding: 6px 8px;
      border-radius: 2px;
    }
    #window-contacts .xp-content p,
    #window-contacts .xp-content a {
      color: #3dff7a;
      font-weight: 700;
    }
    .contacts-terminal-intro,
    .contacts-terminal-intro .intro-line,
    .contacts-terminal-intro .intro-spinner {
      color: #3dff7a;
      font-weight: 700;
    }
    .contacts-terminal {
      margin-top: 12px;
    }
    .contacts-terminal-intro {
      margin-bottom: 12px;
      color: #fff;
    }
    .contacts-terminal-intro .intro-line {
      min-height: 16px;
    }
    .contacts-terminal-intro .intro-spinner {
      margin-top: 6px;
      min-height: 16px;
      opacity: 0;
      animation: none;
    }
    .contacts-content-block {
      display: none;
    }
    .contacts-content-block.is-visible {
      display: block;
    }
    .contacts-terminal-line {
      color: #fff;
      margin-bottom: 6px;
    }
    .contacts-terminal-input {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      color: #fff;
    }
    .contacts-terminal-input .terminal-input-text {
      min-width: 20px;
      white-space: pre;
    }
    .terminal-cursor {
      width: 8px;
      height: 16px;
      background: #fff;
      display: inline-block;
      animation: terminal-blink 1s steps(1) infinite;
    }
    .contacts-terminal-status {
      color: #fff;
      margin-top: 6px;
      min-height: 16px;
    }
    .contacts-connect-btn {
      display: none;
      width: 100%;
      margin-top: 16px;
      min-height: 32px;
      font-size: 13px;
    }
    .contacts-content-block.is-visible .contacts-connect-btn {
      display: none;
    }
    @keyframes terminal-blink {
      50% { opacity: 0; }
    }
    @keyframes terminal-spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    .xp-window[data-window-id^="project"] .xp-content {
      padding: 16px;
    }
    .xp-window[data-window-id^="project"] {
      height: 650px;
      max-height: calc(100vh - 40px);
      resize: both;
      background: #fff;
    }
    #window-clients {
      height: 650px;
      max-height: calc(100vh - 40px);
      resize: both;
    }
    .project-grid {
      margin-top: 8px;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 10px;
    }
    .project-folder {
      border: none;
      background: none;
      cursor: pointer;
      text-align: center; /* по центру */
      font-size: 11px;
      display: flex;
      flex-direction: column;
      align-items: center; /* по центру */
      gap: 4px;
      color: #000;
    }
    .project-folder-thumb {
      position: relative;
      width: 100%;
      aspect-ratio: 4 / 3;
      border-radius: 6px;
      overflow: hidden;
      background: #e9edf7;
      border: 1px solid #c6cbd8;
    }
    .project-folder-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .project-folder-thumb .project-folder-badge {
      position: absolute;
      left: 8px;
      bottom: 8px;
      width: 15%;
      min-width: 19px;
      max-width: 31px;
      height: auto;
      aspect-ratio: 1 / 1;
      object-fit: contain;
    }
    .project-folder-label {
      font-size: 11px;
    }

    /* Десктоп: окно «Проекты» открывается широко, сетка карточек — не менее 6 в ряд */
    @media (min-width: 1025px) {
      #window-projects {
        width: min(1280px, 94vw);
        height: min(860px, calc(100vh - 40px));
      }
      #window-projects .project-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
      }
      /* кейс-окна (project1..22) открываются в широком соотношении ~1.9:1 */
      .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) {
        width: min(1560px, 92vw);
        height: min(820px, calc(100vh - 40px));
      }
    }

    .project-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 10px;
      font-size: 11px;
    }
    .project-meta strong {
      color: #000;
      font-size: 12px;
      font-weight: 600;
    }
    .project-hero {
      margin-bottom: 12px;
    }
    .project-hero-image {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 4 / 3;
      border-radius: 16px;
      object-fit: cover;
    }
    .project-image-row {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 12px;
    }
    .project-image-row img {
      width: 100%;
      height: auto;
      aspect-ratio: 4 / 3;
      border-radius: 12px;
      object-fit: cover;
      display: block;
    }
    .project-block {
      margin-bottom: 20px;
    }
    ul.project-metrics {
      list-style: none;
      margin: 12px 0 4px !important;
      padding: 10px 12px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px 16px;
      background: linear-gradient(#f4f8ff, #e8f0fd);
      border: 1px solid #bcd2f0;
      border-radius: 8px;
      font-size: 11px;
      line-height: 1.35;
    }
    ul.project-metrics li {
      list-style: none;
      margin: 0;
      padding-left: 14px;
      position: relative;
    }
    ul.project-metrics li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 6px;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #2a6fd6;
    }
    ul.project-metrics li strong {
      color: #1a4d99;
      font-weight: 700;
      white-space: nowrap;
    }
    @media (max-width: 640px) {
      ul.project-metrics {
        grid-template-columns: 1fr;
      }
    }
    .xp-window[data-window-id^="project"] .project-block > p + p,
    .xp-window[data-window-id^="project"] .project-block > .xp-section-sub + p,
    .xp-window[data-window-id^="project"] .project-block > p + div:not(.xp-section-sub):not(.project-image-wrap):not(.project-image-row),
    .xp-window[data-window-id^="project"] .project-block > div:not(.xp-section-sub):not(.project-image-wrap):not(.project-image-row) + p,
    .xp-window[data-window-id^="project"] .project-block > div:not(.xp-section-sub):not(.project-image-wrap):not(.project-image-row) + div:not(.xp-section-sub):not(.project-image-wrap):not(.project-image-row) {
      margin-top: 12px;
    }
    .xp-window[data-window-id^="project"] .xp-section-sub {
      font-size: 14px;
      line-height: 1.25;
      margin-top: 12px;
      margin-bottom: 6px;
    }
    .project-image-wrap {
      margin-top: 12px;
      margin-bottom: 12px;
    }
    .project-image-wrap img {
      max-width: 100%;
      border-radius: 4px;
      border: 1px solid #b0b0b0;
      display:block;
    }
    .project-image-caption {
      font-size: 10px;
      color: #555;
      margin-top: 2px;
    }
    .project-image-wrap img,
    .project-image-row img {
      cursor: zoom-in;
    }

    /* ===== Aston-style редизайн страниц проектов (project1..22) ===== */
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .xp-content {
      --ad-bg:#ffffff; --ad-surface:#f3f5f8; --ad-ink:#14171a; --ad-muted:#646c78;
      --ad-line:#e6e9ee; --ad-green:#00c04b; --ad-green-ink:#0a7d38; --ad-dark:#16191d;
      background: var(--ad-bg);
      color: var(--ad-ink);
      font-family: 'Inter','Segoe UI','Trebuchet MS',system-ui,-apple-system,sans-serif;
      font-size: 13.5px;
      line-height: 1.55;
      letter-spacing: -0.005em;
      padding: 26px 30px 48px !important;
      display: flex;
      flex-direction: column;
    }
    /* бейджи — под заглавное изображение: заголовок → hero → бейджи → блоки */
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .xp-section-title { order: -3; }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-hero { order: -2; }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-meta { order: -1; margin-top: 4px; }
    /* типографика */
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .xp-section-title {
      font-family: inherit; font-size: 30px; font-weight: 800;
      letter-spacing: -0.02em; line-height: 1.08; color: var(--ad-ink); margin-bottom: 16px;
    }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .xp-section-title .case-sub {
      font-weight: 500; font-size: 0.6em; color: var(--ad-muted); letter-spacing: -0.01em; margin-left: 6px;
    }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .xp-section-sub {
      font-family: inherit; font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
      line-height: 1.25; color: var(--ad-ink); margin: 0 0 12px; padding-left: 14px; position: relative;
    }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .xp-section-sub::before {
      content: ""; position: absolute; left: 0; top: 0.18em; bottom: 0.18em;
      width: 4px; border-radius: 3px; background: var(--ad-green);
    }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-block p { color: #2b313a; }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-block strong { color: var(--ad-ink); font-weight: 700; }

    /* бейджи (project-meta) + бренд-логотип */
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-meta {
      gap: 8px; align-items: center; margin-bottom: 20px; font-size: 12px;
    }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-meta > div {
      display: inline-flex; gap: 7px; align-items: baseline;
      background: var(--ad-surface); border: 1px solid var(--ad-line);
      border-radius: 999px; padding: 8px 15px; color: var(--ad-ink); font-weight: 600; line-height: 1.2;
    }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-meta > div strong {
      font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
      color: var(--ad-muted);
    }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-brand {
      display: inline-flex; align-items: center; height: 40px; padding: 6px 18px;
      background: #fff; border: 1px solid var(--ad-line); border-radius: 999px; margin-right: 2px;
    }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-brand img {
      height: 22px; width: auto; display: block; object-fit: contain;
    }

    /* hero */
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-hero-image { border-radius: 20px; }

    /* карточки контента + эффект «стопки» (sticky) */
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-block {
      background: #fff; border: 1px solid var(--ad-line); border-radius: 22px;
      padding: 30px 32px; margin-bottom: 22px;
      box-shadow: none;
    }
    /* картинки — отдельными блоками, не внутри текстовых карточек: больше воздуха */
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-hero { margin: 0 0 24px; }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-image-wrap { margin: 24px 0; }
    /* нижняя галерея — горизонтальный слайдер (листается колесом мыши, см. initImageSliders) */
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-image-row {
      margin: 24px 0; gap: 14px;
      display: flex; flex-wrap: nowrap; grid-template-columns: none;
      overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity;
      scroll-behavior: smooth; padding-bottom: 8px; -webkit-overflow-scrolling: touch;
      overscroll-behavior-x: contain;
    }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-image-row img {
      flex: 0 0 auto; width: 340px; max-width: 78%; aspect-ratio: 4 / 3; scroll-snap-align: start;
    }
    /* слот под иконку в блоке (иконку добавит пользователь) */
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .block-icon {
      width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px;
      background: var(--ad-surface); border: 1px solid var(--ad-line);
      display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
      background-size: 24px 24px; background-position: center; background-repeat: no-repeat;
    }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .block-icon img { width: 24px; height: 24px; object-fit: contain; }

    /* полноэкранная страница project.html: те же стили кейса, без оконной обводки */
    body.project-page-body { background: #eef1f5; margin: 0; }
    body.project-page-body .xp-window[data-window-id="projectpage"] {
      position: static !important; display: block !important;
      width: 100% !important; max-width: 1100px !important; height: auto !important;
      min-height: 0 !important; max-height: none !important; margin: 0 auto !important;
      border: none !important; border-radius: 0 !important; box-shadow: none !important;
      resize: none !important; overflow: visible !important; z-index: auto !important;
    }
    /* Десктоп: белая карточка контента со скруглением 24px сверху и снизу,
       симметричный внутренний отступ (низ = верх) */
    @media (min-width: 641px) {
      body.project-page-body .xp-window[data-window-id="projectpage"] {
        border-radius: 24px !important; overflow: hidden !important;
      }
      body.project-page-body .xp-window[data-window-id="projectpage"] .xp-content {
        padding: 26px 30px !important;
      }
    }
    body.project-page-body .xp-window[data-window-id="projectpage"] .xp-content {
      overflow: visible !important;
    }
    /* блок-обёртка результатов не рисуем как карточку — стопкой будут сами карточки результатов */
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-block:has(ul.result-cards) {
      background: transparent; border: none; box-shadow: none; padding: 0; position: static;
    }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-block:has(ul.result-cards) .xp-section-sub { padding-left: 14px; }
    /* картинки внутри карточек — мягче */
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-image-wrap img { border: none; border-radius: 14px; }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-image-row img,
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-image-wrap img { border-radius: 14px; }

    /* метрики — в палитре */
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) ul.project-metrics {
      background: var(--ad-surface); border-color: var(--ad-line); border-radius: 14px;
    }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) ul.project-metrics li::before { background: var(--ad-green); }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) ul.project-metrics li strong { color: var(--ad-green-ink); }

    /* результаты — динамичные тёмные карточки 01,02… складываются в стопку */
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) ul.result-cards {
      list-style: none; margin: 14px 0 4px !important; padding: 0;
      counter-reset: res; display: flex; flex-direction: column; gap: 12px;
    }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) ul.result-cards li {
      counter-increment: res; position: relative;
      background: var(--ad-dark); color: #eef0f2; border-radius: 18px;
      padding: 20px 22px 20px 66px; line-height: 1.4; font-size: 14px;
      box-shadow: 0 20px 40px -22px rgba(0,0,0,0.55);
    }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) ul.result-cards li::before {
      content: counter(res, decimal-leading-zero);
      position: absolute; left: 22px; top: 18px;
      font-size: 22px; font-weight: 800; color: var(--ad-green); letter-spacing: -0.02em;
    }
    .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) ul.result-cards li strong { color: #fff; }

    /* мобилка: отступы 8px вкруговую + компактные бейджи */
    @media (max-width: 640px) {
      .xp-window[data-window-id^="project"]:not([data-window-id="projects"]):not([data-case="modern"]) .xp-content {
        padding: 8px !important;
      }
      .xp-window[data-window-id^="project"]:not([data-window-id="projects"]):not([data-case="modern"]) .project-block {
        padding: 16px 14px; border-radius: 16px;
      }
      .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-meta {
        gap: 6px; margin-bottom: 14px;
      }
      .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-meta > div {
        padding: 5px 10px; font-size: 11px; gap: 5px;
      }
      .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-meta > div strong {
        font-size: 9px;
      }
      .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-brand {
        height: 30px; padding: 4px 12px;
      }
      .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) .project-brand img {
        height: 16px;
      }
      .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) ul.result-cards li {
        padding: 16px 16px 16px 56px; font-size: 13px;
      }
      .xp-window[data-window-id^="project"]:not([data-window-id="projects"]) ul.result-cards li::before {
        left: 16px; top: 15px; font-size: 19px;
      }
    }

    /* ===== WordPad-подобная панель инструментов + линейка в окнах кейсов (только вёрстка) ===== */
    .wp-chrome {
      flex: 0 0 auto;
      background: #efebd8;
      border-bottom: 1px solid #9a9684;
      font-family: Tahoma, 'Segoe UI', sans-serif;
      color: #000;
      user-select: none;
    }
    .wp-menubar { display: flex; gap: 2px; padding: 3px 6px; font-size: 11px; }
    .wp-menubar span { padding: 2px 8px; border-radius: 3px; cursor: default; opacity: 0.65; }
    .wp-menubar span:hover { background: #cfe0f5; opacity: 1; }
    .wp-toolrow { display: flex; align-items: center; gap: 3px; padding: 3px 6px; border-top: 1px solid #dedad0; flex-wrap: wrap; }
    .wp-tbtn {
      width: 23px; height: 22px; flex: 0 0 23px; padding: 0;
      border: 1px solid transparent; border-radius: 3px; background: transparent;
      display: inline-flex; align-items: center; justify-content: center; cursor: default;
      opacity: 0.65;
    }
    .wp-tbtn svg { width: 16px; height: 16px; display: block; }
    .wp-tbtn img { width: 18px; height: 18px; display: block; object-fit: contain; image-rendering: auto; }
    .wp-tbtn:hover { border-color: #9db8da; background: #dce8f8; opacity: 1; }
    .wp-sep { width: 1px; height: 18px; background: #b6b2a3; box-shadow: 1px 0 0 #fff; margin: 0 3px; flex: 0 0 1px; }
    .wp-field {
      display: inline-flex; align-items: center; height: 21px; padding: 0 5px;
      background: #fff; border: 1px solid #7f9db9; border-radius: 2px; font-size: 11px;
      justify-content: space-between; gap: 6px; cursor: default; white-space: nowrap; overflow: hidden;
      opacity: 0.65;
    }
    .wp-field.wp-font { width: 120px; }
    .wp-field.wp-size { width: 44px; }
    .wp-field.wp-script { width: 118px; }
    .wp-caret { width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid #333; flex: 0 0 auto; }
    .wp-fbtn {
      min-width: 23px; height: 22px; padding: 0 4px;
      border: 1px solid transparent; border-radius: 3px; background: transparent;
      font-size: 12px; line-height: 1; color: #000;
      display: inline-flex; align-items: center; justify-content: center; cursor: default;
      opacity: 0.65;
    }
    .wp-fbtn:hover { border-color: #9db8da; background: #dce8f8; opacity: 1; }
    .wp-fbtn.b { font-weight: 700; }
    .wp-fbtn.i { font-style: italic; }
    .wp-fbtn.u { text-decoration: underline; }
    .wp-fbtn svg { width: 15px; height: 15px; display: block; }
    /* линейка */
    .wp-ruler { position: relative; height: 22px; background: #fff; border-top: 1px solid #d9d6cb; }
    .wp-ruler-pad { position: absolute; top: 0; bottom: 0; width: 24px; background: #d7d3c7; }
    .wp-ruler-pad.l { left: 0; box-shadow: inset -1px 0 0 #b6b2a3; }
    .wp-ruler-pad.r { right: 0; box-shadow: inset 1px 0 0 #b6b2a3; }
    .wp-ruler-track { position: absolute; top: 0; bottom: 0; left: 24px; right: 24px; }
    .wp-tick { position: absolute; top: 7px; transform: translateX(-50%); font-size: 8px; color: #6a6a6a; line-height: 1; }
    .wp-tick::before { content: ""; position: absolute; left: 50%; top: 9px; width: 1px; height: 4px; background: #9a9a9a; }
    .wp-tick.minor::before { height: 2px; top: 11px; }
    /* маркеры боковых полей (неактивные) */
    .wp-margin { position: absolute; width: 0; height: 0; pointer-events: none; }
    .wp-margin-top { top: -1px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #5a6472; }
    .wp-margin-bot { bottom: 1px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 6px solid #5a6472; }
    .wp-margin-left-top { left: 24px; transform: translateX(-50%); }
    .wp-margin-left-bot { left: 24px; transform: translateX(-50%); }
    .wp-margin-right-bot { right: 24px; transform: translateX(50%); }
    .wp-margin-box { position: absolute; bottom: -1px; width: 9px; height: 4px; background: #5a6472; pointer-events: none; }
    .wp-margin-box.l { left: 24px; transform: translateX(-50%); }
    .wp-margin-box.r { right: 24px; transform: translateX(50%); }

    /* на полноэкранной странице чром тоже показываем, скруглим верх */
    body.project-page-body .wp-chrome { border-radius: 0; }
    @media (max-width: 640px) {
      .wp-menubar { font-size: 10px; padding: 2px 4px; }
      .wp-toolrow { padding: 2px 4px; gap: 2px; }
      .wp-field.wp-font, .wp-field.wp-script { width: 92px; }
    }

    /* ===== Everscale-style минимал-эдиториал — только страница Rogii (project1) ===== */
    /* Белые уголки: собственное скругление титлбара (12px) не совпадало с
       внутренним радиусом окна (12−2px border = 10px), в зазоре проглядывал
       фон. Обнуляем радиус титлбара — окно само обрежет его через overflow:hidden. */
    .xp-window[data-case="modern"] .xp-titlebar { border-radius: 0 !important; }
    .xp-window[data-case="modern"] .xp-content {
      --eb-ink:#1a1a1a; --eb-muted:#6f6f6f; --eb-line:#e7e7e7; --eb-accent:#0a63ff;
      background:#fff !important;
      color:var(--eb-ink);
      font-family:'Inter','Helvetica Neue',Arial,system-ui,sans-serif;
      font-size:17px; line-height:1.6; letter-spacing:-0.002em;
      align-items:center;
      padding:52px 24px 96px !important;
    }
    .xp-window[data-case="modern"] .xp-content > * { width:100%; max-width:900px; }
    /* заголовок */
    .xp-window[data-case="modern"] .xp-content .xp-section-title {
      font-size:44px !important; font-weight:800 !important; line-height:1.03 !important;
      letter-spacing:-0.03em !important; color:var(--eb-ink); margin-bottom:0 !important;
      text-align:left !important;
    }
    .xp-window[data-case="modern"] .xp-content .xp-section-title .case-sub {
      display:block; font-size:12px; font-weight:400; color:var(--eb-muted); margin-top:8px; letter-spacing:0;
      text-align:left;
    }
    /* секции — без карточек, разделяются линией и воздухом */
    .xp-window[data-case="modern"] .xp-content .project-block {
      background:none !important; border:none !important; box-shadow:none !important;
      border-radius:0 !important; padding:44px 0 0 !important; margin:44px 0 0 !important;
      border-top:1px solid var(--eb-line);
    }
    .xp-window[data-case="modern"] .xp-content .xp-section-sub {
      font-size:28px !important; font-weight:800 !important; text-transform:none; letter-spacing:-0.02em;
      color:#111 !important; padding-left:0 !important; margin:0 0 18px !important; line-height:1.2 !important;
    }
    .xp-window[data-case="modern"] .xp-content .xp-section-sub::before { display:none !important; }
    .xp-window[data-case="modern"] .xp-content .project-block p {
      font-size:17px !important; line-height:1.62; color:#2b2b2b !important; margin:0 0 18px !important;
    }
    .xp-window[data-case="modern"] .xp-content .project-block strong { color:var(--eb-ink) !important; font-weight:700; }
    .xp-window[data-case="modern"] .xp-content .project-block ul:not(.project-metrics):not(.result-cards) { margin:10px 0 0 18px; }
    .xp-window[data-case="modern"] .xp-content .project-block ul:not(.project-metrics):not(.result-cards) li { margin-bottom:7px; font-size:17px; }
    /* метаданные — логотип сверху, факты простым текстом */
    .xp-window[data-case="modern"] .xp-content .project-meta { display:block !important; margin:26px 0 0 !important; }
    .xp-window[data-case="modern"] .xp-content .project-brand {
      display:inline-flex !important; background:none !important; border:none !important;
      padding:0 !important; height:auto !important; margin:0 0 16px !important;
    }
    .xp-window[data-case="modern"] .xp-content .project-brand img { height:30px !important; }
    .xp-window[data-case="modern"] .xp-content .project-meta:not(.eb-about) > div {
      display:block !important; background:none !important; border:none !important; border-radius:0 !important;
      padding:0 !important; margin:0 0 5px !important; font-size:15px !important; color:var(--eb-muted) !important; font-weight:400 !important;
    }
    /* метрики — карточки: светло-серый фон, число сверху, подпись снизу */
    .xp-window[data-case="modern"] .xp-content ul.project-metrics {
      background:none !important; border:none !important; border-radius:0 !important;
      display:grid !important; grid-template-columns:repeat(12, 1fr); gap:16px; padding:0 !important; margin:30px 0 0 !important;
      align-items:stretch;
    }
    .xp-window[data-case="modern"] .xp-content ul.project-metrics li:nth-child(-n+4) { grid-column:span 3; }
    .xp-window[data-case="modern"] .xp-content ul.project-metrics li:nth-child(n+5) { grid-column:span 4; }
    .xp-window[data-case="modern"] .xp-content ul.project-metrics li {
      list-style:none; min-width:0;
      background:#f3f3f4 !important; border:none !important; border-radius:12px;
      padding:16px; min-height:152px;
      display:flex; flex-direction:column; justify-content:space-between;
      font-size:16px; color:#8a8a8a; line-height:1.3;
    }
    .xp-window[data-case="modern"] .xp-content ul.project-metrics li::before { display:none !important; }
    .xp-window[data-case="modern"] .xp-content ul.project-metrics li strong {
      display:block; font-size:42px !important; font-weight:800 !important; letter-spacing:-0.03em;
      color:#111 !important; margin:0; line-height:1.05;
      white-space:normal !important; overflow-wrap:anywhere;
    }
    /* результаты — чистый список с акцентными номерами, без тёмных карточек */
    .xp-window[data-case="modern"] .xp-content ul.result-cards { gap:0 !important; }
    .xp-window[data-case="modern"] .xp-content ul.result-cards li {
      background:none !important; color:var(--eb-ink) !important; box-shadow:none !important; border-radius:0 !important;
      border-top:1px solid var(--eb-line); padding:18px 0 18px 56px !important; font-size:18px !important;
    }
    .xp-window[data-case="modern"] .xp-content ul.result-cards li::before {
      color:var(--eb-accent) !important; font-size:16px !important; font-weight:700 !important; top:20px !important; left:0 !important;
    }
    .xp-window[data-case="modern"] .xp-content ul.result-cards li strong { color:var(--eb-ink) !important; }
    /* изображения — крупное скругление как в референсе */
    .xp-window[data-case="modern"] .xp-content .project-hero { margin:40px 0 0 !important; width:100% !important; overflow:hidden !important; border-radius:14px !important; flex:0 0 auto !important; }
    .xp-window[data-case="modern"] .xp-content .project-hero-image { width:100% !important; height:auto !important; object-fit:contain !important; border-radius:0 !important; display:block !important; aspect-ratio:unset !important; }
    .xp-window[data-case="modern"] .xp-content .project-image-wrap { margin:44px 0 0 !important; }
    .xp-window[data-case="modern"] .xp-content .project-image-wrap img { border-radius:14px !important; }
    .xp-window[data-case="modern"] .xp-content .project-image-caption { font-size:13px !important; color:var(--eb-muted) !important; margin-top:12px !important; }
    /* нижний слайдер: до краёв окна, без полосы прокрутки, фиксированные слайды (без мерцания), без snap */
    .xp-window[data-case="modern"] .xp-content .project-image-row {
      align-self:stretch; width:auto !important; max-width:none !important;
      margin:48px -24px 0 !important; padding:0 24px !important; gap:16px !important;
      scroll-snap-type:none !important; scrollbar-width:none; overflow-x:auto; overflow-y:hidden;
      /* overflow!=visible makes the flex auto-min 0, so in the flex-column
         .xp-content the row collapses to height:0. flex-shrink:0 keeps it. */
      flex:0 0 auto !important;
    }
    .xp-window[data-case="modern"] .xp-content .project-image-row::-webkit-scrollbar { width:0 !important; height:0 !important; display:none !important; }
    .xp-window[data-case="modern"] .xp-content .project-image-row img {
      flex:0 0 auto !important; width:380px !important; max-width:82% !important; height:264px !important;
      aspect-ratio:auto !important; object-fit:cover !important; border-radius:14px !important; scroll-snap-align:none !important;
    }
    /* eb-peek: крупная картинка по центру, соседние выглядывают по краям окна */
    .xp-window[data-case="modern"] .xp-content .project-image-row.eb-peek { padding:0 !important; gap:16px !important; cursor:grab; }
    .xp-window[data-case="modern"] .xp-content .project-image-row.eb-peek::before,
    .xp-window[data-case="modern"] .xp-content .project-image-row.eb-peek::after { content:''; flex:0 0 11%; }
    .xp-window[data-case="modern"] .xp-content .project-image-row.eb-peek img {
      width:78% !important; max-width:78% !important; aspect-ratio:16/9 !important; height:auto !important; cursor:pointer;
    }
    @media (max-width: 640px) {
      .xp-window[data-case="modern"]:not([data-window-id="projects"]) .xp-content { padding:24px 8px 24px !important; font-size:14px; gap:18px !important; }
      .xp-window[data-case="modern"] .xp-content .xp-section-title { font-size:28px !important; }
      .xp-window[data-case="modern"] .xp-content .xp-section-sub { font-size:20px !important; }
      .xp-window[data-case="modern"] .xp-content .project-block p { font-size:14px !important; }
      .xp-window[data-case="modern"] .xp-content .project-block ul:not(.project-metrics):not(.result-cards) li { font-size:14px; }
      .xp-window[data-case="modern"] .xp-content .eb-pr-text p { font-size:14px !important; }
      .xp-window[data-case="modern"] .xp-content ul.project-metrics { grid-template-columns:1fr 1fr; gap:8px; }
      .xp-window[data-case="modern"] .xp-content ul.project-metrics li:nth-child(-n+4),
      .xp-window[data-case="modern"] .xp-content ul.project-metrics li:nth-child(n+5) { grid-column:span 1; }
      /* нечётное число карточек — последняя во всю ширину */
      .xp-window[data-case="modern"] .xp-content ul.project-metrics li:last-child:nth-child(odd) { grid-column:1 / -1; }
      .xp-window[data-case="modern"] .xp-content ul.project-metrics li strong { font-size:28px !important; }
    }

    /* ===== Everscale-блоки Rogii: «О продукте», проблема/решение, контакты ===== */
    /* О продукте — серая карточка */
    .xp-window[data-case="modern"] .xp-content .project-meta.eb-about { display:block !important; margin:16px 0 0 !important; }
    .xp-window[data-case="modern"] .xp-content .eb-about-h { font-size:30px; font-weight:800; letter-spacing:-0.02em; color:#111; margin:0 0 18px; }
    .xp-window[data-case="modern"] .xp-content .eb-about .eb-about-card {
      background:#f3f3f4 !important; border-radius:12px !important; padding:28px 32px !important;
      display:grid !important; grid-template-areas:"head links" "meta meta"; grid-template-columns:1fr auto; column-gap:16px;
    }
    .xp-window[data-case="modern"] .xp-content .eb-about-head { grid-area:head; display:flex; align-items:center; }
    .xp-window[data-case="modern"] .xp-content .eb-about-meta { grid-area:meta; margin-top:20px; }
    .xp-window[data-case="modern"] .xp-content .eb-about-links { grid-area:links; display:flex; gap:26px; align-self:center; }
    .xp-window[data-case="modern"] .xp-content .eb-about-brand { display:flex; align-items:center; gap:14px; }
    .xp-window[data-case="modern"] .xp-content .eb-about-logo { width:46px; height:46px; border-radius:12px; background:#fff; display:inline-flex; align-items:center; justify-content:center; overflow:hidden; flex:0 0 46px; }
    .xp-window[data-case="modern"] .xp-content .eb-about-logo img { width:100%; height:100%; object-fit:cover; }
    .xp-window[data-case="modern"] .xp-content .eb-about-name { font-size:24px; font-weight:700; letter-spacing:-0.02em; color:#111; }
    .xp-window[data-case="modern"] .xp-content .eb-about-links a { color:#0a63ff; font-size:17px; font-weight:500; text-decoration:none; white-space:nowrap; }
    .xp-window[data-case="modern"] .xp-content .eb-about-links a:hover { text-decoration:underline; }
    .xp-window[data-case="modern"] .xp-content .eb-arrow { font-size:0.85em; }
    .xp-window[data-case="modern"] .xp-content .eb-about-meta div { font-size:17px; font-weight:400; color:#555; margin-bottom:5px; }
    /* improvement-секция: крупный заголовок + проблема/решение/результат */
    .xp-window[data-case="modern"] .xp-content .project-block.eb-imp { border-top:none !important; padding-top:0 !important; margin-top:64px !important; }
    .xp-window[data-case="modern"] .xp-content .eb-imp-title { font-size:28px; font-weight:800; letter-spacing:-0.02em; line-height:1.2; color:#111; margin:0 0 4px; }
    .xp-window[data-case="modern"] .xp-content .eb-imp .eb-pr { margin-top:24px; }
    .xp-window[data-case="modern"] .xp-content .eb-imp .eb-pr-row:first-child { border-top:1px solid var(--eb-line) !important; padding-top:28px !important; }
    /* проблема/решение — две колонки с разделителями */
    .xp-window[data-case="modern"] .xp-content .eb-pr { margin-top:4px; }
    .xp-window[data-case="modern"] .xp-content .eb-pr-row { display:grid; grid-template-columns:210px 1fr; gap:28px; padding:28px 0; border-top:1px solid var(--eb-line); }
    .xp-window[data-case="modern"] .xp-content .eb-pr-row:first-child { border-top:none; padding-top:6px; }
    .xp-window[data-case="modern"] .xp-content .eb-pr-label { font-size:19px; font-weight:700; color:#111; letter-spacing:-0.01em; line-height:1.25; }
    .xp-window[data-case="modern"] .xp-content .eb-pr-text p { margin:0 0 12px !important; font-size:17px !important; line-height:1.62; color:#2b2b2b !important; }
    .xp-window[data-case="modern"] .xp-content .eb-pr-text p:last-child { margin-bottom:0 !important; }
    /* контакты — пилюля с фото */
    .xp-window[data-case="modern"] .xp-content .eb-contact { display:flex; align-items:center; justify-content:space-between; gap:24px; background:#ececed; border-radius:140px; padding:36px 36px 36px 56px; margin:72px 0 0; }
    .xp-window[data-case="modern"] .xp-content .eb-contact-title { font-size:30px; font-weight:800; letter-spacing:-0.02em; color:#111; margin-bottom:22px; }
    .xp-window[data-case="modern"] .xp-content .eb-contact-btn { display:inline-block; background:#1c1c1e; color:#fff !important; font-size:18px; font-weight:600; padding:15px 34px; border-radius:100px; text-decoration:none; }
    .xp-window[data-case="modern"] .xp-content .eb-contact-btn:hover { background:#333; }
    .xp-window[data-case="modern"] .xp-content .eb-contact-photo { flex:0 0 auto; width:190px; height:190px; border-radius:50%; overflow:hidden; background:#fff; }
    .xp-window[data-case="modern"] .xp-content .eb-contact-photo img,
    .xp-window[data-case="modern"] .xp-content .eb-contact-photo .eb-contact-video { width:100%; height:100%; object-fit:cover; display:block; }
    /* десктоп — горизонтальное видео (отзеркалено по горизонтали), мобилка — вертикальное */
    .xp-window[data-case="modern"] .xp-content .eb-contact-photo .eb-contact-video--desktop { transform: scaleX(-1); }
    .xp-window[data-case="modern"] .xp-content .eb-contact-photo .eb-contact-video--mobile { display:none; }
    @media (max-width: 640px) {
      .xp-window[data-case="modern"] .xp-content .eb-contact-photo .eb-contact-video--desktop { display:none; }
      .xp-window[data-case="modern"] .xp-content .eb-contact-photo .eb-contact-video--mobile { display:block; }
    }
    /* «О продукте» — серый фон и скругления как у карточек цифр (только фон и радиус) */
    .xp-window[data-case="modern"] .xp-content .eb-about .eb-about-card {
      background: #f3f3f4 !important;
      border-radius: 12px !important;
    }
    @media (max-width: 640px) {
      .xp-window[data-case="modern"] .xp-content .eb-pr-row { grid-template-columns:1fr; gap:10px; padding:22px 0; }
      .xp-window[data-case="modern"] .xp-content .eb-contact { flex-direction:column-reverse; text-align:center; border-radius:14px; padding:24px; gap:18px; }
      .xp-window[data-case="modern"] .xp-content .eb-contact-photo { width:120px; height:120px; }
      .xp-window[data-case="modern"] .xp-content .eb-about-h { font-size:24px; }
      .xp-window[data-case="modern"] .xp-content .eb-about .eb-about-card {
        display:flex !important; flex-direction:column; gap:0; padding:20px !important;
      }
      .xp-window[data-case="modern"] .xp-content .eb-about-links { margin-top:16px; align-self:flex-start; justify-content:flex-start; }
      /* мобилка: описание продукта и кнопки-ссылки — 15px */
      .xp-window[data-case="modern"] .xp-content .eb-about-meta div { font-size:15px; }
      .xp-window[data-case="modern"] .xp-content .eb-about-links a { font-size:15px; }
    }

    /* единые отступы между всеми блоками страницы */
    .xp-window[data-case="modern"] .xp-content { gap: 47px; }
    /* Хвостовой отступ последнего элемента блока обнуляем, чтобы визуальный зазор
       между секциями был всегда равен gap (иначе текст-блоки с margin-bottom у
       последнего <p> дают больший зазор, чем блоки, кончающиеся метриками). */
    .xp-window[data-case="modern"] .xp-content .project-block > *:last-child { margin-bottom: 0 !important; }
    .xp-window[data-case="modern"] .xp-content .project-block li:last-child { margin-bottom: 0 !important; }
    .xp-window[data-case="modern"] .xp-content > .project-hero,
    .xp-window[data-case="modern"] .xp-content > .project-meta,
    .xp-window[data-case="modern"] .xp-content > .project-block,
    .xp-window[data-case="modern"] .xp-content > .project-block.eb-imp,
    .xp-window[data-case="modern"] .xp-content > .project-image-wrap,
    .xp-window[data-case="modern"] .xp-content > .eb-contact {
      margin: 0 !important;
    }
    .xp-window[data-case="modern"] .xp-content > .project-block { padding-top: 0 !important; border-top: none !important; }
    .xp-window[data-case="modern"] .xp-content > .project-slider { position: relative; }
    .xp-window[data-case="modern"] .xp-content .project-slider > .project-image-row { margin: 0 !important; }

    /* ── Desktop (≥641px) ── */
    @media (min-width: 641px) {
      /* Peek slider → 2×2 gallery grid */
      .xp-window[data-case="modern"] .xp-content > .project-slider.project-slider--peek {
        margin: 0 !important; max-width: 900px !important; width: 100% !important;
        align-self: center; overflow: visible;
      }
      .xp-window[data-case="modern"] .xp-content .project-image-row.eb-peek {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
        overflow: visible !important;
        height: auto !important;
        flex: none !important;
        width: 100% !important;
        padding: 0 !important;
        cursor: default !important;
      }
      .xp-window[data-case="modern"] .xp-content .project-image-row.eb-peek::before,
      .xp-window[data-case="modern"] .xp-content .project-image-row.eb-peek::after { display: none !important; }
      .xp-window[data-case="modern"] .xp-content .project-image-row.eb-peek img {
        width: 100% !important; max-width: 100% !important;
        height: auto !important; aspect-ratio: 16/9 !important;
        border-radius: 16px !important; cursor: pointer !important;
      }

      /* Regular (non-peek) slider → edge-to-edge horizontal scroll */
      .xp-window[data-case="modern"] .xp-content > .project-slider:not(.project-slider--peek) {
        margin: 0 -24px !important; max-width: none !important;
        width: auto !important; align-self: stretch; overflow: visible;
      }
      .xp-window[data-case="modern"] .xp-content .project-slider:not(.project-slider--peek) > .project-image-row {
        padding: 0 !important;
      }

      .xp-window[data-case="modern"] .xp-content .slider-arrow { display: none !important; }
    }

    /* ── Mobile (≤640px): keep horizontal peek-slider ── */
    @media (max-width: 640px) {
      .xp-window[data-case="modern"] .xp-content > .project-slider {
        margin: 0 !important; max-width: 100% !important;
        width: 100% !important; align-self: stretch; overflow: visible;
      }
      .xp-window[data-case="modern"] .xp-content .project-slider > .project-image-row {
        padding-left: 0 !important; gap: 8px !important;
      }
      .xp-window[data-case="modern"] .xp-content .project-image-row.eb-peek { gap: 8px !important; }
      .xp-window[data-case="modern"] .xp-content .project-image-row.eb-peek::before { display: none !important; }
      .xp-window[data-case="modern"] .xp-content .slider-arrow { display: none; }
      /* прочие заголовки */
      .xp-window[data-case="modern"] .xp-content .eb-imp-title { font-size:20px !important; }
      .xp-window[data-case="modern"] .xp-content .eb-about-h { font-size:20px !important; }
      .xp-window[data-case="modern"] .xp-content .eb-contact-title { font-size:20px !important; }
      /* тело: 14px — override десктопного правила, идущего позже в файле */
      .xp-window[data-case="modern"] .xp-content .eb-pr-text p { font-size:14px !important; }
    }
    /* Внутри группы полноширинных картинок (3 подряд) — отступ 24px вместо общих 64px */
    .xp-window[data-case="modern"] .xp-content > .project-image-wrap + .project-image-wrap {
      margin-top: -40px !important;
    }
    @media (max-width: 640px) {
      .xp-window[data-case="modern"] .xp-content > .project-image-wrap + .project-image-wrap {
        margin-top: -12px !important;
      }
    }
    /* Отступ от текстового блока до первой картинки группы — вдвое меньше (32px) */
    .xp-window[data-case="modern"] .xp-content > .project-block + .project-image-wrap {
      margin-top: -23px !important;
    }
    /* Заголовок страницы → заглавная картинка */
    .xp-window[data-case="modern"] .xp-content > .project-hero {
      margin-top: -30px !important;
    }
    /* Заглавная картинка → блок «О продукте» */
    .xp-window[data-case="modern"] .xp-content > .project-meta.eb-about {
      margin-top: -38px !important;
    }
    /* Мобилка: общий gap=24px, поэтому десктопные отрицательные отступы (заточены
       под gap=64px) наезжают на контент. Пересчитываем под мобильный gap. */
    @media (max-width: 640px) {
      .xp-window[data-case="modern"] .xp-content > .project-hero { margin-top: 0 !important; }
      .xp-window[data-case="modern"] .xp-content > .project-meta.eb-about { margin-top: -9px !important; }
      .xp-window[data-case="modern"] .xp-content > .project-block + .project-image-wrap { margin-top: -12px !important; }
    }

    /* LIGHTBOX */
    .lightbox {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 9999;
    }
    .lightbox.active {
      display: flex;
    }

    /* STANDALONE PROJECT PAGE */
    .project-page-html {
      height: auto;
      min-height: 100%;
      overflow: auto;
    }
    .project-page-body {
      min-height: 100%;
      height: auto;
      overflow: auto;
      background: #ffffff;
      color: #111;
      user-select: text;
    }
    .project-page-body * {
      user-select: text;
    }
    .project-page-content {
      width: min(920px, calc(100vw - 32px));
      margin: 0 auto;
      padding: 32px 0;
    }
    @media (max-width: 640px) {
      .project-page-content { width: 100%; margin: 0; padding: 0; }
    }
    .project-page-content .project-hero-image {
      border-radius: 8px;
    }
    .project-page-message {
      padding: 24px;
      font-size: 14px;
      line-height: 1.45;
    }
    .lightbox.hide-close .lightbox-close {
      opacity: 0;
      pointer-events: none;
    }
    .lightbox-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.55);
    }
    .lightbox-panel {
      position: relative;
      z-index: 1;
      width: min(900px, 92vw);
      max-height: 90vh;
      background: transparent;
      border-radius: 12px;
      padding: 16px 40px 12px;
      box-shadow: none;
      color: #f2f2f2;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }
    .lightbox-media {
      display: flex;
      align-items: center;
      justify-content: center;
      max-height: 72vh;
      width: 100%;
    }
    .lightbox-media-inner {
      position: relative;
      display: inline-flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 12px;
      max-width: 100%;
      max-height: 72vh;
      touch-action: none;
    }
    .lightbox-media img {
      max-width: 100%;
      max-height: 72vh;
      object-fit: contain;
      border-radius: 8px;
      background: #1b1b1b;
      transform-origin: center center;
    }
    .lightbox-caption {
      font-size: 12px;
      color: #d0d0d0;
      text-align: center;
      min-height: 16px;
    }
    .lightbox-caption.is-hidden {
      display: none;
    }
    .lightbox-controls {
      display: flex;
      gap: 10px;
      justify-content: center;
      width: 100%;
    }
    .lightbox-close {
      position: absolute;
      top: 0;
      left: 100%;
      margin-left: 12px;
      width: 36px;
      height: 36px;
      border-radius: 6px;
      border: none;
      background: rgba(255,255,255,0.12);
      color: #fff;
      font-size: 22px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    @media (max-width: 1024px) {
      .xp-window {
        position: fixed;
        top: 0 !important;
        right: 0;
        bottom: var(--mobile-window-bottom-offset);
        left: 0 !important;
        width: auto;
        max-width: none;
        height: calc(100dvh - var(--mobile-window-bottom-offset));
        max-height: calc(100dvh - var(--mobile-window-bottom-offset));
        min-height: 0;
        margin: 0;
        border-radius: 12px 12px 0 0;
        resize: none;
        overflow: hidden;
        box-shadow: -2px 0 1px 0 rgba(0, 0, 0, 0.50), 5px 5px 5px 0 #16ACF0 inset, -2px -4px 15px 0 rgba(0, 0, 0, 0.25) inset;
      }
      /* Modern case на мобилке — чистый белый холст: titlebar остаётся (закрытие),
         декоративный тулбар Word и статусбар убираем */
      .xp-window[data-case="modern"] {
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        overflow: auto !important;
      }
      .xp-window[data-case="modern"] .wp-chrome,
      .xp-window[data-case="modern"] .xp-statusbar { display: none !important; }
      #window-about,
      #window-projects,
      #window-clients,
      .xp-window[data-window-id^="project"],
      #window-contacts,
      #window-showreel,
      #window-game {
        width: auto;
        max-width: none;
        height: calc(100dvh - var(--mobile-window-bottom-offset));
        max-height: calc(100dvh - var(--mobile-window-bottom-offset));
        min-height: 0;
      }
      .xp-window .xp-titlebar {
        cursor: default;
        position: sticky;
        top: 0;
        z-index: 3;
        padding: 0 4px 0 6px;
        flex-shrink: 0;
        overflow: visible;
      }
      .xp-window .xp-title {
        min-width: 0;
      }
      .xp-window .xp-title span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .xp-window .xp-controls {
        flex-shrink: 0;
      }
      .xp-content {
        width: 100%;
        box-sizing: border-box;
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
      }
      .xp-statusbar {
        display: none;
      }

      #window-about {
        display: flex;
        flex-direction: column;
      }
      .ie-menubar {
        display: none;
      }
      #window-about .ie-shell {
        min-height: 0;
        height: 100%;
        overflow: hidden;
      }
      #window-about .ie-ribbon,
      #window-about .ie-address,
      #window-about .ie-tabs {
        position: relative;
        top: auto;
        z-index: auto;
        flex-shrink: 0;
      }
      #window-about .ie-address {
        border-radius: 0;
      }
      #window-about .ie-content {
        flex: 1 1 auto;
        min-height: 0;
        border: none;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
      #window-about .ie-tab-panel.active,
      #window-about .wiki-page {
        min-height: 0;
      }

      #window-projects,
      #window-clients,
      .xp-window[data-window-id^="project"] {
        box-shadow: -2px 0 1px 0 rgba(0, 0, 0, 0.50), -2px -4px 15px 0 rgba(0, 0, 0, 0.25) inset;
      }
      #window-projects .projects-layout,
      #window-clients .projects-layout {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        gap: 0;
        background: #fff;
        overflow: hidden;
      }
      #window-projects .projects-nav,
      #window-clients .projects-nav {
        width: 100%;
        height: 36px;
        min-height: 36px;
        flex: 0 0 36px;
        padding: 0 10px;
        flex-direction: row;
        align-items: center;
        align-self: stretch;
        overflow: hidden;
        border-right: none;
        border-top: 1px solid #c2b9a9;
        white-space: nowrap;
        background: #efebd8;
      }
      #window-projects .projects-nav::before,
      #window-clients .projects-nav::before {
        display: none;
      }
      #window-projects .projects-filter-widget,
      #window-clients .projects-filter-widget {
        width: 100%;
        height: 100%;
        min-height: 0;
        flex-direction: row;
        align-items: center;
        gap: 8px;
      }
      #window-projects .projects-filter-header,
      #window-clients .projects-filter-header {
        display: none;
      }
      #window-projects .projects-filter-group,
      #window-clients .projects-filter-group {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 0;
        border: none;
        background: #efebd8;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }
      #window-projects .projects-filter-group::-webkit-scrollbar,
      #window-clients .projects-filter-group::-webkit-scrollbar {
        width: 0;
        height: 0;
      }
      #window-projects .projects-filter-group.is-interacting,
      #window-clients .projects-filter-group.is-interacting {
        scrollbar-width: thin;
      }
      #window-projects .projects-filter-group.is-interacting::-webkit-scrollbar,
      #window-clients .projects-filter-group.is-interacting::-webkit-scrollbar {
        width: 6px;
        height: 6px;
      }
      #window-projects .projects-filter,
      #window-clients .projects-filter {
        flex: 0 0 auto;
        white-space: nowrap;
      }
      #window-projects .clients-main,
      #window-clients .clients-main,
      .xp-window[data-window-id^="project"] .xp-content {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
      }
      #window-projects .clients-main,
      #window-clients .clients-main {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        overflow-anchor: none;
        padding: 12px;
      }
      #window-projects .clients-main {
        background: #fff;
      }
      #window-clients .clients-main {
        background: #6375d6 url('Assets/Control Panel 1.png') no-repeat right bottom;
      }
      #window-projects .xp-section-title,
      #window-clients .xp-section-title {
        margin-top: 0;
      }
      #window-projects .project-grid,
      #window-clients .project-grid {
        align-content: start;
        margin-top: 0;
      }

      #window-contacts .xp-content,
      .game-window .xp-content,
      .wmp-window .xp-content {
        display: flex;
        flex-direction: column;
        min-height: 0;
      }
      #window-contacts .xp-content {
        padding: 14px;
        overflow: hidden;
      }
      .contacts-content-block.is-visible {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
      }
      .contacts-terminal {
        flex: 1 1 auto;
        min-height: 0;
      }
      .contacts-content-block.is-visible .contacts-connect-btn {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        margin-top: auto;
        /* Terminal-style button: green box drawn from vertical and
           horizontal lines, monospace. Mobile/tablet only — the button is
           display:none on desktop. */
        background: transparent;
        color: #3dff7a;
        border: 2px solid #3dff7a;
        border-radius: 0;
        font-family: 'Courier New', ui-monospace, 'SFMono-Regular', Menlo, monospace;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: none;
        padding: 12px 14px;
        text-shadow: 0 0 6px rgba(61, 255, 122, 0.55);
        box-shadow: inset 0 0 0 1px rgba(61, 255, 122, 0.22), 0 0 12px rgba(61, 255, 122, 0.2);
        transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
      }
      .contacts-content-block.is-visible .contacts-connect-btn:hover,
      .contacts-content-block.is-visible .contacts-connect-btn:active {
        background: #3dff7a;
        color: #001b0c;
        text-shadow: none;
        box-shadow: 0 0 16px rgba(61, 255, 122, 0.5);
      }
      .wmp-player,
      .wmp-content,
      .game-wrapper {
        flex: 1 1 auto;
        min-height: 0;
      }
      .game-splash > img {
        display: none;
      }
      .game-splash .game-splash-mobile {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: stretch;
        justify-content: center;
        overflow: hidden;
        background: #000;
      }
      .game-splash .game-splash-mobile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        image-rendering: crisp-edges;
      }
      #gameWin.game-over-overlay {
        background: rgba(0,0,0,0.7) url('Assets/victory mb.png') center/cover no-repeat;
        background-blend-mode: normal;
        background-color: rgba(0,0,0,0.34);
      }
      .wmp-controls {
        flex-wrap: wrap;
        gap: 6px;
        padding-bottom: 10px;
      }
      .wmp-controls-right {
        width: auto;
        justify-content: flex-end;
        margin-left: auto;
      }
      #wmpVolume {
        width: 100%;
      }
      .wmp-volume {
        display: none;
      }

      .lightbox-controls {
        display: none;
      }
      .lightbox-close {
        position: fixed;
        left: auto;
        right: 12px;
        top: 32px;
        margin-left: 0;
      }
      /* картинка занимает максимум по горизонтали */
      .lightbox-panel { width: 100vw; max-width: 100vw; padding: 16px 8px 12px; }
      .lightbox-media, .lightbox-media-inner { width: 100%; max-width: 100%; }
      .lightbox-media img { width: 100%; max-width: 100%; }
    }

    .lightbox-close:hover {
      background: rgba(255,255,255,0.2);
    }
    .lightbox-nav {
      width: 36px;
      height: 36px;
      border-radius: 6px;
      border: none;
      background: rgba(255,255,255,0.12);
      color: #fff;
      font-size: 26px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      padding-bottom: 5px;
    }
    .lightbox-nav:hover {
      background: rgba(255,255,255,0.2);
    }

    /* RESUME */
    .resume-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
    }
    .resume-avatar {
      width: 56px;
      height: 56px;
      border-radius: 6px;
      background: #fff url('avatar.jpg') center/cover no-repeat;
      border:1px solid #9f9b92;
      flex-shrink:0;
    }
    .resume-title-main {
      font-weight: bold;
      font-size: 13px;
      margin-bottom: 2px;
    }
    .resume-title-sub {
      font-size: 11px;
      color:#444;
    }
    .resume-download-wrap {
      margin-top: 10px;
      text-align: left;
    }
    .resume-download {
      display:inline-block;
      padding:4px 10px;
      border-radius:4px;
      border:1px solid #808080;
      background:#e3e3e3;
      font-size:11px;
      cursor:pointer;
      text-decoration:none;
      color:#000080;
    }
    .resume-download:hover {
      background:#ffffff;
    }

    /* CLIENTS */
    .clients-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 8px;
    }
    .client-card {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px;
      background: rgba(255, 255, 255, 0.09);
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      font-size: 11px;
      text-decoration: none;
    }
    .client-card *,
    .client-card:link,
    .client-card:visited,
    .client-card:hover,
    .client-card:active {
      text-decoration: none;
    }
    .client-logo {
      width:56px;
      height:56px;
      border-radius:6px;
      background:#d0d0ff url('client-logo.png') center/cover no-repeat;
      flex-shrink:0;
    }
    .client-main {
      flex:1;
    }
    .client-name {
      font-weight: bold;
      margin-bottom: 2px;
      color: #fff;
    }
    .client-desc {
      font-size: 10px;
      margin-bottom: 2px;
      color: rgba(255, 255, 255, 0.66);
    }
    .client-link a {
      font-size:10px;
    }

    /* GAME */
    .game-window .xp-content {
      padding: 0;
      display:flex;
      flex-direction:column;
    }
    .game-wrapper {
      position: relative;
      flex: 1;
      min-height: 260px;
      background:#000;
      overflow:hidden;
    }
    .game-splash {
      position: absolute;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 5;
      background: #000;
    }
    .game-splash > img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      image-rendering: crisp-edges;
    }
    .game-splash-mobile {
      display: none;
    }
    #spaceGameCanvas {
      position:absolute;
      inset:0;
      width:100%;
      height:100%;
      display:block;
      image-rendering: pixelated;
      touch-action: none;
    }
    .game-hud {
      position:absolute;
      top:6px;
      left:8px;
      right:8px;
      display:flex;
      justify-content:space-between;
      font-size:11px;
      color:#fff;
      text-shadow:1px 1px 2px #000;
      z-index:2;
    }
    .game-intro {
      position:absolute;
      inset:0;
      display:flex;
      align-items:center;
      justify-content:center;
      pointer-events:auto;
      z-index:3;
      background:radial-gradient(circle at center, rgba(0,0,0,0.2), rgba(0,0,0,0.95));
      color:#ffd54f;
      font-size:18px;
      font-weight: 800;
      text-align:center;
      padding:0 20px;
    }
    .game-intro-text {
      max-width:420px;
      animation:introScroll 12s linear forwards;
    }
    @keyframes introScroll {
      from { transform: translateY(60px); opacity:1; }
      to   { transform: translateY(-120px); opacity:0; }
    }
.game-over-overlay {
  position:absolute;
  inset:0;
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.7) url('Assets/loose.png') center/cover no-repeat;
  background-blend-mode: normal;
  backdrop-filter: none;
  /* 40% затемнение между фоном и контентом */
  background-color: rgba(0,0,0,0.4);
  z-index:4;
  color:#ff6b6b;
  text-shadow:0 0 6px #000;
  text-align:center;
  padding:14px;
      font-size:13px;
    }
    #gameWin.game-over-overlay {
      background: rgba(0,0,0,0.7) url('Assets/vic des.png') center/cover no-repeat;
      background-blend-mode: normal;
      background-color: rgba(0,0,0,0.34);
    }
    .game-over-panel {
      background: rgba(0, 0, 0, 0.55);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 10px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
      padding: 12px 16px;
      max-width: 360px;
    }
    .game-over-overlay h2 {
      font-size:26px;
      margin-bottom:12px;
    }
    .game-over-overlay div {
      color: #ffffff;
      margin-bottom:8px;
    }
    .game-over-overlay button {
      margin-top:10px;
      padding:4px 12px;
      border-radius:4px;
      border:1px solid #808080;
      background:#e3e3e3;
      cursor:pointer;
      font-size:12px;
    }
    .game-over-overlay button:hover {
      background:#ffffff;
    }

    audio { display:none; }
#windowOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.32);
  backdrop-filter: none;
  z-index: 8;
  display: none;
  pointer-events: none;
}
#windowOverlay.active {
  display: block;
}
#trashZone {
  display: none;
}

@media (min-width: 491px) {
  #trashZone {
    position: fixed;
    right: 16px;
    bottom: 56px;
    width: var(--desktop-icon-cell-size);
    height: var(--desktop-icon-cell-size);
    border-radius: 3px;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-weight: 600;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.9), 0 0 3px rgba(0,0,0,0.8);
    border: 1px solid transparent;
    z-index: 6;
    pointer-events: auto;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
  #trashZone.visible {
    display: flex;
    pointer-events: auto;
  }
  #trashZone.active {
    transform: scale(1.05);
    border-color: rgba(0,153,255,0.8);
    background: rgba(12,93,255,0.2);
  }
  #trashZone .trash-icon-img {
    width: var(--desktop-icon-img-size);
    height: var(--desktop-icon-img-size);
    margin-bottom: 6px;
  }
  #trashZone .trash-label {
    font-size: var(--desktop-icon-font-size);
    line-height: var(--desktop-icon-line-height);
    letter-spacing: 0.3px;
    text-align: center;
    transform: translateY(2px);
    font-weight: 300;
  }
}
@media (max-width: 1024px) {
  .desktop-icon.trash-target { display: none !important; }
}

#deleteWarning {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  z-index: 1200;
  padding: 20px;
}
#deleteWarning.active {
  display: flex;
}
.delete-dialog {
  background: var(--color-surface);
  color: #111;
  border: 2px solid var(--color-window-border);
  border-radius: var(--radius-window);
  box-shadow: var(--shadow-window-strong), inset 0 1px 0 rgba(255,255,255,0.6);
  width: min(360px, 92vw);
  font-size: 13px;
  overflow: hidden;
  border: 1px solid #0f3b9c;
}
.delete-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 6px 8px;
  background: linear-gradient(180deg, var(--color-primary) 0%, #1961dd 50%, #026afe 100%);
  box-shadow: 0 1.8px 1.2px 0 #3291ff inset;
  color: #fff;
  font-weight: 700;
}
.delete-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.delete-title-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 1px 1px rgba(0,0,0,0.4);
}
.delete-close {
  border: 1px solid #d6d6d6;
  background: linear-gradient(180deg, #ffb3b3 0%, #ff6a6a 100%);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 1px 2px rgba(0,0,0,0.35);
}
.delete-close:hover {
  filter: brightness(0.95);
}
.delete-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 14px 10px;
}
.delete-body-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}
.delete-body-title {
  font-weight: 700;
  font-size: 16px;
}
.delete-text {
  margin-bottom: 4px;
  line-height: 1.4;
  text-align: center;
}
.delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 12px 12px;
}
.delete-btn {
  min-width: 78px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #c2c7d0;
  background: linear-gradient(180deg, #ffffff 0%, #e6e6e6 100%);
  cursor: pointer;
  font-size: 13px;
  color: #000;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.delete-btn:hover {
  filter: brightness(0.98);
  box-shadow:
    inset 0 0 0 1px #f08a24,
    inset 0 1px 0 rgba(255,255,255,0.8);
}

/* NUDES PRANK */
#nudesPrank {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  pointer-events: none;
}
#nudesPrank.active {
  display: block;
}
.nudes-backstop {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  cursor: default;
}
.nudes-error {
  position: absolute;
  width: min(300px, 82vw);
  background: var(--color-surface);
  color: #111;
  border: 1px solid #0f3b9c;
  border-radius: var(--radius-window);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.6);
  overflow: hidden;
  pointer-events: auto;
  font-size: 13px;
  transform-origin: center;
  animation: nudesPop 140ms ease-out;
}
@keyframes nudesPop {
  from { opacity: 0; transform: scale(0.82); }
  to { opacity: 1; }
}
.nudes-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 5px 5px 9px;
  background: linear-gradient(180deg, var(--color-primary) 0%, #1961dd 50%, #026afe 100%);
  box-shadow: 0 1.8px 1.2px 0 #3291ff inset;
  color: #fff;
  font-weight: 700;
}
.nudes-titlebar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nudes-close {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #d6d6d6;
  background: linear-gradient(180deg, #ffb3b3 0%, #ff6a6a 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 1px 2px rgba(0,0,0,0.35);
}
.nudes-close:hover {
  filter: brightness(0.96);
}
.nudes-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
}
.nudes-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7a7a, #d8000c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 1px 2px rgba(0,0,0,0.3);
}
.nudes-msg {
  line-height: 1.4;
}
.nudes-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 12px 12px;
}
.nudes-ok {
  min-width: 72px;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid #c2c7d0;
  background: linear-gradient(180deg, #ffffff 0%, #e6e6e6 100%);
  color: #000;
  font-size: 13px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.nudes-ok:hover {
  box-shadow: inset 0 0 0 1px #f08a24, inset 0 1px 0 rgba(255,255,255,0.8);
}
.nudes-finale {
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  z-index: 2147483000;
  width: min(400px, 92vw);
  box-shadow: 0 16px 44px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.6);
  animation: nudesFinalePop 220ms ease-out;
}
.nudes-finale .nudes-body {
  padding: 18px 16px;
}
.nudes-finale .nudes-msg {
  font-size: 14px;
  line-height: 1.45;
}
@keyframes nudesFinalePop {
  from { opacity: 0; transform: translateX(-50%) scale(0.8); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}
#mobileClock {
  display: none;
  position: fixed;
  top: 20vh;
  left: 0;
      right: 0;
      text-align: center;
      font-size: clamp(72px, 18vw, 132px);
      font-weight: 700;
      color: #f5f7ff;
      text-shadow: 0 4px 14px rgba(0,0,0,0.65);
      padding: 4px 10px;
      background: none;
      backdrop-filter: none;
      z-index: 2;
  letter-spacing: 1px;
  pointer-events: none;
}

    /* RESPONSIVE */
@media (max-width: 767px) {
      /* Desktop icons 20% larger on mobile */
      :root {
        --desktop-icon-cell-size: 101px;
        --desktop-icon-img-size: 44px;
        --desktop-icon-font-size: 17.4px;
        --desktop-icon-line-height: 29px;
        --desktop-icon-padding: 10px;
      }
      #desktop {
        padding: 0;
        height: 100dvh;
        min-height: 100svh;
      }
      .desktop-icons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        align-content: center;
        gap: clamp(14px, 3.8vw, 22px);
        width: 100%;
        height: calc(100dvh - var(--mobile-desktop-bottom-clearance));
        max-height: calc(100svh - var(--mobile-desktop-bottom-clearance));
        padding:
          clamp(28px, 6svh, 52px)
          clamp(12px, 4vw, 20px)
          var(--mobile-desktop-bottom-clearance);
        overflow-y: auto;
        overflow-x: hidden;
      }
      .desktop-icon {
        width: var(--desktop-icon-cell-size);
        min-height: var(--desktop-icon-cell-size);
        flex: 0 0 var(--desktop-icon-cell-size);
        justify-content: flex-start;
      }
    }

@media (max-width: 490px) {
      :root {
        --mobile-window-bottom-offset: var(--taskbar-height);
        --mobile-desktop-bottom-clearance: calc(var(--taskbar-height) + env(safe-area-inset-bottom, 0px) + 54px);
      }
      .desktop-icons {
        height: calc(100dvh - var(--mobile-desktop-bottom-clearance));
        max-height: calc(100svh - var(--mobile-desktop-bottom-clearance));
      }
      #windowOverlay {
        z-index: 9;
        background: transparent;
      }
      #taskbar {
        height: var(--taskbar-height);
        padding: 0;
        justify-content: flex-start;
        gap: 0;
      }
    #startButton {
        width: 60px;
        height: var(--taskbar-height);
        padding: 3px 8px;
        justify-content: center;
        border-radius: 0 var(--radius-button) var(--radius-button) 0;
        margin-left: 0;
      }
      #startButton .label {
        display: none;
      }
      #startOrb {
        width: 18px;
        height: 18px;
        border-radius: 4px;
      }
      #taskButtons {
        display: flex;
      }
      #taskClock {
        display: flex;
        height: var(--taskbar-height);
        border-radius: 0;
        padding: 0 4px;
      }
      #mobileClock {
        display: none;
      }
      #startMenu {
        left: 0;
        right: 0;
        width: 100vw;
        max-width: none;
        height: auto;
        max-height: calc(100vh - var(--taskbar-height));
        bottom: var(--taskbar-height);
        border-radius: 12px 12px 0 0;
      }
      .shutdown-dialog {
        width: 90vw;
        max-width: 360px;
        font-size: 12px;
      }
      .shutdown-title {
        font-size: 16px;
      }
      .shutdown-body {
        gap: 40px;
        padding: 18px 14px 14px;
      }
      .shutdown-option {
        font-size: 12px;
      }
      .shutdown-icon {
        width: 34px;
        height: 34px;
      }
      .shutdown-footer {
        padding: 10px 14px;
      }
      .start-body {
        flex-direction: row;
        min-height: 0;
        height: auto;
        max-height: calc(100vh - 98px);
        overflow-y: auto;
        overflow-x: hidden;
      }
      .start-header {
        min-height: 64px;
        height: auto;
        padding: 6px;
      }
      .start-left {
        flex: 0 0 50%;
        min-height: 0;
        padding: 8px 5px;
        gap: 5px;
        width: 50%;
        border-right: 1px solid #b7c8df;
      }
      .start-right {
        width: 50%;
        flex: 0 0 50%;
        height: auto;
        min-height: 0;
        padding: 8px 4px 8px;
        gap: 5px;
        border-left: 1px solid #9bbfe9;
        border-top: none;
      }
      .start-item {
        padding: 3px 2px;
        gap: 4px;
      }
      .start-item-icon {
        width: 24px;
        height: 24px;
      }
      .start-item > span {
        font-size: 11px;
        line-height: normal;
      }
      .start-divider {
        margin: 2px 0;
      }
      .start-link-card {
        width: 100%;
        padding: 5px 4px;
        gap: 6px;
      }
      .start-link-img {
        width: 26px;
        height: 26px;
      }
      .start-link-text-title {
        font-size: 11px;
        line-height: 1.1;
      }
      .start-link-text-sub {
        font-size: 10px;
        line-height: 1.15;
      }
      .start-link-divider-wrap {
        min-height: 12px;
      }
      .start-link-divider {
        width: calc(100% - 20px);
      }
      .start-footer {
        height: auto;
        padding: 8px 10px;
        gap: 8px;
      }
      .start-footer-btn {
        padding: 2px;
        gap: 5px;
      }
      .start-footer-icon,
      .start-footer .shutdown-icon,
      .start-footer .logout-icon {
        width: 24px;
        height: 24px;
        background-size: contain;
      }
      .start-footer-text {
        font-size: 11px;
        line-height: 1;
      padding: 0 0 2px 0;
      }
    }
.c-icon-tile {
  width: var(--desktop-icon-cell-size);
  height: var(--desktop-icon-cell-size);
  border-radius: var(--radius-icon);
  padding: var(--desktop-icon-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid transparent;
  color: #ffffff;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.9), 0 0 3px rgba(0,0,0,0.8);
  user-select: none;
}

/* ===== HWITTER WINDOW ===== */
#window-hwitter {
  width: min(600px, 95vw);
  height: min(680px, calc(95vh - 60px));
  min-width: 320px;
  min-height: 300px;
}
@media (max-width: 640px) {
  #window-hwitter {
    width: 100vw !important;
    height: calc(100dvh - var(--mobile-window-bottom-offset)) !important;
    top: 0 !important;
    left: 0 !important;
    max-width: 100vw;
    max-height: calc(100dvh - var(--mobile-window-bottom-offset));
    border-radius: 0;
    resize: none;
  }
}
#window-hwitter .xp-content {
  padding: 0;
  overflow: hidden;
}
.hwitter-root {
  background: #fff;
  overflow-y: auto;
  height: 100%;
  font-family: -apple-system, 'Segoe UI', Arial, sans-serif;
  color: #0f1419;
}
/* Skeleton shimmer */
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* Apply to any <img> or block element as loading placeholder */
.img-sk {
  background: linear-gradient(90deg, #e8ebed 25%, #d8dcdf 50%, #e8ebed 75%) !important;
  background-size: 200% 100% !important;
  animation: skeleton-shimmer 1.4s ease-in-out infinite !important;
  color: transparent !important;
}

/* Feed / photos loading skeletons */
.hwitter-post-skel { pointer-events: none; }
.hwitter-post-skel .hwitter-post-avatar,
.sk-line,
.sk-media,
.sk-photo {
  background: linear-gradient(90deg, #e8ebed 25%, #d8dcdf 50%, #e8ebed 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.sk-line { height: 10px; border-radius: 6px; margin: 8px 0; }
.sk-line.sk-name { width: 130px; height: 12px; margin: 3px 0 12px; }
.sk-media { height: 180px; border-radius: 14px; margin-top: 10px; }
.sk-photo { width: 100%; aspect-ratio: 1 / 1; border-radius: 4px; }

.hwitter-cover {
  height: 120px;
  background: linear-gradient(135deg, #1da1f2 0%, #0d7ec2 100%);
  flex-shrink: 0;
}
.hwitter-profile {
  padding: 0 16px 12px;
  position: relative;
  border-bottom: 1px solid #eff3f4;
}
.hwitter-profile-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.hwitter-avatar-wrap {
  margin-top: -36px;
  margin-bottom: 8px;
}
.hwitter-bio {
  font-size: 13px;
  color: #536471;
  margin-top: 1px;
  margin-bottom: 2px;
}
.hwitter-tg-btn,
.hwitter-tg-btn:visited,
.hwitter-tg-btn:link {
  display: inline-block;
  align-self: flex-start;
  margin-left: auto;
  margin-top: 4px;
  padding: 7px 18px;
  background: #229ED9;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.hwitter-tg-btn:hover { background: #1a8bbf; color: #fff !important; }
.hwitter-para {
  margin: 0 0 8px;
  line-height: 1.5;
}
.hwitter-para:last-child { margin-bottom: 0; }
.hwitter-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  display: block;
}
.hwitter-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
.hwitter-handle {
  font-size: 13px;
  color: #536471;
  margin-bottom: 4px;
}
.hwitter-site {
  font-size: 13px;
  margin-bottom: 8px;
}
.hwitter-site a {
  color: #1da1f2;
  text-decoration: none;
}
.hwitter-site a:hover { text-decoration: underline; }
.hwitter-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #536471;
}
.hwitter-stats strong {
  color: #0f1419;
}
/* Tabs */
.hwitter-tabs {
  display: flex;
  border-bottom: 1px solid #eff3f4;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.hwitter-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 4px;
  font-size: 13px;
  font-weight: 500;
  color: #536471;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.hwitter-tab:hover { color: #1da1f2; background: rgba(29,161,242,.06); }
.hwitter-tab.active {
  color: #0f1419;
  font-weight: 700;
  border-bottom-color: #1da1f2;
  margin-bottom: -1px;
}
/* Panels */
.hwitter-panel { display: none; }
.hwitter-panel.active { display: block; }
/* Post card */
.hwitter-post {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #eff3f4;
}
.hwitter-post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.hwitter-post-body { flex: 1; min-width: 0; }
.hwitter-post-header {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 3px;
}
.hwitter-post-name { font-size: 13px; font-weight: 700; }
.hwitter-post-handle { font-size: 12px; color: #536471; }
.hwitter-post-time { font-size: 11px; color: #536471; margin-left: auto; white-space: nowrap; }
.hwitter-post-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}
.hwitter-post-text {
  font-size: 13px;
  line-height: 1.5;
  color: #0f1419;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}
.hwitter-post-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
}
.hwitter-post-text a,
.hwitter-para a {
  color: #1da1f2;
  text-decoration: none;
}
.hwitter-post-text a:visited,
.hwitter-para a:visited {
  color: #1da1f2;
}
.hwitter-post-text a:active,
.hwitter-para a:active {
  color: #1da1f2;
  opacity: 0.7;
}
.hwitter-post-text a:hover,
.hwitter-para a:hover {
  text-decoration: underline;
}
.hwitter-show-all {
  background: none;
  border: none;
  color: #1da1f2;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0;
  margin-top: 3px;
}
/* Post media */
.hwitter-post-media {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
}
/* Single photo — natural proportions, max 560px tall */
.hwitter-media-single .hwitter-post-photo {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
/* While a single photo is still loading it has no intrinsic height, so the
   shimmer would collapse to 0 and the image "pops in". Reserve a box until
   the .img-sk class is removed on load. */
.hwitter-media-single .hwitter-post-photo.img-sk {
  aspect-ratio: 16 / 10;
  height: auto;
}
/* Two photos side by side */
.hwitter-media-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.hwitter-media-two .hwitter-post-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
/* 3 photos: first full-width, two below */
.hwitter-media-three {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.hwitter-media-three .hwitter-post-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.hwitter-media-three .hwitter-post-photo:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
/* 4 photos: 2x2 grid */
.hwitter-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.hwitter-media-grid .hwitter-post-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.hwitter-post-video {
  width: 100%;
  max-height: 400px;
  display: block;
  background: #000;
}
.hwitter-post-video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hwitter-play-btn {
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}
.hwitter-post-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.hwitter-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #536471;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s, padding 0.15s;
}
.hwitter-action-btn:hover { color: #1da1f2; background: rgba(29,161,242,.1); }
.hwitter-action-btn.liked { color: #f91880; }
.hwitter-action-btn.liked:hover { color: #f91880; background: rgba(249,24,128,.1); }
.hwitter-action-btn svg { width: 14px; height: 14px; fill: currentColor; }
/* Article card */
.hwitter-articles-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-left: 1px solid #eff3f4;
  border-right: 1px solid #eff3f4;
  border-bottom: 1px solid #eff3f4;
}
.hwitter-article {
  border-bottom: 1px solid #eff3f4;
  border-right: 1px solid #eff3f4;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.12s;
  overflow: hidden;
}
.hwitter-article:nth-child(2n) { border-right: none; }
.hwitter-article:hover { background: #f7f9f9; }
.hwitter-article-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  display: block;
}
.hwitter-article-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.3;
}
.hwitter-article-excerpt {
  font-size: 12px;
  color: #536471;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 640px) {
  .hwitter-articles-list {
    grid-template-columns: 1fr;
  }
  .hwitter-article:nth-child(odd) .hwitter-article-card-body,
  .hwitter-article {
    border-right: none;
  }
}
/* Photo grid */
.hwitter-footer {
  padding: 10px 16px;
  text-align: center;
  color: #8b9ab1;
  font-size: 13px;
  line-height: 1.6;
  border-top: 1px solid #eff3f4;
}
.hwitter-footer p { margin: 0; }

.hwitter-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
}
.hwitter-photo-thumb {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  cursor: pointer;
  display: block;
  transition: opacity 0.15s;
}
.hwitter-photo-thumb:hover { opacity: 0.85; }

/* Hwitter layout */
#window-hwitter .ie-content {
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}
/* Prevent flex children from shrinking — panels must overflow to allow scroll */
#window-hwitter .ie-content > * {
  flex-shrink: 0;
}
/* Fixed content width — profile/tabs/panels don't stretch with window resize */
.hwitter-cover {
  width: 100%;
}
.hwitter-profile,
.hwitter-tabs,
.hwitter-panel {
  max-width: 598px;
  width: 100%;
  align-self: center;
  box-sizing: border-box;
}
/* Article as a separate page — replaces main content, no absolute overlay */
@keyframes hwitter-slide-in {
  from { transform: translateX(30px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.hwitter-article-view {
  display: none;
  background: #fff;
  min-height: 100%;
  overflow-x: hidden;
}
.hwitter-article-view.open {
  display: block;
  animation: hwitter-slide-in 0.22s ease both;
}
/* Hide main content when article is open */
#window-hwitter .ie-content.article-open .hwitter-cover,
#window-hwitter .ie-content.article-open .hwitter-profile,
#window-hwitter .ie-content.article-open .hwitter-tabs,
#window-hwitter .ie-content.article-open .hwitter-panel,
#window-hwitter .ie-content.article-open > .hwitter-footer {
  display: none;
}
.hwitter-article-topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  z-index: 2;
  border-bottom: 1px solid #e6eaed;
}
.hwitter-article-share {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0,0,0,0.06);
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #0f1419;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}
.hwitter-article-share:hover { background: rgba(0,0,0,0.12); }
.hwitter-article-share svg { flex-shrink: 0; }
/* Mobile: hide lightbox nav arrows, use swipe instead */
@media (hover: none) {
  .lightbox-prev,
  .lightbox-next { display: none !important; }
}
.hwitter-article-back {
  position: static;
  margin: 0;
  display: flex;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  border: none;
  font-size: 18px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0f1419;
  flex-shrink: 0;
  z-index: 2;
  padding: 0;
  transition: background 0.15s;
}
.hwitter-article-back:hover {
  background: rgba(0,0,0,0.15);
}
.hwitter-article-view-inner {
  padding: 8px 16px;
}
.hwitter-article-h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 8px 0 10px;
  color: #0f1419;
}
.hwitter-article-meta-top {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.hwitter-article-category {
  font-size: 12px;
  color: #536471;
  background: #eff3f4;
  border-radius: 100px;
  padding: 2px 8px;
}
.hwitter-article-date {
  font-size: 12px;
  color: #536471;
}
.hwitter-article-cover {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 220px;
  display: block;
  margin-bottom: 20px;
}
.hwitter-article-body {
  font-size: 15px;
  line-height: 1.65;
  color: #0f1419;
}
.hwitter-article-body p { margin: 0 0 14px; }
.hwitter-article-body h2 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.hwitter-article-body h3 { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.hwitter-article-body ul, .hwitter-article-body ol { padding-left: 20px; margin: 0 0 14px; }
.hwitter-article-body li { margin-bottom: 6px; }
.hwitter-article-body a { color: #1da1f2; text-decoration: none; }
.hwitter-article-body a:hover { text-decoration: underline; }
.hwitter-article-body img { width: 100%; border-radius: 8px; margin: 10px 0 14px; display: block; }
.hwitter-article-inline-img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin: 12px 0 16px;
}
.hwitter-article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 16px;
  font-size: 13px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d0dbe5;
}
.hwitter-article-body th,
.hwitter-article-body td {
  border-bottom: 1px solid #d0dbe5;
  border-right: 1px solid #d0dbe5;
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
}
.hwitter-article-body th:last-child,
.hwitter-article-body td:last-child { border-right: none; }
.hwitter-article-body tr:last-child td { border-bottom: none; }
.hwitter-article-body th {
  background: #e8f1f8;
  font-weight: 700;
}
.hwitter-article-body tr:nth-child(even) td { background: #f5f8fb; }
.hwitter-article-body hr, .hwitter-article-body .hwitter-divider {
  border: none;
  border-top: 1px solid #e6eaed;
  margin: 24px 0;
  width: 100%;
}
.hwitter-article-body blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  background: #e8f4fd;
  border-left: 3px solid #1da1f2;
  border-radius: 4px;
  font-style: normal;
  color: #0f1419;
}
/* Article cards in list */
.hwitter-article-card {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #e6eaed;
  cursor: pointer;
  overflow: hidden;
  background: #fff;
}
/* Vertical divider only in text block, not in image */
.hwitter-article-card:nth-child(odd) .hwitter-article-card-body {
  border-right: 1px solid #e6eaed;
}
.hwitter-article-card:hover { background: #f7f9f9; }
.hwitter-article-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.hwitter-article-card-body {
  padding: 12px 16px 16px;
}
.hwitter-article-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f1419;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hwitter-article-card-excerpt {
  font-size: 13px;
  color: #536471;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gallery (Telegram-style) */
.hwitter-gallery {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.hwitter-gallery.open { display: flex; }
.hwitter-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
}
.hwitter-gallery-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}
.hwitter-gallery-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(90vh - 80px);
}
.hwitter-gallery-img {
  max-width: 80vw;
  max-height: calc(90vh - 80px);
  object-fit: contain;
  border-radius: 4px;
}
.hwitter-gallery-caption {
  color: #fff;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  max-width: 80vw;
  opacity: 0.85;
}
.hwitter-gallery-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hwitter-gallery-nav {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}
.hwitter-gallery-prev,
.hwitter-gallery-next {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.hwitter-gallery-prev:hover,
.hwitter-gallery-next:hover { background: rgba(255,255,255,.28); }

/* PWA standalone mode — status bar overlays content, safe-area insets apply */
@media (display-mode: standalone) {
  #desktop {
    padding-top: env(safe-area-inset-top, 0px);
  }
  #taskbar {
    height: calc(var(--taskbar-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  :root {
    --mobile-window-bottom-offset: calc(var(--taskbar-height) + env(safe-area-inset-bottom, 0px));
  }
}

/* Богатырь */
@keyframes bohatyr-appear {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bohatyr-img {
  position: fixed;
  right: 80px;
  bottom: 40px;
  width: 210px;
  height: auto;
  cursor: pointer;
  z-index: 9000;
  display: none;
  animation: bohatyr-appear 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  user-select: none;
  -webkit-user-drag: none;
}
.bohatyr-img.visible {
  display: block;
}
@media (max-width: 640px) {
  .bohatyr-img { display: none !important; }
}

/* XP Balloon */
@keyframes balloon-appear {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.xp-balloon {
  position: fixed;
  right: 80px;
  bottom: 327px;
  width: 300px;
  background: #FFFFE1;
  border: 1px solid #767676;
  border-radius: 8px;
  padding: 10px 12px 12px;
  z-index: 9001;
  display: none;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  animation: balloon-appear 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  font-family: 'Tahoma', sans-serif;
  font-size: 11px;
  color: #000;
  cursor: default;
}
.xp-balloon.visible {
  display: block;
}
/* хвостик — заливка */
.xp-balloon::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 10px 0 10px;
  border-color: #FFFFE1 transparent transparent transparent;
}
/* хвостик — обводка */
.xp-balloon::before {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18px 11px 0 11px;
  border-color: #767676 transparent transparent transparent;
}
.xp-balloon-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  color: #444;
  padding: 0 2px;
  font-family: 'Tahoma', sans-serif;
}
.xp-balloon-close:hover {
  background: #c0392b;
  color: #fff;
  border-radius: 2px;
}
.xp-balloon-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
  padding-right: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 6px;
}
.xp-balloon-icon {
  font-size: 16px;
  filter: hue-rotate(0deg);
  color: #cc0000;
}
.xp-balloon-body p {
  margin: 3px 0;
  line-height: 1.4;
}
.xp-balloon-hint {
  margin-top: 8px !important;
  color: #333;
}
@media (max-width: 640px) {
  .xp-balloon { display: none !important; }
}

/* System-tray «Инфо» button */
.task-info-btn {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  box-shadow: none;
  flex: 0 0 auto;
}
.task-info-btn img {
  width: 16px;
  height: 16px;
  display: block;
  pointer-events: none;
}
.task-info-btn:hover img {
  filter: brightness(1.12);
}

/* Info balloon anchored above the system tray; works on mobile too */
.xp-balloon--info {
  left: auto;
  right: 12px;
  bottom: calc(var(--taskbar-height) + 10px);
  width: 280px;
  z-index: 9002;
}
.xp-balloon--info::after {
  left: var(--tail-x, calc(100% - 28px));
  right: auto;
  transform: translateX(-50%);
}
.xp-balloon--info::before {
  left: var(--tail-x, calc(100% - 28px));
  right: auto;
  transform: translateX(-50%);
}
@media (max-width: 640px) {
  .xp-balloon--info.visible {
    display: block !important;
    left: 12px;
    right: 12px;
    width: auto;
  }
}
