/*
 * BloatOS: the nikstil.com homepage.
 * Themes: the same eight as TRANSLATR™ (same ids and looks; the cursors in os/cursors.css are
 * generated from the game by scripts/build-site.mjs).
 * The base styles below are the Aero theme; every other theme overrides them further down.
 */

:root {
  --taskbar-h: 44px;
  --font-ui: "Segoe UI", "Open Sans", Tahoma, Geneva, sans-serif;
  --font-title: var(--font-ui);
  --font-mono: Consolas, "Lucida Console", "Courier New", monospace;
  --ink: #16222f;
  --muted: rgb(22 34 47 / 0.62);
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
html { color-scheme: light; cursor: var(--cur-arrow, auto); }
body {
  overflow: hidden;
  font: 14px/1.45 var(--font-ui);
  color: var(--ink);
  background: #1360b9;
  -webkit-font-smoothing: antialiased;
}
button, a, summary { cursor: var(--cur-hand, pointer); }
button { font: inherit; color: inherit; background: none; border: 0; text-align: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px dotted currentColor; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ================= Wallpaper (Aero: sky, sun rays, glossy hills, glass bubbles) ================= */
.wallpaper { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.wallpaper > div { position: absolute; inset: 0; }
.wp-sky {
  background:
    radial-gradient(circle at 14% -6%, rgb(255 255 255 / 0.9) 0%, rgb(222 244 255 / 0.55) 9%, rgb(160 215 255 / 0.2) 26%, rgb(160 215 255 / 0) 46%),
    linear-gradient(180deg, #1360b9 0%, #2584d7 34%, #54acea 64%, #9fd6f5 86%, #c3e8fa 100%);
}
.wp-rays {
  background: repeating-conic-gradient(from 90deg at 14% -6%, rgb(255 255 255 / 0) 0deg, rgb(255 255 255 / 0.1) 3deg, rgb(255 255 255 / 0) 6deg, rgb(255 255 255 / 0) 13deg);
  mask-image: radial-gradient(circle at 14% -6%, #000 0%, rgb(0 0 0 / 0.45) 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 14% -6%, #000 0%, rgb(0 0 0 / 0.45) 40%, transparent 80%);
}
.wp-hills {
  background:
    radial-gradient(ellipse 58% 30% at 20% 108%, #2f8a27 0%, #47a633 48%, #7fcf55 64%, #a8e77c 67.6%, rgb(168 231 124 / 0) 68.8%),
    radial-gradient(ellipse 72% 34% at 86% 116%, #2a7d23 0%, #3f9a2f 50%, #74c64d 66%, #9edf73 69.6%, rgb(158 223 115 / 0) 70.8%);
}
.wp-bubble {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgb(255 255 255 / 0.85) 0%, rgb(255 255 255 / 0) 20%),
    radial-gradient(circle closest-side, rgb(255 255 255 / 0.02) 0%, rgb(255 255 255 / 0.07) 60%, rgb(255 255 255 / 0.34) 90%, rgb(255 255 255 / 0.1) 100%);
  box-shadow: inset 0 -8px 16px -8px rgb(170 235 255 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.18);
}
.wp-noise {
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ================= Desktop icons ================= */
.desktop { position: fixed; inset: 0 0 var(--taskbar-h); z-index: 1; }
.desk-icons {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 96px);
  gap: 4px;
  width: max-content;
  height: 100%;
  padding: 10px;
}
.desk-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 94px;
  padding: 7px 3px 5px;
  border: 1px solid transparent;
  border-radius: 3px;
}
.di-img { font-size: 38px; line-height: 1; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.45)); transition: transform 0.15s; }
/* Icons follow the theme (os.js swaps them): hidden until the right set is in, so they never flash. */
html:not(.icons-ready) [data-icon] { visibility: hidden; }
/* Same for the labels, which /site.json can rename: they show once the settings are in. */
html:not(.icons-ready) .desk-icons, html:not(.icons-ready) .sm-head { visibility: hidden; }
.desk-icon:hover .di-img { transform: translateY(-2px); }
.di-label {
  max-width: 100%;
  padding: 1px 2px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: break-word;
  color: #fff;
  text-shadow: 0 1px 2px #000, 0 0 5px rgb(0 0 0 / 0.8);
}
.desk-icon:hover { background: rgb(255 255 255 / 0.14); border-color: rgb(255 255 255 / 0.28); }
.desk-icon.is-selected { background: rgb(90 170 255 / 0.32); border-color: rgb(170 215 255 / 0.75); }
.desktop.is-refreshing .desk-icons { animation: refresh 0.3s steps(2); }
@keyframes refresh { 50% { opacity: 0; } }
/* Icons moved by hand: each one sits in its own grid cell (os.js places them) */
.desk-icons.is-free { display: block; position: relative; width: 100%; }
.desk-icons.is-free > li { position: absolute; }
.desk-icons > li.is-dragging { z-index: 3; opacity: 0.75; pointer-events: none; }
/* The selection box */
.marquee { position: fixed; z-index: 2; pointer-events: none; border: 1px solid rgb(120 190 255 / 0.95); background: rgb(90 170 255 / 0.22); }
html[data-theme="retro"] .marquee, html[data-theme="luna"] .marquee { border: 1px dotted #fff; background: transparent; mix-blend-mode: difference; }
html[data-theme="minimal"] .marquee { border: 1px solid #000; background: rgb(0 0 0 / 0.06); }
html[data-theme="vapor"] .marquee { border-color: #ff71ce; background: rgb(255 113 206 / 0.18); }
html[data-theme="y2k"] .marquee { border-color: #b6ff1a; background: rgb(182 255 26 / 0.12); }

/* ================= Windows ================= */
#windows { position: relative; z-index: 5; }
.win {
  --accent: #5ea9dd;
  position: fixed;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: calc(100vw - 12px);
  max-height: calc(100vh - var(--taskbar-h) - 12px);
  max-height: calc(100dvh - var(--taskbar-h) - 12px); /* phones: the visible height, not behind the address bar */
  padding: 0 7px 7px;
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.62) 0, rgb(255 255 255 / 0.18) 34px, rgb(255 255 255 / 0.1) 60%, rgb(255 255 255 / 0.22) 100%),
    color-mix(in oklab, var(--accent) 30%, rgb(150 195 235 / 0.4));
  backdrop-filter: blur(14px) saturate(1.7);
  -webkit-backdrop-filter: blur(14px) saturate(1.7);
  border: 1px solid rgb(0 20 50 / 0.55);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6), 0 12px 32px -8px rgb(0 25 70 / 0.55), 0 0 18px -6px color-mix(in oklab, var(--accent) 60%, transparent);
}
.win::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: repeating-linear-gradient(118deg, rgb(255 255 255 / 0) 0px, rgb(255 255 255 / 0) 60px, rgb(255 255 255 / 0.1) 82px, rgb(255 255 255 / 0) 104px, rgb(255 255 255 / 0) 190px);
}
.win:not(.is-active) { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.45), 0 8px 22px -8px rgb(0 25 70 / 0.4); }
.win:not(.is-active) .win-title { opacity: 0.72; }
.win.is-max { inset: 0 0 var(--taskbar-h) 0 !important; width: auto !important; max-width: none; max-height: none; border-radius: 0; }
.win.win-in { animation: win-in 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes win-in { from { opacity: 0; transform: scale(0.94) translateY(8px); } }
.win.is-dragging { user-select: none; }
.win.is-minimizing { pointer-events: none; }

.win-bar { position: relative; display: flex; align-items: center; gap: 7px; min-height: 34px; padding-left: 3px; user-select: none; touch-action: none; }
.win-icon { font-size: 15px; line-height: 1; }
.win-title {
  flex: 1;
  min-width: 0;
  font: 400 14px/1.2 var(--font-title);
  color: #06121f;
  text-shadow: 0 0 10px #fff, 0 0 10px #fff, 0 0 4px #fff, 0 0 2px #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win-caps {
  display: flex;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: -1px;
  border: 1px solid rgb(0 20 50 / 0.55);
  border-top: 0;
  border-radius: 0 0 5px 5px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.35);
}
.cap {
  display: grid;
  place-items: center;
  width: 26px;
  height: 19px;
  font-size: 10px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 3px rgb(0 0 0 / 0.9);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.2) 50%, rgb(0 30 70 / 0.12) 51%, rgb(255 255 255 / 0.25));
  border-left: 1px solid rgb(0 20 50 / 0.4);
}
.cap:first-child { border-left: 0; }
.cap:hover { background: linear-gradient(180deg, #d6efff, #7ec6f5 50%, #4aa3e6 51%, #8ad0ff); }
.cap-close { width: 43px; background: linear-gradient(180deg, #ecb0a4, #d86f58 50%, #c3431f 51%, #d9714f); }
.cap-close:hover { background: linear-gradient(180deg, #ffc2b4, #f0785e 50%, #e0421c 51%, #f58a66); box-shadow: 0 0 10px rgb(255 90 60 / 0.8); }

.win-client {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(180deg, rgb(244 248 252 / 0.96), rgb(230 238 247 / 0.96));
  border: 1px solid rgb(0 20 50 / 0.45);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.75);
}
.win-body { flex: 1; min-height: 0; overflow: auto; padding: 16px 18px; }
.win-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid rgb(0 30 70 / 0.12); background: rgb(0 30 70 / 0.04); }
.win-foot .status { margin-right: auto; font-size: 12px; }

/* ================= Buttons (Windows 7) ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 16px;
  border-radius: 3px;
  border: 1px solid #707070;
  font-size: 13px;
  color: #000;
  text-decoration: none;
  background: linear-gradient(180deg, #f2f2f2 0%, #ebebeb 49%, #dddddd 50%, #cfcfcf 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.7);
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn:hover { border-color: #3c7fb1; background: linear-gradient(180deg, #eaf6fd 0%, #d9f0fc 49%, #bee6fd 50%, #a7d9f5 100%); }
.btn:active { background: linear-gradient(180deg, #e5f4fc, #c4e5f6 49%, #98d1ef 50%, #6db3e0); box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.3); }
.btn-primary { font-weight: 600; color: #3d2700; border-color: #a86f00; background: linear-gradient(180deg, #fff1bd 0%, #ffd35c 48%, #f2a900 52%, #ffcb3d 100%); }
.btn-primary:hover { border-color: #8a5a00; background: linear-gradient(180deg, #fff6d6, #ffdd7a 48%, #ffb81a 52%, #ffd65a); box-shadow: 0 0 12px rgb(255 200 60 / 0.7), inset 0 0 0 1px rgb(255 255 255 / 0.6); }

/* ================= Taskbar ================= */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--taskbar-h);
  padding-left: 4px;
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 20 50 / 0.8);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.32) 0%, rgb(255 255 255 / 0.1) 48%, rgb(0 0 0 / 0.08) 52%, rgb(255 255 255 / 0.08) 100%),
    rgb(18 55 100 / 0.62);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-top: 1px solid rgb(0 20 50 / 0.6);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55);
}
.start-btn { position: relative; display: flex; flex-shrink: 0; align-items: center; gap: 7px; border-radius: 999px; transition: filter 0.2s, box-shadow 0.2s, background 0.2s; }
.start-label { white-space: nowrap; }
.start-label:empty { display: none; }
.start-orb {
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 30%, #bfe9ff 0%, #3ea7e8 40%, #0d5aa7 72%, #06305f 100%);
  border: 1px solid rgb(0 20 50 / 0.8);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.45), 0 0 12px rgb(80 190 255 / 0.55);
  transition: box-shadow 0.25s, filter 0.25s;
}
.start-orb::before { content: ""; position: absolute; inset: 2px 6px 50%; border-radius: 999px 999px 50% 50%; background: linear-gradient(180deg, rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.05)); }
.start-glyph { position: relative; font: 700 18px/1 var(--font-title); color: #fff; text-shadow: 0 1px 2px rgb(0 30 70 / 0.9); }
.start-btn:hover .start-orb, .start-btn[aria-expanded="true"] .start-orb { filter: brightness(1.15); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6), 0 0 22px rgb(120 210 255 / 0.95); }

.tasks { display: flex; flex: 1; align-items: center; gap: 4px; min-width: 0; height: 100%; overflow-x: auto; scrollbar-width: none; }
.task {
  position: relative;
  display: flex;
  flex: 0 1 180px;
  align-items: center;
  gap: 7px;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 13px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.task-icon { flex-shrink: 0; font-size: 18px; line-height: 1; }
.task-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task:hover { border-color: rgb(255 255 255 / 0.45); background: linear-gradient(180deg, rgb(255 255 255 / 0.4), rgb(255 255 255 / 0.1) 50%, rgb(255 255 255 / 0.05) 51%, rgb(255 255 255 / 0.2)); box-shadow: inset 0 0 0 1px rgb(0 20 50 / 0.35), 0 0 12px rgb(140 210 255 / 0.6); }
.task.is-active { border-color: rgb(255 255 255 / 0.45); background: rgb(255 255 255 / 0.22); box-shadow: inset 0 0 0 1px rgb(0 20 50 / 0.35); }
.task.is-min { opacity: 0.78; }
.tray { display: flex; align-items: center; gap: 10px; height: 100%; padding-left: 10px; border-left: 1px solid rgb(255 255 255 / 0.25); }
.clock { font-size: 12.5px; white-space: nowrap; }
.show-desktop { width: 14px; height: 100%; border-left: 1px solid rgb(255 255 255 / 0.35); background: rgb(255 255 255 / 0.08); transition: background 0.2s; }
.show-desktop:hover { background: rgb(255 255 255 / 0.35); }
/* Full screen, in the tray. Tinted from the text colour, so it suits every theme's taskbar. */
.tray-btn { display: grid; flex-shrink: 0; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 4px; border: 1px solid transparent; color: inherit; background: transparent; transition: background 0.15s, border-color 0.15s; }
.tray-btn:hover, .tray-btn:focus-visible { outline: none; border-color: color-mix(in oklab, currentColor 40%, transparent); background: color-mix(in oklab, currentColor 16%, transparent); }
.fs-icon { display: block; }
.fs-icon path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }
.fs-exit, .is-fullscreen .fs-enter { display: none; }
.is-fullscreen .fs-exit { display: inline; }
.sm-item > .fs-label { font-size: inherit; line-height: inherit; }

/* ================= Start menu ================= */
.start-menu {
  position: fixed;
  left: 4px;
  bottom: calc(var(--taskbar-h) + 4px);
  z-index: 200;
  display: flex;
  width: min(430px, calc(100vw - 8px));
  padding: 7px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.3), rgb(255 255 255 / 0.08) 40%, rgb(255 255 255 / 0.14)),
    rgb(20 60 110 / 0.78);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgb(0 20 50 / 0.7);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.45), inset 0 0 0 1px rgb(255 255 255 / 0.4);
  animation: menu-in 0.14s ease-out;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(6px); } }
.sm-banner { display: none; }
.sm-banner b, .pc-logo b, .boot-logo b { font-weight: 700; }
.sm-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sm-head { display: flex; align-items: center; gap: 9px; padding: 3px 6px 8px; font-weight: 600; text-shadow: 0 1px 2px #000; }
.sm-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; font-size: 22px; background: linear-gradient(#fff, #cfe3f5); border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 0.5); }
.sm-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 6px; }
.sm-list { list-style: none; padding: 4px; color: #000; background: #fff; border-radius: 4px; border: 1px solid rgb(0 20 50 / 0.5); }
.sm-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 8px; border-radius: 3px; font-size: 13.5px; }
.sm-item > span[aria-hidden="true"] { font-size: 20px; line-height: 1; }
.sm-item:hover, .sm-item:focus-visible { outline: none; background: linear-gradient(#e5f3fb, #cfe8f8); box-shadow: inset 0 0 0 1px #7fb9e6; }
.sm-side { padding: 2px 2px 0; text-shadow: 0 1px 2px rgb(0 0 0 / 0.8); }
.sm-heading { padding: 2px 6px 4px; font-size: 12px; font-weight: 600; opacity: 0.85; }
.sm-themes { list-style: none; }
.sm-theme { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 6px; border-radius: 3px; font-size: 13px; }
.sm-theme:hover { background: rgb(255 255 255 / 0.18); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35); }
.sm-theme[aria-pressed="true"] { background: rgb(255 255 255 / 0.28); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.55); }
.sm-foot { display: flex; justify-content: flex-end; padding-top: 7px; }
.sm-power { display: flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 3px; font-size: 13px; color: #fff; text-shadow: 0 1px 1px rgb(0 0 0 / 0.6); border: 1px solid rgb(0 20 50 / 0.6); background: linear-gradient(180deg, #ecb0a4, #d86f58 50%, #c3431f 51%, #d9714f); }
.sm-power:hover { filter: brightness(1.1); box-shadow: 0 0 10px rgb(255 100 70 / 0.7); }
.swatch { display: inline-flex; flex-shrink: 0; width: 30px; height: 16px; overflow: hidden; border-radius: 3px; border: 1px solid rgb(0 0 0 / 0.45); }
.swatch i { flex: 1; }

/* ================= Context menu ================= */
.ctx-menu { position: fixed; z-index: 210; min-width: 190px; padding: 3px; color: #000; background: #f0f0f0; border: 1px solid #979797; box-shadow: 2px 2px 6px rgb(0 0 0 / 0.35); }
.ctx-item { display: block; width: 100%; padding: 5px 24px 5px 26px; border-radius: 3px; border: 1px solid transparent; font-size: 13px; }
.ctx-item:hover, .ctx-item:focus-visible { outline: none; background: linear-gradient(#e8f2fc, #d6e9fa); border-color: #aecff7; }
.ctx-menu hr { margin: 3px 2px; border: 0; border-top: 1px solid #d7d7d7; }

/* ================= App contents ================= */
.pc { display: grid; gap: 14px; }
.pc-logo { font: 300 34px/1 var(--font-title); letter-spacing: -0.02em; color: #1a5aa8; }
.pc-specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 13px; }
.pc-specs dt { color: var(--muted); }

.tr-preview {
  display: grid;
  place-items: center;
  height: 150px;
  margin-bottom: 12px;
  border-radius: 4px;
  border: 1px solid rgb(0 20 50 / 0.35);
  background:
    radial-gradient(ellipse 60% 18% at 35% 55%, rgb(255 255 255 / 0.3), transparent 70%),
    radial-gradient(600px 400px at 10% 0%, rgb(150 215 255 / 0.7), transparent 60%),
    radial-gradient(700px 400px at 50% 120%, rgb(125 225 110 / 0.55), transparent 62%),
    linear-gradient(180deg, #2a86d6 0%, #1464b4 45%, #0b4a8f 100%);
}
.tr-mini { width: 78%; padding: 0 5px 5px; border-radius: 7px; font: 12px/1.3 "Segoe UI", Tahoma, sans-serif; background: linear-gradient(180deg, rgb(255 255 255 / 0.65), rgb(255 255 255 / 0.2) 26px, rgb(255 255 255 / 0.12)), rgb(120 180 235 / 0.45); border: 1px solid rgb(0 20 50 / 0.55); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6), 0 12px 26px -8px rgb(0 25 70 / 0.6); }
.tr-mini-bar { display: flex; align-items: center; gap: 1px; height: 26px; padding-left: 3px; color: #06121f; text-shadow: 0 0 8px #fff, 0 0 3px #fff; }
.tr-mini-bar i { width: 16px; height: 12px; margin-left: auto; background: linear-gradient(180deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.15)); border: 1px solid rgb(0 20 50 / 0.35); }
.tr-mini-bar i + i { margin-left: 0; }
.tr-mini-bar i:last-child { width: 26px; background: linear-gradient(180deg, #ecb0a4, #d86f58 50%, #c3431f 51%, #d9714f); }
.tr-mini-client { padding: 9px; color: #1b2a3a; background: #fff; border: 1px solid rgb(0 20 50 / 0.45); border-radius: 3px; }
.tr-mini-input { height: 34px; padding: 5px 7px; color: #6b7785; border: 1px solid #abadb3; border-radius: 2px; }
.tr-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; font-size: 11px; color: #c42e86; }
.tr-mini-row b { padding: 4px 9px; border-radius: 5px; font-weight: 600; color: #3d2700; border: 1px solid #a86f00; background: linear-gradient(180deg, #fff1bd 0%, #ffd35c 48%, #f2a900 52%, #ffcb3d 100%); }
.tr-name { margin-bottom: 4px; font: 600 18px/1.25 var(--font-title); }
.tr-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; list-style: none; }
.tr-facts li { padding: 2px 10px; border-radius: 999px; font-size: 12px; background: rgb(0 60 140 / 0.07); border: 1px solid rgb(0 60 140 / 0.16); }
.tr-save { font-size: 13px; }

.gif { display: grid; place-items: center; padding: 10px; background: #111; }
.gif-frame { display: block; width: 100%; }
.gif-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.gif-missing { padding: 30px 10px; text-align: center; color: #bbb; }


.themes .muted { font-size: 13px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.theme-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 6px; text-align: left; background: rgb(255 255 255 / 0.75); border: 1px solid rgb(0 30 70 / 0.2); transition: box-shadow 0.15s, border-color 0.15s; }
.theme-card .swatch { width: 100%; height: 46px; border-radius: 4px; }
.theme-card .theme-name { font-size: 13.5px; font-weight: 600; }
.theme-blurb { font-size: 12px; line-height: 1.35; color: var(--muted); }
.theme-card:hover { border-color: #3c7fb1; box-shadow: 0 0 0 1px #3c7fb1, 0 4px 12px rgb(0 60 140 / 0.2); }
.theme-card[aria-pressed="true"] { border-color: #2c7be5; box-shadow: 0 0 0 2px #2c7be5; }

.bin-list { display: grid; gap: 2px; list-style: none; }
.bin-file { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 3px; border: 1px solid transparent; font-size: 13.5px; }
.bin-file small { margin-left: auto; padding-left: 10px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.bin-file:hover { background: rgb(0 120 215 / 0.08); border-color: rgb(0 120 215 / 0.2); }
.bin-file.is-selected { background: rgb(0 120 215 / 0.18); border-color: rgb(0 120 215 / 0.4); }

.msg { display: flex; align-items: flex-start; gap: 14px; }
.msg-icon { font-size: 30px; line-height: 1; }
.msg p { padding-top: 4px; }

/* ================= Boot and shut down ================= */
.boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  color: #fff;
  background: #000;
  transition: opacity 0.45s, visibility 0.45s;
}
html.booted .boot { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-logo { font: 300 clamp(40px, 8vw, 72px)/1 "Segoe UI", system-ui, sans-serif; letter-spacing: -0.03em; }
.boot-bar { position: relative; width: 150px; height: 18px; overflow: hidden; border: 2px solid #b2b2b2; border-radius: 4px; }
.boot-bar i { position: absolute; top: 2px; bottom: 2px; width: 9px; border-radius: 1px; background: linear-gradient(#a4c1ff, #2e62d8 50%, #1a45b8); animation: boot-slide 1.6s linear infinite; }
.boot-bar i:nth-child(2) { animation-delay: 0.12s; }
.boot-bar i:nth-child(3) { animation-delay: 0.24s; }
@keyframes boot-slide { from { left: -30px; } to { left: 160px; } }
.boot-copy { font-size: 12px; color: #8a8f99; }

.shutdown { position: fixed; inset: 0; z-index: 1001; display: grid; place-content: center; gap: 12px; padding: 20px; text-align: center; color: #fff; background: #000; }
.shutdown-wait { font-size: 18px; }
.shutdown-safe, .shutdown-hint { display: none; }
.shutdown.is-safe { cursor: var(--cur-hand, pointer); }
.shutdown.is-safe .shutdown-wait { display: none; }
.shutdown.is-safe .shutdown-safe { display: block; font: 700 clamp(20px, 3.6vw, 36px)/1.3 "Courier New", monospace; color: #ff9d00; }
.shutdown.is-safe .shutdown-hint { display: block; font-size: 12px; color: #777; }

/* ================================================================================
 * Y2K Cyber-Goth (from TRANSLATR™): chrome bubble windows with bolts, black glass,
 * acid green and magenta, a chrome grid floor.
 * ================================================================================ */
html[data-theme="y2k"] {
  --font-title: "Orbitron", "Segoe UI", sans-serif;
  --ink: #16161d;
  --muted: rgb(22 22 29 / 0.62);
  --y2k-chrome: linear-gradient(180deg, #fdfdfd 0%, #c9ced8 24%, #7b8290 48%, #3b404a 51%, #9aa1ad 74%, #eef0f4 100%);
  --y2k-chrome-soft: linear-gradient(180deg, #ffffff 0%, #dfe3e9 40%, #9ea5b1 52%, #c9ced8 80%, #f3f5f8 100%);
  --y2k-black: linear-gradient(180deg, #2c2f38 0%, #0a0b0f 50%, #000 51%, #16181e 100%);
}
html[data-theme="y2k"] body { background: #050507; }
html[data-theme="y2k"] .wp-sky { background: radial-gradient(ellipse at 50% 118%, rgb(255 43 214 / 0.28), transparent 55%), radial-gradient(ellipse at 18% -12%, rgb(182 255 26 / 0.16), transparent 45%), radial-gradient(circle at 82% 28%, rgb(150 165 255 / 0.14), transparent 40%), #07070b; }
html[data-theme="y2k"] .wp-rays {
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg fill='none' stroke='%23c9ced8' stroke-width='1.2' stroke-linecap='round' opacity='.35'%3E%3Cpath d='M-10 70 C 50 20, 110 120, 170 70 S 250 20, 280 70'/%3E%3Cpath d='M30 58 l-6 -14 M30 58 l8 -12 M92 86 l-4 16 M92 86 l10 12 M150 78 l-8 -14 M150 78 l6 -15 M214 52 l-3 16 M214 52 l11 10'/%3E%3Cpath d='M40 200 q 30 -40 0 -80 q 40 30 60 -10' stroke='%23ff2bd6' opacity='.7'/%3E%3Cpath d='M190 230 l12 -30 l-18 10 l26 -40' stroke='%23b6ff1a' opacity='.7'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 260px 260px;
}
html[data-theme="y2k"] .wp-hills { inset: 52% -60% -20%; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 0; background: repeating-linear-gradient(90deg, rgb(182 255 26 / 0.22) 0 1px, transparent 1px 70px), repeating-linear-gradient(0deg, rgb(255 43 214 / 0.22) 0 1px, transparent 1px 70px); mask-image: linear-gradient(transparent, #000 45%); -webkit-mask-image: linear-gradient(transparent, #000 45%); }
html[data-theme="y2k"] .wp-bubble { background: radial-gradient(circle at 32% 28%, #fff 0%, #e6e9ef 12%, #8b929e 38%, #22262e 62%, #b8bfca 80%, #4a505a 100%); box-shadow: 0 0 34px rgb(255 43 214 / 0.3), inset 0 -6px 14px rgb(0 0 0 / 0.5); opacity: 0.8; }
html[data-theme="y2k"] .wp-noise { opacity: 0.22; }
html[data-theme="y2k"] .di-label { color: #d9ff8a; text-shadow: 0 0 6px rgb(182 255 26 / 0.6), 0 1px 2px #000; }
html[data-theme="y2k"] .desk-icon.is-selected { background: rgb(255 43 214 / 0.22); border-color: #ff2bd6; }
html[data-theme="y2k"] .win {
  padding: 7px 9px 10px;
  border-radius: 22px;
  background: var(--y2k-chrome);
  border: 1px solid #0b0c10;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgb(0 0 0 / 0.35), 0 18px 40px -10px rgb(0 0 0 / 0.85), 0 0 26px -6px #ff2bd6;
}
html[data-theme="y2k"] .win.is-active { box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgb(0 0 0 / 0.35), 0 20px 44px -10px rgb(0 0 0 / 0.9), 0 0 34px -4px rgb(182 255 26 / 0.55); }
html[data-theme="y2k"] .win::before {
  background:
    radial-gradient(circle 4.5px at 8px 8px, #f2f3f6 0 1px, #6d7380 2px, #15171c 3.6px, transparent 4.5px),
    radial-gradient(circle 4.5px at 8px calc(100% - 7px), #f2f3f6 0 1px, #6d7380 2px, #15171c 3.6px, transparent 4.5px),
    radial-gradient(circle 4.5px at calc(100% - 8px) calc(100% - 7px), #f2f3f6 0 1px, #6d7380 2px, #15171c 3.6px, transparent 4.5px);
}
html[data-theme="y2k"] .win-bar { min-height: 30px; margin-bottom: 7px; padding-left: 10px; border-radius: 999px; background: var(--y2k-black); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 1px 0 rgb(255 255 255 / 0.65); }
html[data-theme="y2k"] .win-title { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: transparent; background: linear-gradient(180deg, #ffffff 0%, #d6dbe4 42%, #8b92a0 56%, #f1f3f6 100%); -webkit-background-clip: text; background-clip: text; text-shadow: none; filter: drop-shadow(0 0 5px rgb(182 255 26 / 0.35)); }
html[data-theme="y2k"] .win-client { border-radius: 15px; background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.22) 0 1px, transparent 1px 3px), linear-gradient(180deg, #f1f3f6, #d9dde4); border: 1px solid #1a1c22; box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.2), 0 1px 0 rgb(255 255 255 / 0.75); }
html[data-theme="y2k"] .win-caps { align-self: center; gap: 4px; margin: 0 5px 0 0; border: 0; border-radius: 999px; overflow: visible; box-shadow: none; }
html[data-theme="y2k"] .cap { width: 18px; height: 18px; font-size: 8px; color: #111; text-shadow: none; border: 1px solid #000; border-radius: 999px; background: radial-gradient(circle at 35% 30%, #fff, #c9ced8 35%, #6d7481 70%, #2b2f38); }
html[data-theme="y2k"] .cap:hover { background: radial-gradient(circle at 35% 30%, #f4ffd6, #b6ff1a 45%, #4d7a00); box-shadow: 0 0 10px #b6ff1a; }
html[data-theme="y2k"] .cap-close { color: #fff; background: radial-gradient(circle at 35% 30%, #ffd6f3, #ff2bd6 45%, #7a0060); }
html[data-theme="y2k"] .cap-close:hover { background: radial-gradient(circle at 35% 30%, #ffd6f3, #ff2bd6 45%, #7a0060); box-shadow: 0 0 12px #ff2bd6; }
html[data-theme="y2k"] .win-foot { border-top-color: rgb(0 0 0 / 0.18); background: rgb(255 255 255 / 0.25); }
html[data-theme="y2k"] .btn { border-radius: 999px; border: 1px solid #0b0c10; font: 700 11.5px/1 var(--font-title); letter-spacing: 0.08em; text-transform: uppercase; color: #111; background: var(--y2k-chrome-soft); box-shadow: inset 0 1px 0 #fff; }
html[data-theme="y2k"] .btn:hover { border-color: #0b0c10; background: var(--y2k-chrome-soft); box-shadow: inset 0 1px 0 #fff, 0 0 12px rgb(182 255 26 / 0.7); }
html[data-theme="y2k"] .btn-primary { color: #fff; text-shadow: 0 -1px 0 rgb(80 0 60 / 0.6); border-color: #3d0030; background: linear-gradient(180deg, #ffd1f4, #ff4fdc 40%, #a1007f 52%, #ff2bd6 85%, #ffc2ef); }
html[data-theme="y2k"] .btn-primary:hover { background: linear-gradient(180deg, #ffd1f4, #ff4fdc 40%, #a1007f 52%, #ff2bd6 85%, #ffc2ef); box-shadow: 0 0 14px rgb(255 43 214 / 0.85); }
html[data-theme="y2k"] .taskbar { color: #d9ff8a; text-shadow: 0 0 6px rgb(182 255 26 / 0.45); background: var(--y2k-black); border-top: 1px solid #9aa1ad; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 -8px 30px rgb(255 43 214 / 0.18); }
html[data-theme="y2k"] .task { border-radius: 999px; }
html[data-theme="y2k"] .task:hover { border-color: #9aa1ad; background: linear-gradient(180deg, rgb(255 255 255 / 0.18), rgb(255 255 255 / 0.03)); box-shadow: 0 0 10px rgb(182 255 26 / 0.45); }
html[data-theme="y2k"] .task.is-active { border-color: #5b616d; background: rgb(182 255 26 / 0.12); box-shadow: inset 0 0 0 1px #000; }
html[data-theme="y2k"] .tray { border-color: rgb(154 161 173 / 0.4); }
html[data-theme="y2k"] .show-desktop { border-color: #5b616d; background: linear-gradient(180deg, #3a3e48, #121318); }
html[data-theme="y2k"] .start-btn { height: 36px; padding: 0 14px 0 3px; background: var(--y2k-chrome-soft); border: 1px solid #000; box-shadow: inset 0 1px 0 #fff, 0 0 14px rgb(255 43 214 / 0.45); }
html[data-theme="y2k"] .start-btn:hover { box-shadow: inset 0 1px 0 #fff, 0 0 18px rgb(182 255 26 / 0.7); }
html[data-theme="y2k"] .start-orb, html[data-theme="y2k"] .start-btn:hover .start-orb { width: 30px; height: 30px; background: radial-gradient(circle at 50% 30%, #4a4f5a, #0b0c10 65%); border: 1px solid #000; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 0 10px rgb(182 255 26 / 0.45); filter: none; }
html[data-theme="y2k"] .start-orb::before { content: none; }
html[data-theme="y2k"] .start-glyph { font: 400 19px/1 "UnifrakturMaguntia", serif; color: #b6ff1a; text-shadow: 0 0 6px #b6ff1a; }
html[data-theme="y2k"] .start-label { font: 900 11px/1 var(--font-title); letter-spacing: 0.16em; text-transform: uppercase; color: #0b0c10; text-shadow: 0 1px 0 #fff; }
html[data-theme="y2k"] .start-menu { border-radius: 18px; background: var(--y2k-black); border: 1px solid #9aa1ad; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 0 30px rgb(255 43 214 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.3); }
html[data-theme="y2k"] .sm-head, html[data-theme="y2k"] .sm-side { color: #d9ff8a; text-shadow: 0 0 6px rgb(182 255 26 / 0.45); }
html[data-theme="y2k"] .sm-avatar { background: var(--y2k-chrome-soft); border-color: #000; }
html[data-theme="y2k"] .sm-list { border-radius: 12px; border-color: #000; background: var(--y2k-chrome-soft); }
html[data-theme="y2k"] .sm-item:hover, html[data-theme="y2k"] .sm-item:focus-visible { color: #b6ff1a; background: #0b0c10; box-shadow: none; border-radius: 999px; }
html[data-theme="y2k"] .sm-theme:hover, html[data-theme="y2k"] .sm-theme[aria-pressed="true"] { background: rgb(182 255 26 / 0.12); box-shadow: inset 0 0 0 1px rgb(182 255 26 / 0.45); border-radius: 999px; }
html[data-theme="y2k"] .sm-power { border-radius: 999px; border-color: #3d0030; background: linear-gradient(180deg, #ffd1f4, #ff4fdc 40%, #a1007f 52%, #ff2bd6 85%, #ffc2ef); }
html[data-theme="y2k"] .ctx-menu { border-radius: 12px; color: #d9ff8a; background: #0b0c10; border-color: #9aa1ad; box-shadow: 0 0 20px rgb(255 43 214 / 0.35); }
html[data-theme="y2k"] .ctx-item:hover, html[data-theme="y2k"] .ctx-item:focus-visible { border-radius: 999px; border-color: #b6ff1a; background: rgb(182 255 26 / 0.12); }
html[data-theme="y2k"] .ctx-menu hr { border-color: #3a3e48; }
html[data-theme="y2k"] .pc-logo { color: #16161d; font-weight: 700; }
html[data-theme="y2k"] .theme-card { border-radius: 14px; background: rgb(255 255 255 / 0.6); border-color: #1a1c22; }
html[data-theme="y2k"] .theme-card:hover, html[data-theme="y2k"] .theme-card[aria-pressed="true"] { border-color: #ff2bd6; box-shadow: 0 0 0 1px #ff2bd6, 0 0 14px rgb(255 43 214 / 0.45); }

/* ================================================================================
 * Skeuomorphism (from TRANSLATR™): a leather desk with stitching, brushed-metal windows,
 * parchment, glass jewels, a wooden shelf and brass.
 * ================================================================================ */
html[data-theme="skeuo"] {
  --font-ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-title: var(--font-ui);
  --ink: #2b2118;
  --muted: rgb(43 33 24 / 0.62);
  --skeuo-metal: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.07) 0 1px, rgb(0 0 0 / 0.035) 1px 2px, transparent 2px 4px), linear-gradient(180deg, #ececec 0%, #d2d2d2 45%, #bcbcbc 100%);
  --skeuo-brass: linear-gradient(180deg, #f6e2a4, #d4a93f 55%, #b78a2a);
  --skeuo-bevel: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(0 0 0 / 0.25);
}
html[data-theme="skeuo"] body { background: #4a2e1a; }
html[data-theme="skeuo"] .wp-sky { background: radial-gradient(ellipse at 50% 38%, #8f5d36 0%, #6b4327 48%, #3a2313 100%); }
html[data-theme="skeuo"] .wp-rays { inset: 12px; border-radius: 22px; border: 2px dashed rgb(240 215 170 / 0.4); background: none; mask-image: none; -webkit-mask-image: none; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.25), inset 0 0 0 1px rgb(0 0 0 / 0.2); }
html[data-theme="skeuo"] :is(.wp-hills, .wp-bubble) { display: none; }
html[data-theme="skeuo"] .wp-noise { opacity: 0.45; mix-blend-mode: multiply; }
html[data-theme="skeuo"] .desktop { padding: 12px; }
html[data-theme="skeuo"] .di-label { color: #fff6e6; text-shadow: 0 -1px 0 rgb(0 0 0 / 0.7), 0 1px 3px rgb(0 0 0 / 0.6); }
html[data-theme="skeuo"] .desk-icon.is-selected { background: rgb(212 169 63 / 0.3); border-color: rgb(246 226 164 / 0.7); }
html[data-theme="skeuo"] .win { padding: 0 8px 8px; border-radius: 10px; background: var(--skeuo-metal); border: 1px solid #5a5a5a; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: var(--skeuo-bevel), 0 2px 0 rgb(0 0 0 / 0.2), 0 22px 40px -10px rgb(0 0 0 / 0.75), 0 6px 12px rgb(0 0 0 / 0.35); }
html[data-theme="skeuo"] .win::before { content: none; }
html[data-theme="skeuo"] .win-title { font-size: 13px; font-weight: 700; color: #3a3a3a; text-shadow: 0 1px 0 rgb(255 255 255 / 0.85); }
html[data-theme="skeuo"] .win-client { border-radius: 5px; background: repeating-linear-gradient(0deg, rgb(120 90 40 / 0.035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgb(120 90 40 / 0.035) 0 1px, transparent 1px 3px), #f7f1e3; border: 1px solid #8c8c8c; box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.22), 0 1px 0 rgb(255 255 255 / 0.75); }
html[data-theme="skeuo"] .win-caps { align-self: center; gap: 7px; margin: 0 3px 0 0; border: 0; overflow: visible; box-shadow: none; }
html[data-theme="skeuo"] .cap { width: 15px; height: 15px; font-size: 8px; font-weight: 700; color: transparent; text-shadow: none; border: 1px solid rgb(0 0 0 / 0.45); border-radius: 999px; background: radial-gradient(circle at 50% 28%, #fff3b0, #f2c014 55%, #a87800); box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.8), inset 0 -2px 3px rgb(0 0 0 / 0.25), 0 1px 1px rgb(255 255 255 / 0.6); }
html[data-theme="skeuo"] .cap-max { background: radial-gradient(circle at 50% 28%, #d4f7b8, #3cb521 55%, #1d6d0d); }
html[data-theme="skeuo"] .cap-close { background: radial-gradient(circle at 50% 28%, #ffc4bb, #e8443a 55%, #8e1a12); }
html[data-theme="skeuo"] .cap:hover { background-image: none; filter: brightness(1.08); }
html[data-theme="skeuo"] .win-caps:hover .cap { color: rgb(0 0 0 / 0.55); }
html[data-theme="skeuo"] .cap-min:hover { background: radial-gradient(circle at 50% 28%, #fff3b0, #f2c014 55%, #a87800); }
html[data-theme="skeuo"] .cap-max:hover { background: radial-gradient(circle at 50% 28%, #d4f7b8, #3cb521 55%, #1d6d0d); }
html[data-theme="skeuo"] .cap-close:hover { background: radial-gradient(circle at 50% 28%, #ffc4bb, #e8443a 55%, #8e1a12); box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.8), 0 0 6px rgb(0 0 0 / 0.35); }
html[data-theme="skeuo"] .win-foot { border-top-color: #c4b594; background: rgb(120 90 40 / 0.06); }
html[data-theme="skeuo"] .btn { border-radius: 5px; border: 1px solid #6d6d6d; color: #2b2b2b; text-shadow: 0 1px 0 #fff; background: linear-gradient(180deg, #fdfdfd, #e9e9e9 50%, #d8d8d8 51%, #ececec); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgb(0 0 0 / 0.3); }
html[data-theme="skeuo"] .btn:hover { border-color: #555; background: linear-gradient(180deg, #ffffff 0%, #efefef 50%, #dddddd 51%, #f0f0f0 100%); box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgb(0 0 0 / 0.4); }
html[data-theme="skeuo"] .btn-primary { color: #3d2a00; text-shadow: 0 1px 0 rgb(255 255 255 / 0.5); border-color: #7a5a12; background: linear-gradient(180deg, #fbe7a6 0%, #e5bd5a 48%, #c99a33 52%, #dcb04a 100%); }
html[data-theme="skeuo"] .btn-primary:hover { border-color: #5c420c; background: linear-gradient(180deg, #fcecb7 0%, #ecc768 48%, #d3a53d 52%, #e3b955 100%); box-shadow: 0 0 10px rgb(220 170 60 / 0.55); }
html[data-theme="skeuo"] .taskbar { color: #fff6e6; text-shadow: 0 -1px 0 rgb(0 0 0 / 0.6); background: repeating-linear-gradient(88deg, rgb(60 30 10 / 0.16) 0 1px, transparent 1px 13px), repeating-linear-gradient(90deg, rgb(255 255 255 / 0.03) 0 2px, transparent 2px 7px), linear-gradient(180deg, #a86f3d 0%, #8a552a 45%, #6e401d 100%); border-top: 1px solid #d6a26a; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: inset 0 1px 0 rgb(255 225 180 / 0.6), 0 -6px 18px rgb(0 0 0 / 0.45); }
html[data-theme="skeuo"] .task:hover { border-color: rgb(0 0 0 / 0.35); background: linear-gradient(180deg, rgb(255 255 255 / 0.18), rgb(0 0 0 / 0.08)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 1px 2px rgb(0 0 0 / 0.4); }
html[data-theme="skeuo"] .task.is-active { border-color: rgb(0 0 0 / 0.35); background: rgb(0 0 0 / 0.18); box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.4); }
html[data-theme="skeuo"] .tray { border-color: rgb(0 0 0 / 0.3); box-shadow: inset 1px 0 0 rgb(255 225 180 / 0.2); }
html[data-theme="skeuo"] .show-desktop { border-color: rgb(0 0 0 / 0.35); background: var(--skeuo-brass); }
html[data-theme="skeuo"] .start-btn { height: 34px; padding: 0 13px 0 3px; background: var(--skeuo-brass); border: 1px solid #5c420c; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), 0 2px 4px rgb(0 0 0 / 0.5); }
html[data-theme="skeuo"] .start-orb, html[data-theme="skeuo"] .start-btn:hover .start-orb { width: 28px; height: 28px; background: radial-gradient(circle at 50% 30%, #ffb3a8, #d7261e 55%, #7c0f0a); border: 1px solid #4a0a06; box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.7), 0 1px 2px rgb(0 0 0 / 0.5); filter: none; }
html[data-theme="skeuo"] .start-glyph { font-size: 14px; }
html[data-theme="skeuo"] .start-label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; color: #4a3510; text-shadow: 0 1px 0 rgb(255 255 255 / 0.6); }
html[data-theme="skeuo"] .start-menu { border-radius: 12px; color: #fff6e6; background: radial-gradient(ellipse at 50% 30%, #8f5d36, #5a3820); border: 1px solid #2a1709; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 0 0 4px #6b4327, 0 0 0 5px #2a1709, 0 20px 40px rgb(0 0 0 / 0.6); outline: 2px dashed rgb(240 215 170 / 0.45); outline-offset: -8px; padding: 12px; }
html[data-theme="skeuo"] .sm-head, html[data-theme="skeuo"] .sm-side { text-shadow: 0 -1px 0 rgb(0 0 0 / 0.7); }
html[data-theme="skeuo"] .sm-list { background: #f7f1e3; border-color: #3a2313; border-radius: 6px; color: #2b2118; }
html[data-theme="skeuo"] .sm-item:hover, html[data-theme="skeuo"] .sm-item:focus-visible { background: var(--skeuo-brass); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6); }
html[data-theme="skeuo"] .sm-power { color: #fff; border-color: #4a0a06; background: radial-gradient(circle at 50% 20%, #ffb3a8, #d7261e 60%, #7c0f0a); border-radius: 6px; }
html[data-theme="skeuo"] .ctx-menu { border-radius: 6px; background: #f7f1e3; border-color: #8c8c8c; }
html[data-theme="skeuo"] .ctx-item:hover, html[data-theme="skeuo"] .ctx-item:focus-visible { background: var(--skeuo-brass); border-color: #7a5a12; }
html[data-theme="skeuo"] .pc-logo { color: #5b4630; text-shadow: 0 1px 0 #fff; }
html[data-theme="skeuo"] .theme-card { background: linear-gradient(180deg, #efe7d5, #f8f3e8); border-color: #c4b594; box-shadow: inset 0 2px 4px rgb(80 60 20 / 0.12); }
html[data-theme="skeuo"] .theme-card:hover, html[data-theme="skeuo"] .theme-card[aria-pressed="true"] { border-color: #9a6a00; box-shadow: 0 0 0 2px #d4a93f; }

/* ================================================================================
 * Minimalist (from TRANSLATR™): white, black hairlines, no colour at all.
 * ================================================================================ */
html[data-theme="minimal"] { filter: grayscale(1); --font-ui: "Inter", "Helvetica Neue", Arial, sans-serif; --font-title: var(--font-ui); --ink: #000; --muted: #555; }
html[data-theme="minimal"] body { background: #fff; }
html[data-theme="minimal"] .wp-sky { background: #fff; }
html[data-theme="minimal"] :is(.wp-rays, .wp-hills, .wp-bubble, .wp-noise) { display: none; }
html[data-theme="minimal"] .desk-icons { gap: 10px; padding: 24px; }
html[data-theme="minimal"] .di-img { filter: none; font-size: 34px; font-weight: 300; }
html[data-theme="minimal"] .di-label { color: #000; text-shadow: none; font-size: 11px; letter-spacing: 0.04em; }
html[data-theme="minimal"] .desk-icon { border-radius: 0; }
html[data-theme="minimal"] .desk-icon:hover { background: #f2f2f2; border-color: transparent; }
html[data-theme="minimal"] .desk-icon.is-selected { background: #fff; border-color: #000; }
html[data-theme="minimal"] .win, html[data-theme="minimal"] .win:not(.is-active) { padding: 0; border-radius: 0; background: #fff; border: 1px solid #000; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
html[data-theme="minimal"] .win.is-active { box-shadow: 6px 6px 0 #000; }
html[data-theme="minimal"] .win::before { content: none; }
html[data-theme="minimal"] .win-bar { min-height: 46px; padding-left: 16px; gap: 10px; border-bottom: 1px solid #000; }
html[data-theme="minimal"] .win-title { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #000; text-shadow: none; }
html[data-theme="minimal"] .win-client { border: 0; border-radius: 0; background: #fff; box-shadow: none; }
html[data-theme="minimal"] .win-caps { align-self: stretch; margin: 0; border: 0; border-left: 1px solid #000; border-radius: 0; box-shadow: none; }
html[data-theme="minimal"] .cap, html[data-theme="minimal"] .cap-close { width: 40px; height: auto; font-size: 11px; color: #000; text-shadow: none; background: #fff; border-left-color: #000; }
html[data-theme="minimal"] .cap:hover, html[data-theme="minimal"] .cap-close:hover { color: #fff; background: #000; box-shadow: none; }
html[data-theme="minimal"] .win-foot { border-top: 1px solid #000; background: #fff; }
html[data-theme="minimal"] .btn { border-radius: 0; border: 1px solid #000; font-weight: 500; letter-spacing: 0.04em; color: #000; background: #fff; box-shadow: none; }
html[data-theme="minimal"] .btn:hover { color: #fff; border-color: #000; background: #000; box-shadow: none; }
html[data-theme="minimal"] .btn-primary { color: #fff; background: #000; }
html[data-theme="minimal"] .btn-primary:hover { color: #000; background: #fff; }
html[data-theme="minimal"] .taskbar { color: #000; text-shadow: none; background: #fff; border-top: 1px solid #000; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
html[data-theme="minimal"] .task { border-radius: 0; }
html[data-theme="minimal"] .task:hover { border-color: #000; background: #fff; box-shadow: none; }
html[data-theme="minimal"] .task.is-active { border-color: transparent; background: #fff; box-shadow: inset 0 -2px 0 #000; }
html[data-theme="minimal"] .tray { border-color: #000; }
html[data-theme="minimal"] .show-desktop { border-color: #000; background: #fff; }
html[data-theme="minimal"] .show-desktop:hover { background: #000; }
html[data-theme="minimal"] .start-btn { height: 30px; padding: 0 12px 0 5px; gap: 9px; border-radius: 0; border: 1px solid #000; background: #fff; }
html[data-theme="minimal"] .start-btn:hover { background: #f2f2f2; }
html[data-theme="minimal"] .start-orb, html[data-theme="minimal"] .start-btn:hover .start-orb, html[data-theme="minimal"] .start-btn[aria-expanded="true"] .start-orb { width: 20px; height: 20px; border-radius: 0; border: 0; background: #000; box-shadow: none; filter: none; }
html[data-theme="minimal"] .start-orb::before { content: none; }
html[data-theme="minimal"] .start-glyph { font-size: 12px; font-weight: 600; text-shadow: none; }
html[data-theme="minimal"] .start-label { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: #000; }
html[data-theme="minimal"] .start-menu { padding: 0; border-radius: 0; color: #000; background: #fff; border: 1px solid #000; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 6px 6px 0 #000; animation: none; }
html[data-theme="minimal"] .sm-head { padding: 12px 14px; border-bottom: 1px solid #000; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; text-shadow: none; }
html[data-theme="minimal"] .sm-avatar { border-radius: 0; border: 1px solid #000; background: #fff; box-shadow: none; }
html[data-theme="minimal"] .sm-cols { gap: 0; }
html[data-theme="minimal"] .sm-list { border: 0; border-right: 1px solid #000; border-radius: 0; padding: 6px; }
html[data-theme="minimal"] .sm-item, html[data-theme="minimal"] .sm-theme { border-radius: 0; }
html[data-theme="minimal"] .sm-item:hover, html[data-theme="minimal"] .sm-item:focus-visible, html[data-theme="minimal"] .sm-theme:hover, html[data-theme="minimal"] .sm-theme[aria-pressed="true"] { background: #f2f2f2; box-shadow: inset 2px 0 0 #000; }
html[data-theme="minimal"] .sm-side { padding: 6px; text-shadow: none; }
html[data-theme="minimal"] .sm-heading { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; opacity: 1; }
html[data-theme="minimal"] .sm-foot { padding: 8px; border-top: 1px solid #000; }
html[data-theme="minimal"] .sm-power { border-radius: 0; border: 1px solid #000; text-shadow: none; background: #000; }
html[data-theme="minimal"] .swatch { border-radius: 0; border-color: #000; }
html[data-theme="minimal"] .ctx-menu { background: #fff; border-color: #000; box-shadow: 4px 4px 0 #000; }
html[data-theme="minimal"] .ctx-item { border-radius: 0; }
html[data-theme="minimal"] .ctx-item:hover, html[data-theme="minimal"] .ctx-item:focus-visible { color: #fff; background: #000; border-color: #000; }
html[data-theme="minimal"] .ctx-menu hr { border-color: #000; }
html[data-theme="minimal"] .pc-logo { color: #000; }
html[data-theme="minimal"] .tr-facts li { border-radius: 0; border-color: #000; background: #fff; }
html[data-theme="minimal"] .theme-card { border-radius: 0; border-color: #000; background: #fff; }
html[data-theme="minimal"] .theme-card:hover, html[data-theme="minimal"] .theme-card[aria-pressed="true"] { border-color: #000; box-shadow: 4px 4px 0 #000; }
html[data-theme="minimal"] .bin-file { border-radius: 0; }
html[data-theme="minimal"] .bin-file:hover, html[data-theme="minimal"] .bin-file.is-selected { background: #f2f2f2; border-color: #000; }

/* ================================================================================
 * Retro 95 (from TRANSLATR™): teal desktop, beige bevels, navy title bars, pixel type.
 * ================================================================================ */
html[data-theme="retro"] {
  --font-ui: "Pixelify Sans", "MS Sans Serif", Tahoma, sans-serif;
  --font-title: "Press Start 2P", "Courier New", monospace;
  --ink: #000;
  --muted: #5a5446;
  --retro-face: #cfc8b6;
  --retro-raised: inset -1px -1px #0a0a0a, inset 1px 1px #fffdf5, inset -2px -2px #7d7766, inset 2px 2px #eae4d4;
  --retro-sunken: inset 1px 1px #7d7766, inset -1px -1px #fffdf5, inset 2px 2px #0a0a0a, inset -2px -2px #eae4d4;
}
html[data-theme="retro"] body { background: #008080; }
html[data-theme="retro"] .wp-sky { background: #008080; }
html[data-theme="retro"] :is(.wp-rays, .wp-hills, .wp-bubble) { display: none; }
html[data-theme="retro"] .wp-noise { opacity: 1; mix-blend-mode: normal; background: repeating-linear-gradient(0deg, rgb(0 0 0 / 0.07) 0 1px, transparent 1px 3px); }
html[data-theme="retro"] .di-img { filter: none; }
html[data-theme="retro"] .di-label { color: #fff; text-shadow: none; }
html[data-theme="retro"] .desk-icon { border-radius: 0; }
html[data-theme="retro"] .desk-icon:hover { background: transparent; border-color: transparent; }
html[data-theme="retro"] .desk-icon.is-selected { background: transparent; border-color: transparent; }
html[data-theme="retro"] .desk-icon.is-selected .di-label { background: #000080; outline: 1px dotted #ffd800; }
html[data-theme="retro"] .win, html[data-theme="retro"] .win:not(.is-active) { padding: 3px; border-radius: 0; border: 0; background: var(--retro-face); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: var(--retro-raised), 5px 5px 0 rgb(0 0 0 / 0.35); }
html[data-theme="retro"] .win::before { content: none; }
html[data-theme="retro"] .win-bar { min-height: 24px; margin-bottom: 3px; padding: 0 3px 0 5px; gap: 6px; background: linear-gradient(90deg, #000080, #1084d0); }
html[data-theme="retro"] .win:not(.is-active) .win-bar { background: linear-gradient(90deg, #7b7b7b, #b5b5b5); }
html[data-theme="retro"] .win-title, html[data-theme="retro"] .win:not(.is-active) .win-title { font-size: 12px; font-size-adjust: 0.46; color: #fff; text-shadow: none; opacity: 1; }
html[data-theme="retro"] .win-client { border-radius: 0; border: 0; background: #f4f0e4; box-shadow: var(--retro-sunken); }
html[data-theme="retro"] .win-caps { align-self: center; gap: 2px; margin: 0; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
html[data-theme="retro"] .cap, html[data-theme="retro"] .cap-close { width: 18px; height: 16px; font-size: 9px; font-weight: 700; color: #000; text-shadow: none; border: 0; background: var(--retro-face); box-shadow: var(--retro-raised); }
html[data-theme="retro"] .cap-close { margin-left: 2px; }
html[data-theme="retro"] .cap:hover, html[data-theme="retro"] .cap-close:hover { background: var(--retro-face); box-shadow: var(--retro-raised); }
html[data-theme="retro"] .cap:active { box-shadow: var(--retro-sunken); }
html[data-theme="retro"] .win-foot { border-top: 1px solid #7d7766; background: transparent; box-shadow: inset 0 1px #fffdf5; }
html[data-theme="retro"] .btn { border-radius: 0; border: 0; color: #000; background: var(--retro-face); box-shadow: var(--retro-raised); }
html[data-theme="retro"] .btn:hover { background: var(--retro-face); box-shadow: var(--retro-raised); }
html[data-theme="retro"] .btn:active { transform: translate(1px, 1px); box-shadow: var(--retro-sunken); }
html[data-theme="retro"] .btn:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
html[data-theme="retro"] .btn-primary, html[data-theme="retro"] .btn-primary:hover { font-weight: 700; background: #ffd800; }
html[data-theme="retro"] .taskbar { color: #000; text-shadow: none; background: var(--retro-face); border-top: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: inset 0 1px #eae4d4, inset 0 2px #fffdf5; }
html[data-theme="retro"] .task { height: 32px; border-radius: 0; border: 0; background: var(--retro-face); box-shadow: var(--retro-raised); }
html[data-theme="retro"] .task:hover { background: var(--retro-face); box-shadow: var(--retro-raised); }
html[data-theme="retro"] .task.is-active { font-weight: 700; background: repeating-conic-gradient(#e9e4d6 0 25%, #fffdf5 0 50%) 0 0 / 2px 2px; box-shadow: var(--retro-sunken); }
html[data-theme="retro"] .task.is-min { opacity: 1; }
html[data-theme="retro"] .tray { height: 32px; margin-right: 4px; padding: 0 10px; border: 0; box-shadow: var(--retro-sunken); }
html[data-theme="retro"] .show-desktop { display: none; }
html[data-theme="retro"] .start-btn { height: 32px; padding: 0 9px 0 5px; gap: 6px; border-radius: 0; background: var(--retro-face); box-shadow: var(--retro-raised); }
html[data-theme="retro"] .start-btn[aria-expanded="true"] { box-shadow: var(--retro-sunken); }
html[data-theme="retro"] .start-orb, html[data-theme="retro"] .start-btn:hover .start-orb, html[data-theme="retro"] .start-btn[aria-expanded="true"] .start-orb { width: 18px; height: 16px; border-radius: 0; border: 1px solid #000; background: conic-gradient(from 90deg, #3f5fff 0 25%, #ffd800 0 50%, #39c24a 0 75%, #e83030 0); box-shadow: none; filter: none; }
html[data-theme="retro"] .start-orb::before, html[data-theme="retro"] .start-glyph { display: none; }
html[data-theme="retro"] .start-label { font: 12px/1 var(--font-title); font-size-adjust: 0.46; color: #000; }
html[data-theme="retro"] .start-menu, html[data-theme="vapor"] .start-menu { padding: 3px; border-radius: 0; animation: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-theme="retro"] .start-menu { color: #000; background: var(--retro-face); border: 0; box-shadow: var(--retro-raised), 4px 4px 0 rgb(0 0 0 / 0.35); }
html[data-theme="retro"] .sm-banner, html[data-theme="vapor"] .sm-banner { display: flex; align-items: flex-end; justify-content: flex-start; width: 30px; padding: 10px 0; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 18px; letter-spacing: 0.04em; color: #fff; }
html[data-theme="retro"] .sm-banner { font: 14px/1 var(--font-title); font-size-adjust: 0.46; color: #cfc8b6; background: linear-gradient(0deg, #000080, #1084d0); }
html[data-theme="retro"] .sm-main, html[data-theme="vapor"] .sm-main { padding: 4px; }
html[data-theme="retro"] .sm-head, html[data-theme="vapor"] .sm-head { display: none; }
html[data-theme="retro"] .sm-list { padding: 2px; border: 0; border-radius: 0; background: transparent; }
html[data-theme="retro"] :is(.sm-item, .sm-theme) { border-radius: 0; }
html[data-theme="retro"] :is(.sm-item, .sm-theme):is(:hover, :focus-visible), html[data-theme="retro"] .sm-theme[aria-pressed="true"] { color: #fff; background: #000080; box-shadow: none; }
html[data-theme="retro"] .sm-side { text-shadow: none; border-left: 1px solid #7d7766; box-shadow: inset 1px 0 #fffdf5; padding-left: 6px; }
html[data-theme="retro"] .sm-heading { font-weight: 700; color: #000080; opacity: 1; }
html[data-theme="retro"] .sm-foot { margin-top: 4px; padding-top: 5px; border-top: 1px solid #7d7766; box-shadow: inset 0 1px #fffdf5; }
html[data-theme="retro"] .sm-power { border-radius: 0; border: 0; color: #000; text-shadow: none; background: var(--retro-face); box-shadow: var(--retro-raised); }
html[data-theme="retro"] .sm-power:active { box-shadow: var(--retro-sunken); }
html[data-theme="retro"] .ctx-menu { background: var(--retro-face); border: 0; box-shadow: var(--retro-raised), 3px 3px 0 rgb(0 0 0 / 0.35); }
html[data-theme="retro"] .ctx-item { border-radius: 0; border: 0; }
html[data-theme="retro"] .ctx-item:hover, html[data-theme="retro"] .ctx-item:focus-visible { color: #fff; background: #000080; }
html[data-theme="retro"] .ctx-menu hr { border-color: #7d7766; box-shadow: 0 1px #fffdf5; }
html[data-theme="retro"] .pc-logo { font-size: 26px; font-size-adjust: 0.46; color: #d40000; text-shadow: 2px 2px 0 #ffd800, 4px 4px 0 #000; }
html[data-theme="retro"] .tr-facts li { border-radius: 0; background: #fff; border-color: #7d7766; }
html[data-theme="retro"] .theme-card { border-radius: 0; border: 0; background: var(--retro-face); box-shadow: var(--retro-raised); }
html[data-theme="retro"] .theme-card:hover { box-shadow: var(--retro-raised); }
html[data-theme="retro"] .theme-card[aria-pressed="true"] { background: #f4f0e4; box-shadow: var(--retro-sunken); }
html[data-theme="retro"] .bin-file { border-radius: 0; }
html[data-theme="retro"] .bin-file:hover { background: transparent; border-color: transparent; }
html[data-theme="retro"] .bin-file.is-selected { color: #fff; background: #000080; }
html[data-theme="retro"] .bin-file.is-selected small { color: #c0c0ff; }

/* ================================================================================
 * Luna: rolling green hills, a blue title bar, a very green start button (2001).
 * ================================================================================ */
html[data-theme="luna"] { --taskbar-h: 38px; --font-ui: Tahoma, "Segoe UI", Verdana, sans-serif; --font-title: "Trebuchet MS", Tahoma, sans-serif; --ink: #000; --muted: #5b5b5b; }
html[data-theme="luna"] body { background: #3a78d8; font-size: 13px; }
html[data-theme="luna"] .wp-sky { background: linear-gradient(180deg, #1c5fd6 0%, #3d86e8 28%, #74b1f1 52%, #b3d7f8 66%, #d6ebfb 74%); }
html[data-theme="luna"] .wp-rays {
  mask-image: none;
  -webkit-mask-image: none;
  background:
    radial-gradient(ellipse 15% 4.5% at 22% 24%, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0) 70%),
    radial-gradient(ellipse 9% 3.5% at 29% 21%, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0) 70%),
    radial-gradient(ellipse 20% 5.5% at 66% 16%, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0) 70%),
    radial-gradient(ellipse 12% 4% at 76% 30%, rgb(255 255 255 / 0.75), rgb(255 255 255 / 0) 70%),
    radial-gradient(ellipse 18% 5% at 44% 40%, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0) 70%);
}
html[data-theme="luna"] .wp-hills {
  background:
    radial-gradient(ellipse 95% 56% at 36% 114%, #3a9420 0%, #4dac2b 36%, #66c13b 50%, #8bd455 56.5%, #a9df72 58.4%, rgb(169 223 114 / 0) 59.4%),
    radial-gradient(ellipse 80% 50% at 104% 120%, #2c7e17 0%, #3e9722 45%, #5bb433 55%, rgb(91 180 51 / 0) 58%);
}
html[data-theme="luna"] .wp-bubble { display: none; }
html[data-theme="luna"] .wp-noise { opacity: 0.05; }
html[data-theme="luna"] .di-img { filter: drop-shadow(1px 2px 1px rgb(0 0 0 / 0.4)); }
html[data-theme="luna"] .di-label { font-size: 11.5px; text-shadow: 1px 1px 1px #000; }
html[data-theme="luna"] .desk-icon { border-radius: 0; }
html[data-theme="luna"] .desk-icon:hover { background: transparent; border-color: transparent; }
html[data-theme="luna"] .desk-icon.is-selected { background: transparent; border-color: transparent; }
html[data-theme="luna"] .desk-icon.is-selected .di-label { background: #316ac5; text-shadow: none; outline: 1px dotted #ffd06a; }
html[data-theme="luna"] .desk-icon.is-selected .di-img { filter: drop-shadow(1px 2px 1px rgb(0 0 0 / 0.4)) sepia(1) hue-rotate(180deg) saturate(3) brightness(0.9); }
html[data-theme="luna"] .win { padding: 0 3px 3px; border-radius: 8px 8px 0 0; background: #0831d9; border: 1px solid #001ea0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 2px 4px 14px rgb(0 0 0 / 0.38); }
html[data-theme="luna"] .win:not(.is-active) { background: #7a96df; border-color: #6680c8; box-shadow: 2px 3px 10px rgb(0 0 0 / 0.25); }
html[data-theme="luna"] .win::before { content: none; }
html[data-theme="luna"] .win.is-max { border-radius: 0; }
html[data-theme="luna"] .win-bar { min-height: 30px; margin: 0 -3px; padding: 0 5px 0 8px; gap: 6px; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #0066ff 88%, #0066ff 93%, #005bff 95%, #003dd7 96%, #003dd7 100%); }
html[data-theme="luna"] .win:not(.is-active) .win-bar { background: linear-gradient(180deg, #a6bff3 0%, #7b9ae6 10%, #7a97e4 60%, #8da8ea 92%, #7390dc 100%); }
html[data-theme="luna"] .win-title, html[data-theme="luna"] .win:not(.is-active) .win-title { font: 700 13px/1.2 var(--font-title); color: #fff; text-shadow: 1px 1px 0 #0f1089; opacity: 1; }
html[data-theme="luna"] .win:not(.is-active) .win-title { color: #d8e4f8; text-shadow: none; }
html[data-theme="luna"] .win-client { border: 0; border-radius: 0; background: #ece9d8; box-shadow: none; }
html[data-theme="luna"] .win-caps { align-self: center; gap: 2px; margin: 0; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
html[data-theme="luna"] .cap, html[data-theme="luna"] .cap-close { width: 21px; height: 21px; border: 1px solid #fff; border-radius: 3px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: none; background: radial-gradient(circle at 90% 90%, #0054e3 0%, #2663e0 55%, #4f8ef8 80%, #b0cbff 100%); box-shadow: inset 0 0 1px rgb(0 0 0 / 0.3); }
html[data-theme="luna"] .cap-close { background: radial-gradient(circle at 90% 90%, #cc4600 0%, #dc6527 55%, #cd7546 70%, #ffccb2 90%, #fff 100%); }
html[data-theme="luna"] .cap:hover { background: radial-gradient(circle at 90% 90%, #1a6cf4 0%, #3a7ef4 55%, #6ea4fb 80%, #cfe0ff 100%); box-shadow: none; }
html[data-theme="luna"] .cap-close:hover { background: radial-gradient(circle at 90% 90%, #e55b10 0%, #ef7a3a 55%, #e0895a 70%, #ffd9c6 90%, #fff 100%); box-shadow: none; }
html[data-theme="luna"] .win:not(.is-active) .cap { opacity: 0.7; }
html[data-theme="luna"] .win-foot { border-top: 1px solid #c7c3b5; background: #ece9d8; }
html[data-theme="luna"] .btn { min-height: 23px; padding: 3px 14px; border-radius: 3px; border: 1px solid #003c74; font: 11.5px/1.2 var(--font-ui); color: #000; background: linear-gradient(180deg, #fff 0%, #ecebe6 86%, #d6d0c5 100%); box-shadow: none; }
html[data-theme="luna"] .btn:hover { border-color: #003c74; background: linear-gradient(180deg, #fff 0%, #ecebe6 86%, #d6d0c5 100%); box-shadow: inset 0 -1px 0 #f5b953, inset 0 1px 0 #ffe7a2, inset 1px 0 0 #fbd98c, inset -1px 0 0 #fbd98c; }
html[data-theme="luna"] .btn:active { background: linear-gradient(180deg, #e5e4de, #f1f0ea); box-shadow: none; }
html[data-theme="luna"] .btn-primary { font-weight: 700; box-shadow: inset 0 -1px 0 #99b7f0, inset 0 1px 0 #cee7ff, inset 1px 0 0 #b8d0f5, inset -1px 0 0 #b8d0f5; }
html[data-theme="luna"] .taskbar {
  gap: 4px;
  padding-left: 0;
  text-shadow: 0 1px 1px rgb(0 0 0 / 0.35);
  background: linear-gradient(180deg, #1f2f86 0%, #3165c4 3%, #3682e5 6%, #4490e6 10%, #3883e5 12%, #2b71e0 15%, #2663da 18%, #235bd6 20%, #2258d5 23%, #2157d6 38%, #245ddb 54%, #2562df 86%, #245fdc 89%, #2158d4 92%, #1d4ec0 95%, #1941a5 98%);
  border-top: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
html[data-theme="luna"] .start-btn { height: 100%; padding: 0 24px 0 12px; border-radius: 0 12px 12px 0; background: linear-gradient(180deg, #5cbd5c 0%, #3f9f3f 10%, #37a237 50%, #2f8d2f 88%, #267a26 100%); box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.5), inset -2px 0 3px rgb(0 0 0 / 0.25), 3px 0 5px rgb(0 0 0 / 0.3); }
html[data-theme="luna"] .start-btn:hover, html[data-theme="luna"] .start-btn[aria-expanded="true"] { filter: brightness(1.1); }
html[data-theme="luna"] .start-orb { display: none; }
html[data-theme="luna"] .start-label { font: italic 700 19px/1 var(--font-title); color: #fff; text-shadow: 1px 1px 2px #1a3f1a; }
html[data-theme="luna"] .task { flex-basis: 160px; height: 28px; border-radius: 3px; border: 1px solid #1a4db5; font-size: 11.5px; color: #fff; background: linear-gradient(180deg, #3c81f3 0%, #3474e8 50%, #2d68d9 100%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3); }
html[data-theme="luna"] .task:hover { border-color: #1a4db5; background: linear-gradient(180deg, #5395fb 0%, #4486f3 50%, #3b79e6 100%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35); }
html[data-theme="luna"] .task.is-active { border-color: #0e2f82; background: linear-gradient(180deg, #1e52b7, #1c4aa8); box-shadow: inset 1px 1px 3px rgb(0 0 0 / 0.5); }
html[data-theme="luna"] .task.is-min { opacity: 1; }
html[data-theme="luna"] .tray { padding: 0 12px; border-left: 1px solid #092e8a; color: #fff; background: linear-gradient(180deg, #0c59b9 0%, #139ee9 6%, #18b5f2 10%, #139beb 14%, #1290e8 19%, #0e88dc 60%, #0d80d4 90%, #0c6fbe 100%); box-shadow: inset 1px 0 1px rgb(255 255 255 / 0.3); }
html[data-theme="luna"] .clock { font-size: 11.5px; }
html[data-theme="luna"] .show-desktop { display: none; }
html[data-theme="luna"] .start-menu { padding: 0; overflow: hidden; border-radius: 7px 7px 0 0; color: #000; background: #fff; border: 1px solid #0c3fb7; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 2px 2px 10px rgb(0 0 0 / 0.5); animation: none; }
html[data-theme="luna"] .sm-head { padding: 8px 10px; color: #fff; font: 700 14px/1 var(--font-title); text-shadow: 1px 1px #0a246a; background: linear-gradient(180deg, #1868ce 0%, #0e60cb 12%, #0e60cb 88%, #0a4db1 100%); border-bottom: 2px solid #e37a19; }
html[data-theme="luna"] .sm-avatar { border-radius: 3px; border: 2px solid #fff; background: linear-gradient(#fbe8c4, #f0c27a); }
html[data-theme="luna"] .sm-cols { gap: 0; }
html[data-theme="luna"] .sm-list { padding: 6px; border: 0; border-radius: 0; background: #fff; }
html[data-theme="luna"] :is(.sm-item, .sm-theme) { border-radius: 0; font-size: 12px; }
html[data-theme="luna"] :is(.sm-item, .sm-theme):is(:hover, :focus-visible), html[data-theme="luna"] .sm-theme[aria-pressed="true"] { color: #fff; background: #316ac5; box-shadow: none; }
html[data-theme="luna"] .sm-side { padding: 6px; color: #0b2e6f; text-shadow: none; background: #d3e5fa; border-left: 1px solid #95bdee; }
html[data-theme="luna"] .sm-heading { color: #0b2e6f; font-weight: 700; opacity: 1; }
html[data-theme="luna"] .sm-foot { padding: 6px 10px; background: linear-gradient(180deg, #4282d6 0%, #3b72c8 12%, #2c5fb5 100%); }
html[data-theme="luna"] .sm-power { border-radius: 3px; border: 1px solid #fff; background: linear-gradient(180deg, #e8866a, #d54a26 50%, #c23b17); }
html[data-theme="luna"] .ctx-menu { background: #fff; border-color: #aca899; box-shadow: 2px 2px 3px rgb(0 0 0 / 0.35); }
html[data-theme="luna"] .ctx-item { border-radius: 0; border: 0; font-size: 12px; }
html[data-theme="luna"] .ctx-item:hover, html[data-theme="luna"] .ctx-item:focus-visible { color: #fff; background: #316ac5; }
html[data-theme="luna"] .pc-logo { font-weight: 700; font-style: italic; color: #0b4fcf; }
html[data-theme="luna"] .theme-card { border-radius: 3px; border-color: #7f9db9; background: #fff; }
html[data-theme="luna"] .theme-card:hover, html[data-theme="luna"] .theme-card[aria-pressed="true"] { border-color: #316ac5; box-shadow: 0 0 0 2px #316ac5; }
html[data-theme="luna"] .bin-file:hover, html[data-theme="luna"] .bin-file.is-selected { color: #fff; background: #316ac5; border-color: #316ac5; }
html[data-theme="luna"] .bin-file:is(:hover, .is-selected) small { color: #dfe8f7; }

/* ================================================================================
 * Aqua: pinstripes, lickable gel buttons, traffic lights, and a dock (2002).
 * ================================================================================ */
html[data-theme="aqua"] { --taskbar-h: 76px; --font-ui: "Lucida Grande", "Helvetica Neue", Helvetica, Arial, sans-serif; --font-title: var(--font-ui); --ink: #1d1d1f; --muted: #6e6e73; }
html[data-theme="aqua"] body { background: #1d63d3; font-size: 13px; }
html[data-theme="aqua"] .wp-sky { background: radial-gradient(ellipse 70% 50% at 25% 15%, #7cc0ff 0%, rgb(124 192 255 / 0) 60%), radial-gradient(ellipse 60% 60% at 85% 85%, #062f82 0%, rgb(6 47 130 / 0) 65%), linear-gradient(160deg, #3d8ff0 0%, #1d63d3 45%, #0d47a8 100%); }
html[data-theme="aqua"] .wp-rays { inset: -20%; mask-image: none; -webkit-mask-image: none; transform: rotate(-12deg); background: radial-gradient(ellipse 60% 18% at 50% 58%, rgb(255 255 255 / 0.22) 0%, rgb(255 255 255 / 0) 70%), radial-gradient(ellipse 45% 12% at 42% 38%, rgb(255 255 255 / 0.16) 0%, rgb(255 255 255 / 0) 70%), radial-gradient(ellipse 50% 10% at 60% 74%, rgb(160 220 255 / 0.18) 0%, rgb(160 220 255 / 0) 70%); }
html[data-theme="aqua"] .wp-hills { display: none; }
html[data-theme="aqua"] .wp-bubble { box-shadow: inset 0 -8px 16px -8px rgb(150 220 255 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.25); }
html[data-theme="aqua"] .di-label { text-shadow: 0 1px 3px rgb(0 0 0 / 0.85); font-size: 11px; }
html[data-theme="aqua"] .desk-icon { border-radius: 6px; }
html[data-theme="aqua"] .desk-icon:hover { background: transparent; border-color: transparent; }
html[data-theme="aqua"] .desk-icon.is-selected { background: rgb(0 0 0 / 0.18); border-color: rgb(255 255 255 / 0.25); }
html[data-theme="aqua"] .desk-icon.is-selected .di-label { background: #3875d7; border-radius: 4px; text-shadow: none; }
html[data-theme="aqua"] .win, html[data-theme="aqua"] .win:not(.is-active) { padding: 0; border-radius: 9px; overflow: hidden; background: repeating-linear-gradient(180deg, #ececec 0 2px, #f6f6f6 2px 4px); border: 1px solid rgb(0 0 0 / 0.35); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 22px 60px -12px rgb(0 0 0 / 0.6), 0 0 0 0.5px rgb(0 0 0 / 0.2); }
html[data-theme="aqua"] .win:not(.is-active) { box-shadow: 0 12px 34px -12px rgb(0 0 0 / 0.45); }
html[data-theme="aqua"] .win::before { content: none; }
html[data-theme="aqua"] .win-bar { min-height: 26px; padding: 0 10px; gap: 8px; background: repeating-linear-gradient(180deg, rgb(255 255 255 / 0.25) 0 1px, transparent 1px 3px), linear-gradient(180deg, #ececec 0%, #cfcfcf 100%); border-bottom: 1px solid #9f9f9f; box-shadow: inset 0 1px 0 #fff; }
html[data-theme="aqua"] .win-icon { display: none; }
html[data-theme="aqua"] .win-title { padding-right: 52px; text-align: center; font-size: 13px; color: #222; text-shadow: 0 1px 0 rgb(255 255 255 / 0.8); }
html[data-theme="aqua"] .win:not(.is-active) .win-title { opacity: 0.55; }
html[data-theme="aqua"] .win-caps { order: -1; align-self: center; gap: 7px; margin: 0; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
html[data-theme="aqua"] .cap, html[data-theme="aqua"] .cap-close { width: 13px; height: 13px; font-size: 8px; font-weight: 700; line-height: 1; color: transparent; text-shadow: none; border: 1px solid rgb(0 0 0 / 0.3); border-radius: 50%; background: radial-gradient(circle at 50% 28%, #fff4c9 0%, #febc2e 45%, #c78d09 100%); box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.8), 0 1px 1px rgb(0 0 0 / 0.2); }
html[data-theme="aqua"] .cap-max { background: radial-gradient(circle at 50% 28%, #d7f7d0 0%, #28c840 45%, #13871f 100%); }
html[data-theme="aqua"] .cap-close { order: -1; background: radial-gradient(circle at 50% 28%, #ffd7d2 0%, #ff5f57 45%, #c0392b 100%); }
html[data-theme="aqua"] .win-caps:hover .cap { color: rgb(0 0 0 / 0.6); }
html[data-theme="aqua"] .cap:hover { filter: brightness(1.05); }
html[data-theme="aqua"] .cap-min:hover { background: radial-gradient(circle at 50% 28%, #fff4c9 0%, #febc2e 45%, #c78d09 100%); box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.8); }
html[data-theme="aqua"] .cap-max:hover { background: radial-gradient(circle at 50% 28%, #d7f7d0 0%, #28c840 45%, #13871f 100%); box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.8); }
html[data-theme="aqua"] .cap-close:hover { background: radial-gradient(circle at 50% 28%, #ffd7d2 0%, #ff5f57 45%, #c0392b 100%); box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.8); }
html[data-theme="aqua"] .win:not(.is-active) .cap { background: radial-gradient(circle at 50% 28%, #fafafa, #d6d6d6 45%, #a9a9a9); }
html[data-theme="aqua"] .win-client { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
html[data-theme="aqua"] .win-foot { border-top: 1px solid #c8c8c8; background: transparent; }
html[data-theme="aqua"] .btn { min-height: 24px; padding: 3px 18px; border-radius: 999px; border: 1px solid #8a8a8a; color: #111; background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 50%, #e2e2e2 51%, #f6f6f6 100%); box-shadow: 0 1px 1px rgb(0 0 0 / 0.2); }
html[data-theme="aqua"] .btn:hover { border-color: #6f6f6f; background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 50%, #e2e2e2 51%, #f6f6f6 100%); }
html[data-theme="aqua"] .btn-primary, html[data-theme="aqua"] .btn-primary:hover { font-weight: 400; color: #03183a; border-color: #1a4f9c; background: linear-gradient(180deg, #cfe6ff 0%, #6eb3ff 45%, #2179e8 52%, #58a8ff 100%); box-shadow: 0 1px 2px rgb(0 40 120 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.6); animation: aqua-pulse 1.6s ease-in-out infinite alternate; }
@keyframes aqua-pulse { to { filter: brightness(1.14) saturate(1.1); } }
html[data-theme="aqua"] .taskbar {
  left: 50%;
  right: auto;
  bottom: 8px;
  height: 60px;
  max-width: calc(100vw - 16px);
  padding: 0 10px;
  gap: 8px;
  transform: translateX(-50%);
  color: #1d1d1f;
  text-shadow: none;
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 0.7);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.6), rgb(255 255 255 / 0.28));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgb(0 20 70 / 0.4), inset 0 1px 0 rgb(255 255 255 / 0.8);
}
html[data-theme="aqua"] .tasks { flex: 0 1 auto; gap: 6px; overflow: visible; }
html[data-theme="aqua"] .task { flex: 0 0 48px; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px; transition: transform 0.15s; }
html[data-theme="aqua"] .task:hover, html[data-theme="aqua"] .task.is-active { border: 0; background: transparent; box-shadow: none; }
html[data-theme="aqua"] .task:hover { transform: translateY(-6px) scale(1.14); }
html[data-theme="aqua"] .task-icon { font-size: 34px; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.35)); }
html[data-theme="aqua"] .task-label { display: none; }
html[data-theme="aqua"] .task::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #1d1d1f; opacity: 0.65; }
html[data-theme="aqua"] .task.is-min { opacity: 0.7; }
html[data-theme="aqua"] .start-btn { transition: transform 0.15s; }
html[data-theme="aqua"] .start-btn:hover { transform: translateY(-6px) scale(1.1); }
html[data-theme="aqua"] .start-orb, html[data-theme="aqua"] .start-btn:hover .start-orb { width: 46px; height: 46px; background: radial-gradient(circle at 50% 30%, #d8efff 0%, #5aa9ff 40%, #1a62d6 75%, #0b3f9e 100%); border: 1px solid rgb(0 30 90 / 0.6); box-shadow: 0 3px 6px rgb(0 20 70 / 0.4), inset 0 -3px 8px rgb(120 200 255 / 0.6); filter: none; }
html[data-theme="aqua"] .start-glyph { font-size: 24px; }
html[data-theme="aqua"] .tray { gap: 6px; padding: 0 2px 0 10px; border-left: 1px solid rgb(0 0 0 / 0.15); }
html[data-theme="aqua"] .clock { font-size: 12px; }
html[data-theme="aqua"] .show-desktop { display: none; }
html[data-theme="aqua"] .start-menu { left: 50%; transform: translateX(-50%); bottom: calc(var(--taskbar-h) + 6px); padding: 6px; border-radius: 10px; color: #1d1d1f; background: rgb(255 255 255 / 0.94); border: 1px solid rgb(0 0 0 / 0.25); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 14px 40px rgb(0 0 0 / 0.35); animation: none; }
html[data-theme="aqua"] .sm-head { color: #1d1d1f; text-shadow: none; border-bottom: 1px solid #ddd; margin-bottom: 6px; }
html[data-theme="aqua"] .sm-avatar { border-radius: 8px; border-color: #d0d0d0; background: linear-gradient(#fff, #e6eefb); box-shadow: 0 1px 2px rgb(0 0 0 / 0.25); }
html[data-theme="aqua"] .sm-list { border: 0; background: transparent; padding: 0; }
html[data-theme="aqua"] .sm-side { text-shadow: none; }
html[data-theme="aqua"] :is(.sm-item, .sm-theme) { border-radius: 5px; }
html[data-theme="aqua"] :is(.sm-item, .sm-theme):is(:hover, :focus-visible) { color: #fff; background: #3875d7; box-shadow: none; }
html[data-theme="aqua"] .sm-theme[aria-pressed="true"] { background: rgb(56 117 215 / 0.14); box-shadow: none; }
html[data-theme="aqua"] .sm-power { color: #111; text-shadow: none; border-radius: 999px; border: 1px solid #8a8a8a; background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 50%, #e2e2e2 51%, #f6f6f6 100%); }
html[data-theme="aqua"] .sm-power:hover { box-shadow: none; filter: brightness(0.97); }
html[data-theme="aqua"] .ctx-menu { padding: 4px; border-radius: 6px; background: rgb(255 255 255 / 0.95); border-color: rgb(0 0 0 / 0.2); box-shadow: 0 8px 24px rgb(0 0 0 / 0.3); }
html[data-theme="aqua"] .ctx-item { border: 0; border-radius: 4px; }
html[data-theme="aqua"] .ctx-item:hover, html[data-theme="aqua"] .ctx-item:focus-visible { color: #fff; background: #3875d7; }
html[data-theme="aqua"] .pc-logo { color: #1a62d6; }
html[data-theme="aqua"] .theme-card { border-radius: 8px; background: rgb(255 255 255 / 0.85); border-color: #c8c8c8; }
html[data-theme="aqua"] .theme-card:hover, html[data-theme="aqua"] .theme-card[aria-pressed="true"] { border-color: #3875d7; box-shadow: 0 0 0 3px rgb(56 117 215 / 0.35); }
html[data-theme="aqua"] .bin-file { border-radius: 4px; }
html[data-theme="aqua"] .bin-file.is-selected { color: #fff; background: #3875d7; border-color: #3875d7; }
html[data-theme="aqua"] .bin-file.is-selected small { color: #dce8fb; }

/* ================================================================================
 * Vaporwave: a striped sunset over a neon grid, pastel bevels, ｓｔａｒｔ.
 * ================================================================================ */
html[data-theme="vapor"] {
  --font-ui: Tahoma, "Trebuchet MS", sans-serif;
  --font-title: "VT323", "Courier New", monospace;
  --font-mono: "VT323", "Courier New", monospace;
  --ink: #2b0f4f;
  --muted: #7a4f9e;
  --vp-face: #e9d6ff;
  --vp-raised: inset -1px -1px #2b0f4f, inset 1px 1px #fff6ff, inset -2px -2px #9a72cf, inset 2px 2px #f6ecff;
  --vp-sunken: inset 1px 1px #9a72cf, inset -1px -1px #fff6ff, inset 2px 2px #2b0f4f, inset -2px -2px #f6ecff;
}
html[data-theme="vapor"] body { background: #1a0033; }
html[data-theme="vapor"] .wp-sky { background: linear-gradient(180deg, #120026 0%, #2d0b59 22%, #6b1f8c 42%, #c2338f 54%, #ff6ea8 60%, #ffb47a 64%, #1a0033 64.1%); }
html[data-theme="vapor"] .wp-rays {
  inset: auto auto calc(36% - 7vmin) 50%;
  width: min(44vmin, 380px);
  height: min(44vmin, 380px);
  translate: -50% 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff27a 0%, #ffb35c 42%, #ff4fa3 100%);
  mask-image: linear-gradient(180deg, #000 0 50%, transparent 50% 54%, #000 54% 62%, transparent 62% 67%, #000 67% 74%, transparent 74% 80%, #000 80% 86%, transparent 86% 93%, #000 93%);
  -webkit-mask-image: linear-gradient(180deg, #000 0 50%, transparent 50% 54%, #000 54% 62%, transparent 62% 67%, #000 67% 74%, transparent 74% 80%, #000 80% 86%, transparent 86% 93%, #000 93%);
}
html[data-theme="vapor"] .wp-hills {
  inset: 64% -60% -40%;
  transform: perspective(260px) rotateX(58deg);
  transform-origin: 50% 0;
  background:
    linear-gradient(180deg, rgb(255 113 206 / 0.4), rgb(255 113 206 / 0) 28%),
    repeating-linear-gradient(90deg, rgb(255 113 206 / 0.9) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(0deg, rgb(1 205 254 / 0.8) 0 2px, transparent 2px 64px),
    #1a0033;
}
html[data-theme="vapor"] .wp-bubble { display: none; }
html[data-theme="vapor"] .wp-noise { opacity: 0.6; mix-blend-mode: normal; background: repeating-linear-gradient(0deg, rgb(0 0 0 / 0.12) 0 1px, transparent 1px 3px); }
html[data-theme="vapor"] .di-img { filter: drop-shadow(0 0 6px rgb(255 113 206 / 0.8)); }
html[data-theme="vapor"] .di-label { font: 18px/1 var(--font-title); letter-spacing: 0.04em; text-shadow: 0 0 6px #ff71ce, 1px 1px 0 #6b1f8c; }
html[data-theme="vapor"] .desk-icon { border-radius: 0; }
html[data-theme="vapor"] .desk-icon:hover { background: rgb(1 205 254 / 0.12); border-color: rgb(1 205 254 / 0.4); }
html[data-theme="vapor"] .desk-icon.is-selected { background: rgb(255 113 206 / 0.2); border-color: #ff71ce; }
html[data-theme="vapor"] .desk-icon.is-selected .di-label { color: #2b0f4f; background: #01cdfe; text-shadow: none; }
html[data-theme="vapor"] .win, html[data-theme="vapor"] .win:not(.is-active) { padding: 3px; border-radius: 0; border: 0; background: var(--vp-face); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: var(--vp-raised), 7px 7px 0 rgb(255 113 206 / 0.5); }
html[data-theme="vapor"] .win.is-active { box-shadow: var(--vp-raised), 7px 7px 0 rgb(1 205 254 / 0.55); }
html[data-theme="vapor"] .win::before { content: none; }
html[data-theme="vapor"] .win-bar { min-height: 26px; margin-bottom: 3px; padding: 0 3px 0 6px; background: linear-gradient(90deg, #ff71ce, #b967ff 55%, #01cdfe); }
html[data-theme="vapor"] .win:not(.is-active) .win-bar { background: linear-gradient(90deg, #cfa9dc, #b9b3dc); }
html[data-theme="vapor"] .win-title, html[data-theme="vapor"] .win:not(.is-active) .win-title { font: 20px/1 var(--font-title); letter-spacing: 0.08em; color: #fff; text-shadow: 2px 2px 0 #6b1f8c; opacity: 1; }
html[data-theme="vapor"] .win-client { border-radius: 0; border: 0; background: #fff6ff; box-shadow: var(--vp-sunken); }
html[data-theme="vapor"] .win-caps { align-self: center; gap: 2px; margin: 0; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
html[data-theme="vapor"] .cap, html[data-theme="vapor"] .cap-close { width: 20px; height: 18px; font-size: 10px; font-weight: 700; color: #2b0f4f; text-shadow: none; border: 0; background: var(--vp-face); box-shadow: var(--vp-raised); }
html[data-theme="vapor"] .cap-close, html[data-theme="vapor"] .cap-close:hover { margin-left: 2px; color: #fff; background: #ff71ce; }
html[data-theme="vapor"] .cap:hover { background: #f6ecff; box-shadow: var(--vp-raised); }
html[data-theme="vapor"] .cap:active { box-shadow: var(--vp-sunken); }
html[data-theme="vapor"] .win-foot { border-top: 1px solid #d9b8f5; background: transparent; }
html[data-theme="vapor"] .btn { border-radius: 0; border: 0; font: 19px/1 var(--font-title); letter-spacing: 0.05em; color: #2b0f4f; background: var(--vp-face); box-shadow: var(--vp-raised); }
html[data-theme="vapor"] .btn:hover { background: #f6ecff; box-shadow: var(--vp-raised); }
html[data-theme="vapor"] .btn:active { transform: translate(1px, 1px); box-shadow: var(--vp-sunken); }
html[data-theme="vapor"] .btn-primary, html[data-theme="vapor"] .btn-primary:hover { color: #fff; text-shadow: 1px 1px 0 #6b1f8c; background: linear-gradient(90deg, #ff71ce, #01cdfe); }
html[data-theme="vapor"] .taskbar { color: #2b0f4f; text-shadow: none; background: var(--vp-face); border-top: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: inset 0 1px #f6ecff, inset 0 2px #fff6ff, 0 -4px 20px rgb(255 113 206 / 0.35); }
html[data-theme="vapor"] .task { height: 32px; border-radius: 0; border: 0; background: var(--vp-face); box-shadow: var(--vp-raised); }
html[data-theme="vapor"] .task:hover { background: #f6ecff; box-shadow: var(--vp-raised); }
html[data-theme="vapor"] .task.is-active { background: #f6d6ff; box-shadow: var(--vp-sunken); }
html[data-theme="vapor"] .task.is-min { opacity: 1; }
html[data-theme="vapor"] .tray { height: 32px; margin-right: 4px; padding: 0 10px; border: 0; box-shadow: var(--vp-sunken); }
html[data-theme="vapor"] .clock { font: 19px/1 var(--font-title); letter-spacing: 0.05em; }
html[data-theme="vapor"] .show-desktop { display: none; }
html[data-theme="vapor"] .start-btn { height: 32px; padding: 0 10px 0 6px; gap: 6px; border-radius: 0; background: var(--vp-face); box-shadow: var(--vp-raised); }
html[data-theme="vapor"] .start-btn[aria-expanded="true"] { box-shadow: var(--vp-sunken); }
html[data-theme="vapor"] .start-orb, html[data-theme="vapor"] .start-btn:hover .start-orb, html[data-theme="vapor"] .start-btn[aria-expanded="true"] .start-orb { width: 18px; height: 18px; border: 1px solid #2b0f4f; background: linear-gradient(180deg, #fff27a, #ffb35c 45%, #ff4fa3); box-shadow: 0 0 8px rgb(255 113 206 / 0.8); filter: none; }
html[data-theme="vapor"] .start-orb::before, html[data-theme="vapor"] .start-glyph { display: none; }
html[data-theme="vapor"] .start-label { font: 700 14px/1 var(--font-ui); letter-spacing: 0.08em; color: #2b0f4f; }
html[data-theme="vapor"] .start-menu { color: #2b0f4f; background: var(--vp-face); border: 0; box-shadow: var(--vp-raised), 5px 5px 0 rgb(1 205 254 / 0.55); }
html[data-theme="vapor"] .sm-banner { font: 26px/1 var(--font-title); letter-spacing: 0.12em; background: linear-gradient(0deg, #ff71ce, #b967ff 55%, #01cdfe); text-shadow: 2px 2px 0 #6b1f8c; }
html[data-theme="vapor"] .sm-list { padding: 2px; border: 0; border-radius: 0; background: transparent; color: #2b0f4f; }
html[data-theme="vapor"] :is(.sm-item, .sm-theme) { border-radius: 0; }
html[data-theme="vapor"] :is(.sm-item, .sm-theme):is(:hover, :focus-visible), html[data-theme="vapor"] .sm-theme[aria-pressed="true"] { color: #fff; background: linear-gradient(90deg, #ff71ce, #b967ff); box-shadow: none; }
html[data-theme="vapor"] .sm-side { text-shadow: none; border-left: 1px solid #9a72cf; box-shadow: inset 1px 0 #fff6ff; padding-left: 6px; }
html[data-theme="vapor"] .sm-heading { font: 19px/1 var(--font-title); letter-spacing: 0.1em; color: #b21f9c; opacity: 1; }
html[data-theme="vapor"] .sm-foot { margin-top: 4px; padding-top: 5px; border-top: 1px solid #9a72cf; box-shadow: inset 0 1px #fff6ff; }
html[data-theme="vapor"] .sm-power { border-radius: 0; border: 0; color: #fff; text-shadow: 1px 1px 0 #6b1f8c; background: #ff71ce; box-shadow: var(--vp-raised); }
html[data-theme="vapor"] .swatch { border-radius: 0; border-color: #2b0f4f; }
html[data-theme="vapor"] .ctx-menu { background: var(--vp-face); border: 0; box-shadow: var(--vp-raised), 3px 3px 0 rgb(255 113 206 / 0.55); }
html[data-theme="vapor"] .ctx-item { border: 0; border-radius: 0; }
html[data-theme="vapor"] .ctx-item:hover, html[data-theme="vapor"] .ctx-item:focus-visible { color: #fff; background: linear-gradient(90deg, #ff71ce, #b967ff); }
html[data-theme="vapor"] .ctx-menu hr { border-color: #9a72cf; }
html[data-theme="vapor"] .pc-logo { font: 44px/1 var(--font-title); letter-spacing: 0.1em; color: #ff71ce; text-shadow: 3px 3px 0 #01cdfe; }
html[data-theme="vapor"] .tr-facts li { border-radius: 0; background: #fff; border-color: #d9b8f5; }
html[data-theme="vapor"] .theme-card { border-radius: 0; border: 0; background: var(--vp-face); box-shadow: var(--vp-raised); }
html[data-theme="vapor"] .theme-card:hover { box-shadow: var(--vp-raised), 3px 3px 0 #01cdfe; }
html[data-theme="vapor"] .theme-card[aria-pressed="true"] { background: #fff6ff; box-shadow: var(--vp-sunken); }
html[data-theme="vapor"] .bin-file { border-radius: 0; }
html[data-theme="vapor"] .bin-file:hover { background: rgb(1 205 254 / 0.15); border-color: transparent; }
html[data-theme="vapor"] .bin-file.is-selected { color: #fff; background: linear-gradient(90deg, #ff71ce, #b967ff); }
html[data-theme="vapor"] .bin-file.is-selected small { color: #fbe3ff; }

/* ================= Metro (2012): flat tiles, bold colour, no gradients anywhere ================= */
html[data-theme="metro"] { --font-ui: "Segoe UI", "Selawik", "Open Sans", sans-serif; --font-title: "Segoe UI Light", "Segoe UI", sans-serif; --ink: #1d1d1d; --muted: #666; --metro: #5133ab; }
html[data-theme="metro"] body { background: #1d0d4a; }
html[data-theme="metro"] .wp-sky { background: linear-gradient(135deg, #2b1361 0%, #4a1f8f 45%, #6a2bb0 100%); }
html[data-theme="metro"] .wp-rays { opacity: 1; background: repeating-linear-gradient(135deg, rgb(255 255 255 / 0.035) 0 2px, transparent 2px 80px), radial-gradient(circle at 82% 80%, rgb(255 255 255 / 0.08), transparent 40%); animation: none; }
html[data-theme="metro"] :is(.wp-hills, .wp-bubble, .wp-noise) { display: none; }
/* Desktop icons sit on live tiles, each its own colour */
html[data-theme="metro"] .desk-icon { width: 94px; gap: 4px; padding: 0; border: 0; border-radius: 0; }
html[data-theme="metro"] .di-img { display: grid; place-items: center; width: 70px; height: 70px; font-size: 34px; filter: none; background: var(--tile, #2d89ef); box-shadow: none; }
html[data-theme="metro"] .desk-icons > li:nth-child(8n + 1) .di-img { --tile: #2d89ef; }
html[data-theme="metro"] .desk-icons > li:nth-child(8n + 2) .di-img { --tile: #00a300; }
html[data-theme="metro"] .desk-icons > li:nth-child(8n + 3) .di-img { --tile: #da532c; }
html[data-theme="metro"] .desk-icons > li:nth-child(8n + 4) .di-img { --tile: #9f00a7; }
html[data-theme="metro"] .desk-icons > li:nth-child(8n + 5) .di-img { --tile: #ee1111; }
html[data-theme="metro"] .desk-icons > li:nth-child(8n + 6) .di-img { --tile: #00aba9; }
html[data-theme="metro"] .desk-icons > li:nth-child(8n + 7) .di-img { --tile: #e3a21a; }
html[data-theme="metro"] .desk-icons > li:nth-child(8n + 8) .di-img { --tile: #1e7145; }
html[data-theme="metro"] .desk-icon:hover .di-img { transform: none; outline: 3px solid rgb(255 255 255 / 0.55); }
html[data-theme="metro"] .di-label { font-size: 12px; text-shadow: none; }
html[data-theme="metro"] .desk-icon:hover { background: transparent; }
html[data-theme="metro"] .desk-icon.is-selected { background: transparent; }
html[data-theme="metro"] .desk-icon.is-selected .di-img { outline: 3px solid #fff; }
html[data-theme="metro"] .desk-icon.is-selected .di-label { background: rgb(255 255 255 / 0.25); }
html[data-theme="metro"] .marquee { border: 1px solid #fff; background: rgb(255 255 255 / 0.15); }
html[data-theme="metro"] .win, html[data-theme="metro"] .win:not(.is-active) { --accent: var(--metro); padding: 0; border-radius: 0; background: #fff; border: 1px solid var(--metro); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), 0 10px 30px rgb(0 0 0 / 0.35); }
html[data-theme="metro"] .win:not(.is-active) { border-color: #9a9a9a; box-shadow: 0 6px 18px rgb(0 0 0 / 0.25); }
html[data-theme="metro"] .win::before { content: none; }
html[data-theme="metro"] .win-bar { min-height: 32px; padding-left: 10px; gap: 8px; color: #fff; background: var(--metro); }
html[data-theme="metro"] .win:not(.is-active) .win-bar { color: #333; background: #ececec; }
html[data-theme="metro"] .win-title { font: 400 14px/1.2 var(--font-ui); color: inherit; text-shadow: none; }
html[data-theme="metro"] .win-client { border: 0; border-radius: 0; background: #fff; box-shadow: none; }
html[data-theme="metro"] .win-caps { align-self: stretch; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
html[data-theme="metro"] .cap, html[data-theme="metro"] .cap-close { width: 46px; height: auto; font-size: 12px; color: inherit; text-shadow: none; background: transparent; border: 0; }
html[data-theme="metro"] .win:not(.is-active) :is(.cap, .cap-close) { color: #333; }
html[data-theme="metro"] .cap:hover { background: rgb(255 255 255 / 0.2); }
html[data-theme="metro"] .cap-close:hover { color: #fff; background: #e81123; box-shadow: none; }
html[data-theme="metro"] .win-foot { border-top: 1px solid #e3e3e3; background: #f4f4f4; }
html[data-theme="metro"] .btn { min-height: 30px; border-radius: 0; border: 2px solid #cfcfcf; font-weight: 600; color: #1d1d1d; background: #e6e6e6; box-shadow: none; }
html[data-theme="metro"] .btn:hover { border-color: #b3b3b3; background: #d8d8d8; }
html[data-theme="metro"] .btn:active { color: #fff; border-color: #000; background: #000; box-shadow: none; }
html[data-theme="metro"] .btn-primary { color: #fff; border-color: var(--metro); background: var(--metro); }
html[data-theme="metro"] .btn-primary:hover { color: #fff; border-color: #3b2380; background: #3b2380; box-shadow: none; }
html[data-theme="metro"] .taskbar { color: #fff; text-shadow: none; background: rgb(16 8 40 / 0.92); border-top: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
html[data-theme="metro"] .task { height: 100%; border-radius: 0; border: 0; }
html[data-theme="metro"] .task:hover { border: 0; background: rgb(255 255 255 / 0.12); box-shadow: none; }
html[data-theme="metro"] .task.is-active { border: 0; background: rgb(255 255 255 / 0.2); box-shadow: inset 0 -3px 0 #fff; }
html[data-theme="metro"] .tray { border-left: 0; }
html[data-theme="metro"] .show-desktop { border-left: 1px solid rgb(255 255 255 / 0.3); background: transparent; }
html[data-theme="metro"] .start-btn { height: 100%; padding: 0 14px 0 8px; border-radius: 0; }
html[data-theme="metro"] .start-btn:hover, html[data-theme="metro"] .start-btn[aria-expanded="true"] { background: var(--metro); }
html[data-theme="metro"] .start-orb, html[data-theme="metro"] .start-btn:hover .start-orb, html[data-theme="metro"] .start-btn[aria-expanded="true"] .start-orb { width: 22px; height: 22px; border-radius: 0; border: 0; background: conic-gradient(#f25022 0 25%, #7fba00 0 50%, #ffb900 0 75%, #00a4ef 0); box-shadow: none; filter: none; transform: perspective(60px) rotateY(-12deg); }
html[data-theme="metro"] .start-orb::before, html[data-theme="metro"] .start-glyph { display: none; }
html[data-theme="metro"] .start-label { font: 300 15px/1 var(--font-title); }
html[data-theme="metro"] .start-menu { border-radius: 0; color: #fff; background: var(--metro); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 10px 30px rgb(0 0 0 / 0.5); animation: metro-in 0.18s ease-out; }
@keyframes metro-in { from { opacity: 0; transform: translateY(14px); } }
html[data-theme="metro"] .sm-head { font: 300 20px/1 var(--font-title); text-shadow: none; }
html[data-theme="metro"] .sm-avatar { border-radius: 0; border: 0; box-shadow: none; background: #fff; }
html[data-theme="metro"] .sm-list { border: 0; border-radius: 0; background: transparent; color: #fff; }
html[data-theme="metro"] :is(.sm-item, .sm-theme) { border-radius: 0; }
html[data-theme="metro"] :is(.sm-item, .sm-theme):is(:hover, :focus-visible), html[data-theme="metro"] .sm-theme[aria-pressed="true"] { color: #fff; background: rgb(255 255 255 / 0.18); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.5); }
html[data-theme="metro"] .sm-side { text-shadow: none; }
html[data-theme="metro"] .sm-heading { font: 300 15px/1 var(--font-title); opacity: 1; }
html[data-theme="metro"] .sm-power { border-radius: 0; border: 0; text-shadow: none; background: rgb(0 0 0 / 0.25); }
html[data-theme="metro"] .swatch { border-radius: 0; border-color: rgb(0 0 0 / 0.3); }
html[data-theme="metro"] .ctx-menu { border: 1px solid #ccc; background: #fff; box-shadow: 0 4px 12px rgb(0 0 0 / 0.25); }
html[data-theme="metro"] .ctx-item { border: 0; border-radius: 0; padding: 7px 26px; }
html[data-theme="metro"] .ctx-item:hover, html[data-theme="metro"] .ctx-item:focus-visible { background: #e5e5e5; }
html[data-theme="metro"] .pc-logo { font-weight: 200; color: var(--metro); }
html[data-theme="metro"] .tr-facts li { border-radius: 0; color: #fff; border: 0; background: var(--metro); }
html[data-theme="metro"] .theme-card { border-radius: 0; border: 2px solid #ddd; background: #fff; }
html[data-theme="metro"] .theme-card:hover { border-color: #999; box-shadow: none; }
html[data-theme="metro"] .theme-card[aria-pressed="true"] { border-color: var(--metro); box-shadow: none; outline: 2px solid var(--metro); }
html[data-theme="metro"] .bin-file { border-radius: 0; }
html[data-theme="metro"] .bin-file:hover { background: #e8e0f7; border-color: transparent; }
html[data-theme="metro"] .bin-file.is-selected { color: #fff; background: var(--metro); }
html[data-theme="metro"] .bin-file.is-selected small { color: #ddd; }
html[data-theme="metro"] :is(.win-body :is(input, select, textarea), .msg-input, .msgr-suggest, .lb-wrap) { border: 2px solid #bbb; border-radius: 0; }
html[data-theme="metro"] :is(.win-body :is(input, select, textarea), .msg-input):focus { border-color: var(--metro); outline: none; }
html[data-theme="metro"] :is(.msgr-msg, .acct-avatar, .tray-badge, .avatar) { border-radius: 0; }
html[data-theme="metro"] .msgr-msg { box-shadow: none; }
html[data-theme="metro"] .msgr-msg.is-mine { color: #fff; background: var(--metro); }
html[data-theme="metro"] .msgr-msg.is-mine .msgr-time { color: rgb(255 255 255 / 0.75); }
html[data-theme="metro"] .br-view:not(.no-fx) :is(.br-frame, .br-start) { filter: saturate(1.35) contrast(1.08); }
html[data-theme="metro"] .br-fx-layer { box-shadow: inset 0 0 0 3px var(--metro); }
html[data-theme="metro"] .br-url { border-radius: 0; }

/* ================= Liquid Glass (2025): everything is a lens ================= */
html[data-theme="glass"] { --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif; --font-title: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif; --ink: #121417; --muted: rgb(18 20 23 / 0.58); --glass: rgb(255 255 255 / 0.3); --glass-edge: inset 0 1px 0 rgb(255 255 255 / 0.9), inset 0 -1px 0 rgb(255 255 255 / 0.25), inset 0 0 0 1px rgb(255 255 255 / 0.35), inset 0 0 20px rgb(255 255 255 / 0.18); --glass-blur: blur(22px) saturate(1.9) brightness(1.06); }
html[data-theme="glass"] body { background: #4c6fff; }
html[data-theme="glass"] .wp-sky { background: radial-gradient(circle at 18% 22%, #ff9ad5 0, transparent 38%), radial-gradient(circle at 80% 18%, #7fe3ff 0, transparent 36%), radial-gradient(circle at 70% 82%, #ffd27a 0, transparent 38%), radial-gradient(circle at 22% 85%, #9d8bff 0, transparent 40%), linear-gradient(135deg, #5b7cff, #b46bff 55%, #ff7aa8); }
html[data-theme="glass"] .wp-rays { animation: none; opacity: 1; background: radial-gradient(ellipse at 50% 120%, rgb(255 255 255 / 0.35), transparent 60%); }
html[data-theme="glass"] .wp-hills { display: none; }
html[data-theme="glass"] .wp-bubble { background: radial-gradient(circle at 32% 26%, rgb(255 255 255 / 0.95) 0 8%, rgb(255 255 255 / 0) 22%), radial-gradient(circle closest-side, rgb(255 255 255 / 0.05) 60%, rgb(255 255 255 / 0.5) 96%, rgb(255 255 255 / 0) 100%); backdrop-filter: blur(3px) saturate(1.6); -webkit-backdrop-filter: blur(3px) saturate(1.6); box-shadow: inset 0 -10px 20px -10px rgb(255 255 255 / 0.7), 0 10px 30px rgb(0 0 0 / 0.08); }
html[data-theme="glass"] .wp-noise { opacity: 0.04; }
html[data-theme="glass"] .desk-icon { border-radius: 18px; }
html[data-theme="glass"] .di-img { display: grid; place-items: center; width: 62px; height: 62px; font-size: 32px; border-radius: 18px; background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-edge), 0 6px 18px rgb(30 20 80 / 0.18); filter: none; }
html[data-theme="glass"] .di-label { font-weight: 500; text-shadow: 0 1px 3px rgb(30 20 80 / 0.55); }
html[data-theme="glass"] .desk-icon:hover { background: transparent; border-color: transparent; }
html[data-theme="glass"] .desk-icon:hover .di-img { transform: translateY(-2px) scale(1.04); }
html[data-theme="glass"] .desk-icon.is-selected { background: rgb(255 255 255 / 0.2); border-color: rgb(255 255 255 / 0.55); }
html[data-theme="glass"] .marquee { border: 1px solid rgb(255 255 255 / 0.85); border-radius: 6px; background: rgb(255 255 255 / 0.18); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
html[data-theme="glass"] .win, html[data-theme="glass"] .win:not(.is-active) { --accent: #0a84ff; padding: 0; border-radius: 24px; border: 0; background: rgb(255 255 255 / 0.42); backdrop-filter: blur(30px) saturate(2) brightness(1.08); -webkit-backdrop-filter: blur(30px) saturate(2) brightness(1.08); box-shadow: var(--glass-edge), 0 24px 60px -12px rgb(30 20 80 / 0.4); }
html[data-theme="glass"] .win:not(.is-active) { background: rgb(255 255 255 / 0.3); box-shadow: var(--glass-edge), 0 12px 30px -10px rgb(30 20 80 / 0.25); }
html[data-theme="glass"] .win::before { background: linear-gradient(160deg, rgb(255 255 255 / 0.45), rgb(255 255 255 / 0) 30%, rgb(255 255 255 / 0) 70%, rgb(255 255 255 / 0.18)); }
html[data-theme="glass"] .win.is-max { border-radius: 0; }
html[data-theme="glass"] .win-bar { min-height: 46px; padding: 0 14px; flex-direction: row-reverse; }
html[data-theme="glass"] .win-icon { display: none; }
html[data-theme="glass"] .win-title { font: 600 14px/1.2 var(--font-title); color: var(--ink); text-shadow: none; text-align: center; }
html[data-theme="glass"] .win-client { margin: 0 8px 8px; border: 0; border-radius: 18px; background: rgb(255 255 255 / 0.72); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6); }
html[data-theme="glass"] .win-caps { flex-direction: row; align-self: center; gap: 8px; margin: 0; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
html[data-theme="glass"] .cap, html[data-theme="glass"] .cap-close { width: 14px; height: 14px; border-radius: 50%; border: 0; font-size: 0; color: transparent; text-shadow: none; background: #febc2e; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.2), inset 0 1px 1px rgb(255 255 255 / 0.6); }
html[data-theme="glass"] .cap-max { order: 2; background: #28c840; }
html[data-theme="glass"] .cap-min { order: 1; }
html[data-theme="glass"] .cap-close { order: 0; background: #ff5f57; }
html[data-theme="glass"] .win:not(.is-active) :is(.cap, .cap-close) { background: rgb(0 0 0 / 0.15); }
html[data-theme="glass"] .win-caps:hover :is(.cap, .cap-close) { font-size: 8px; font-weight: 800; color: rgb(0 0 0 / 0.55); }
html[data-theme="glass"] .cap:hover, html[data-theme="glass"] .cap-close:hover { filter: brightness(1.05); box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.2); }
html[data-theme="glass"] .win-foot { border-top: 1px solid rgb(0 0 0 / 0.06); background: transparent; }
html[data-theme="glass"] .btn { min-height: 30px; padding: 4px 16px; border-radius: 999px; border: 0; font-weight: 500; color: var(--ink); background: rgb(255 255 255 / 0.55); backdrop-filter: blur(10px) saturate(1.8); -webkit-backdrop-filter: blur(10px) saturate(1.8); box-shadow: var(--glass-edge), 0 2px 8px rgb(0 0 0 / 0.08); }
html[data-theme="glass"] .btn:hover { background: rgb(255 255 255 / 0.75); box-shadow: var(--glass-edge), 0 4px 14px rgb(0 0 0 / 0.12); }
html[data-theme="glass"] .btn:active { transform: scale(0.97); }
html[data-theme="glass"] .btn-primary { color: #fff; background: linear-gradient(180deg, rgb(64 156 255 / 0.95), rgb(10 132 255 / 0.95)); }
html[data-theme="glass"] .btn-primary:hover { color: #fff; background: linear-gradient(180deg, rgb(90 170 255), rgb(10 132 255)); }
/* The taskbar is a floating glass dock */
html[data-theme="glass"] { --taskbar-h: 64px; }
html[data-theme="glass"] .taskbar { left: 50%; right: auto; bottom: 8px; width: min(820px, calc(100vw - 16px)); height: 56px; padding: 0 8px; gap: 6px; border-radius: 22px; color: var(--ink); text-shadow: none; background: rgb(255 255 255 / 0.32); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 0; box-shadow: var(--glass-edge), 0 16px 40px -10px rgb(30 20 80 / 0.45); transform: translateX(-50%); }
html[data-theme="glass"] .task { height: 42px; border-radius: 14px; border: 0; }
html[data-theme="glass"] .task:hover { border: 0; background: rgb(255 255 255 / 0.45); box-shadow: var(--glass-edge); }
html[data-theme="glass"] .task.is-active { border: 0; background: rgb(255 255 255 / 0.6); box-shadow: var(--glass-edge); }
html[data-theme="glass"] .task.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ink); opacity: 0.6; }
html[data-theme="glass"] .tray { border-left: 1px solid rgb(0 0 0 / 0.1); }
html[data-theme="glass"] .clock { font-weight: 600; }
html[data-theme="glass"] .show-desktop { display: none; }
html[data-theme="glass"] .start-btn { height: 42px; padding: 0 14px 0 6px; border-radius: 14px; }
html[data-theme="glass"] .start-btn:hover, html[data-theme="glass"] .start-btn[aria-expanded="true"] { background: rgb(255 255 255 / 0.45); box-shadow: var(--glass-edge); }
html[data-theme="glass"] .start-orb, html[data-theme="glass"] .start-btn:hover .start-orb, html[data-theme="glass"] .start-btn[aria-expanded="true"] .start-orb { width: 32px; height: 32px; border-radius: 10px; border: 0; background: linear-gradient(135deg, #7fe3ff, #9d8bff 50%, #ff9ad5); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8), 0 2px 6px rgb(0 0 0 / 0.15); filter: none; }
html[data-theme="glass"] .start-orb::before { inset: 1px 3px 55%; border-radius: 9px 9px 50% 50%; background: linear-gradient(180deg, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0)); }
html[data-theme="glass"] .start-glyph { font: 700 17px/1 var(--font-title); text-shadow: 0 1px 2px rgb(0 0 0 / 0.25); }
html[data-theme="glass"] .start-label { font-weight: 600; }
html[data-theme="glass"] .start-menu { left: 50%; bottom: calc(var(--taskbar-h) + 10px); padding: 10px; border-radius: 26px; color: var(--ink); background: rgb(255 255 255 / 0.6); backdrop-filter: blur(30px) saturate(2) brightness(1.06); -webkit-backdrop-filter: blur(30px) saturate(2) brightness(1.06); border: 0; box-shadow: var(--glass-edge), 0 24px 60px -12px rgb(30 20 80 / 0.45); transform: translateX(-50%); animation: glass-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
@keyframes glass-in { from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.96); } }
html[data-theme="glass"] .sm-head { text-shadow: none; }
html[data-theme="glass"] .sm-avatar { border-radius: 50%; border: 0; box-shadow: var(--glass-edge); background: rgb(255 255 255 / 0.6); overflow: hidden; }
html[data-theme="glass"] .sm-list { border: 0; border-radius: 18px; background: rgb(255 255 255 / 0.45); color: var(--ink); box-shadow: var(--glass-edge); }
html[data-theme="glass"] :is(.sm-item, .sm-theme) { border-radius: 12px; }
html[data-theme="glass"] :is(.sm-item, .sm-theme):is(:hover, :focus-visible), html[data-theme="glass"] .sm-theme[aria-pressed="true"] { color: #fff; background: rgb(10 132 255 / 0.85); box-shadow: none; }
html[data-theme="glass"] .sm-side { text-shadow: none; }
html[data-theme="glass"] .sm-heading { opacity: 0.6; }
html[data-theme="glass"] .sm-power { border-radius: 999px; border: 0; text-shadow: none; color: #fff; background: rgb(255 69 58 / 0.9); box-shadow: var(--glass-edge); }
html[data-theme="glass"] .swatch { border-radius: 8px; border: 0; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6); }
html[data-theme="glass"] .ctx-menu { padding: 6px; border: 0; border-radius: 16px; background: rgb(255 255 255 / 0.5); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-edge), 0 14px 40px -8px rgb(30 20 80 / 0.4); }
html[data-theme="glass"] .ctx-item { border: 0; border-radius: 10px; }
html[data-theme="glass"] .ctx-item:hover, html[data-theme="glass"] .ctx-item:focus-visible { color: #fff; background: rgb(10 132 255 / 0.85); }
html[data-theme="glass"] .ctx-menu hr { border-color: rgb(0 0 0 / 0.08); }
html[data-theme="glass"] .pc-logo { font-weight: 600; background: linear-gradient(90deg, #5b7cff, #b46bff, #ff7aa8); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="glass"] .tr-facts li { border: 0; background: rgb(255 255 255 / 0.6); box-shadow: var(--glass-edge); }
html[data-theme="glass"] .theme-card { border: 0; border-radius: 18px; background: rgb(255 255 255 / 0.55); box-shadow: var(--glass-edge); }
html[data-theme="glass"] .theme-card .swatch { border-radius: 12px; }
html[data-theme="glass"] .theme-card:hover { box-shadow: var(--glass-edge), 0 8px 20px rgb(30 20 80 / 0.15); }
html[data-theme="glass"] .theme-card[aria-pressed="true"] { box-shadow: var(--glass-edge), 0 0 0 3px #0a84ff; }
html[data-theme="glass"] .bin-file { border-radius: 10px; }
html[data-theme="glass"] .bin-file:hover { background: rgb(10 132 255 / 0.1); border-color: transparent; }
html[data-theme="glass"] .bin-file.is-selected { color: #fff; background: rgb(10 132 255 / 0.85); }
html[data-theme="glass"] .bin-file.is-selected small { color: rgb(255 255 255 / 0.8); }
html[data-theme="glass"] :is(.win-body :is(input, select, textarea), .msg-input, .msgr-suggest, .lb-wrap) { border: 0; border-radius: 12px; background: rgb(255 255 255 / 0.7); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08), inset 0 1px 2px rgb(0 0 0 / 0.06); }
html[data-theme="glass"] :is(.win-body :is(input, select, textarea), .msg-input):focus { outline: none; box-shadow: 0 0 0 3px rgb(10 132 255 / 0.45); }
html[data-theme="glass"] .msgr-msg { border-radius: 18px 18px 18px 6px; background: rgb(233 233 238 / 0.9); box-shadow: none; }
html[data-theme="glass"] .msgr-msg.is-mine { border-radius: 18px 18px 6px 18px; color: #fff; background: #0a84ff; }
html[data-theme="glass"] .msgr-msg.is-mine .msgr-time { color: rgb(255 255 255 / 0.75); }
html[data-theme="glass"] .avatar { border-radius: 50%; }
html[data-theme="glass"] .msgr-side { background: rgb(255 255 255 / 0.25); }
html[data-theme="glass"] .br-view:not(.no-fx) :is(.br-frame, .br-start) { filter: saturate(1.25) brightness(1.04); }
html[data-theme="glass"] .br-view { overflow: hidden; border-radius: 0 0 14px 14px; }
html[data-theme="glass"] .br-fx-layer { border-radius: inherit; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), inset 0 0 30px rgb(255 255 255 / 0.35); background: linear-gradient(170deg, rgb(255 255 255 / 0.2), transparent 25%); }
html[data-theme="glass"] .br-url { border-radius: 999px; }
html[data-theme="glass"] .balloon { border: 0; border-radius: 18px; background: rgb(255 255 255 / 0.6); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-edge), 0 14px 40px -8px rgb(30 20 80 / 0.4); }

/* ================= DOOMSCROLL.EXE (the game page, in a window) ================= */
.win-body.doom-win { flex: none; padding: 0; overflow: hidden; aspect-ratio: 16 / 10; background: #000; }
.win-body.strife-win { flex: none; padding: 0; overflow: hidden; aspect-ratio: 16 / 9; background: #0f1216; }
.strife-frame { display: block; width: 100%; height: 100%; border: 0; }
.win-body.relay-win { flex: none; padding: 0; overflow: hidden; height: min(620px, calc(100dvh - 160px)); background: #050607; }
.relay-frame { display: block; width: 100%; height: 100%; border: 0; }
.win-body.dcam-win { flex: none; padding: 0; overflow: hidden; height: min(560px, calc(100dvh - 160px)); background: #060607; }
.dcam-frame { display: block; width: 100%; height: 100%; border: 0; }
.doom-frame { display: block; width: 100%; height: 100%; border: 0; }
.win-body.grass-win { flex: none; padding: 0; overflow: hidden; aspect-ratio: 960 / 704; background: #2c6b2f; }
.win-body.phone-win { background: #1f1830; }
.grass-frame { display: block; width: 100%; height: 100%; border: 0; }
.win-body.loggle-win { flex: none; padding: 0; overflow: hidden; height: min(640px, calc(100dvh - 160px)); }
.loggle-frame { display: block; width: 100%; height: 100%; border: 0; }
.win-body.casino-win { flex: none; padding: 0; overflow: hidden; height: min(680px, calc(100dvh - 160px)); background: #0e1118; }
.casino-frame { display: block; width: 100%; height: 100%; border: 0; }

/* ================= BobbyBrowser ================= */
.win-body.br { flex: none; display: flex; flex-direction: column; height: min(560px, calc(100dvh - var(--taskbar-h) - 120px)); padding: 0; overflow: hidden; }
.win.is-max .win-body.br { flex: 1; height: auto; }
.win.is-max .win-client:has(.br) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.br-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.br-nav { flex: none; min-width: 30px; min-height: 28px; padding: 0 6px; }
.br-out { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }
.br-out[hidden] { display: none; }
.br-url { flex: 1; min-width: 0; height: 28px; padding: 0 10px; border-radius: 14px; }
.br-fx[aria-pressed="false"] { opacity: 0.55; }
.br-view { position: relative; flex: 1; min-height: 0; background: #fff; }
.br-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.br-start { position: absolute; inset: 0; overflow-y: auto; display: grid; align-content: start; justify-items: center; gap: 16px; padding: 34px 20px 20px; color: #222; background: linear-gradient(#f5f8fc, #e6edf6); }
.br-start[hidden] { display: none; }
.br-logo { font: 300 34px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: -0.02em; }
.br-logo b { font-weight: 700; color: #1f6fd1; }
.br-search { display: flex; gap: 6px; width: min(100%, 460px); }
.br-q { flex: 1; min-width: 0; height: 34px; padding: 0 14px; border-radius: 17px; }
.br-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; width: min(100%, 620px); list-style: none; padding: 0; }
.br-tile { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 14px 6px 10px; border-radius: 10px; color: #222; background: rgb(255 255 255 / 0.85); box-shadow: 0 1px 3px rgb(0 0 0 / 0.15); }
.br-tile:hover, .br-tile:focus-visible { outline: none; box-shadow: 0 0 0 2px #5ea9dd, 0 4px 10px rgb(0 0 0 / 0.15); }
.br-tile-icon { font-size: 30px; line-height: 1; }
.br-tile-name { font-size: 12.5px; font-weight: 600; text-align: center; }
.br-note { max-width: 520px; font-size: 12px; text-align: center; }
.br-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The theme filter: every page looks like the theme (🎨 turns it off). The frame gets a CSS filter;
   a layer on top adds texture (scanlines, paper, gloss). */
.br-fx-layer { position: absolute; inset: 0; pointer-events: none; }
.br-view.no-fx .br-fx-layer { display: none; }
.br-view:not(.no-fx) :is(.br-frame, .br-start) { transition: filter 0.3s; }
html[data-theme="retro"] .br-view:not(.no-fx) :is(.br-frame, .br-start) { filter: contrast(1.2) saturate(0.75) sepia(0.15); }
html[data-theme="retro"] .br-fx-layer { background: repeating-linear-gradient(0deg, rgb(0 0 0 / 0.12) 0 1px, transparent 1px 3px); }
html[data-theme="y2k"] .br-view:not(.no-fx) :is(.br-frame, .br-start) { filter: invert(0.88) hue-rotate(180deg) saturate(1.6) contrast(1.1); }
html[data-theme="y2k"] .br-fx-layer { background: repeating-linear-gradient(0deg, rgb(182 255 26 / 0.07) 0 1px, transparent 1px 2px); mix-blend-mode: screen; }
html[data-theme="luna"] .br-view:not(.no-fx) :is(.br-frame, .br-start) { filter: saturate(1.2) brightness(1.03); }
html[data-theme="luna"] .br-fx-layer { box-shadow: inset 0 0 0 1px #7f9db9; }
html[data-theme="aqua"] .br-view:not(.no-fx) :is(.br-frame, .br-start) { filter: saturate(1.1) contrast(1.03); }
html[data-theme="aqua"] .br-fx-layer { background: repeating-linear-gradient(0deg, rgb(0 0 0 / 0.025) 0 1px, transparent 1px 3px); }
html[data-theme="aero"] .br-view:not(.no-fx) :is(.br-frame, .br-start) { filter: saturate(1.15) brightness(1.04); }
html[data-theme="aero"] .br-fx-layer { background: linear-gradient(160deg, rgb(255 255 255 / 0.22), transparent 35%); }
html[data-theme="skeuo"] .br-view:not(.no-fx) :is(.br-frame, .br-start) { filter: sepia(0.45) contrast(1.05) brightness(0.98); }
html[data-theme="skeuo"] .br-fx-layer { background: radial-gradient(ellipse at center, transparent 55%, rgb(60 35 10 / 0.28)); }
html[data-theme="minimal"] .br-view:not(.no-fx) :is(.br-frame, .br-start) { filter: grayscale(1) contrast(1.15); }
html[data-theme="vapor"] .br-view:not(.no-fx) :is(.br-frame, .br-start) { filter: hue-rotate(-40deg) saturate(1.8) contrast(1.05); }
html[data-theme="vapor"] .br-fx-layer { background: linear-gradient(180deg, rgb(255 113 206 / 0.18), rgb(1 205 254 / 0.14)), repeating-linear-gradient(0deg, rgb(0 0 0 / 0.08) 0 1px, transparent 1px 3px); mix-blend-mode: screen; }

/* ================= Online apps: Leaderboards, Yapper, Account (os/online-apps.js) ================= */
/* Form fields: plain and light, like the window bodies in every theme; themes adjust the edges. */
.win-body :is(input[type="text"], input[type="search"], input[type="password"], select, textarea),
.msg-input {
  width: 100%;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #abadb3;
  border-radius: 3px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
}
.win-body :is(input, select, textarea):focus-visible, .msg-input:focus-visible { outline: 2px solid color-mix(in oklab, var(--accent, #3399ff) 80%, #000); outline-offset: 0; }
.win-body textarea, .msg-input { resize: none; line-height: 1.4; }
.msg-main { flex: 1; min-width: 0; display: grid; gap: 10px; }
.msg-main p { padding-top: 4px; }

/* Tray: Yapper with its unread count, and the new-message balloon above it */
.msgr-tray { position: relative; font-size: 15px; }
.tray-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  font: 700 10px/16px var(--font-ui);
  color: #fff;
  background: #d93025;
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.9);
}
.balloon {
  position: fixed;
  right: 10px;
  bottom: calc(var(--taskbar-h) + 10px);
  z-index: 9000;
  display: grid;
  gap: 3px;
  width: min(300px, calc(100vw - 20px));
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgb(0 0 0 / 0.35);
  text-align: left;
  color: #16222f;
  background: linear-gradient(180deg, #ffffff, #e9f1fa);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
  animation: balloon-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.balloon-title { font-weight: 700; }
.balloon-text { font-size: 13px; color: #3b4652; overflow-wrap: anywhere; }
@keyframes balloon-in { from { opacity: 0; transform: translateY(10px); } }

/* Leaderboards */
.lb { display: flex; flex-direction: column; gap: 10px; }
.lb-bar { display: flex; gap: 8px; }
.lb-pick { flex: 1; min-width: 0; }
.lb-pick select { width: 100%; }
.lb-wrap { max-height: min(340px, 45vh); overflow: auto; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 3px; background: rgb(255 255 255 / 0.6); }
.lb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lb-table th { position: sticky; top: 0; z-index: 1; padding: 5px 8px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--ink) 6%, #fff); }
.lb-table td { padding: 5px 8px; border-top: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); white-space: nowrap; }
.lb-table .lb-rank { width: 36px; text-align: center; }
.lb-table .lb-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.lb-table .lb-ending { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.lb-table .lb-when { color: var(--muted); font-size: 12px; }
.win:not(.lb-any) .lb-table .lb-ending { display: none; }
.lb-table tr.is-me td { background: color-mix(in oklab, var(--accent, #5ea9dd) 22%, transparent); }
.lb-name, .lb-link { padding: 0; font-weight: 600; color: inherit; }
.lb-name:hover, .lb-link { text-decoration: underline; }
.lb-empty { padding: 18px; text-align: center; }
.lb-me:empty { display: none; }
.lb-me { font-weight: 600; }
.lb-badge { display: inline-block; vertical-align: middle; }
.lb-badge .rank-badge { display: block; width: 44px; height: 22px; }
.lb-how { font-size: 12px; }

/* Account */
.acct { display: grid; gap: 12px; }
.acct-form, .acct-in { display: grid; gap: 12px; }
.acct-tabs { display: flex; border-bottom: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.acct-tab { padding: 6px 12px; margin-bottom: -1px; border: 1px solid transparent; border-radius: 3px 3px 0 0; color: var(--muted); }
.acct-tab[aria-selected="true"] { color: var(--ink); font-weight: 600; border-color: color-mix(in srgb, var(--ink) 20%, transparent); border-bottom-color: transparent; background: rgb(255 255 255 / 0.7); }
.acct-field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.acct-age, .acct-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.acct-age input, .acct-check input { margin-top: 3px; }
.acct-error { padding: 7px 10px; border-radius: 3px; color: #8c1d18; background: #fdecea; border: 1px solid #f3b8b2; font-size: 13px; }
.acct-go { justify-self: start; }
.acct-hint { font-size: 12px; }
.acct-card { display: flex; align-items: center; gap: 12px; }
.acct-card > div { display: grid; }
.acct-name { font-size: 17px; }
.acct-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 6px; font-size: 30px; background: linear-gradient(#fff, #d9e6f3); border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 0.35); }
.acct-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.acct.is-loading > * { visibility: hidden; }

/* Yapper: chats on the left, the conversation on the right (one at a time on phones) */
.win-body.msgr {
  flex: none; /* its own height, not the content's (the chat scrolls inside) */
  display: grid;
  grid-template-columns: 210px 1fr;
  height: min(470px, calc(100dvh - var(--taskbar-h) - 90px));
  padding: 0;
  overflow: hidden;
}
.msgr-out { display: none; }
.msgr.is-out { display: grid; grid-template-columns: 1fr; place-items: center; text-align: center; }
.msgr.is-out > :not(.msgr-out) { display: none; }
.msgr.is-out .msgr-out { display: grid; gap: 12px; justify-items: center; padding: 24px; }
.msgr-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); background: rgb(255 255 255 / 0.35); }
.msgr-find { position: relative; padding: 8px; }
.msgr-suggest {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(100% - 4px);
  z-index: 5;
  list-style: none;
  padding: 3px;
  border: 1px solid #abadb3;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.2);
}
.msgr-suggest li.muted { padding: 5px 8px; font-size: 13px; }
.msgr-suggest button { width: 100%; padding: 5px 8px; border-radius: 2px; font-size: 13px; color: var(--ink); }
.msgr-suggest button:hover, .msgr-suggest button:focus-visible { outline: none; background: color-mix(in oklab, var(--accent, #5ea9dd) 25%, #fff); }
.msgr-list { flex: 1; overflow-y: auto; list-style: none; padding: 0 4px 6px; }
.msgr-none { padding: 10px 12px; font-size: 12.5px; }
.msgr-conv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px 6px;
  width: 100%;
  padding: 7px 8px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-size: 13px;
}
.msgr-conv:hover { background: color-mix(in oklab, var(--accent, #5ea9dd) 12%, transparent); }
.msgr-conv.is-current { background: color-mix(in oklab, var(--accent, #5ea9dd) 24%, transparent); border-color: color-mix(in oklab, var(--accent, #5ea9dd) 45%, transparent); }
.msgr-conv-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msgr-conv-when { font-size: 11px; }
.msgr-conv-last { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.msgr-unread { grid-column: 2; grid-row: 2; justify-self: end; min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; line-height: 18px; text-align: center; color: #fff; background: #d93025; }
.msgr-chat { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.msgr-chat:not(.has-chat) > :not(.msgr-pick) { display: none; }
.msgr-chat.has-chat > .msgr-pick { display: none; }
.msgr-pick { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; }
.msgr-people-title { margin-bottom: 10px; font-size: 13px; }
.msgr-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; list-style: none; padding: 0; }
.msgr-person { display: grid; justify-items: center; gap: 5px; width: 100%; padding: 8px 4px 6px; border: 1px solid transparent; border-radius: 6px; color: var(--ink); }
.msgr-person:hover, .msgr-person:focus-visible { outline: none; background: color-mix(in oklab, var(--accent, #5ea9dd) 16%, transparent); border-color: color-mix(in oklab, var(--accent, #5ea9dd) 40%, transparent); }
.msgr-person.is-closed { opacity: 0.55; }
.msgr-person-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.msgr-people-none { grid-column: 1 / -1; padding: 16px; text-align: center; font-size: 13px; }
.avatar { flex: none; image-rendering: pixelated; border-radius: 6px; background: #ddd; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.18); }
.msgr-person-pic { width: 64px; height: 64px; }
.msgr-with-pic { width: 28px; height: 28px; border-radius: 4px; }
.msgr-conv-pic { grid-row: span 2; width: 32px; height: 32px; border-radius: 4px; }
.msgr-conv:has(.msgr-conv-pic) { grid-template-columns: auto 1fr auto; column-gap: 8px; }
.msgr-conv:has(.msgr-conv-pic) .msgr-conv-last { grid-column: 2; }
.msgr-conv:has(.msgr-conv-pic) .msgr-unread { grid-column: 3; }
.sm-avatar:has(.sm-avatar-img) { padding: 0; overflow: hidden; }
.sm-avatar-img { width: 100%; height: 100%; image-rendering: pixelated; }
.acct-avatar.avatar { width: 52px; height: 52px; padding: 0; }
.acct-pics { display: grid; gap: 8px; padding: 8px 10px 10px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 4px; }
.acct-pics legend { padding: 0 4px; font-size: 13px; font-weight: 600; }
.acct-pic-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.acct-pic { padding: 2px; border: 2px solid transparent; border-radius: 6px; }
.acct-pic img { display: block; }
.acct-pic:hover, .acct-pic:focus-visible { outline: none; border-color: color-mix(in oklab, var(--accent, #5ea9dd) 60%, transparent); }
.acct-pic[aria-pressed="true"] { border-color: var(--accent, #5ea9dd); }
.acct-pic-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-editor { display: grid; gap: 10px; }
.acct-editor-top { display: flex; align-items: center; gap: 12px; }
.acct-editor-preview.avatar { width: 96px; height: 96px; }
.acct-editor-actions { display: grid; gap: 6px; justify-items: start; }
.acct-editor-parts { display: grid; gap: 6px; max-height: 260px; overflow: auto; padding-right: 4px; }
.acct-part { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 8px; font-size: 12.5px; }
.acct-part-label { font-weight: 600; }
.acct-swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.acct-swatch { width: 20px; height: 20px; padding: 0; border-radius: 4px; background: var(--c); border: 1px solid rgb(0 0 0 / 0.3); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35); }
.acct-swatch:hover { transform: scale(1.12); }
.acct-swatch[aria-checked="true"] { outline: 2px solid var(--accent, #5ea9dd); outline-offset: 1px; }
.acct-stepper { display: flex; align-items: center; gap: 6px; }
.acct-step { min-width: 0; width: 26px; padding: 0; font-size: 15px; line-height: 1; }
.acct-step-name { min-width: 84px; text-align: center; }
.msgr-find { display: flex; gap: 6px; }
.msgr-find .msgr-find-input { flex: 1; min-width: 0; }
.msgr-full { flex: none; min-height: 0; padding: 0 8px; }
.msgr-gif-btn { flex: none; align-self: stretch; padding: 0 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; }
.msgr-msg.is-gif { padding: 4px 4px 2px; }
.msgr-gif { display: block; max-width: min(240px, 100%); max-height: 220px; border-radius: 8px; }
.msgr-gifs { display: grid; gap: 8px; max-height: 45%; padding: 8px; overflow-y: auto; border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); background: rgb(255 255 255 / 0.5); }
.msgr-gifs[hidden] { display: none; }
.msgr-gifs-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.msgr-gif-upload { cursor: pointer; }
.msgr-gif-upload.is-busy { opacity: 0.6; pointer-events: none; }
.msgr-gif-upload.is-busy::after { content: ' …'; }
.msgr-gif-link { display: flex; flex: 1; min-width: 200px; gap: 6px; }
.msgr-gif-link input { flex: 1; min-width: 0; }
.msgr-gif-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; list-style: none; padding: 0; }
.msgr-gif-pick { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border-radius: 6px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.15); background: #000; }
.msgr-gif-pick img { width: 100%; height: 100%; object-fit: cover; }
.msgr-gif-pick:hover, .msgr-gif-pick:focus-visible { outline: 2px solid var(--accent, #5ea9dd); }
/* Yapper on its own, full screen (or maximized): the chat fills it */
.win:is(:fullscreen, .is-max):has(.msgr) { display: flex; flex-direction: column; }
.win:fullscreen { inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none; max-height: none; border-radius: 0; }
.win:is(:fullscreen, .is-max) .win-client:has(.msgr) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.win:is(:fullscreen, .is-max) .win-body.msgr { flex: 1; height: auto; }
@media (min-width: 641px) {
  .win:is(:fullscreen, .is-max) .win-body.msgr { grid-template-columns: 260px 1fr; }
}
.msgr-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.msgr-with { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msgr-tools { display: flex; gap: 6px; }
.msgr-tools .btn, .msgr-back { min-height: 24px; padding: 1px 10px; font-size: 12px; }
.msgr-back { display: none; }
.msgr-log { flex: 1; min-height: 0; overflow-y: auto; list-style: none; display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.msgr-log > .muted { margin: auto; text-align: center; font-size: 13px; }
.msgr-older { align-self: center; }
.msgr-msg { position: relative; display: grid; max-width: 78%; align-self: flex-start; padding: 6px 10px 4px; border-radius: 12px 12px 12px 3px; background: color-mix(in srgb, var(--ink) 8%, #fff); box-shadow: 0 1px 1px rgb(0 0 0 / 0.08); }
.msgr-msg.is-mine { align-self: flex-end; border-radius: 12px 12px 3px 12px; background: color-mix(in oklab, var(--accent, #5ea9dd) 30%, #fff); }
.msgr-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
.msgr-time { justify-self: end; font-size: 10.5px; color: var(--muted); }
.msgr-flag { position: absolute; top: 2px; right: -22px; width: 20px; height: 20px; font-size: 12px; color: var(--muted); opacity: 0; }
.msgr-msg:hover .msgr-flag, .msgr-flag:focus-visible { opacity: 1; }
.msgr-compose { display: flex; align-items: flex-end; gap: 6px; padding: 8px; border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.msgr-compose textarea { flex: 1; min-height: 32px; max-height: 120px; }
@media (max-width: 640px), (pointer: coarse) {
  .msgr-flag { opacity: 0.6; right: -20px; }
}
@media (max-width: 640px) {
  .win-body.msgr { grid-template-columns: 1fr; }
  .msgr.is-chatting .msgr-side { display: none; }
  /* No chat open: your chats on top, everyone else in a grid below */
  .msgr:not(.is-chatting) { grid-template-rows: minmax(0, auto) 1fr; }
  .msgr:not(.is-chatting) .msgr-side { border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
  .msgr:not(.is-chatting) .msgr-side:has(.msgr-none:not([hidden])) .msgr-list { display: none; }
  .msgr:not(.is-chatting) .msgr-list { flex: 0 1 auto; max-height: 28vh; }
  .msgr:not(.is-chatting) .msgr-none { display: none; }
  .msgr-back { display: inline-flex; }
  .msgr-side { border-right: 0; }
  .lb-table .lb-when { display: none; }
}

/* Theme touches for the fields */
html[data-theme="retro"] :is(.win-body :is(input, select, textarea), .msg-input, .msgr-suggest, .lb-wrap) { border: 0; border-radius: 0; box-shadow: var(--retro-sunken); }
html[data-theme="retro"] :is(.msgr-msg, .acct-avatar, .acct-tab, .tray-badge) { border-radius: 0; }
html[data-theme="minimal"] :is(.win-body :is(input, select, textarea), .msg-input, .msgr-suggest, .lb-wrap) { border-color: #000; border-radius: 0; }
html[data-theme="minimal"] :is(.msgr-msg, .acct-avatar) { border-radius: 0; box-shadow: none; border: 1px solid #000; background: #fff; }
html[data-theme="minimal"] .msgr-msg.is-mine { color: #fff; background: #000; }
html[data-theme="minimal"] .msgr-msg.is-mine .msgr-time { color: rgb(255 255 255 / 0.7); }
html[data-theme="vapor"] :is(.win-body :is(input, select, textarea), .msg-input, .msgr-suggest) { border-radius: 0; border-color: #b967ff; }
html[data-theme="vapor"] .msgr-msg.is-mine { background: linear-gradient(90deg, #ffd6f2, #e6d4ff); }
html[data-theme="y2k"] :is(.win-body :is(input, select, textarea), .msg-input) { border-color: #1a1c22; border-radius: 10px; }
html[data-theme="y2k"] .msgr-msg.is-mine { background: #e9ffc2; }
html[data-theme="skeuo"] :is(.win-body :is(input, select, textarea), .msg-input) { border-color: #a89b80; border-radius: 5px; box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.18); }
html[data-theme="skeuo"] .msgr-msg.is-mine { background: #f3e2b3; }
html[data-theme="luna"] :is(.win-body :is(input, select, textarea), .msg-input) { border-color: #7f9db9; border-radius: 0; }
html[data-theme="aqua"] :is(.win-body :is(input, select, textarea), .msg-input) { border-color: #9a9a9a; border-radius: 5px; box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.15); }
html[data-theme="aqua"] .msgr-msg.is-mine { color: #fff; background: #1d8cf8; }
html[data-theme="aqua"] .msgr-msg.is-mine .msgr-time { color: rgb(255 255 255 / 0.75); }

/* ================= Phones ================= */
@media (max-width: 640px) {
  .desk-icons { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); width: 100%; height: auto; }
  .desk-icon { width: 100%; }
  .task { flex: 0 0 44px; justify-content: center; padding: 0; }
  .task-label { display: none; }
  .sm-cols { grid-template-columns: 1fr; }
  .win-body { padding: 14px; }
  html[data-theme="aqua"] .task { flex-basis: 40px; width: 40px; }
  html[data-theme="luna"] .task { flex: 0 0 40px; }
  html[data-theme="luna"] .start-btn { padding: 0 16px 0 10px; }
}

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

/* ================= One app on its own (nikstil.com/?embed=messenger) ================= */
html.embed-app { --taskbar-h: 0px; }
html.embed-app :is(.desk-icons, .taskbar, #boot, .start-menu, .ctx-menu, #balloon) { display: none !important; }
html.embed-app .win.is-embedded { inset: 0 !important; width: auto !important; border: 0; border-radius: 0; box-shadow: none; }
html.embed-app .win.is-embedded > .win-bar { display: none; }
.win-foot-choices { flex-wrap: wrap; }

/* Game windows maximized (or full screen): the game area fills the window instead of keeping its
   own shape (which made it taller than the screen and cut the bottom off); each game fits itself
   inside, letterboxed. */
.win:is(:fullscreen, .is-max):has(.doom-win, .grass-win, .loggle-win, .strife-win, .casino-win, .relay-win, .dcam-win) { display: flex; flex-direction: column; }
.win:is(:fullscreen, .is-max) .win-client:has(.doom-win, .grass-win, .loggle-win, .strife-win, .casino-win, .relay-win, .dcam-win) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.win:is(:fullscreen, .is-max) .win-body:is(.doom-win, .grass-win, .loggle-win, .strife-win, .casino-win, .relay-win, .dcam-win) { flex: 1; aspect-ratio: auto; height: auto; min-height: 0; }

/* ---- LigmaPhone: the games and the browser, on a phone in a window ---- */
.mobile-win { display: grid; place-items: center; padding: 10px; background: transparent; }
.mp { width: 100%; max-width: 380px; height: min(700px, calc(100dvh - 160px)); min-height: 420px; padding: 10px; border-radius: 42px; background: linear-gradient(145deg, #3a3d44, #121317 60%); box-shadow: inset 0 0 0 2px #5b5f69, inset 0 0 0 4px #0a0a0c, 0 14px 34px -12px rgb(0 0 0 / 0.6); }
.mp-land .mp { max-width: none; height: auto; min-height: 0; border-radius: 34px; }
.mp-screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 32px; color: #1b1b24; background: linear-gradient(160deg, #f3ecff, #dfe9ff 45%, #ffe8f1); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.mp-land .mp-screen { border-radius: 24px; }
.mp-status { position: relative; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; height: 28px; padding: 0 22px; font-size: 12px; font-weight: 600; }
.mp-notch { position: absolute; left: 50%; top: 6px; width: 92px; height: 18px; translate: -50% 0; border-radius: 12px; background: #0b0b0d; }
.mp-bar { display: flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 2px 10px 6px 16px; font-size: 13px; font-weight: 700; border-bottom: 1px solid rgb(0 0 0 / 0.08); }
.mp-bar[hidden], .mp-home[hidden], .mp-app[hidden] { display: none; }
.mp-bar-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mp-pop { width: 30px; height: 26px; border-radius: 13px; font-size: 15px; color: inherit; background: transparent; border: 0; cursor: pointer; }
.mp-pop:hover, .mp-nav button:hover { background: rgb(0 0 0 / 0.08); }
.mp-home { flex: 1; overflow-y: auto; padding: 12px 16px; }
.mp-hello { display: grid; justify-items: center; margin: 18px 0 26px; }
.mp-big-clock { font-size: 3.4rem; font-weight: 200; line-height: 1; }
.mp-date { margin-top: 6px; font-size: 0.8rem; opacity: 0.65; }
.mp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 6px; margin: 0; padding: 0; list-style: none; }
.mp-icon { display: grid; justify-items: center; gap: 5px; width: 100%; padding: 2px; color: inherit; background: none; border: 0; cursor: pointer; font: inherit; }
.mp-icon-art { display: grid; place-items: center; width: 56px; height: 56px; font-size: 30px; border-radius: 16px; background: linear-gradient(160deg, #fff, #e6e0ff); box-shadow: 0 4px 10px -4px rgb(40 20 90 / 0.45), inset 0 -2px 0 rgb(0 0 0 / 0.06); transition: transform 0.15s; }
.mp-icon:hover .mp-icon-art { transform: translateY(-2px) scale(1.05); }
.mp-icon:active .mp-icon-art { transform: scale(0.94); }
.mp-icon-name { max-width: 100%; font-size: 11px; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.mp-app { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.mp-land .mp-app { flex: none; aspect-ratio: var(--ar, 1.43); }
.mp-app > .win-foot { display: none; }
.mp-app > .win-body { flex: 1; min-height: 0; width: 100%; height: auto; aspect-ratio: auto; margin: 0; padding: 0; border: 0; border-radius: 0; }
.mp-app iframe { width: 100%; height: 100%; border: 0; }
.mp-nav { display: flex; justify-content: center; gap: 48px; flex-shrink: 0; padding: 4px 24px 8px; }
.mp-nav button { width: 52px; height: 26px; border-radius: 13px; font-size: 14px; color: rgb(0 0 0 / 0.55); background: transparent; border: 0; cursor: pointer; }
/* Maximized or full screen, the phone fills the window. */
.win:is(:fullscreen, .is-max):has(.mobile-win) { display: flex; flex-direction: column; }
.win:is(:fullscreen, .is-max) .win-client:has(.mobile-win) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.win:is(:fullscreen, .is-max) .mobile-win { flex: 1; min-height: 0; }
.win:is(:fullscreen, .is-max) .mobile-win { container-type: size; }
/* (upright, it stays phone-shaped: as big as fits, not stretched to the window's height; on a
   short screen, at least as wide as it is in a window) */
.win:is(:fullscreen, .is-max):not(.mp-land, .mp-landscape) .mp { --mp-ratio: 0.52; width: min(100cqw, max(380px, 100cqh * var(--mp-ratio))); max-width: none; height: auto; min-height: 0; max-height: 100cqh; aspect-ratio: var(--mp-ratio); }
.win.mp-land:is(:fullscreen, .is-max) .mp { width: min(100cqw, calc((100cqh - 116px) * var(--ar, 1.43) + 20px)); height: auto; }

/* ---- The fold: apps wider than the phone open it like a Z Fold (2 panels) or a trifold (3) ----
   .unfold-2 or unfold-3 goes on the phone's body: it starts one panel wide (the rest folded behind the hinge)
   and opens to the right. .fold-fx (inside the screen) draws the folded panels swinging out with
   the screen still off, then the screen lights up. The hinges stay as faint creases. */
.unfold-2 { --n: 2; --fold-ms: 0.9s; animation: unfold-2 var(--fold-ms) cubic-bezier(.45, .05, .25, 1) both; }
.unfold-3 { --n: 3; --fold-ms: 1.3s; animation: unfold-3 var(--fold-ms) linear both; }
@keyframes unfold-2 { from { clip-path: inset(0 50% 0 0 round 36px); } to { clip-path: inset(0 0 0 0 round 36px); } }
@keyframes unfold-3 {
  0% { clip-path: inset(0 66.67% 0 0 round 36px); animation-timing-function: cubic-bezier(.45, .05, .25, 1); }
  50% { clip-path: inset(0 33.33% 0 0 round 36px); animation-timing-function: cubic-bezier(.45, .05, .25, 1); }
  100% { clip-path: inset(0 0 0 0 round 36px); }
}
.fold-fx { position: absolute; inset: 0; z-index: 5; pointer-events: none; perspective: 1400px; animation: fold-light var(--fold-ms) ease both; }
.fold-fx::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, #1c1e24, #0a0b0d 70%); }
.fold-flap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% * var(--i) / var(--n));
  width: calc(100% / var(--n));
  transform-origin: left center;
  background: linear-gradient(90deg, #2a2c33, #43464f 35%, #1b1c21);
  box-shadow: inset 2px 0 0 rgb(255 255 255 / 0.1), -10px 0 28px rgb(0 0 0 / 0.55);
  animation: flap-open var(--fold-ms) cubic-bezier(.45, .05, .25, 1) both;
}
.fold-3 .fold-flap { animation-duration: calc(var(--fold-ms) / 2); animation-delay: calc((var(--i) - 1) * var(--fold-ms) / 2); }
@keyframes flap-open { from { transform: rotateY(-180deg); } to { transform: rotateY(0deg); } }
@keyframes fold-light { 0%, 78% { opacity: 1; } 100% { opacity: 0; } }
.fold-crease { position: absolute; top: 0; bottom: 0; z-index: 4; width: 8px; translate: -50% 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgb(0 0 0 / 0.06), rgb(255 255 255 / 0.1), rgb(0 0 0 / 0.06), transparent); }
@media (prefers-reduced-motion: reduce) {
  .unfold-2, .unfold-3 { animation: none; }
  .fold-fx { display: none; }
}
/* Unfolded, the front camera is a punch-hole at the top of the last panel to open (the one that
   was folded away, like a real foldable's inner screen), never on a hinge. */
.unfold-2 :is(.phone-notch, .mp-notch), .unfold-3 :is(.phone-notch, .mp-notch) { left: calc(100% - 100% / (2 * var(--n))); top: 7px; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 3px #1d1f25; }
/* The Z Fold's camera sits off to the side of its right panel (by the status icons), not centred. */
.unfold-2 :is(.phone-notch, .mp-notch) { left: auto; right: 104px; translate: 0 0; }

/* ---- Rotating the phone (⟲): the screen blacks out, a rotation symbol turns with it, then the
   new layout fades in. The turn itself is the `rotate` property on the whole phone/window. ---- */
.rot-cover { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; color: #fff; background: #000; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.26s ease, visibility 0s linear 0.26s; }
.rot-cover.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.18s ease; }
.rot-icon { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: rgb(255 255 255 / 0.1); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.15); }
.rot-cover.on .rot-icon svg { animation: rot-nudge 0.6s ease-in-out 0.2s both; }
@keyframes rot-nudge { 50% { transform: scale(1.15); } }
.rot-turning { transition: rotate 0.6s cubic-bezier(.45, .05, .25, 1) !important; }
.unfolded, .unfolded .fold-fx { animation: none !important; }
.unfolded .fold-fx { display: none; }
@media (prefers-reduced-motion: reduce) { .rot-cover.on .rot-icon svg { animation: none; } }
/* Landscape: the phone on its side. Every app gets the wide screen; the camera moves to the left. */
.mp-landscape .mp { max-width: none; width: 100%; height: auto; min-height: 0; aspect-ratio: 2 / 1; border-radius: 40px; }
.mp-landscape .mp-screen { padding-left: 28px; border-radius: 30px; }
.mp-landscape .mp-status { position: static; }
.mp-landscape .mp-notch { left: 8px; top: 50%; width: 18px; height: 84px; translate: 0 -50%; }
.mp-landscape .mp-hello { margin: 4px 0 12px; }
.mp-landscape .mp-big-clock { font-size: 2.4rem; }
.mp-landscape .mp-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.win.mp-landscape:is(:fullscreen, .is-max) .mp { width: min(100cqw, calc(100cqh * 2)); height: auto; }
/* Sideways, the buttons move to a column on the right, so apps keep the height. */
.mp-landscape .mp-screen { display: grid; grid-template: auto auto 1fr / 1fr auto; }
.mp-landscape :is(.mp-status, .mp-bar, .mp-home, .mp-app) { grid-column: 1; }
.mp-landscape .mp-status { grid-row: 1; }
.mp-landscape .mp-bar { grid-row: 2; padding-block: 0 4px; }
.mp-landscape :is(.mp-home, .mp-app) { grid-row: 3; min-height: 0; }
.mp-landscape .mp-nav { grid-column: 2; grid-row: 1 / -1; flex-direction: column; justify-content: center; gap: 28px; padding: 12px 8px; }
.mp-landscape .mp-nav button { width: 32px; height: 44px; }

/* ---- App menus (right-click in any app): the desktop menu's look, with the app's name on top ---- */
.app-menu { z-index: 400; }
.ctx-head { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; padding: 4px 10px 5px 8px; font-size: 12px; border-bottom: 1px solid rgb(0 0 0 / 0.12); opacity: 0.85; }
.ctx-head b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.app-menu .ctx-item { text-align: left; padding-left: 12px; white-space: pre; }
.ctx-item:disabled { opacity: 0.4; pointer-events: none; }
.ctx-item.ctx-danger:hover { color: #fff; background: linear-gradient(#e0533b, #c8331c); border-color: #a3260f; }
.win-body.ach-win { flex: none; padding: 0; overflow: hidden; height: min(560px, 70vh); background: #101418; }
.ach-frame { display: block; width: 100%; height: 100%; border: 0; }
.win:is(:fullscreen, .is-max):has(.ach-win) { display: flex; flex-direction: column; }
.win:is(:fullscreen, .is-max) .win-client:has(.ach-win) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.win:is(:fullscreen, .is-max) .win-body.ach-win { flex: 1; height: auto; min-height: 0; }

/* ===== File Explorer (os/files.js), Notepad, Photos ===== */
.win-body.fx { display: flex; flex-direction: column; padding: 0; height: min(460px, 62vh); overflow: hidden; }
.fx-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid rgb(0 0 0 / 0.1); }
.fx-btn { width: 30px; height: 28px; border: 1px solid transparent; border-radius: 4px; background: none; color: inherit; font-size: 12px; }
.fx-btn:hover:not(:disabled) { background: rgb(0 120 215 / 0.1); border-color: rgb(0 120 215 / 0.25); }
.fx-btn:disabled { opacity: 0.35; }
.fx-crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 1px; height: 28px; padding: 0 6px; overflow: hidden; border: 1px solid rgb(0 0 0 / 0.18); border-radius: 3px; background: rgb(255 255 255 / 0.85); white-space: nowrap; }
.fx-crumbs button { padding: 2px 5px; border: 0; border-radius: 3px; background: none; color: #16222f; font-size: 12.5px; }
.fx-crumbs button:hover { background: rgb(0 120 215 / 0.12); }
.fx-chev { color: rgb(22 34 47 / 0.5); font-size: 12px; }
.fx-search { width: 150px; height: 28px; padding: 0 8px; border: 1px solid rgb(0 0 0 / 0.18); border-radius: 3px; background: rgb(255 255 255 / 0.85); color: #16222f; font-size: 12.5px; }
.fx-tools { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-bottom: 1px solid rgb(0 0 0 / 0.08); }
.fx-tool { padding: 4px 9px; border: 1px solid transparent; border-radius: 4px; background: none; color: inherit; font-size: 12.5px; }
.fx-tool:hover:not(:disabled) { background: rgb(0 120 215 / 0.1); border-color: rgb(0 120 215 / 0.25); }
.fx-tool:disabled { opacity: 0.4; }
.fx-sep { flex: 1; }
.fx-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 170px 1fr; }
.fx-side { overflow: auto; padding: 6px; border-right: 1px solid rgb(0 0 0 / 0.08); }
.fx-side h4 { margin: 8px 6px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.fx-side button { display: block; width: 100%; padding: 5px 8px; border: 0; border-radius: 3px; background: none; color: inherit; font-size: 13px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-side button:hover { background: rgb(0 120 215 / 0.08); }
.fx-side button.sel { background: rgb(0 120 215 / 0.18); }
.fx-list { overflow: auto; padding: 8px; outline: none; }
.fx-list.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); align-content: start; gap: 4px; }
.fx-list.icons .fx-row { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 6px 4px; border: 1px solid transparent; border-radius: 3px; background: none; color: inherit; text-align: center; }
.fx-list.icons .fx-row i { font-size: 34px; font-style: normal; line-height: 1.1; }
.fx-list.icons .fx-row b { font-weight: 400; font-size: 12px; line-height: 1.25; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-list.icons .fx-row .t, .fx-list.icons .fx-row .s { display: none; }
.fx-list.details .fx-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 150px 80px; align-items: center; gap: 8px; width: 100%; padding: 3px 6px; border: 1px solid transparent; border-radius: 2px; background: none; color: inherit; font-size: 12.5px; text-align: left; }
.fx-list.details .fx-row i { font-style: normal; }
.fx-list.details .fx-row b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-list.details .fx-row .t, .fx-list.details .fx-row .s { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-list.details .fx-row .s { text-align: right; }
.fx-list.details .fx-head { grid-template-columns: minmax(0, 1fr) 150px 80px; padding-left: 36px; color: var(--muted); font-size: 11.5px; border-bottom: 1px solid rgb(0 0 0 / 0.08); border-radius: 0; }
.fx-list .fx-row:hover { background: rgb(0 120 215 / 0.08); border-color: rgb(0 120 215 / 0.18); }
.fx-list .fx-row.sel { background: rgb(0 120 215 / 0.2); border-color: rgb(0 120 215 / 0.4); }
.fx-empty { grid-column: 1 / -1; margin: 20px; color: var(--muted); font-size: 13px; text-align: center; }
.msg p { white-space: pre-line; }
.win-body.notepad { display: flex; flex-direction: column; padding: 0; height: min(380px, 56vh); }
.np-menu { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-bottom: 1px solid rgb(0 0 0 / 0.08); font-size: 12px; }
.np-menu button { padding: 3px 9px; border: 1px solid transparent; border-radius: 3px; background: none; color: inherit; font-size: 12.5px; }
.np-menu button:hover { background: rgb(0 120 215 / 0.1); border-color: rgb(0 120 215 / 0.25); }
.np-info { color: var(--muted); }
.np-text { flex: 1; width: 100%; padding: 8px 10px; border: 0; outline: none; resize: none; background: #fff; color: #111; font: 13.5px/1.45 var(--font-mono); white-space: pre-wrap; }
.win-body.picview { display: grid; place-items: center; padding: 8px; background: #1b1b1b; height: min(420px, 60vh); }
.picview img { max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: auto; }
@media (max-width: 640px) {
  .fx-main { grid-template-columns: 1fr; }
  .fx-side { display: none; }
  .fx-search { width: 90px; }
  .fx-list.details .fx-row { grid-template-columns: 22px minmax(0, 1fr) 70px; }
  .fx-list.details .fx-row .t, .fx-list.details .fx-head span:nth-child(2) { display: none; }
  .fx-list.details .fx-head { grid-template-columns: minmax(0, 1fr) 70px; }
}
.win .fx-bar .fx-search { flex: 0 0 160px; width: 160px; min-width: 0; margin: 0; }
.win .fx-bar .fx-crumbs { flex: 1 1 auto; }
@media (max-width: 640px) { .win .fx-bar .fx-search { flex-basis: 90px; width: 90px; } }
.win .win-body.fx { min-height: 320px; }

/* ---------- Game invites in Yapper ---------- */
.msgr-with { cursor: pointer; }
.msgr-with:hover { text-decoration: underline; }
.msgr-invite { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.msgr-invite-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 8px; background: linear-gradient(#3a2d17, #1d1710); font-size: 20px; }
.msgr-invite-text { display: grid; flex: 1; line-height: 1.2; }
.msgr-invite-text b { letter-spacing: 0.04em; }
.msgr-invite-text small { opacity: 0.75; }
.msgr-invite-join { flex: none; }

/* ---------- Profiles ---------- */
.prof { display: grid; gap: 12px; }
.prof-head { display: flex; align-items: center; gap: 12px; }
.prof-head > div { display: grid; }
.prof-name { font-size: 18px; }
.prof-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prof-stat { display: grid; justify-items: center; gap: 4px; padding: 8px 6px; text-align: center; border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); border-radius: 6px; }
.prof-stat small { font-size: 11.5px; }
.prof-big { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.prof-badge .rank-badge { display: block; width: 52px; height: 26px; }
.prof-games { display: grid; gap: 6px; max-height: min(300px, 40vh); overflow: auto; }
.prof-game-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.prof-icons { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.prof-ach { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 8%, transparent); font-size: 15px; cursor: default; }
.prof-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.prof-empty { margin: 0; }
@media (max-width: 480px) { .prof-stats { grid-template-columns: 1fr; } }

/* ---------- Command Prompt ---------- */
.win-body.term { --term-bg: #0c0c0c; --term-fg: #cccccc; position: relative; flex: 1 1 auto; height: min(440px, 62vh); padding: 6px 8px; overflow: auto; background: var(--term-bg) !important; color: var(--term-fg) !important; font: 14px/1.35 Consolas, 'Cascadia Mono', 'Lucida Console', 'Courier New', monospace; cursor: text; border-radius: 0 !important; }
.term-out { white-space: pre-wrap; overflow-wrap: anywhere; }
.term-l { min-height: 1.35em; }
.term-err { color: #f2f2f2; }
.term-dim { opacity: 0.7; }
.term-green { color: #16c60c; }
.term-line { display: flex; align-items: baseline; }
.term-prompt { white-space: pre; }
.term-in { flex: 1; min-width: 0; padding: 0; border: 0 !important; outline: 0; background: transparent !important; color: inherit; font: inherit; box-shadow: none !important; caret-color: currentColor; }
.term-matrix { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }


/* ---------- Reward wallpapers (unlocked with achievement points) ---------- */
.wp-custom { display: none; background: center / cover no-repeat; }
html[data-wallpaper] .wallpaper > :not(.wp-custom) { display: none; }
html[data-wallpaper] .wp-custom { display: block; }
html[data-wallpaper="dust"] .wp-custom { background-image: url(/os/wallpapers/dust.svg); }
html[data-wallpaper="lawn"] .wp-custom { background-image: url(/os/wallpapers/lawn.svg); }
html[data-wallpaper="grid"] .wp-custom { background-image: url(/os/wallpapers/grid.svg); }
html[data-wallpaper="elite"] .wp-custom { background-image: url(/os/wallpapers/elite.svg); }
html[data-wallpaper] .di-label { color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / 0.85); }
.wall-head { margin: 16px 0 2px; font-size: 14px; }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.wall-card { display: grid; gap: 4px; padding: 6px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.wall-card[aria-pressed="true"] { border-color: var(--accent, #3a8fd8); box-shadow: 0 0 0 2px var(--accent, #3a8fd8); }
.wall-thumb { display: block; aspect-ratio: 16 / 9; border-radius: 4px; background: center / cover no-repeat; }
.wall-thumb.is-theme { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--ink) 10%, transparent) 0 8px, transparent 8px 16px); }
.is-locked { position: relative; opacity: 0.6; }
.is-locked .theme-name::after { content: " 🔒"; }

/* ---------- Terminal theme (a reward): the minimalist theme, in phosphor green ---------- */
/* The desktop's own parts are recoloured; what's inside windows keeps the minimalist look and goes
   through a filter that turns white to black and black to green (games in frames are left alone). */
html[data-theme="terminal"] { --t-bg: #050a05; --t-fg: #33ff66; --t-hi: #0c2412; --font-ui: "IBM Plex Mono", Consolas, "Courier New", monospace; --font-title: var(--font-ui); --ink: #33ff66; --muted: #1fae4a; --accent: #33ff66; --phosphor: grayscale(1) invert(1) sepia(1) saturate(5) hue-rotate(62deg) brightness(1.05); }
html[data-theme="terminal"] .marquee { border: 1px solid #000; background: rgb(0 0 0 / 0.06); }
html[data-theme="terminal"] body { background: var(--t-bg); }
html[data-theme="terminal"] .wp-sky { background: var(--t-bg); }
html[data-theme="terminal"] :is(.wp-rays, .wp-hills, .wp-bubble, .wp-noise) { display: none; }
html[data-theme="terminal"] .desk-icons { gap: 10px; padding: 24px; }
html[data-theme="terminal"] .di-img { filter: none; font-size: 34px; font-weight: 300; }
html[data-theme="terminal"] .di-label { color: var(--t-fg); text-shadow: none; font-size: 11px; letter-spacing: 0.04em; }
html[data-theme="terminal"] .desk-icon { border-radius: 0; }
html[data-theme="terminal"] .desk-icon:hover { background: var(--t-hi); border-color: transparent; }
html[data-theme="terminal"] .desk-icon.is-selected { background: var(--t-bg); border-color: var(--t-fg); }
html[data-theme="terminal"] .win, html[data-theme="terminal"] .win:not(.is-active) { padding: 0; border-radius: 0; background: var(--t-bg); border: 1px solid var(--t-fg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
html[data-theme="terminal"] .win.is-active { box-shadow: 6px 6px 0 var(--t-fg); }
html[data-theme="terminal"] .win::before { content: none; }
html[data-theme="terminal"] .win-bar { min-height: 46px; padding-left: 16px; gap: 10px; border-bottom: 1px solid var(--t-fg); }
html[data-theme="terminal"] .win-title { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--t-fg); text-shadow: none; }
html[data-theme="terminal"] .win-client { border: 0; border-radius: 0; background: #fff; box-shadow: none; }
html[data-theme="terminal"] .win-caps { align-self: stretch; margin: 0; border: 0; border-left: 1px solid var(--t-fg); border-radius: 0; box-shadow: none; }
html[data-theme="terminal"] .cap, html[data-theme="terminal"] .cap-close { width: 40px; height: auto; font-size: 11px; color: var(--t-fg); text-shadow: none; background: var(--t-bg); border-left-color: var(--t-fg); }
html[data-theme="terminal"] .cap:hover, html[data-theme="terminal"] .cap-close:hover { color: var(--t-bg); background: var(--t-fg); box-shadow: none; }
html[data-theme="terminal"] .win-foot { border-top: 1px solid #000; background: #fff; }
html[data-theme="terminal"] .btn { border-radius: 0; border: 1px solid #000; font-weight: 500; letter-spacing: 0.04em; color: #000; background: #fff; box-shadow: none; }
html[data-theme="terminal"] .btn:hover { color: #fff; border-color: #000; background: #000; box-shadow: none; }
html[data-theme="terminal"] .btn-primary { color: #fff; background: #000; }
html[data-theme="terminal"] .btn-primary:hover { color: #000; background: #fff; }
html[data-theme="terminal"] .taskbar { color: var(--t-fg); text-shadow: none; background: var(--t-bg); border-top: 1px solid var(--t-fg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
html[data-theme="terminal"] .task { border-radius: 0; }
html[data-theme="terminal"] .task:hover { border-color: var(--t-fg); background: var(--t-bg); box-shadow: none; }
html[data-theme="terminal"] .task.is-active { border-color: transparent; background: var(--t-bg); box-shadow: inset 0 -2px 0 var(--t-fg); }
html[data-theme="terminal"] .tray { border-color: var(--t-fg); }
html[data-theme="terminal"] .show-desktop { border-color: var(--t-fg); background: var(--t-bg); }
html[data-theme="terminal"] .show-desktop:hover { background: var(--t-fg); }
html[data-theme="terminal"] .start-btn { height: 30px; padding: 0 12px 0 5px; gap: 9px; border-radius: 0; border: 1px solid var(--t-fg); background: var(--t-bg); }
html[data-theme="terminal"] .start-btn:hover { background: var(--t-hi); }
html[data-theme="terminal"] .start-orb, html[data-theme="terminal"] .start-btn:hover .start-orb, html[data-theme="terminal"] .start-btn[aria-expanded="true"] .start-orb { width: 20px; height: 20px; border-radius: 0; border: 0; background: var(--t-fg); box-shadow: none; filter: none; }
html[data-theme="terminal"] .start-orb::before { content: none; }
html[data-theme="terminal"] .start-glyph { font-size: 12px; font-weight: 600; text-shadow: none; }
html[data-theme="terminal"] .start-label { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--t-fg); }
html[data-theme="terminal"] .start-menu { padding: 0; border-radius: 0; color: var(--t-fg); background: var(--t-bg); border: 1px solid var(--t-fg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 6px 6px 0 var(--t-fg); animation: none; }
html[data-theme="terminal"] .sm-head { padding: 12px 14px; border-bottom: 1px solid var(--t-fg); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; text-shadow: none; }
html[data-theme="terminal"] .sm-avatar { border-radius: 0; border: 1px solid var(--t-fg); background: var(--t-bg); box-shadow: none; }
html[data-theme="terminal"] .sm-cols { gap: 0; }
html[data-theme="terminal"] .sm-list { border: 0; border-right: 1px solid var(--t-fg); border-radius: 0; padding: 6px; }
html[data-theme="terminal"] .sm-item, html[data-theme="terminal"] .sm-theme { border-radius: 0; }
html[data-theme="terminal"] .sm-item:hover, html[data-theme="terminal"] .sm-item:focus-visible, html[data-theme="terminal"] .sm-theme:hover, html[data-theme="terminal"] .sm-theme[aria-pressed="true"] { background: var(--t-hi); box-shadow: inset 2px 0 0 var(--t-fg); }
html[data-theme="terminal"] .sm-side { padding: 6px; text-shadow: none; }
html[data-theme="terminal"] .sm-heading { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; opacity: 1; }
html[data-theme="terminal"] .sm-foot { padding: 8px; border-top: 1px solid var(--t-fg); }
html[data-theme="terminal"] .sm-power { border-radius: 0; border: 1px solid var(--t-fg); text-shadow: none; background: var(--t-fg); }
html[data-theme="terminal"] .swatch { border-radius: 0; border-color: #000; }
html[data-theme="terminal"] .ctx-menu { background: var(--t-bg); border-color: var(--t-fg); box-shadow: 4px 4px 0 var(--t-fg); }
html[data-theme="terminal"] .ctx-item { border-radius: 0; }
html[data-theme="terminal"] .ctx-item:hover, html[data-theme="terminal"] .ctx-item:focus-visible { color: var(--t-bg); background: var(--t-fg); border-color: var(--t-fg); }
html[data-theme="terminal"] .ctx-menu hr { border-color: var(--t-fg); }
html[data-theme="terminal"] .pc-logo { color: #000; }
html[data-theme="terminal"] .tr-facts li { border-radius: 0; border-color: #000; background: #fff; }
html[data-theme="terminal"] .theme-card { border-radius: 0; border-color: #000; background: #fff; }
html[data-theme="terminal"] .theme-card:hover, html[data-theme="terminal"] .theme-card[aria-pressed="true"] { border-color: #000; box-shadow: 4px 4px 0 #000; }
html[data-theme="terminal"] .bin-file { border-radius: 0; }
html[data-theme="terminal"] .bin-file:hover, html[data-theme="terminal"] .bin-file.is-selected { background: #f2f2f2; border-color: #000; }
html[data-theme="terminal"] .br-view:not(.no-fx) :is(.br-frame, .br-start) { filter: grayscale(1) contrast(1.15); }
html[data-theme="terminal"] :is(.win-body :is(input, select, textarea), .msg-input, .msgr-suggest, .lb-wrap) { border-color: var(--t-fg); border-radius: 0; }
html[data-theme="terminal"] :is(.msgr-msg, .acct-avatar) { border-radius: 0; box-shadow: none; border: 1px solid var(--t-fg); background: var(--t-bg); }
html[data-theme="terminal"] .msgr-msg.is-mine { color: var(--t-bg); background: var(--t-fg); }
html[data-theme="terminal"] .msgr-msg.is-mine .msgr-time { color: rgb(255 255 255 / 0.7); }
html[data-theme="terminal"] body { background: #050a05; }
html[data-theme="terminal"] .wp-sky { background: radial-gradient(ellipse at 50% 40%, #0c2412, #020502 70%), #020502; }
html[data-theme="terminal"] .wp-noise { display: block; opacity: 1; background: repeating-linear-gradient(0deg, rgb(51 255 102 / 0.05) 0 1px, transparent 1px 3px); }
html[data-theme="terminal"] :is(.di-label, .win-title, .start-label, .sm-head, .taskbar) { text-shadow: 0 0 6px rgb(51 255 102 / 0.55); }
html[data-theme="terminal"] :is(.di-img, .sm-item [data-icon], .task-icon, .win-icon) { filter: grayscale(1) sepia(1) saturate(6) hue-rotate(65deg) brightness(1.2); }
html[data-theme="terminal"] .win-client { --ink: #000; --muted: #555; color: #000; }
html[data-theme="terminal"] .win-client:not(:has(iframe, .term)), html[data-theme="terminal"] .win-client:has(iframe, .term) .win-foot { filter: var(--phosphor); }
