/* =========================================================
   LunevPro OS - интерфейс рабочего стола (2026)
   Главная страница. Внутренние страницы: lp-pages.css
   ========================================================= */

:root {
  --lp-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --lp-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --lp-accent: #6b7cff;
  --lp-accent-2: #a36bff;
  --lp-accent-grad: linear-gradient(135deg, #5b8cff 0%, #8b6bff 55%, #c56bff 100%);
  --lp-dim: .1;
  --lp-bar-h: 30px;
  --lp-ease: cubic-bezier(.2, .8, .2, 1);
  --lp-spring: cubic-bezier(.34, 1.56, .64, 1);
  --lp-safe-t: env(safe-area-inset-top, 0px);
  --lp-safe-b: env(safe-area-inset-bottom, 0px);
}
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --lp-text: #f3f5fa;
  --lp-muted: rgba(232, 236, 246, .62);
  --lp-bar: rgba(14, 16, 22, .38);
  --lp-glass: rgba(24, 26, 34, .5);
  --lp-glass-2: rgba(30, 32, 42, .74);
  --lp-surface: rgba(24, 26, 33, .9);
  --lp-surface-2: rgba(255, 255, 255, .065);
  --lp-surface-3: rgba(255, 255, 255, .1);
  --lp-stroke: rgba(255, 255, 255, .09);
  --lp-stroke-2: rgba(255, 255, 255, .16);
  --lp-hover: rgba(255, 255, 255, .08);
  --lp-link: #93a5ff;
  --lp-shadow: 0 28px 70px -18px rgba(0, 0, 0, .7), 0 0 0 .5px rgba(255, 255, 255, .1);
  --lp-shadow-sm: 0 10px 30px -10px rgba(0, 0, 0, .55);
}
:root[data-theme="light"] {
  color-scheme: light;
  --lp-text: #14161c;
  --lp-muted: rgba(28, 32, 44, .6);
  --lp-bar: rgba(255, 255, 255, .42);
  --lp-glass: rgba(255, 255, 255, .56);
  --lp-glass-2: rgba(250, 251, 254, .8);
  --lp-surface: rgba(252, 252, 254, .93);
  --lp-surface-2: rgba(16, 22, 44, .045);
  --lp-surface-3: rgba(16, 22, 44, .08);
  --lp-stroke: rgba(12, 18, 36, .08);
  --lp-stroke-2: rgba(12, 18, 36, .14);
  --lp-hover: rgba(12, 18, 36, .06);
  --lp-link: #3553d6;
  --lp-shadow: 0 28px 64px -18px rgba(16, 22, 44, .38), 0 0 0 .5px rgba(0, 0, 0, .1);
  --lp-shadow-sm: 0 10px 28px -12px rgba(16, 22, 44, .3);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body.lp-home {
  margin: 0;
  overflow: hidden;
  font-family: var(--lp-font);
  font-size: 14px;
  color: var(--lp-text);
  background: #07080d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
:where(.lp-home) button { font: inherit; color: inherit; }
.lp-home kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  font: 600 10.5px/1 var(--lp-font);
  color: var(--lp-muted);
  background: var(--lp-surface-2);
  border: 1px solid var(--lp-stroke);
}
.lp-home :focus { outline: none; }
.lp-home :focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 2px; }
.lp-home ::selection { background: rgba(107, 124, 255, .35); }
.lp-home * { scrollbar-width: thin; scrollbar-color: var(--lp-stroke-2) transparent; }
.lp-home ::-webkit-scrollbar { width: 10px; height: 10px; }
.lp-home ::-webkit-scrollbar-thumb { background: var(--lp-stroke-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
.lp-home ::-webkit-scrollbar-track { background: transparent; }

/* ---------- wallpaper ---------- */
.lp-os {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #07080d;
  transition: opacity .2s ease, filter .2s ease;
}
.lp-os.gradient-aurora-dark { background: radial-gradient(60% 55% at 18% 18%, #3a2d93 0%, transparent 60%), radial-gradient(55% 55% at 85% 25%, #0e6f8f 0%, transparent 60%), radial-gradient(70% 60% at 50% 100%, #6b1e7c 0%, transparent 60%), #07080d; }
.lp-os.gradient-night-blue { background: radial-gradient(60% 60% at 20% 15%, #1f3f9a 0%, transparent 60%), radial-gradient(60% 60% at 90% 80%, #0b6aa6 0%, transparent 60%), #070d22; }
.lp-os.gradient-graphite { background: radial-gradient(60% 60% at 25% 20%, #3a3f4b 0%, transparent 60%), radial-gradient(60% 60% at 85% 85%, #2a2e37 0%, transparent 60%), #111318; }
.lp-os.gradient-light-sky { background: radial-gradient(60% 60% at 15% 20%, #9ccaff 0%, transparent 60%), radial-gradient(60% 60% at 85% 30%, #ffd6ef 0%, transparent 60%), radial-gradient(70% 60% at 50% 100%, #b9f0e6 0%, transparent 60%), #dfeeff; }
.lp-os.gradient-silver { background: radial-gradient(60% 60% at 20% 20%, #f6f8fb 0%, transparent 60%), radial-gradient(60% 60% at 80% 80%, #b8c0cf 0%, transparent 60%), #d8dde6; }
.lp-os.gradient-purple { background: radial-gradient(60% 60% at 20% 20%, #5b2a9d 0%, transparent 60%), radial-gradient(60% 60% at 85% 75%, #b0418d 0%, transparent 60%), #14081f; }
.lp-os.gradient-green { background: radial-gradient(60% 60% at 20% 20%, #0f6b4f 0%, transparent 60%), radial-gradient(60% 60% at 85% 75%, #2aa876 0%, transparent 55%), #051712; }
.lp-os.gradient-sunset { background: radial-gradient(60% 60% at 20% 25%, #ff7a45 0%, transparent 60%), radial-gradient(60% 60% at 80% 20%, #c2185b 0%, transparent 60%), radial-gradient(70% 60% at 50% 100%, #5b1a8a 0%, transparent 60%), #1c0a15; }
.os-bg-image {
  position: absolute;
  inset: calc(var(--bg-blur, 0px) * -2);
  background: var(--desktop-bg) center / cover no-repeat;
  filter: blur(var(--bg-blur, 0px));
  transition: opacity .6s ease;
  z-index: 0;
}
.os-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.lp-wall-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .35) 100%),
    rgba(0, 0, 0, var(--lp-dim));
}
body.lp-leaving .lp-os { opacity: .55; filter: blur(3px) saturate(.9); }

/* ---------- menubar ---------- */
.lp-menubar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--lp-bar-h);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 0 10px;
  font-size: 13px;
  color: var(--lp-text);
  background: var(--lp-bar);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border-bottom: .5px solid var(--lp-stroke);
  user-select: none;
}
.lp-menubar-left { display: flex; align-items: center; gap: 2px; min-width: 0; }
.lp-brand { display: inline-flex; align-items: center; gap: 8px; padding: 3px 8px 3px 4px; border-radius: 7px; color: inherit; text-decoration: none; }
.lp-brand:hover { background: var(--lp-hover); }
.lp-brand b { font-weight: 700; letter-spacing: -.01em; }
.lp-home .logo {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  overflow: hidden;
  font: 800 9.5px/1 var(--lp-font);
  color: #fff;
  background: var(--lp-accent-grad);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3);
}
.lp-home .logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-menubar-app { font-weight: 700; padding: 3px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.lp-menubar-link { border: 0; background: none; padding: 3px 9px; border-radius: 7px; cursor: default; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.lp-menubar-link:hover { background: var(--lp-hover); }
.lp-menubar-link kbd { height: 16px; font-size: 10px; }
.lp-status { display: flex; align-items: center; gap: 2px; }
.lp-status-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  background: none;
  cursor: default;
  transition: background .15s;
}
.lp-status-btn:hover, .lp-status-btn[aria-expanded="true"] { background: var(--lp-hover); }
.lp-status-btn svg { display: block; }
.sound-toggle.is-on { color: var(--lp-accent); }
[data-theme="dark"] .sound-toggle.is-on { color: #a9b5ff; }
#themeToggle .lp-ico-light { display: none; }
[data-theme="light"] #themeToggle .lp-ico-dark { display: none; }
[data-theme="light"] #themeToggle .lp-ico-light { display: block; }
.lp-clock { border: 0; background: none; padding: 3px 8px; border-radius: 7px; display: inline-flex; gap: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: default; }
.lp-clock:hover { background: var(--lp-hover); }
#clock { font-weight: 600; }
.lp-island { display: none; }

/* ---------- desktop & icons ---------- */
.lp-desktop {
  position: fixed;
  top: var(--lp-bar-h);
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  user-select: none;
}
.lp-icon {
  position: absolute;
  width: 92px;
  padding: 7px 4px 6px;
  border: 0;
  background: none;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  cursor: default;
  z-index: 2;
  touch-action: none;
  animation: lp-icon-in .55s var(--lp-ease) both;
  animation-delay: calc(var(--i, 0) * 32ms + 80ms);
}
.lp-icon .ico, .lp-app .ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  transition: background .15s, transform .15s var(--lp-ease);
}
.lp-icon .ico .lp-emoji { font-size: 44px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.lp-icon .ico img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .38)); pointer-events: none; }
.lp-icon .lp-label {
  max-width: 100%;
  padding: 1px 6px 2px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .75), 0 0 12px rgba(0, 0, 0, .45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.lp-icon:hover .ico { background: rgba(255, 255, 255, .08); }
.lp-icon.selected .ico { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.lp-icon.selected .lp-label { background: var(--lp-accent); text-shadow: none; }
.lp-icon.dragging { opacity: .82; z-index: 20; cursor: grabbing; }
.lp-icon.dragging .ico { transform: scale(1.06); }
.lp-icon:active .ico { transform: scale(.96); }
.lp-os:not(.is-ready) .lp-icon { opacity: 0; }
@keyframes lp-icon-in { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
.select-box {
  position: absolute;
  display: none;
  z-index: 3;
  border-radius: 4px;
  background: rgba(107, 124, 255, .16);
  border: 1px solid rgba(140, 155, 255, .7);
  pointer-events: none;
}

/* ---------- widgets ---------- */
.lp-widgets {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
  animation: lp-fade-down .7s var(--lp-ease) both .1s;
}
.lp-widget {
  position: relative;
  color: var(--lp-text);
  background: var(--lp-glass);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid var(--lp-stroke);
  border-radius: 24px;
  box-shadow: var(--lp-shadow-sm);
}
.lp-widget-welcome { padding: 16px 20px 18px; }
.lp-greeting { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--lp-muted); }
.lp-widget-welcome h1 { margin: 0 0 6px; font: 750 21px/1.2 var(--lp-font-display); letter-spacing: -.02em; }
.lp-widget-welcome span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--lp-muted); }
.lp-widget-clock { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 16px 18px; align-items: center; }
.lp-wclock b { display: block; font: 250 46px/1 var(--lp-font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lp-wclock span { display: block; margin-top: 8px; font-size: 13px; color: var(--lp-muted); line-height: 1.35; }
.lp-wclock span::first-letter, .lp-phone-clock span::first-letter { text-transform: uppercase; }
.lp-cal { width: 168px; }
.lp-cal-m { display: block; margin: 0 0 6px 2px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #ff6b6b; }
.lp-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; }
.lp-cal-g i { font-style: normal; font-size: 10.5px; line-height: 20px; height: 20px; border-radius: 50%; font-variant-numeric: tabular-nums; }
.lp-cal-g i.lp-cal-h { font-size: 9px; font-weight: 700; color: var(--lp-muted); text-transform: uppercase; }
.lp-cal-g i.is-we { color: var(--lp-muted); }
.lp-cal-g i.is-today { background: #ff5b5b; color: #fff; font-weight: 700; }
@keyframes lp-fade-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- dock ---------- */
.lp-dock {
  --ds: 50px;
  position: fixed;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 55;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 22px;
  background: var(--lp-glass);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--lp-stroke-2);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: lp-dock-in .6s var(--lp-ease) both .15s;
}
@keyframes lp-dock-in { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
.lp-dock-item {
  position: relative;
  flex: 0 0 auto;
  width: calc(var(--ds) * (1 + var(--mag, 0)));
  padding: 0;
  border: 0;
  background: none;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: width .14s ease-out;
  -webkit-user-select: none;
  user-select: none;
}
.lp-dock-item .dock-ico {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  font-size: calc(var(--ds) * .76 * (1 + var(--mag, 0)));
  line-height: 1;
  transition: transform .15s var(--lp-ease);
}
.lp-dock-item .dock-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); pointer-events: none; }
.lp-dock-item .dock-emoji, .lp-dock-item .lp-emoji { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); }
.lp-dock-item:active .dock-ico { transform: scale(.9); filter: brightness(.85); }
.lp-dock-item > small {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--lp-text);
  background: var(--lp-glass-2);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--lp-stroke);
  box-shadow: var(--lp-shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s, transform .12s;
}
.lp-dock-item:not(:has(> small))::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--lp-text);
  background: var(--lp-glass-2);
  border: 1px solid var(--lp-stroke);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s, transform .12s;
}
.lp-dock-item:hover > small, .lp-dock-item:hover::after, .lp-dock-item:focus-visible > small { opacity: 1; transform: translate(-50%, 0); }
.lp-run-dot {
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--lp-text);
  opacity: 0;
  transition: opacity .2s;
}
.lp-dock-item.is-running .lp-run-dot, .lp-dock-start.is-open .lp-run-dot { opacity: .85; }
.lp-dock-item.is-bounce .dock-ico { animation: lp-bounce .7s var(--lp-ease); }
@keyframes lp-bounce { 0%, 100% { transform: none; } 30% { transform: translateY(-14px); } 55% { transform: translateY(0); } 75% { transform: translateY(-5px); } }
.lp-start-ico {
  border-radius: 24%;
  background: var(--lp-accent-grad);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .35), 0 6px 14px -6px rgba(91, 110, 255, .8);
  width: 86% !important;
  margin: 7% auto;
}
.start-dots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16%; width: 46%; aspect-ratio: 1; }
.start-dots i { display: block; border-radius: 50%; background: #fff; aspect-ratio: 1; }
.lp-dock-start.is-open .lp-start-ico { filter: brightness(1.12); }
.lp-dock-sep { align-self: stretch; width: 1px; margin: 6px 5px; background: var(--lp-stroke-2); }
.lp-dock-sep[hidden] { display: none; }
.lp-dock-running { display: contents; }
.lp-dock-running .is-min .dock-ico { opacity: .7; }
.dock-mobile { display: none; }

/* ---------- windows ---------- */
.window-layer { position: fixed; top: var(--lp-bar-h); left: 0; right: 0; bottom: 0; z-index: 20; pointer-events: none; }
.lp-win {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  max-height: calc(100% - 96px);
  border-radius: 14px;
  color: var(--lp-text);
  pointer-events: auto;
  isolation: isolate;
  overflow: hidden;
  box-shadow: var(--lp-shadow);
  user-select: text;
}
.lp-win::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--lp-surface);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
}
.lp-win:not(.is-active) { box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .5), 0 0 0 .5px var(--lp-stroke-2); }
.lp-win.is-opening { animation: lp-win-in .28s var(--lp-ease) both; }
.lp-win.is-closing { animation: lp-win-out .2s ease-in both; pointer-events: none; }
@keyframes lp-win-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lp-win-out { to { opacity: 0; transform: scale(.95); } }
.lp-win.is-minimized {
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--min-x, 0), var(--min-y, 300px)) scale(.06);
  transition: transform .38s cubic-bezier(.5, 0, .75, 0), opacity .38s ease-in;
}
.lp-win:not(.is-minimized) { transition: transform .38s var(--lp-ease), opacity .3s ease; }
.lp-win.is-dragging { transition: none; user-select: none; }
.lp-win.is-animating { transition: left .26s var(--lp-ease), top .26s var(--lp-ease), width .26s var(--lp-ease), height .26s var(--lp-ease); }
.lp-win.is-max { left: 8px !important; top: 8px !important; width: calc(100% - 16px) !important; height: calc(100% - 92px) !important; max-height: none; }
.lp-win.win-attention { animation: lp-attention .45s var(--lp-ease); }
@keyframes lp-attention { 0%, 100% { transform: none; } 30% { transform: scale(1.015); } 60% { transform: scale(.995); } }

.lp-win .win-head {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(0, auto) 1fr;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 10px 0 14px;
  user-select: none;
  cursor: default;
  border-bottom: .5px solid var(--lp-stroke);
  background: var(--lp-surface-2);
  touch-action: none;
}
.lp-lights { display: flex; gap: 8px; }
.lp-lights button {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: default;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18);
}
.lp-lights .close { background: #ff5f57; }
.lp-lights .lp-min { background: #febc2e; }
.lp-lights .lp-max { background: #28c840; }
.lp-win:not(.is-active) .lp-lights button { background: var(--lp-surface-3); }
.lp-lights button::before, .lp-lights button::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 1.5px;
  margin: -.75px 0 0 -3.5px;
  border-radius: 1px;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
}
.lp-lights .close::before { transform: rotate(45deg); }
.lp-lights .close::after { transform: rotate(-45deg); }
.lp-lights .lp-min::after { display: none; }
.lp-lights .lp-max::before { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 1px; background: none; border-top: 1.5px solid rgba(0, 0, 0, .55); border-left: 1.5px solid rgba(0, 0, 0, .55); transform: rotate(-45deg) translate(1px, 1px); }
.lp-lights .lp-max::after { display: none; }
.lp-lights:hover button::before, .lp-lights:hover button::after { opacity: 1; }
.lp-win .win-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
}
.lp-win .win-title span { overflow: hidden; text-overflow: ellipsis; }
.lp-win:not(.is-active) .win-title { color: var(--lp-muted); }
.win-title-img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
.win-title-emoji { font-size: 16px; line-height: 1; }
.lp-win-actions { justify-self: end; display: flex; gap: 4px; }
.lp-win-actions button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--lp-muted);
  cursor: default;
}
.lp-win-actions button:hover { background: var(--lp-hover); color: var(--lp-text); }
.lp-win-actions .lp-mclose { display: none; }
.lp-resize { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; z-index: 3; }

/* window content */
.lp-win .win-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px 26px 26px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--lp-text);
}
.lp-win .win-body > :first-child { margin-top: 0; }
.lp-win .win-body > :last-child { margin-bottom: 0; }
.lp-win .win-body h1, .lp-win .win-body h2, .lp-win .win-body h3 { font-family: var(--lp-font-display); letter-spacing: -.015em; line-height: 1.25; }
.lp-win .win-body h1 { font-size: 26px; margin: 0 0 12px; }
.lp-win .win-body h2 { font-size: 21px; margin: 0 0 10px; }
.lp-win .win-body h3 { font-size: 17px; margin: 18px 0 8px; }
.lp-win .win-body p { margin: 0 0 12px; }
.lp-win .win-body a { color: var(--lp-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lp-win .win-body img { max-width: 100%; height: auto; border-radius: 12px; }
.lp-win .win-body ul, .lp-win .win-body ol { padding-left: 22px; margin: 0 0 12px; }
.lp-win .win-body li { margin: 3px 0; }
.lp-win .win-body hr { border: 0; border-top: 1px solid var(--lp-stroke); margin: 18px 0; }
.lp-win .win-body blockquote { margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--lp-accent); background: var(--lp-surface-2); border-radius: 0 12px 12px 0; }
.lp-win .win-body code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--lp-surface-2); }
.lp-win .win-body table { width: 100%; border-collapse: collapse; }
.lp-win .win-body td, .lp-win .win-body th { padding: 8px 10px; border-bottom: 1px solid var(--lp-stroke); text-align: left; }
.lp-win .win-body iframe, .lp-win .win-body video { max-width: 100%; border-radius: 12px; }
.lp-win .action, .lp-win .win-body .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--lp-accent-grad);
  color: #fff !important;
  text-decoration: none;
  font-weight: 650;
}

/* folder of documents */
.doc-folder h2 { margin: 0 0 6px; }
.doc-folder p { color: var(--lp-muted); margin: 0 0 16px; }
.doc-folder-grid, .legal-doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.doc-folder-grid a, .legal-doc-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--lp-surface-2);
  border: 1px solid var(--lp-stroke);
  color: var(--lp-text) !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: background .15s, transform .15s var(--lp-ease);
}
.legal-doc-card { flex-direction: column; align-items: flex-start; gap: 4px; }
.legal-doc-card span { font-weight: 400; font-size: 13px; color: var(--lp-muted); line-height: 1.45; }
.doc-folder-grid a:hover, .legal-doc-card:hover { background: var(--lp-surface-3); transform: translateY(-1px); }
.legal-updated { font-size: 12.5px; color: var(--lp-muted); }

/* games folder */
.games-folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.game-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--lp-stroke);
  background: var(--lp-surface-2);
  text-align: left;
  cursor: pointer;
  transition: transform .18s var(--lp-ease), background .18s;
}
.game-card:hover { transform: translateY(-2px); background: var(--lp-surface-3); }
.game-card-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; background: var(--lp-surface-3); font-size: 32px; overflow: hidden; }
.game-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.game-card b { font-size: 15px; }
.game-card small { font-size: 12.5px; color: var(--lp-muted); line-height: 1.45; }

/* game window */
.lp-win.game-win .win-body, .lp-win .game-body { padding: 0; background: #000; overflow: hidden; }
.game-iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; background: #000; border-radius: 0 !important; }
.lp-win.game-win .win-body:fullscreen .game-iframe { min-height: 100vh; }

/* steam */
.lp-win.steam-win { color: #c7d5e0; }
.lp-win.steam-win::before { background: linear-gradient(180deg, rgba(23, 26, 33, .96), rgba(27, 40, 56, .96)); }
.lp-win.steam-win .win-head { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .06); color: #fff; }
.lp-win.steam-win .win-body { color: #c7d5e0; padding: 0 0 22px; }
.steam-nav { display: flex; flex-wrap: wrap; gap: 22px; padding: 14px 24px; background: rgba(0, 0, 0, .2); font-size: 13px; letter-spacing: .06em; }
.steam-nav b { color: #dcdedf; font-weight: 700; }
.steam-nav b:last-child { color: #66c0f4; }
.steam-profile { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 24px; background: radial-gradient(120% 140% at 0 0, rgba(102, 192, 244, .18), transparent 60%); }
.steam-avatar { width: 96px; height: 96px; border-radius: 6px; overflow: hidden; background: #2a475e; display: grid; place-items: center; font-size: 44px; box-shadow: 0 0 0 2px #66c0f4; }
.steam-avatar img { width: 100%; height: 100%; object-fit: cover; }
.steam-info h2 { margin: 0 0 6px; color: #fff; font-size: 24px; }
.steam-info p { margin: 0; color: #8f98a0; }
.steam-level { display: flex; align-items: center; gap: 10px; font-size: 18px; color: #fff; }
.steam-level b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #c02942; font-size: 15px; }
.lp-win .win-body .steam-games-title { margin: 6px 24px 12px; color: #fff; font-size: 16px; font-weight: 600; }
.steam-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 0 24px; }
.steam-game { border-radius: 6px; overflow: hidden; background: rgba(0, 0, 0, .25); }
.steam-game img { display: block; width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 0 !important; }
.steam-game > span { display: grid; place-items: center; aspect-ratio: 460 / 215; font-size: 34px; }
.steam-game small { display: block; padding: 8px 10px; color: #c7d5e0; font-size: 12.5px; }
.steam-empty { padding: 0 24px; color: #8f98a0; }

/* ---------- start menu (launchpad) ---------- */
.lp-launch {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 58;
  width: min(660px, calc(100vw - 24px));
  max-height: min(640px, calc(100vh - 140px));
  overflow: auto;
  padding: 16px 18px 14px;
  border-radius: 26px;
  color: var(--lp-text);
  background: var(--lp-glass-2);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--lp-stroke-2);
  box-shadow: var(--lp-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px) scale(.98);
  transform-origin: 50% 100%;
  transition: opacity .2s ease, transform .26s var(--lp-ease), visibility 0s linear .26s;
}
.lp-launch.open { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .18s ease, transform .3s var(--lp-ease), visibility 0s; }
.lp-launch-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 40px;
  border-radius: 12px;
  background: var(--lp-surface-2);
  border: 1px solid var(--lp-stroke);
  color: var(--lp-muted);
}
.lp-launch-search input:focus-visible, .lp-spot-form input:focus-visible, #mobileSearchForm input:focus-visible { outline: none; }
.lp-launch-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--lp-text); font: 15px var(--lp-font); outline: none; }
.lp-launch-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.lp-launch .start-title { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 6px 8px; }
.lp-launch .start-title b, .lp-launch-apps-title { font-size: 13px; font-weight: 700; }
.lp-launch .start-title span { font-size: 12px; color: var(--lp-muted); }
.lp-launch-apps-title { margin: 14px 6px 8px; }
.lp-launch-apps-title[hidden] { display: none; }
.lp-launch-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.start-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 4px 10px;
  border: 0;
  border-radius: 14px;
  background: none;
  text-decoration: none;
  color: var(--lp-text);
  cursor: default;
  transition: background .15s;
}
.start-card:hover, .start-card:focus-visible { background: var(--lp-hover); }
.start-card-icon { display: grid; place-items: center; width: 46px; height: 46px; font-size: 36px; line-height: 1; }
.start-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.start-card b { font-size: 12px; font-weight: 550; text-align: center; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-launch-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 6px 0; border-top: 1px solid var(--lp-stroke); }
.lp-launch-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lp-launch-user .logo { width: 32px; height: 32px; border-radius: 50%; font-size: 12px; }
.lp-launch-user b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-launch-btn { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; background: var(--lp-surface-2); border: 1px solid var(--lp-stroke); color: var(--lp-text); text-decoration: none; font-size: 13px; font-weight: 600; }
.lp-launch-btn:hover { background: var(--lp-surface-3); }

/* ---------- spotlight ---------- */
.lp-spotlight {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 15vh;
  background: rgba(0, 0, 0, .22);
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, visibility 0s linear .16s;
}
[data-theme="light"] .lp-spotlight { background: rgba(10, 14, 30, .12); }
.lp-spotlight.open { opacity: 1; visibility: visible; transition: opacity .16s ease; }
.lp-spot {
  width: min(680px, calc(100vw - 24px));
  border-radius: 22px;
  overflow: hidden;
  color: var(--lp-text);
  background: var(--lp-glass-2);
  -webkit-backdrop-filter: blur(44px) saturate(190%);
  backdrop-filter: blur(44px) saturate(190%);
  border: 1px solid var(--lp-stroke-2);
  box-shadow: var(--lp-shadow);
  transform: scale(.97) translateY(-6px);
  transition: transform .22s var(--lp-ease);
}
.lp-spotlight.open .lp-spot { transform: none; }
.lp-spot-form { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 60px; color: var(--lp-muted); }
.lp-spot-form svg { width: 22px; height: 22px; flex: 0 0 auto; }
.lp-spot-form input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--lp-text); font: 400 21px var(--lp-font-display); letter-spacing: -.01em; }
.lp-spot-form input::placeholder { color: var(--lp-muted); }
.lp-spot-form input::-webkit-search-cancel-button { display: none; }
.lp-spot-results { max-height: min(52vh, 460px); overflow: auto; padding: 4px 8px 8px; border-top: 1px solid var(--lp-stroke); }
.lp-spot-results:empty { display: none; }
.lp-spot-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lp-muted); }
.lp-spot-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--lp-text);
  text-align: left;
  text-decoration: none;
  cursor: default;
}
.lp-spot-row.is-sel { background: var(--lp-accent); color: #fff; }
.lp-spot-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--lp-surface-2); font-size: 22px; line-height: 1; overflow: hidden; }
.lp-spot-ico img { width: 30px; height: 30px; object-fit: contain; }
.lp-spot-row.is-sel .lp-spot-ico { background: rgba(255, 255, 255, .18); }
.lp-spot-txt { min-width: 0; }
.lp-spot-txt b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-spot-txt small { display: block; font-size: 12.5px; color: var(--lp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-spot-row.is-sel small { color: rgba(255, 255, 255, .8); }
.lp-spot-row em { font-style: normal; font-size: 11.5px; color: var(--lp-muted); white-space: nowrap; }
.lp-spot-row.is-sel em { color: rgba(255, 255, 255, .85); }
.search-empty { padding: 16px 12px; color: var(--lp-muted); font-size: 13.5px; text-align: center; }
.lp-spot-loading { text-align: left; padding: 10px 12px; }
.lp-spot-hint { display: flex; gap: 18px; padding: 9px 18px; border-top: 1px solid var(--lp-stroke); font-size: 11.5px; color: var(--lp-muted); }
.lp-spot-hint span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- control center ---------- */
.lp-cc {
  position: fixed;
  top: calc(var(--lp-bar-h) + 6px);
  right: 8px;
  z-index: 80;
  width: 320px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  color: var(--lp-text);
  background: var(--lp-glass-2);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  backdrop-filter: blur(40px) saturate(190%);
  border: 1px solid var(--lp-stroke-2);
  box-shadow: var(--lp-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: 100% 0;
  transition: opacity .16s ease, transform .22s var(--lp-ease), visibility 0s linear .22s;
}
.lp-cc.open { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease, transform .22s var(--lp-ease), visibility 0s; }
.lp-cc-block { display: block; padding: 12px; border-radius: 16px; background: var(--lp-surface-2); border: 1px solid var(--lp-stroke); }
.lp-cc-block > b { display: block; margin: 0 0 9px 2px; font-size: 12.5px; font-weight: 650; }
.lp-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lp-seg button, .lp-cc-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 0;
  border-radius: 12px;
  background: var(--lp-surface-2);
  font-size: 12px;
  font-weight: 600;
  cursor: default;
  transition: background .15s, color .15s;
}
.lp-seg button:hover, .lp-cc-tile:hover { background: var(--lp-surface-3); }
.lp-seg button[aria-checked="true"], .lp-cc-tile.is-on { background: var(--lp-accent); color: #fff; }
.lp-cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-cc-tile { align-items: flex-start; padding: 13px 14px; border-radius: 16px; background: var(--lp-surface-2); border: 1px solid var(--lp-stroke); text-align: left; min-height: 78px; justify-content: space-between; font-size: 12.5px; }
.lp-cc-range input { width: 100%; accent-color: var(--lp-accent); }

/* ---------- context menu ---------- */
.lp-menu {
  position: fixed;
  z-index: 95;
  display: none;
  min-width: 250px;
  padding: 5px;
  border-radius: 12px;
  color: var(--lp-text);
  background: var(--lp-glass-2);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  backdrop-filter: blur(40px) saturate(190%);
  border: 1px solid var(--lp-stroke-2);
  box-shadow: var(--lp-shadow);
  animation: lp-pop .14s var(--lp-ease);
}
.lp-menu.open { display: block; }
.lp-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 6px 10px; border: 0; border-radius: 7px; background: none; text-align: left; font-size: 13px; cursor: default; }
.lp-menu button:hover { background: var(--lp-accent); color: #fff; }
.lp-menu button:hover kbd { color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .3); background: none; }
.lp-menu hr { border: 0; border-top: 1px solid var(--lp-stroke); margin: 4px 8px; }
@keyframes lp-pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- toast & cookie ---------- */
.lp-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 120;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 14px;
  font: 500 13.5px/1.4 var(--lp-font);
  color: var(--lp-text, #fff);
  background: var(--lp-glass-2, rgba(30, 32, 42, .9));
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  border: 1px solid var(--lp-stroke-2, rgba(255, 255, 255, .16));
  box-shadow: var(--lp-shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s, transform .25s var(--lp-ease);
}
.lp-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.lp-home .cookie-notice {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 380px;
  padding: 12px 12px 12px 16px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--lp-text);
  background: var(--lp-glass-2);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--lp-stroke-2);
  box-shadow: var(--lp-shadow-sm);
  animation: lp-fade-up .4s var(--lp-ease) both .8s;
  transition: opacity .25s, transform .25s;
}
.lp-home .cookie-notice a { color: var(--lp-link); }
.lp-home .cookie-notice button { flex: 0 0 auto; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--lp-accent); color: #fff; font-weight: 650; cursor: pointer; }
.lp-home .cookie-notice.is-hide { opacity: 0; transform: translateY(10px); }
@keyframes lp-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.mobile-pages, .lp-page-dots { display: none; }

/* ---------- small desktops ---------- */
@media (max-width: 1100px) and (min-width: 761px) {
  .lp-widgets { width: 300px; }
  .lp-widget-clock { grid-template-columns: 1fr; }
  .lp-menubar-link[data-menubar="search"] kbd { display: none; }
}
@media (max-height: 700px) and (min-width: 761px) {
  .lp-widget-clock { display: none; }
}

/* =========================================================
   Смартфон
   ========================================================= */
@media (max-width: 760px) {
  body.lp-home { font-size: 15px; }
  .os.has-mobile-bg .os-bg-image { background-image: var(--mobile-bg, var(--desktop-bg)); }

  /* status bar */
  .lp-menubar {
    height: calc(44px + var(--lp-safe-t));
    padding: var(--lp-safe-t) 12px 0 18px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .28), transparent);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    color: #fff;
  }
  .lp-menubar-left { display: none; }
  .lp-status { width: 100%; justify-content: flex-end; gap: 0; }
  .lp-status-btn { width: 36px; height: 32px; border-radius: 10px; }
  .lp-status-btn:hover { background: none; }
  #themeToggle { display: none; }
  .lp-clock { position: absolute; left: 12px; top: calc(var(--lp-safe-t) + 9px); padding: 4px 6px; font-size: 16px; }
  .lp-clock #clock { font-weight: 650; letter-spacing: -.01em; }
  #clockDate { display: none; }
  .lp-island {
    position: absolute;
    left: 50%;
    top: calc(var(--lp-safe-t) + 7px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 118px;
    height: 32px;
    padding: 0 8px;
    border-radius: 20px;
    background: #000;
    box-shadow: 0 0 0 .5px rgba(255, 255, 255, .08);
    transition: width .35s var(--lp-spring);
  }
  .lp-island .logo { width: 20px; height: 20px; border-radius: 50%; font-size: 8px; }
  .lp-island-eq { display: flex; gap: 2px; align-items: flex-end; height: 12px; opacity: 0; transition: opacity .2s; }
  .lp-island-eq i { width: 3px; height: 100%; border-radius: 2px; background: #a9b5ff; animation: lp-eq .9s ease-in-out infinite; }
  .lp-island-eq i:nth-child(2) { animation-delay: -.3s; }
  .lp-island-eq i:nth-child(3) { animation-delay: -.6s; }
  .lp-os.is-music .lp-island { width: 150px; }
  .lp-os.is-music .lp-island-eq { opacity: 1; }
  @keyframes lp-eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

  /* home screen */
  .lp-desktop { display: none; }
  .mobile-pages {
    position: fixed;
    top: calc(44px + var(--lp-safe-t));
    left: 0; right: 0;
    bottom: calc(112px + var(--lp-safe-b));
    z-index: 2;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-pages::-webkit-scrollbar { display: none; }
  .mobile-panel {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow-y: auto;
    padding: 8px 16px 20px;
    scrollbar-width: none;
  }
  .lp-phone-widget { padding: 15px 18px 16px; border-radius: 26px; animation: lp-fade-down .6s var(--lp-ease) both; }
  .lp-phone-widget h1 { font-size: 19px; }
  .lp-phone-widget span { font-size: 13.5px; }
  .lp-app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 8px; margin-top: 20px; }
  .lp-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    animation: lp-app-in .5s var(--lp-spring) both;
    animation-delay: calc(var(--i, 0) * 30ms + 60ms);
  }
  .lp-app .ico {
    width: 62px;
    height: 62px;
    border-radius: 17px;
    background: rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3), 0 8px 18px -8px rgba(0, 0, 0, .5);
    overflow: hidden;
  }
  [data-theme="light"] .lp-app .ico { background: rgba(255, 255, 255, .7); }
  .lp-app .ico .lp-emoji { font-size: 34px; line-height: 1; }
  .lp-app .ico img { width: 72%; height: 72%; object-fit: contain; pointer-events: none; }
  .lp-app:active .ico { transform: scale(.9); filter: brightness(.9); }
  .lp-app .lp-label { max-width: 100%; font-size: 11.5px; font-weight: 500; line-height: 1.2; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  @keyframes lp-app-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
  .lp-phone-clock { padding: 18px 20px; text-align: center; border-radius: 26px; }
  .lp-phone-clock b { display: block; font: 200 58px/1 var(--lp-font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  .lp-phone-clock span { display: block; margin-top: 6px; color: var(--lp-muted); }
  .search-widget { margin-top: 14px; padding: 16px; border-radius: 26px; }
  .search-widget h2 { margin: 0 0 12px; font-size: 17px; }
  #mobileSearchForm { display: flex; gap: 8px; }
  #mobileSearchForm input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--lp-stroke); background: var(--lp-surface-2); color: var(--lp-text); font: 16px var(--lp-font); outline: none; }
  #mobileSearchForm button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 14px; background: var(--lp-accent); color: #fff; }
  #mobileSearchResults { margin-top: 8px; }
  #mobileSearchResults .lp-spot-row.is-sel { background: none; color: var(--lp-text); }
  #mobileSearchResults .lp-spot-row.is-sel small, #mobileSearchResults .lp-spot-row.is-sel em { color: var(--lp-muted); }
  #mobileSearchResults .lp-spot-row:active { background: var(--lp-hover); }
  .lp-page-dots {
    position: fixed;
    left: 50%;
    bottom: calc(100px + var(--lp-safe-b));
    z-index: 3;
    display: flex;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .lp-page-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: background .2s; }
  .lp-page-dots i.is-active { background: #fff; }

  /* dock */
  .dock-desktop { display: none !important; }
  .lp-dock.dock-mobile {
    --ds: 58px;
    display: flex;
    left: 10px;
    right: 10px;
    bottom: calc(10px + var(--lp-safe-b));
    transform: none;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 32px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .18);
    animation: lp-phone-dock-in .6s var(--lp-ease) both .1s;
  }
  [data-theme="light"] .lp-dock.dock-mobile { background: rgba(255, 255, 255, .45); }
  @keyframes lp-phone-dock-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
  .lp-dock.dock-mobile::-webkit-scrollbar { display: none; }
  .lp-dock.dock-mobile .lp-dock-item { width: var(--ds); }
  .lp-dock.dock-mobile .lp-dock-item > small, .lp-dock.dock-mobile .lp-dock-item::after { display: none; }
  .lp-dock.dock-mobile .dock-ico {
    width: var(--ds);
    height: var(--ds);
    border-radius: 16px;
    font-size: 34px;
    background: rgba(255, 255, 255, .2);
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3);
    overflow: hidden;
  }
  [data-theme="light"] .lp-dock.dock-mobile .dock-ico { background: rgba(255, 255, 255, .75); }
  .lp-dock.dock-mobile .dock-img { width: 72%; height: 72%; }
  .lp-dock.dock-mobile .lp-start-ico { width: var(--ds) !important; margin: 0; background: var(--lp-accent-grad); }
  .lp-dock.dock-mobile .lp-run-dot { bottom: -6px; background: #fff; }

  /* windows = apps */
  .window-layer { top: 0; z-index: 70; }
  .lp-win.is-mobile {
    position: fixed;
    left: 0 !important;
    right: 0;
    top: calc(var(--lp-safe-t) + 10px) !important;
    bottom: 0;
    width: auto !important;
    height: auto !important;
    max-height: none;
    min-width: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .45);
  }
  .lp-win.is-mobile::before { background: var(--lp-glass-2); }
  [data-theme="light"] .lp-win.is-mobile::before { background: rgba(248, 249, 252, .96); }
  [data-theme="dark"] .lp-win.is-mobile::before { background: rgba(22, 24, 31, .96); }
  .lp-win.is-mobile.is-opening { animation: lp-sheet-in .38s var(--lp-ease) both; }
  .lp-win.is-mobile.is-closing { animation: lp-sheet-out .24s ease-in both; }
  @keyframes lp-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes lp-sheet-out { to { transform: translateY(100%); } }
  .lp-win.is-mobile .win-head { grid-template-columns: 44px minmax(0, 1fr) 44px; height: 54px; padding: 8px 10px 0; background: none; border: 0; position: relative; }
  .lp-win.is-mobile .win-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: var(--lp-stroke-2); }
  .lp-win.is-mobile .lp-lights { visibility: hidden; }
  .lp-win.is-mobile .win-title { font-size: 16px; }
  .lp-win.is-mobile .lp-win-actions { gap: 2px; }
  .lp-win.is-mobile .lp-win-actions .win-share { display: none; }
  .lp-win.is-mobile .lp-win-actions .lp-mclose { display: grid; width: 34px; height: 34px; border-radius: 50%; background: var(--lp-surface-3); color: var(--lp-text); }
  .lp-win.is-mobile .win-body { padding: 10px 18px calc(28px + var(--lp-safe-b)); font-size: 16px; -webkit-overflow-scrolling: touch; }
  .lp-win.is-mobile .lp-resize { display: none; }
  .lp-win.is-mobile.game-win { top: 0 !important; border-radius: 0; }
  .lp-win.is-mobile.game-win .win-head { height: calc(48px + var(--lp-safe-t)); padding-top: var(--lp-safe-t); background: #000; color: #fff; }
  .lp-win.is-mobile.game-win .win-head::before { display: none; }
  .lp-win.is-mobile.game-win .win-body { padding: 0 0 var(--lp-safe-b); }
  .lp-win.is-mobile.game-win .win-full { display: none; }
  .lp-win.is-mobile.steam-win::before { background: linear-gradient(180deg, #171a21, #1b2838); }
  .steam-profile { grid-template-columns: 72px 1fr; padding: 18px; }
  .steam-avatar { width: 72px; height: 72px; }
  .steam-level { grid-column: 1 / -1; }
  .steam-nav { gap: 14px; padding: 12px 18px; font-size: 11px; }
  .steam-games { padding: 0 18px; grid-template-columns: repeat(2, 1fr); }
  .steam-games-title { margin: 6px 18px 10px; }
  .doc-folder-grid, .legal-doc-grid { grid-template-columns: 1fr; }
  .games-folder-grid { grid-template-columns: repeat(2, 1fr); }

  /* app library */
  .lp-launch {
    left: 10px;
    right: 10px;
    top: calc(52px + var(--lp-safe-t));
    bottom: calc(112px + var(--lp-safe-b));
    width: auto;
    max-height: none;
    border-radius: 30px;
    transform: translateY(16px) scale(.98);
    background: var(--lp-surface);
  }
  .lp-launch.open { transform: none; }
  .lp-launch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 2px; }
  .start-card { padding: 8px 2px; }
  .start-card-icon { width: 52px; height: 52px; font-size: 32px; border-radius: 14px; background: var(--lp-surface-2); }
  .start-card-icon img { width: 72%; height: 72%; }
  .lp-launch-search input { font-size: 16px; }

  /* spotlight */
  .lp-spotlight { padding-top: calc(54px + var(--lp-safe-t)); }
  .lp-spot { width: calc(100vw - 20px); }
  .lp-spot-form input { font-size: 18px; }
  .lp-spot-hint { display: none; }
  .lp-spot-results { max-height: calc(100dvh - 200px); }

  /* control center */
  .lp-cc { top: calc(48px + var(--lp-safe-t)); left: 10px; right: 10px; width: auto; border-radius: 28px; background: var(--lp-surface); }
  .lp-spot { background: var(--lp-surface); }
  .lp-menu { display: none !important; }
  .lp-toast { bottom: calc(118px + var(--lp-safe-b)); }
  .lp-home .cookie-notice { left: 10px; right: 10px; bottom: calc(112px + var(--lp-safe-b)); max-width: none; z-index: 65; }
  body.game-open-mobile .lp-dock, body.game-open-mobile .cookie-notice { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-home *, .lp-home *::before, .lp-home *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
