/* =====================================================================
   Walkirya OS — the "alive OS" layer (portal-os-fx.js): tray clock, Start menu,
   folded taskbar, window maximise / close, launch feedback, tip balloon, iddqd.
   Colours: only the --os-* tokens of portal-os.css. Classes: wx-*.
   ===================================================================== */

/* ---------- focus: visible on every taskbar / window control ---------- */
body.os-site .brand:focus-visible, body.os-site .nav-links a:focus-visible, body.os-site .lang-switch a:focus-visible,
.os-tb-b:focus-visible, .wx-task:focus-visible, .wx-clock:focus-visible, .wx-start a:focus-visible, .wx-tip-x:focus-visible {
  outline: 2px solid var(--os-red-hi); outline-offset: 2px;
}
body.os-site .brand[aria-expanded='true'] { background: rgba(255, 255, 255, .07); }
body.os-site .brand[aria-expanded='true'] .brand-mark { box-shadow: inset 0 2px 1px rgba(255, 255, 255, .5), inset 0 -4px 8px rgba(0, 0, 0, .35), 0 0 28px rgba(255, 43, 56, .7); }

/* ---------- "app launching" ---------- */
html.wx-busy, html.wx-busy * { cursor: progress !important; }
body.os-site .nav-links a.wx-launch { animation: wx-task-lit 1.1s ease-out; }
body.os-site .nav-links a.wx-launch::after { animation: wx-bar .45s var(--os-ease) .12s both; }
body.os-site .nav-links a.wx-going:not(.active)::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--os-red); box-shadow: 0 0 10px var(--os-red); animation: wx-bar .3s var(--os-ease) both;
}
@keyframes wx-task-lit { from { color: #fff; border-color: rgba(255, 43, 56, .7); box-shadow: inset 0 0 18px var(--os-red-glow), 0 0 18px var(--os-red-glow); } }
@keyframes wx-bar { from { transform: scaleX(0); opacity: 0; } }

/* ---------- tray clock ---------- */
.wx-clock {
  position: relative; display: grid; place-items: center; min-width: 58px; height: 36px; margin-left: 6px; padding: 0 8px;
  border: 1px solid transparent; border-radius: 4px; color: var(--os-text); font: 13.5px/1 var(--os-ui); font-variant-numeric: tabular-nums;
  white-space: nowrap; cursor: default;
}
.wx-clock::before { content: ''; position: absolute; left: -8px; top: 7px; bottom: 7px; width: 1px; background: rgba(255, 255, 255, .1); box-shadow: 1px 0 0 rgba(0, 0, 0, .6); }
.wx-clock:hover, .wx-clock:focus { border-color: rgba(255, 255, 255, .14); background: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); outline: none; }
.wx-clock:focus-visible { outline: 2px solid var(--os-red-hi); }
.wx-clock b { font-weight: 700; letter-spacing: .02em; text-shadow: 0 1px 2px #000; }
.wx-clock small {
  position: absolute; top: calc(100% + 9px); right: 0; z-index: 3; padding: 6px 10px; border-radius: 4px; border: 1px solid #000;
  background: linear-gradient(var(--os-3), var(--os-1)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 26px rgba(0, 0, 0, .65);
  color: var(--os-text-2); font-size: 12px; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s var(--os-ease);
}
.wx-clock small::first-letter { text-transform: uppercase; }
.wx-clock:hover small, .wx-clock:focus small { opacity: 1; transform: none; }

/* ---------- tray language: only the current one, the rest drop down (like the home tray); mouse screens only ---------- */
@media (min-width: 761px) and (hover: hover) {
  html.wx-on .header-actions .lang-switch {
    position: relative; display: flex; flex-direction: column; flex: none; width: 36px; height: 26px; padding: 0; gap: 0;
    border: 1px solid var(--os-line-2); border-radius: 4px; background: rgba(255, 255, 255, .04); overflow: hidden;
  }
  html.wx-on .header-actions .lang-switch a { flex: none; height: 24px; padding: 0; line-height: 24px; text-align: center; border-radius: 0; background: none; color: var(--os-text-2); }
  html.wx-on .header-actions .lang-switch a.active { order: -1; color: #fff; background: none; }
  html.wx-on .header-actions .lang-switch:hover, html.wx-on .header-actions .lang-switch:focus-within { overflow: visible; border-color: rgba(255, 255, 255, .24); }
  html.wx-on .header-actions .lang-switch:hover a:not(.active), html.wx-on .header-actions .lang-switch:focus-within a:not(.active) {
    position: relative; z-index: 3; width: 36px; margin-left: -1px; background: var(--os-2); color: var(--os-text-2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 1px #000, 0 10px 18px rgba(0, 0, 0, .45);
  }
  html.wx-on .header-actions .lang-switch a:not(.active):hover, html.wx-on .header-actions .lang-switch a:not(.active):focus-visible { background: var(--os-red); color: #fff; }
}

/* ---------- folded taskbar: the Start menu holds the nav (always on ≤980px, earlier if the nav does not fit) ---------- */
/* brand and tray never squeeze or wrap: an overflow is measured by the script and folds the nav instead */
html.wx-on body.os-site .brand, html.wx-on body.os-site .header-actions { flex: none; white-space: nowrap; }
html.wx-tight body.os-site .brand-sub { display: none; }
html.wx-compact body.os-site .site-header .nav-links, html.wx-compact body.os-site #nav-toggle { display: none !important; }
.wx-task { display: none; }
html.wx-compact .wx-task {
  position: relative; display: flex; align-items: center; gap: 8px; flex: 0 1 210px; min-width: 0; height: 38px; margin-right: auto; padding: 0 12px 0 9px;
  border-radius: 4px; border: 1px solid rgba(255, 255, 255, .16); background: linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); color: #fff; font: 700 13.5px var(--os-ui); text-shadow: 0 1px 2px #000; cursor: pointer;
}
html.wx-compact .wx-task:hover { background: linear-gradient(rgba(255, 255, 255, .2), rgba(255, 255, 255, .07)); }
.wx-task::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--os-red); box-shadow: 0 0 10px var(--os-red); }
.wx-task svg { width: 18px; height: 18px; flex: none; color: var(--os-red); filter: drop-shadow(0 0 6px var(--os-red-glow)); }
.wx-task span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Start menu ---------- */
.wx-start {
  position: absolute; top: calc(100% + 2px); left: 4px; z-index: 5; width: 470px; max-height: calc(100vh - 66px); overflow: auto; overscroll-behavior: contain;
  padding: 8px; border: 1px solid #000; border-radius: 6px 6px 10px 10px; color: var(--os-text); font-family: var(--os-ui);
  background: linear-gradient(165deg, rgba(70, 10, 18, .95), rgba(20, 23, 28, .97) 42%, rgba(5, 5, 6, .98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 24px 60px rgba(0, 0, 0, .78), 0 0 30px var(--os-red-glow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform-origin: 0 0; animation: wx-sm-in .17s var(--os-ease);
}
.wx-start[hidden] { display: none !important; }
@keyframes wx-sm-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
.wx-sm-head { display: flex; align-items: center; gap: 10px; min-height: 26px; padding: 0 6px 8px; }
.wx-sm-head b { font: italic 800 15px var(--os-logo); letter-spacing: .02em; text-shadow: 0 1px 2px #000; }
.wx-sm-st { margin-left: auto; display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--os-text-2); font-size: 12px; white-space: nowrap; }
.wx-sm-body { display: grid; grid-template-columns: minmax(0, 1fr) 166px; gap: 8px; }
.wx-sm-l { display: flex; flex-direction: column; min-width: 0; border: 1px solid #000; border-radius: 5px; background: rgba(5, 5, 6, .78); box-shadow: inset 0 0 0 1px var(--os-line); overflow: hidden; }
.wx-sm-apps { display: grid; gap: 1px; padding: 6px; }
.wx-start .wx-sm-app {
  display: flex; align-items: center; gap: 10px; padding: 5px 8px; border: 1px solid transparent; border-radius: 4px;
  color: var(--os-text); font-size: 14px; font-weight: 700; text-decoration: none;
}
.wx-start .wx-sm-app span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-start .wx-sm-app:hover, .wx-start .wx-sm-app:focus-visible {
  color: #fff; border-color: rgba(255, 43, 56, .5); outline: none;
  background: linear-gradient(rgba(255, 43, 56, .24), rgba(255, 43, 56, .08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.wx-start .wx-sm-app[aria-current] { background: rgba(255, 255, 255, .05); box-shadow: inset 3px 0 0 var(--os-red); }
.wx-ic {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 6px; border: 1px solid #000;
  background: linear-gradient(#3a3f49, #1b1f26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  color: #fff; font: 800 14px var(--os-logo); font-style: normal; text-shadow: 0 1px 2px #000;
}
.wx-sm-app:hover .wx-ic, .wx-sm-app[aria-current] .wx-ic { color: var(--os-red-hi); }
.wx-sm-desk .wx-ic {
  border-radius: 50%; border-color: #2a0003; color: #fff !important;
  background: radial-gradient(circle at 50% 28%, #ff8a80 0, var(--os-red) 38%, var(--os-red-lo) 78%, #4d0408 100%);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .45), 0 0 10px var(--os-red-glow);
}
.wx-ic svg { width: 19px; height: 19px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.wx-sm-sep { height: 1px; margin: 4px 6px; border: 0; background: var(--os-line-2); }
.wx-sm-q { margin: auto 0 0; padding: 8px; border-top: 1px solid #000; background: linear-gradient(var(--os-2), var(--os-1)); }
body.os-site .wx-start input[type='search'] { display: block; width: 100%; height: 32px; padding: 0 14px; border-radius: 16px; font: 13.5px var(--os-ui); }
.wx-sm-r { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 2px 0; }
.wx-sm-h { padding: 6px 10px 3px; color: var(--os-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wx-start .wx-sm-link {
  display: block; padding: 7px 10px; border: 1px solid transparent; border-radius: 4px;
  color: var(--os-text); font-size: 13.5px; font-weight: 700; text-decoration: none; text-shadow: 0 1px 1px #000;
}
.wx-start .wx-sm-link:hover, .wx-start .wx-sm-link:focus-visible { color: #fff; border-color: rgba(255, 255, 255, .2); background: linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); outline: none; }
.wx-start .wx-sm-link.wx-dl { border-color: rgba(255, 43, 56, .45); background: linear-gradient(rgba(255, 43, 56, .26), rgba(255, 43, 56, .08)); }
.wx-start .wx-sm-link.wx-dl:hover, .wx-start .wx-sm-link.wx-dl:focus-visible { background: linear-gradient(#ff6a60, var(--os-red) 48%, var(--os-red-lo)); border-color: #3a0005; }
.wx-start .wx-sm-link[aria-current] { box-shadow: inset 3px 0 0 var(--os-red); }
.wx-sm-lang { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px 8px 6px; }
.wx-start .wx-sm-lang a {
  min-width: 34px; padding: 4px 6px; border: 1px solid var(--os-line-2); border-radius: 3px; background: rgba(255, 255, 255, .04);
  color: var(--os-text-2); font-size: 11.5px; font-weight: 700; text-align: center; text-decoration: none;
}
.wx-start .wx-sm-lang a:hover, .wx-start .wx-sm-lang a:focus-visible { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); }
.wx-start .wx-sm-lang a[aria-current] { color: #fff; border-color: var(--os-red-lo); background: var(--os-red); }

/* ---------- window: maximise, minimise / close ---------- */
.wx-maxb { cursor: pointer; }
.wx-maxb:hover { background: linear-gradient(rgba(255, 255, 255, .24), rgba(255, 255, 255, .08)); }
.wx-maxb i.x2 { opacity: 1; }
.os-win.maximized .wx-maxb i.x2 { width: 8px; height: 7px; border-top-width: 2px; translate: -1px 1.5px; }
.os-win.maximized .wx-maxb i.x2::before { content: ''; position: absolute; left: 1px; top: -5px; width: 8px; height: 7px; border: solid currentColor; border-width: 2px 1.5px 0 0; }
@media (min-width: 761px) {
  html.wx-max body.os-site main.os-desk { padding: 0; }
  .os-win.maximized { max-width: none; border-width: 0 0 1px; border-radius: 0; }
  .os-win.maximized .os-wb .container { max-width: 1600px; }
}
.os-win.wx-close { animation: wx-win-close .18s ease-in forwards; }
.os-win.wx-min { animation: wx-win-min .18s ease-in forwards; transform-origin: 50% 0; }
@keyframes wx-win-close { to { opacity: 0; transform: scale(.94); } }
@keyframes wx-win-min { to { opacity: 0; transform: translateY(-28px) scale(.6); } }

/* ---------- tip balloon (points at the Start emblem) ---------- */
.wx-tip {
  position: fixed; left: 8px; z-index: 60; width: 320px; max-width: calc(100vw - 16px); padding: 11px 34px 12px 14px;
  border: 1px solid #000; border-radius: 8px; color: var(--os-text); font: 13px/1.45 var(--os-ui); cursor: pointer;
  background: linear-gradient(var(--os-3), var(--os-1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 3px 0 0 var(--os-red), 0 16px 40px rgba(0, 0, 0, .7), 0 0 22px var(--os-red-glow);
  opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s var(--os-ease);
}
.wx-tip.in { opacity: 1; transform: none; }
.wx-tip::before {
  content: ''; position: absolute; top: -7px; left: var(--wx-tail, 18px); width: 12px; height: 12px;
  background: var(--os-3); border: solid #000; border-width: 1px 0 0 1px; transform: rotate(45deg);
}
.wx-tip b { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; font: italic 800 14px var(--os-logo); }
.wx-tip b::before {
  content: 'i'; width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--os-red); color: #fff; font: normal 700 12px var(--os-ui); box-shadow: 0 0 10px var(--os-red-glow);
}
.wx-tip p { margin: 0; color: var(--os-text-2); }
.wx-tip-x {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0;
  border: 1px solid transparent; border-radius: 3px; background: none; color: var(--os-text-2); font: 17px/1 var(--os-ui); cursor: pointer;
}
.wx-tip-x:hover { color: #fff; border-color: var(--os-line-2); background: rgba(255, 255, 255, .08); }

/* ---------- iddqd ---------- */
.os-win.wx-god { position: relative; }
.os-win.wx-god::after {
  content: ''; position: absolute; inset: 0; z-index: 20; pointer-events: none; border-radius: inherit;
  background: rgba(255, 43, 56, .2); box-shadow: inset 0 0 0 2px var(--os-red), inset 0 0 90px rgba(255, 43, 56, .55);
  animation: wx-god .9s ease-out forwards;
}
@keyframes wx-god { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
.wx-toast { max-width: calc(100vw - 40px); border-left-color: var(--os-red); background: linear-gradient(var(--os-3), var(--os-1)); font-weight: 700; transition: opacity .25s; }
.wx-toast.out { opacity: 0; }

/* ---------- phone: Start menu = full-width sheet under the taskbar ---------- */
@media (max-width: 760px) {
  .wx-clock, .wx-tip { display: none; }
  .wx-start {
    left: 0; right: 0; top: 100%; width: auto; max-height: calc(100vh - 54px); max-height: calc(100dvh - 54px); padding: 8px 8px 12px;
    border-width: 1px 0; border-radius: 0 0 14px 14px; transform-origin: 50% 0; animation-name: wx-sheet-in;
  }
  .wx-sm-body { grid-template-columns: 1fr; }
  .wx-sm-q { order: -1; margin: 0; border-top: 0; border-bottom: 1px solid #000; }
  body.os-site .wx-start input[type='search'] { height: 42px; border-radius: 21px; font-size: 16px; }
  .wx-sm-apps { grid-template-columns: 1fr 1fr; gap: 2px; }
  .wx-sm-desk, .wx-sm-sep { grid-column: 1 / -1; }
  .wx-start .wx-sm-app { min-height: 46px; font-size: 13.5px; }
  .wx-sm-r { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .wx-sm-h, .wx-sm-lang { grid-column: 1 / -1; }
  .wx-start .wx-sm-link { display: flex; align-items: center; min-height: 44px; }
  .wx-start .wx-sm-lang a { min-width: 44px; padding: 10px 8px; }
}
@media (max-width: 360px) { html.wx-compact .wx-task span { display: none; } }
@keyframes wx-sheet-in { from { opacity: 0; transform: translateY(-14px); } }

/* ---------- reduced motion: no animation, same states ---------- */
@media (prefers-reduced-motion: reduce) {
  .wx-start, .os-win.wx-close, .os-win.wx-min, body.os-site .nav-links a.wx-launch, body.os-site .nav-links a.wx-launch::after, body.os-site .nav-links a.wx-going::after { animation: none !important; }
  .wx-tip, .wx-clock small, .wx-toast { transition: none; }
  .os-win.wx-god::after { animation: none; opacity: .55; }
}

/* ---------- tray theme button (portal-os-theme.js, look in portal-os-blue.css): fits the tray row, both themes ---------- */
html.wx-on .header-actions .os-theme-btn { flex: none; }
@media (min-width: 761px) and (hover: hover) { /* same height as the folded language box next to it */
  html.wx-on .header-actions .os-theme-btn { width: 32px; height: 26px; }
  html.wx-on .header-actions .os-theme-btn svg { width: 16px; height: 16px; }
}
@media (max-width: 360px) { /* folded taskbar on small phones: brand + task + theme + download must fit one row */
  html.wx-compact body.os-site .header-actions { gap: 6px; }
  html.wx-compact body.os-site .brand { padding-right: 8px; }
  html.wx-compact .header-actions .os-theme-btn { width: 30px; }
}
@media (max-width: 340px) { html.wx-compact .wx-task { display: none; } }

/* =====================================================================
   THEME «Синяя» (default, owner 15.11.2026): the alive-OS layer in the classic blue Windows 7 look of the home
   page (os.css: #start, .tray, .clock, .balloon, .toast). Every selector is scoped to html[data-theme="blue"];
   the rules above are theme «Тёмная» and stay as they are.
   ===================================================================== */

/* ---------- focus rings: light blue on the dark glass, navy on light surfaces ---------- */
html[data-theme="blue"] body.os-site .brand:focus-visible, html[data-theme="blue"] body.os-site .nav-links a:focus-visible,
html[data-theme="blue"] body.os-site .lang-switch a:focus-visible, html[data-theme="blue"] .wx-task:focus-visible,
html[data-theme="blue"] .wx-clock:focus-visible { outline-color: #8cc6ff; }
html[data-theme="blue"] .os-tb-b:focus-visible { outline-color: #0b2a66; }
html[data-theme="blue"] .wx-tip-x:focus-visible { outline-color: #1d5fbf; }
html[data-theme="blue"] body.os-site .brand[aria-expanded='true'] { background: rgba(255, 255, 255, .12); }
html[data-theme="blue"] body.os-site .brand[aria-expanded='true'] .brand-mark { box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .35), inset 0 2px 3px rgba(255, 255, 255, .85), 0 0 24px rgba(120, 190, 255, .85); }

/* ---------- "app launching" ---------- */
html[data-theme="blue"] body.os-site .nav-links a.wx-launch { animation-name: wx-task-lit-blue; }
html[data-theme="blue"] body.os-site .nav-links a.wx-going:not(.active)::after { background: #8cc6ff; box-shadow: 0 0 10px #4aa3ff; }
@keyframes wx-task-lit-blue { from { color: #fff; border-color: rgba(140, 198, 255, .85); box-shadow: inset 0 0 18px rgba(70, 150, 255, .65), 0 0 18px rgba(70, 150, 255, .55); } }

/* ---------- tray clock (like .clock / .tray-i) + date tooltip (like .hint) ---------- */
html[data-theme="blue"] .wx-clock { color: #fff; }
html[data-theme="blue"] .wx-clock::before { background: rgba(255, 255, 255, .12); box-shadow: 1px 0 0 rgba(0, 0, 0, .4); }
html[data-theme="blue"] .wx-clock:hover, html[data-theme="blue"] .wx-clock:focus { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); }
html[data-theme="blue"] .wx-clock b { font-weight: 400; text-shadow: 0 1px 1px rgba(0, 0, 0, .6); }
html[data-theme="blue"] .wx-clock small {
  padding: 4px 8px; border-radius: 2px; border-color: #767676; background: #ffffe1; color: #111;
  font-size: 12.5px; box-shadow: 2px 2px 5px rgba(0, 0, 0, .3);
}

/* ---------- tray language: glass box on the taskbar, light Windows menu when it drops down ---------- */
@media (min-width: 761px) and (hover: hover) {
  html[data-theme="blue"].wx-on .header-actions .lang-switch { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
  html[data-theme="blue"].wx-on .header-actions .lang-switch a.active { color: #fff; background: none; text-shadow: 0 1px 1px rgba(0, 0, 0, .6); }
  html[data-theme="blue"].wx-on .header-actions .lang-switch:hover, html[data-theme="blue"].wx-on .header-actions .lang-switch:focus-within { border-color: rgba(255, 255, 255, .42); }
  html[data-theme="blue"].wx-on .header-actions .lang-switch:hover a:not(.active), html[data-theme="blue"].wx-on .header-actions .lang-switch:focus-within a:not(.active) {
    background: #f6f8fa; color: #1d2733; text-shadow: none; box-shadow: 0 0 0 1px #8c99a8, 0 6px 14px rgba(0, 0, 0, .3);
  }
  html[data-theme="blue"].wx-on .header-actions .lang-switch a:not(.active):hover, html[data-theme="blue"].wx-on .header-actions .lang-switch a:not(.active):focus-visible {
    background: linear-gradient(#f2f8ff, #d8e8fb); color: #0b1b2b; box-shadow: inset 0 0 0 1px #a9c6e8, 0 0 0 1px #8c99a8, 0 6px 14px rgba(0, 0, 0, .3);
  }
  html[data-theme="blue"].wx-on .header-actions .lang-switch a:not(.active):focus-visible { outline-color: #1d5fbf; outline-offset: -3px; }
}

/* ---------- folded taskbar: the open window button = .task.active of the home page ---------- */
html[data-theme="blue"].wx-compact .wx-task {
  border-radius: 5px; border-color: rgba(255, 255, 255, .45); text-shadow: 0 1px 1px #000;
  background: linear-gradient(rgba(255, 255, 255, .32), rgba(255, 255, 255, .1));
  box-shadow: inset 0 0 14px rgba(70, 150, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
}
html[data-theme="blue"].wx-compact .wx-task:hover { background: linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .14)); }
html[data-theme="blue"] .wx-task::after { background: #8cc6ff; box-shadow: 0 0 10px #4aa3ff; }
html[data-theme="blue"] .wx-task svg { color: #cfe6ff; filter: drop-shadow(0 0 6px rgba(70, 150, 255, .8)); }

/* ---------- Start menu = #start of the home page: white program list left, blue glass right ---------- */
html[data-theme="blue"] .wx-start {
  border-color: rgba(0, 0, 0, .75); color: #fff;
  background: linear-gradient(170deg, rgba(70, 96, 140, .93), rgba(14, 22, 38, .96) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 22px 50px rgba(0, 0, 0, .6), 0 0 26px rgba(70, 150, 255, .55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
html[data-theme="blue"] .wx-sm-head b { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
html[data-theme="blue"] .wx-sm-st { color: #eef3fa; text-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
html[data-theme="blue"] .wx-sm-l { border-color: #46597a; background: #fff; box-shadow: none; color: var(--os-text); }
html[data-theme="blue"] .wx-start .wx-sm-app { color: #142030; }
html[data-theme="blue"] .wx-start .wx-sm-app:hover, html[data-theme="blue"] .wx-start .wx-sm-app:focus-visible {
  color: #10263f; border-color: #7da2ce; background: linear-gradient(#f2f8ff, #d8e8fb); box-shadow: none;
}
html[data-theme="blue"] .wx-start .wx-sm-app:focus-visible { outline: 2px solid #1d5fbf; outline-offset: -2px; }
html[data-theme="blue"] .wx-start .wx-sm-app[aria-current] { background: #e8f1fc; box-shadow: inset 3px 0 0 #2a6fd6; }
html[data-theme="blue"] .wx-start .wx-sm-app[aria-current]:hover, html[data-theme="blue"] .wx-start .wx-sm-app[aria-current]:focus-visible { background: linear-gradient(#f2f8ff, #d8e8fb); }
html[data-theme="blue"] .wx-ic {
  border-color: #0f3b86; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
  background: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 50%, rgba(0, 0, 0, .08) 51%, rgba(0, 0, 0, 0)), linear-gradient(#2566cc, #0f3b86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
html[data-theme="blue"] .wx-sm-app:hover .wx-ic, html[data-theme="blue"] .wx-sm-app:focus-visible .wx-ic, html[data-theme="blue"] .wx-sm-app[aria-current] .wx-ic {
  color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 8px rgba(70, 150, 255, .6);
}
html[data-theme="blue"] .wx-sm-desk .wx-ic, html[data-theme="blue"] .wx-sm-app.wx-sm-desk:is(:hover, :focus-visible, [aria-current]) .wx-ic {
  border-color: rgba(0, 0, 0, .6);
  background: radial-gradient(circle at 50% 28%, #fff 0, #8cc6ff 26%, #2a6fd6 62%, #0f3b86 100%);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .35), inset 0 2px 3px rgba(255, 255, 255, .8), 0 0 10px rgba(70, 150, 255, .55);
}
html[data-theme="blue"] .wx-sm-sep { background: #e1e6ec; }
html[data-theme="blue"] .wx-sm-q { border-top-color: #e1e6ec; border-bottom-color: #e1e6ec; background: #f1f4f8; }
html[data-theme="blue"] body.os-site .wx-start input[type='search']::placeholder { color: #5d6b7c; opacity: 1; }
html[data-theme="blue"] .wx-sm-h { color: #e4ecf6; text-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
html[data-theme="blue"] .wx-start .wx-sm-link { color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .6); }
html[data-theme="blue"] .wx-start .wx-sm-link:hover, html[data-theme="blue"] .wx-start .wx-sm-link:focus-visible {
  color: #fff; border-color: rgba(255, 255, 255, .35); background: linear-gradient(rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
}
html[data-theme="blue"] .wx-start .wx-sm-link:focus-visible, html[data-theme="blue"] .wx-start .wx-sm-lang a:focus-visible { outline: 2px solid #b3d9ff; outline-offset: -2px; }
html[data-theme="blue"] .wx-start .wx-sm-link.wx-dl {
  border-color: rgba(0, 0, 0, .6); text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
  background: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .04) 50%, rgba(0, 0, 0, .12) 51%, rgba(0, 0, 0, 0)), linear-gradient(#1f5fbf, #0f3b86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 12px rgba(70, 150, 255, .45);
}
html[data-theme="blue"] .wx-start .wx-sm-link.wx-dl:hover, html[data-theme="blue"] .wx-start .wx-sm-link.wx-dl:focus-visible {
  border-color: #0b2a66;
  background: linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .03) 50%, rgba(0, 0, 0, .1) 51%, rgba(0, 0, 0, 0)), linear-gradient(#2262c6, #12449a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 18px rgba(110, 180, 255, .8);
}
html[data-theme="blue"] .wx-start .wx-sm-link[aria-current] { box-shadow: inset 3px 0 0 #8cc6ff; }
html[data-theme="blue"] .wx-start .wx-sm-lang a { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; }
html[data-theme="blue"] .wx-start .wx-sm-lang a:hover, html[data-theme="blue"] .wx-start .wx-sm-lang a:focus-visible { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .2); }
html[data-theme="blue"] .wx-start .wx-sm-lang a[aria-current] { color: #fff; border-color: #8cc6ff; background: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)), #1f5fbf; }

/* ---------- window: Aero maximise button, maximised = no frame ---------- */
html[data-theme="blue"] .wx-maxb:hover { background: linear-gradient(rgba(255, 255, 255, .9), rgba(200, 230, 255, .6) 50%, rgba(120, 190, 255, .5) 51%, rgba(200, 235, 255, .8)); }
@media (min-width: 761px) {
  html[data-theme="blue"] .os-win.maximized { padding: 0; border-width: 0 0 1px; border-radius: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 10px 30px rgba(0, 0, 0, .35); }
  html[data-theme="blue"] .os-win.maximized .os-tb { padding: 0 6px; border-radius: 0; }
  html[data-theme="blue"] .os-win.maximized .os-wb { border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
}

/* ---------- tip balloon = .balloon of the home page ---------- */
html[data-theme="blue"] .wx-tip {
  border-color: #6f7c8c; color: var(--os-text);
  background: linear-gradient(#ffffff, #eef3f8); box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}
html[data-theme="blue"] .wx-tip::before { background: #fff; border-color: #6f7c8c; }
html[data-theme="blue"] .wx-tip b { color: #10263f; font: 700 13.5px var(--os-ui); }
html[data-theme="blue"] .wx-tip b::before {
  background: radial-gradient(circle at 50% 30%, #6fb3ff, #2a6fd6 55%, #0f4aa8); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 1px #0f3b86;
}
html[data-theme="blue"] .wx-tip p { margin-left: 26px; color: #33414f; }
html[data-theme="blue"] .wx-tip-x { color: #445566; }
html[data-theme="blue"] .wx-tip-x:hover { color: #142030; border-color: #c9d3df; background: #fff; }

/* ---------- iddqd: blue flash + the home page toast (dark blue glass) ---------- */
html[data-theme="blue"] .os-win.wx-god::after { background: rgba(42, 111, 214, .16); box-shadow: inset 0 0 0 2px #2a6fd6, inset 0 0 90px rgba(70, 150, 255, .55); }
html[data-theme="blue"] body.os-site .toast.wx-toast {
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; color: #fff;
  background: linear-gradient(170deg, rgba(56, 76, 108, .95), rgba(14, 22, 38, .97)); box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
