/* =========================================================
   LunevPro OS - внутренние страницы (2026)
   Подключается после os.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-grad: linear-gradient(135deg, #5b8cff 0%, #8b6bff 55%, #c56bff 100%);
  --lp-ease: cubic-bezier(.2, .8, .2, 1);
  --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, .64);
  --lp-bar: rgba(14, 16, 22, .5);
  --lp-glass: rgba(24, 26, 34, .55);
  --lp-glass-2: rgba(30, 32, 42, .8);
  --lp-surface: rgba(22, 24, 31, .78);
  --lp-surface-solid: #16181f;
  --lp-surface-2: rgba(255, 255, 255, .06);
  --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-input: rgba(255, 255, 255, .06);
  --lp-wall-tint: rgba(7, 9, 14, .62);
  --lp-shadow: 0 28px 70px -20px rgba(0, 0, 0, .7), 0 0 0 .5px rgba(255, 255, 255, .08);
  --lp-shadow-sm: 0 10px 30px -12px rgba(0, 0, 0, .6);
}
:root[data-theme="light"] {
  color-scheme: light;
  --lp-text: #14161c;
  --lp-muted: rgba(28, 32, 44, .62);
  --lp-bar: rgba(255, 255, 255, .55);
  --lp-glass: rgba(255, 255, 255, .6);
  --lp-glass-2: rgba(250, 251, 254, .86);
  --lp-surface: rgba(255, 255, 255, .78);
  --lp-surface-solid: #fbfbfd;
  --lp-surface-2: rgba(16, 22, 44, .04);
  --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-input: rgba(255, 255, 255, .8);
  --lp-wall-tint: radial-gradient(60% 60% at 12% 8%, rgba(156, 202, 255, .5), transparent 60%), radial-gradient(60% 60% at 92% 92%, rgba(214, 180, 255, .45), transparent 60%), rgba(242, 244, 250, .86);
  --lp-shadow: 0 28px 64px -20px rgba(16, 22, 44, .35), 0 0 0 .5px rgba(0, 0, 0, .08);
  --lp-shadow-sm: 0 10px 28px -14px rgba(16, 22, 44, .3);
}

/* ---------- base & wallpaper ---------- */
html body.page-body, html body.blog-body, html body.search-page-body, html body.not-found-body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  font-family: var(--lp-font) !important;
  color: var(--lp-text) !important;
  background: #07080d !important;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
html[data-theme="light"] body.page-body, html[data-theme="light"] body.blog-body, html[data-theme="light"] body.search-page-body, html[data-theme="light"] body.not-found-body { background: #eef1f7 !important; }
html body.page-body::before, html body.blog-body::before, html body.search-page-body::before, html body.not-found-body::before {
  content: "" !important;
  position: fixed !important;
  inset: -80px !important;
  z-index: -2 !important;
  display: block !important;
  pointer-events: none;
  background: var(--lp-wall, 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) center / cover no-repeat !important;
  filter: blur(46px) saturate(140%) !important;
  opacity: 1 !important;
  transform: none !important;
}
html body.page-body::after, html body.blog-body::after, html body.search-page-body::after, html body.not-found-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--lp-wall-tint);
}
html body.page-body a, html body.blog-body a { -webkit-tap-highlight-color: transparent; }
html body ::selection { background: rgba(107, 124, 255, .35); }
html body :focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 2px; }

/* ---------- menubar ---------- */
html body .topbar.page-topbar {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 60 !important;
  height: 30px !important;
  padding: 0 8px 0 10px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  font: 13px var(--lp-font) !important;
  color: var(--lp-text) !important;
  background: var(--lp-bar) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%) !important;
  backdrop-filter: blur(26px) saturate(180%) !important;
  border-bottom: .5px solid var(--lp-stroke) !important;
  box-shadow: none !important;
}
html body .page-topbar .brand { display: inline-flex !important; align-items: center; gap: 8px; padding: 3px 8px 3px 4px; border-radius: 7px; color: var(--lp-text) !important; text-decoration: none; font-weight: 700 !important; font-size: 13px !important; }
html body .page-topbar .brand:hover { background: var(--lp-hover); }
html body .page-topbar .logo, html body .start-menu .logo {
  width: 20px !important;
  height: 20px !important;
  border-radius: 6px !important;
  font: 800 9.5px/1 var(--lp-font) !important;
  color: #fff !important;
  background: var(--lp-accent-grad) !important;
  overflow: hidden;
  display: inline-grid !important;
  place-items: center;
}
html body .page-topbar .status { display: flex !important; align-items: center; gap: 2px !important; color: var(--lp-text) !important; font-size: 13px !important; }
html body .page-topbar .sound-toggle, html body .page-topbar .page-search-link, html body .page-topbar .full-page-top-close {
  display: inline-grid !important;
  place-items: center;
  width: 30px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: none !important;
  color: var(--lp-text) !important;
  font-size: 15px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  text-decoration: none;
  cursor: default;
}
html body .page-topbar .sound-toggle:hover, html body .page-topbar .page-search-link:hover, html body .page-topbar .full-page-top-close:hover { background: var(--lp-hover) !important; }
html body .page-topbar .sound-toggle.is-on { color: #a9b5ff !important; }
html[data-theme="light"] body .page-topbar .sound-toggle.is-on { color: var(--lp-accent) !important; }
html body .page-topbar #clock { padding: 3px 8px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--lp-text) !important; }

/* ---------- dock ---------- */
html body .dock.page-dock {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 16px !important;
  top: auto !important;
  transform: translateX(-50%) !important;
  z-index: 55 !important;
  display: flex !important;
  align-items: flex-end !important;
  gap: 4px !important;
  width: auto !important;
  max-width: calc(100vw - 16px);
  padding: 6px 8px !important;
  border-radius: 22px !important;
  background: var(--lp-glass) !important;
  -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
  border: 1px solid var(--lp-stroke-2) !important;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}
html body .dock.page-dock > a, html body .dock.page-dock > button {
  position: relative !important;
  flex: 0 0 auto !important;
  width: 50px !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--lp-text) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-decoration: none !important;
  transition: transform .18s var(--lp-ease) !important;
  cursor: default;
}
html body .dock.page-dock > a:hover, html body .dock.page-dock > button:hover { transform: translateY(-6px) scale(1.12) !important; background: none !important; }
html body .dock.page-dock .dock-ico { display: grid !important; place-items: center; width: 50px !important; height: 50px !important; font-size: 38px !important; line-height: 1 !important; background: none !important; border-radius: 0 !important; box-shadow: none !important; }
html body .dock.page-dock .dock-img { width: 100% !important; height: 100% !important; object-fit: contain !important; border-radius: 0 !important; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }
html body .dock.page-dock .dock-emoji { font-size: 38px !important; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); }
html body .dock.page-dock > a > small, html body .dock.page-dock > button > small {
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 12px) !important;
  transform: translate(-50%, 4px);
  margin: 0 !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  font: 500 12px var(--lp-font) !important;
  white-space: nowrap !important;
  max-width: none !important;
  overflow: visible !important;
  color: var(--lp-text) !important;
  background: var(--lp-glass-2) !important;
  border: 1px solid var(--lp-stroke);
  box-shadow: var(--lp-shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s, transform .12s;
}
html body .dock.page-dock > a:hover > small, html body .dock.page-dock > button:hover > small { opacity: 1; transform: translate(-50%, 0); }
html body .dock.page-dock .start .dock-ico, html body .dock.page-dock .start > .start-dots {
  width: 43px !important;
  height: 43px !important;
  margin: 3.5px !important;
  border-radius: 11px !important;
  background: var(--lp-accent-grad) !important;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .35), 0 6px 14px -6px rgba(91, 110, 255, .8) !important;
  display: grid !important;
  grid-template-columns: repeat(3, 5px) !important;
  gap: 4px !important;
  place-content: center !important;
  padding: 0 !important;
}
html body .dock.page-dock .start-dots i { display: block !important; width: 5px !important; height: 5px !important; border-radius: 50% !important; background: #fff !important; margin: 0 !important; }
html body .dock-mobile.page-dock { display: none !important; }
html body .dock.page-dock .start, html body .dock.page-dock .start * { transform: none !important; rotate: none !important; }
html body .dock.page-dock .start-dots i { position: static !important; opacity: 1 !important; visibility: visible !important; inset: auto !important; }

/* ---------- start menu on pages ---------- */
html body .start-menu {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 96px !important;
  z-index: 58 !important;
  width: min(560px, calc(100vw - 24px)) !important;
  max-height: min(600px, calc(100vh - 140px)) !important;
  overflow: auto !important;
  padding: 16px !important;
  border-radius: 24px !important;
  color: var(--lp-text) !important;
  background: var(--lp-glass-2) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
  backdrop-filter: blur(40px) saturate(180%) !important;
  border: 1px solid var(--lp-stroke-2) !important;
  box-shadow: var(--lp-shadow) !important;
  display: block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translate(-50%, 14px) scale(.98) !important;
  transition: opacity .18s ease, transform .26s var(--lp-ease), visibility 0s linear .26s !important;
}
html body .start-menu.open { opacity: 1 !important; visibility: visible !important; transform: translate(-50%, 0) !important; transition: opacity .18s ease, transform .26s var(--lp-ease), visibility 0s !important; }
html body .start-menu .start-title { display: flex !important; justify-content: space-between; align-items: baseline; margin: 2px 6px 10px !important; padding: 0 !important; background: none !important; color: var(--lp-text) !important; }
html body .start-menu .start-title b { font-size: 14px !important; }
html body .start-menu .start-title span { font-size: 12px !important; color: var(--lp-muted) !important; }
html body .start-menu .start-search { width: 100% !important; height: 40px !important; margin: 0 0 12px !important; padding: 0 14px !important; border-radius: 12px !important; border: 1px solid var(--lp-stroke) !important; background: var(--lp-surface-2) !important; color: var(--lp-text) !important; font: 15px var(--lp-font) !important; outline: none; box-shadow: none !important; }
html body .start-menu #startItems { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 4px !important; }
html body .start-menu .start-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 0 !important;
  padding: 12px 4px 10px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--lp-text) !important;
  text-decoration: none !important;
}
html body .start-menu .start-card:hover { background: var(--lp-hover) !important; transform: none !important; }
html body .start-menu .start-card-icon { display: grid !important; place-items: center; width: 46px !important; height: 46px !important; font-size: 36px !important; background: none !important; border-radius: 0 !important; box-shadow: none !important; }
html body .start-menu .start-card-icon img { width: 100% !important; height: 100% !important; object-fit: contain !important; border-radius: 0 !important; }
html body .start-menu .start-card b { font-size: 12px !important; font-weight: 550 !important; text-align: center; color: var(--lp-text) !important; line-height: 1.25; }

/* ---------- close buttons = red traffic light ---------- */
html body .page-close, html body .blog-window-close, html body .project-close, html body .search-page-close, html body .support-close, html body .close.project-close {
  width: 14px !important;
  height: 14px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #ff5f57 !important;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2) !important;
  font-size: 0 !important;
  color: transparent !important;
  text-decoration: none !important;
  display: block !important;
  z-index: 5;
}
html body .page-close::before, html body .page-close::after, html body .blog-window-close::before, html body .blog-window-close::after, html body .project-close::before, html body .project-close::after, html body .search-page-close::before, html body .search-page-close::after, html body .support-close::before, html body .support-close::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  width: 8px !important;
  height: 1.5px !important;
  margin: -.75px 0 0 -4px !important;
  border-radius: 1px !important;
  background: rgba(80, 0, 0, .7) !important;
  opacity: 0;
  transition: opacity .12s;
}
html body .support-close { position: relative !important; }
html body :is(.page-close, .blog-window-close, .project-close, .search-page-close, .support-close)::before { transform: rotate(45deg) !important; }
html body :is(.page-close, .blog-window-close, .project-close, .search-page-close, .support-close)::after { transform: rotate(-45deg) !important; }
html body :is(.page-close, .blog-window-close, .project-close, .search-page-close, .support-close):hover::before,
html body :is(.page-close, .blog-window-close, .project-close, .search-page-close, .support-close):hover::after { opacity: 1; }

/* ---------- кнопки статьи: закрыть и поделиться, один размер ---------- */
html body .blog-post-actions { left: 18px !important; top: 18px !important; display: flex !important; gap: 10px !important; align-items: center !important; z-index: 12 !important; }
html body .blog-post-actions .blog-post-close, html body .blog-post-actions .blog-post-share {
  position: relative !important; left: auto !important; top: auto !important; right: auto !important;
  width: 42px !important; height: 42px !important; min-width: 42px !important; margin: 0 !important; padding: 0 !important;
  border-radius: 50% !important; display: grid !important; place-items: center !important;
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .22) !important;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .15s var(--lp-ease), filter .15s !important; cursor: pointer;
}
html body .blog-post-actions .blog-post-close { background: rgba(255, 69, 58, .95) !important; }
html body .blog-post-actions .blog-post-close::before, html body .blog-post-actions .blog-post-close::after { width: 16px !important; height: 2.4px !important; margin: -1.2px 0 0 -8px !important; background: #fff !important; opacity: 1 !important; border-radius: 2px !important; }
html body .blog-post-actions .blog-post-share { background: rgba(20, 22, 30, .6) !important; color: #fff !important; border: 0 !important; }
html body .blog-post-actions .blog-post-share svg { display: block; }
html body .blog-post-actions :is(.blog-post-close, .blog-post-share):hover { transform: scale(1.07); filter: brightness(1.08); }
html body .blog-post-actions :is(.blog-post-close, .blog-post-share):active { transform: scale(.94); }
@media (max-width: 760px) {
  html body .blog-post-actions { left: 12px !important; top: 12px !important; }
  html body .blog-post-actions .blog-post-close, html body .blog-post-actions .blog-post-share { width: 46px !important; height: 46px !important; min-width: 46px !important; }
  /* на телефоне красные кнопки закрытия крупнее и с крестиком */
  html body :is(.page-close, .blog-window-close:not(.blog-post-close), .project-close, .search-page-close, .support-close) { width: 26px !important; height: 26px !important; }
  html body :is(.page-close, .blog-window-close:not(.blog-post-close), .project-close, .search-page-close, .support-close)::before,
  html body :is(.page-close, .blog-window-close:not(.blog-post-close), .project-close, .search-page-close, .support-close)::after { width: 12px !important; height: 2px !important; margin: -1px 0 0 -6px !important; background: rgba(80, 0, 0, .75) !important; opacity: 1 !important; }
}

/* ---------- shared surfaces ---------- */
html body :is(.site-page article, .blog-hero, .blog-post-window, .blog-card, .lp-projects-filter, .lp-project-card, .lp-projects-about, .lp-project-content, .lp-plugins-intro, .lp-plugin-card, .lp-plugin-content, .lp-plugin-cta, .lp-plugin-gallery, .lp-plugin-video, .lp-plugins-search, .search-page-card, .support-card, .not-found-card, .legal-card) {
  color: var(--lp-text) !important;
  background: var(--lp-surface) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--lp-stroke) !important;
  box-shadow: var(--lp-shadow-sm) !important;
}
html body :is(.site-page article, .blog-post-window, .search-page-card, .support-card, .not-found-card, .legal-card) { box-shadow: var(--lp-shadow) !important; }
html body :is(.blog-hero, .lp-projects-hero, .lp-plugins-hero, .lp-project-single-hero, .lp-plugin-hero) :is(h1, h2) { font-family: var(--lp-font-display) !important; letter-spacing: -.025em !important; }
html body :is(.blog-card, .lp-project-card, .lp-plugin-card, .site-page article, .blog-post-window, .search-page-card, .support-card, .not-found-card, .legal-card, .lp-projects-about, .lp-plugins-intro, .lp-plugin-cta, .lp-plugin-content, .lp-project-content, .lp-plugin-gallery) :is(h1, h2, h3, h4, b, strong, label) { color: var(--lp-text) !important; }
html body :is(.blog-card, .lp-project-card, .lp-plugin-card, .lp-projects-about, .lp-plugins-intro, .lp-plugin-cta, .search-page-card, .support-card, .not-found-card, .blog-hero) :is(p, small, span:not(.lp-badge):not(.dock-ico)) { color: var(--lp-muted) !important; }
html body :is(.blog-card, .lp-project-card, .lp-plugin-card) h2 a { color: var(--lp-text) !important; text-decoration: none; }
html body :is(.blog-card, .lp-project-card, .lp-plugin-card) {
  border-radius: 20px !important;
  overflow: hidden;
  transition: transform .22s var(--lp-ease), box-shadow .22s !important;
}
html body :is(.blog-card, .lp-project-card, .lp-plugin-card):hover { transform: translateY(-3px) !important; box-shadow: var(--lp-shadow) !important; }

/* inputs & buttons */
html body :is(.blog-filter, .lp-projects-filter, .lp-plugins-search, .search-page-form, .support-form) :is(input, select, textarea) {
  height: auto;
  min-height: 42px;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  border: 1px solid var(--lp-stroke-2) !important;
  background: var(--lp-input) !important;
  color: var(--lp-text) !important;
  font: 15px var(--lp-font) !important;
  box-shadow: none !important;
  outline: none;
}
html body :is(.blog-filter, .lp-projects-filter, .lp-plugins-search, .search-page-form, .support-form) :is(input, select, textarea):focus { border-color: var(--lp-accent) !important; box-shadow: 0 0 0 4px rgba(107, 124, 255, .18) !important; }
html body :is(.blog-filter, .lp-projects-filter, .lp-plugins-search, .search-page-form) select option { background: var(--lp-surface-solid); color: var(--lp-text); }
html body :is(.blog-filter button, .lp-projects-filter button, .lp-plugins-search button, .search-page-form button, .blog-load-wrap button, .support-btn, .nf-btn, .lp-btn, .lp-buy-btn, .blog-card .read-more) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--lp-accent-grad) !important;
  color: #fff !important;
  font: 650 14px var(--lp-font) !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px -10px rgba(91, 110, 255, .9) !important;
  cursor: pointer;
  transition: transform .15s var(--lp-ease), filter .15s !important;
}
html body :is(.blog-filter button, .lp-projects-filter button, .lp-plugins-search button, .search-page-form button, .blog-load-wrap button, .support-btn, .nf-btn, .lp-btn, .lp-buy-btn, .blog-card .read-more):hover { filter: brightness(1.08); transform: translateY(-1px); }
html body .blog-card .read-more { min-height: 36px; padding: 8px 14px !important; font-size: 13px !important; }
html body :is(.lp-more, .blog-reset, .lp-back) { color: var(--lp-link) !important; background: var(--lp-surface-2) !important; border: 1px solid var(--lp-stroke) !important; border-radius: 999px !important; padding: 7px 14px !important; text-decoration: none !important; font-weight: 600 !important; }
html body :is(.blog-cat, .lp-cat a, .lp-badge) { display: inline-flex; align-items: center; padding: 3px 10px !important; border-radius: 999px !important; background: rgba(107, 124, 255, .16) !important; color: var(--lp-link) !important; border: 0 !important; font: 650 11.5px var(--lp-font) !important; letter-spacing: .02em; text-decoration: none !important; }
html body .lp-badge-alt { background: rgba(255, 170, 60, .16) !important; color: #e8a33a !important; }
html body .lp-cat { background: none !important; padding: 0 !important; color: var(--lp-muted) !important; }

/* ---------- page window (standard page) ---------- */
html body .site-page { padding-top: 54px !important; padding-bottom: 110px !important; }
html body .site-page article.page-window { border-radius: 16px !important; overflow: hidden; animation: lp-page-in .38s var(--lp-ease) both; }
html body .page-window-head {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr minmax(0, auto) 1fr;
  align-items: center;
  height: 44px !important;
  padding: 0 14px !important;
  background: var(--lp-surface-2) !important;
  border-bottom: .5px solid var(--lp-stroke) !important;
  color: var(--lp-text) !important;
}
html body .page-window-head .page-close { position: relative !important; left: auto !important; top: auto !important; margin: 0 !important; }
html body .page-window-title { justify-content: center; font: 650 13.5px var(--lp-font) !important; color: var(--lp-text) !important; display: flex !important; align-items: center; gap: 8px; }
html body .page-title-icon-img { width: 18px !important; height: 18px !important; object-fit: contain; border-radius: 4px; }
html body .page-window-body { padding: 26px 32px 34px !important; background: none !important; color: var(--lp-text) !important; }
html body .page-window-body > h1 { font: 750 32px/1.15 var(--lp-font-display) !important; letter-spacing: -.025em !important; margin: 0 0 16px !important; color: var(--lp-text) !important; }
@keyframes lp-page-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }

/* content typography (pages, posts, projects, plugins) */
/* Контент статей и страниц: цвета без !important, чтобы стили, заданные прямо в HTML, всегда побеждали.
   Страницы «на всю ширину» (.page-content-full) - это свой дизайн, их не трогаем вообще. */
html body :is(.page-content:not(.page-content-full), .lp-project-content, .lp-plugin-content) { color: var(--lp-text); font-size: 16px; line-height: 1.7; }
html body :is(.page-content:not(.page-content-full), .lp-project-content, .lp-plugin-content) :is(h1, h2, h3, h4) { font-family: var(--lp-font-display); letter-spacing: -.015em; line-height: 1.25; }
html body :is(.page-content:not(.page-content-full), .lp-project-content, .lp-plugin-content) a:not([class]) { color: var(--lp-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
html body :is(.page-content:not(.page-content-full), .lp-project-content, .lp-plugin-content) img { max-width: 100%; height: auto; border-radius: 14px; }
html body :is(.page-content:not(.page-content-full), .lp-project-content, .lp-plugin-content) blockquote { margin: 16px 0; padding: 12px 18px; border-left: 3px solid var(--lp-accent); background: var(--lp-surface-2); border-radius: 0 12px 12px 0; }
html body :is(.page-content:not(.page-content-full), .lp-project-content, .lp-plugin-content) :is(code, pre) { background: var(--lp-surface-2); color: inherit; border-radius: 8px; }
html body :is(.page-content:not(.page-content-full), .lp-project-content, .lp-plugin-content) pre { padding: 14px; overflow: auto; }
html body :is(.page-content:not(.page-content-full), .lp-project-content, .lp-plugin-content) table { border-collapse: collapse; width: 100%; }
html body :is(.page-content:not(.page-content-full), .lp-project-content, .lp-plugin-content) :is(td, th) { border-bottom: 1px solid var(--lp-stroke); padding: 8px 10px; }
/* Блоки со своим светлым фоном в HTML: в тёмной теме оставляем им тёмный текст */
html[data-theme="dark"] body :is(.page-content:not(.page-content-full), .lp-project-content, .lp-plugin-content, .win-body) :is([style*="background:#f"], [style*="background: #f"], [style*="background-color:#f"], [style*="background-color: #f"], [style*="background:#e"], [style*="background: #e"], [style*="background-color:#e"], [style*="background-color: #e"], [style*="background:white"], [style*="background: white"], [style*="background:#fff"], [style*="background: #fff"], [style*="background:rgb(2"], [style*="background: rgb(2"]):not([style*="color:"]) { color: #1f2937; }
/* Блоки со своим тёмным фоном в HTML: в светлой теме оставляем им светлый текст */
html[data-theme="light"] body :is(.page-content:not(.page-content-full), .lp-project-content, .lp-plugin-content, .win-body) :is([style*="background:#0"], [style*="background: #0"], [style*="background:#1"], [style*="background: #1"], [style*="background-color:#0"], [style*="background-color: #0"], [style*="background-color:#1"], [style*="background-color: #1"], [style*="background:black"], [style*="background: black"]):not([style*="color:"]) { color: #f3f5fa; }
html body :is(.page-content, .lp-project-content) :is(.project-card, .project-section) { background: var(--lp-surface-2) !important; border: 1px solid var(--lp-stroke) !important; color: var(--lp-text) !important; }

/* ---------- страницы на всю ширину (свой HTML-дизайн) ---------- */
html body.page-body.page-body-full { padding-top: 30px !important; }
html body.page-body-full .site-page-full { margin-top: 0 !important; padding-top: 0 !important; min-height: calc(100vh - 30px) !important; background: transparent !important; }
html body.page-body-full .page-content-full { margin-top: 0 !important; padding-top: 0 !important; background: none; }
@media (max-width: 760px) {
  html body.page-body.page-body-full { padding-top: calc(44px + env(safe-area-inset-top, 0px)) !important; }
  html body.page-body-full .site-page-full { padding-top: 0 !important; min-height: calc(100vh - 44px) !important; }
}

/* ---------- blog ---------- */
html body .blog-wrap, html body .blog-post-wrap { padding-top: 50px !important; padding-bottom: 110px !important; }
html body .blog-hero { border-radius: 24px !important; animation: lp-page-in .38s var(--lp-ease) both; }
html body .blog-hero h1 { color: var(--lp-text) !important; font: 800 clamp(34px, 5vw, 52px)/1.05 var(--lp-font-display) !important; }
html body .blog-card { animation: lp-page-in .45s var(--lp-ease) both; }
html body .blog-card-img { background: var(--lp-surface-2) !important; }
html body .blog-card-img img { transition: transform .5s var(--lp-ease); }
html body .blog-card:hover .blog-card-img img { transform: scale(1.04); }
html body .blog-card-img span { filter: none; }
html body .blog-post-window { border-radius: 22px !important; overflow: hidden; animation: lp-page-in .38s var(--lp-ease) both; }
html body .blog-post-content h1 { color: var(--lp-text) !important; font-family: var(--lp-font-display) !important; letter-spacing: -.025em !important; }
html body .blog-post-share { width: 34px !important; height: 34px !important; border-radius: 50% !important; background: var(--lp-glass-2) !important; color: var(--lp-text) !important; border: 1px solid var(--lp-stroke) !important; box-shadow: var(--lp-shadow-sm) !important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
html body .copy-toast { background: var(--lp-glass-2) !important; color: var(--lp-text) !important; border: 1px solid var(--lp-stroke) !important; border-radius: 12px !important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
html body .blog-empty, html body .lp-empty, html body .blog-load-wrap small, html body .lp-projects-count { color: var(--lp-muted) !important; background: none !important; }
html body .blog-article-ad { border-radius: 16px; }

/* ---------- projects & plugins ---------- */
html body .lp-projects-main, html body .lp-plugins-main, html body .lp-single-wrap, html body .lp-plugin-main { padding-top: 50px !important; padding-bottom: 110px !important; }
html body :is(.lp-projects-hero, .lp-plugins-hero, .lp-project-single-hero, .lp-plugin-hero) {
  position: relative;
  overflow: hidden;
  border-radius: 26px !important;
  color: #fff !important;
  background: radial-gradient(90% 120% at 100% 0%, rgba(197, 107, 255, .45), transparent 55%), radial-gradient(80% 120% at 0% 100%, rgba(91, 140, 255, .45), transparent 60%), #10121c !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  box-shadow: var(--lp-shadow) !important;
  animation: lp-page-in .4s var(--lp-ease) both;
}
html body :is(.lp-projects-hero, .lp-plugins-hero, .lp-project-single-hero, .lp-plugin-hero)::after { opacity: .35 !important; }
html body :is(.lp-projects-hero, .lp-plugins-hero, .lp-project-single-hero, .lp-plugin-hero) :is(h1, h2) { color: #fff !important; }
html body :is(.lp-projects-hero, .lp-plugins-hero, .lp-project-single-hero, .lp-plugin-hero) p { color: rgba(255, 255, 255, .78) !important; }
html body :is(.lp-projects-hero, .lp-plugins-hero, .lp-project-single-hero, .lp-plugin-hero) .eyebrow { color: #b9c3ff !important; }
html body :is(.lp-project-single-hero, .lp-plugin-hero) .lp-back { color: #fff !important; background: rgba(255, 255, 255, .12) !important; border-color: rgba(255, 255, 255, .18) !important; }
html body .lp-project-cover, html body .lp-plugin-cover { background: var(--lp-surface-2) !important; }
html body .lp-project-cover span { color: var(--lp-text) !important; background: none !important; }
html body .lp-project-card.is-big .lp-project-body { background: none !important; }
html body .lp-project-category-links a { background: var(--lp-surface) !important; color: var(--lp-text) !important; border: 1px solid var(--lp-stroke) !important; border-radius: 999px !important; }
html body .lp-project-category-links a.active { background: var(--lp-accent) !important; color: #fff !important; }
html body .lp-plugin-facts span, html body .lp-plugin-meta span { background: var(--lp-surface-2) !important; color: var(--lp-text) !important; border: 1px solid var(--lp-stroke) !important; }

/* ---------- search, support, 404, legal ---------- */
html body .search-page-wrap { padding-top: 60px; }
html body .search-page-card { border-radius: 24px !important; animation: lp-page-in .38s var(--lp-ease) both; }
html body .search-page-card h1 { color: var(--lp-text) !important; }
html body .search-result { background: var(--lp-surface-2) !important; border: 1px solid var(--lp-stroke) !important; color: var(--lp-text) !important; border-radius: 14px !important; }
html body .search-result:hover { background: var(--lp-surface-3) !important; }
html body .search-result b { color: var(--lp-text) !important; }
html body .search-result small { color: var(--lp-muted) !important; }
html body .search-result span { color: var(--lp-link) !important; background: rgba(107, 124, 255, .14) !important; }
html body .search-empty { color: var(--lp-muted) !important; }
html body .support-page { background: none !important; color: var(--lp-text) !important; padding-top: 60px !important; }
html body .support-card { border-radius: 24px !important; animation: lp-page-in .38s var(--lp-ease) both; }
html body .support-top p, html body .support-agree { color: var(--lp-muted) !important; }
html body .support-agree a { color: var(--lp-link) !important; }
html body .support-alert { color: var(--lp-text) !important; }
html body .not-found-card { border-radius: 26px !important; animation: lp-page-in .4s var(--lp-ease) both; }
html body .nf-code { background: var(--lp-accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-family: var(--lp-font-display) !important; letter-spacing: -.04em; }
html body .not-found-card h1 { color: var(--lp-text) !important; }
html body .nf-game-wrap { background: var(--lp-surface-2) !important; border: 1px solid var(--lp-stroke) !important; box-shadow: none !important; }
html body .nf-game-head, html body .nf-game-score { color: var(--lp-muted) !important; }
html body .legal-card { border-radius: 22px !important; animation: lp-page-in .38s var(--lp-ease) both; }
html body .legal-kicker { color: var(--lp-link) !important; }
html body .legal-card a:not(.legal-doc-card):not(.blog-window-close) { color: var(--lp-link) !important; }
html body :is(.legal-doc-card, .doc-folder-grid a) { background: var(--lp-surface-2) !important; border: 1px solid var(--lp-stroke) !important; color: var(--lp-text) !important; border-radius: 16px !important; box-shadow: none !important; }
html body :is(.legal-doc-card, .doc-folder-grid a):hover { background: var(--lp-surface-3) !important; }
html body .legal-doc-card b { color: var(--lp-text) !important; }
html body .legal-doc-card span, html body .legal-updated, html body .doc-folder p { color: var(--lp-muted) !important; }

/* ---------- cookie & toast ---------- */
html body .cookie-notice {
  left: 14px !important;
  right: auto !important;
  bottom: 14px !important;
  z-index: 110 !important;
  max-width: 380px !important;
  padding: 12px 12px 12px 16px !important;
  border-radius: 18px !important;
  font: 13px/1.45 var(--lp-font) !important;
  color: var(--lp-text) !important;
  background: var(--lp-glass-2) !important;
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--lp-stroke-2) !important;
  box-shadow: var(--lp-shadow-sm) !important;
}
html body .cookie-notice a { color: var(--lp-link) !important; }
html body .cookie-notice button { padding: 8px 16px !important; border: 0 !important; border-radius: 999px !important; background: var(--lp-accent) !important; color: #fff !important; font-weight: 650 !important; }
.lp-toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 120; padding: 10px 16px; border-radius: 14px;
  font: 500 13.5px/1.4 var(--lp-font); color: var(--lp-text); background: var(--lp-glass-2);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); border: 1px solid var(--lp-stroke-2);
  opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s, transform .25s var(--lp-ease); pointer-events: none;
}
.lp-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- смартфон ---------- */
@media (max-width: 760px) {
  html body .topbar.page-topbar { height: calc(44px + env(safe-area-inset-top, 0px)) !important; padding: env(safe-area-inset-top, 0px) 10px 0 14px !important; border-radius: 0 !important; margin: 0 !important; width: auto !important; left: 0 !important; right: 0 !important; top: 0 !important; }
  html body .page-topbar .brand span:last-child { font-size: 15px; }
  html body .dock-desktop.page-dock { display: none !important; }
  html body .dock-mobile.page-dock {
    display: flex !important;
    left: 10px !important;
    right: 10px !important;
    bottom: calc(14px + var(--lp-safe-b)) !important;
    transform: none !important;
    max-width: none;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 10px 12px !important;
    border-radius: 30px !important;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255, 255, 255, .16) !important;
    border-color: rgba(255, 255, 255, .18) !important;
  }
  html[data-theme="light"] body .dock-mobile.page-dock { background: rgba(255, 255, 255, .6) !important; }
  html body .dock.page-dock > a, html body .dock.page-dock > button { width: 54px !important; }
  html body .dock.page-dock > a:hover, html body .dock.page-dock > button:hover { transform: none !important; }
  html body .dock.page-dock > a:active, html body .dock.page-dock > button:active { transform: scale(.9) !important; }
  html body .dock-mobile.page-dock .dock-ico { width: 54px !important; height: 54px !important; border-radius: 15px !important; background: rgba(255, 255, 255, .2) !important; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3) !important; font-size: 30px !important; overflow: hidden; }
  html[data-theme="light"] body .dock-mobile.page-dock .dock-ico { background: rgba(255, 255, 255, .85) !important; }
  html body .dock-mobile.page-dock .dock-img { width: 72% !important; height: 72% !important; }
  html body .dock-mobile.page-dock .dock-emoji { font-size: 30px !important; }
  html body .dock.page-dock small { display: none !important; }
  html body .dock-mobile.page-dock .start .dock-ico, html body .dock-mobile.page-dock .start > .start-dots { width: 54px !important; height: 54px !important; margin: 0 !important; border-radius: 15px !important; }
  html body .start-menu { left: 10px !important; right: 10px !important; width: auto !important; transform: translateY(14px) !important; bottom: calc(96px + var(--lp-safe-b)) !important; border-radius: 28px !important; background: var(--lp-surface-solid) !important; }
  html body .start-menu.open { transform: none !important; }
  html body .site-page, html body .blog-wrap, html body .blog-post-wrap, html body .lp-projects-main, html body .lp-plugins-main, html body .lp-single-wrap, html body .lp-plugin-main { padding-top: 58px !important; padding-bottom: 116px !important; }
  html body .page-window-body { padding: 20px 18px 26px !important; }
  html body .page-window-body > h1 { font-size: 26px !important; }
  html body .cookie-notice { left: 10px !important; right: 10px !important; bottom: calc(100px + var(--lp-safe-b)) !important; max-width: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
