/* =========================================================================
   Lamvi Header — палитра и токены
   ========================================================================= */
:root{
  --lh-bg:        var(--bg);
  --lh-surface:   var(--bg2);
  --lh-border:    var(--bd);
  --lh-text:      var(--tx);
  --lh-text-2:    var(--tx2);
  --lh-muted:     var(--tx3);
  --lh-accent:    var(--accent);
  --lh-accent-lt: var(--accent-lt);
  --lh-accent-dk: var(--accent-dk);

  --lh-magenta: #f0abfc;
  --lh-violet:  #c084fc;
  --lh-indigo:  #7c6cf0;
  --lh-cyan:    #67d5e8;
  --lh-ok:      #7CB87C;
  --lh-warn:    #ffab3c;
  --lh-danger:  #e74c3c;

  --lh-l1: 72px;
  --lh-l2: 46px;
  --lh-nav-size: 13.5px;
  --lh-nav-gap: 20px;
  --lh-total: calc(var(--lh-l1) + var(--lh-l2));
  --lh-offset: 0px;
  --lh-max: 1440px;
  --lh-ease: cubic-bezier(.22,.85,.28,1);
  --lh-shadow: 0 22px 48px rgba(0,0,0,.5);
  --lh-radius: 14px;
  --lh-ring: 0 0 0 3px color-mix(in oklab, var(--lh-magenta) 34%, transparent);
}
body.admin-bar{ --lh-offset:32px; }
@media (max-width:782px){ body.admin-bar{ --lh-offset:46px; } }

/* Наследие бокового меню: гасим переменные ширины сайдбара */
html:root,
body.lh-active{
  --sidebar-w: 0px !important;
  --sidebar-width: 0px !important;
  --gebo-sidebar-w: 0px !important;
  --gebo-sidebar-width: 0px !important;
  --gebo-sb-w: 0px !important;
  --sb-w: 0px !important;
  --aside-w: 0px !important;
}

/* =========================================================================
   Нормализация раскладки после удаления бокового меню
   ========================================================================= */
html{ overflow-x:clip; scroll-padding-top: calc(var(--lh-total) + var(--lh-offset) + 16px); }

body.lh-active .gebo-sidebar,
body.lh-active .gebo-topbar{ display:none !important; }

body.lh-active{
  padding-left:0 !important;
  margin-left:0 !important;
  padding-top: calc(var(--lh-total) + var(--lh-offset)) !important;
}

body.lh-active > #page,
body.lh-active > .site,
body.lh-active > #content,
body.lh-active > .site-content,
body.lh-active > .ast-container,
body.lh-active > .gebo-page,
body.lh-active > [class*="gebo-"][class$="-outer"],
body.lh-active > [class*="gebo-"][class$="-wrap"],
body.lh-active > [class*="gebo-"][class$="-page"],
body.lh-active #page,
body.lh-active .site,
body.lh-active #content,
body.lh-active .site-content{
  margin-left:0 !important;
  padding-left:0 !important;
  left:auto !important;
}

body.lh-active #page,
body.lh-active .site,
body.lh-active #content,
body.lh-active .site-content{ width:auto !important; }

body.lh-active .ast-container,
body.lh-active [class*="gebo-"][class$="-outer"],
body.lh-active [class*="gebo-"][class$="-wrap"],
body.lh-active [class*="gebo-"][class$="-page"],
body.lh-active [class*="gebo-"][class$="-container"]{
  margin-left:auto !important;
  margin-right:auto !important;
}

body.lh-active .gebo-rr-filters{ top: calc(var(--lh-total) + var(--lh-offset) + 14px) !important; }

/* =========================================================================
   Гасим синие focus/hover-кольца Astra внутри шапки
   ========================================================================= */
.lh-header a,
.lh-header button,
.lh-header input,
.lh-header img,
.lh-drawer a,
.lh-drawer button,
.lh-msearch a,
.lh-msearch button,
.lh-msearch input{
  outline:none !important;
  outline-offset:0 !important;
  -webkit-tap-highlight-color:transparent;
}
.lh-header a:hover,
.lh-header a:focus,
.lh-header a:focus-visible,
.lh-header a:active,
.lh-header button:hover,
.lh-header button:focus,
.lh-header button:focus-visible,
.lh-header button:active,
.lh-header input:focus,
.lh-header input:focus-visible,
.lh-drawer a:hover,
.lh-drawer a:focus,
.lh-drawer a:focus-visible,
.lh-drawer button:hover,
.lh-drawer button:focus,
.lh-drawer button:focus-visible,
.lh-msearch button:hover,
.lh-msearch button:focus,
.lh-msearch button:focus-visible,
.lh-msearch input:focus,
.lh-msearch input:focus-visible{
  outline:none !important;
  box-shadow:none;
}
.lh-header a:focus-visible,
.lh-header button:focus-visible,
.lh-drawer a:focus-visible,
.lh-drawer button:focus-visible,
.lh-msearch button:focus-visible{
  box-shadow:var(--lh-ring) !important;
  border-radius:12px;
}

/* =========================================================================
   Каркас шапки
   ========================================================================= */
.lh-header{
  position:fixed; inset:0 0 auto 0; top:var(--lh-offset); z-index:900;
  font-family:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
  background:
    radial-gradient(1100px 220px at 12% -60%, color-mix(in oklab, var(--lh-violet) 26%, transparent), transparent 70%),
    radial-gradient(900px 200px at 88% -40%, color-mix(in oklab, var(--lh-magenta) 20%, transparent), transparent 72%),
    linear-gradient(180deg, color-mix(in oklab, var(--lh-bg) 92%, var(--lh-violet)) 0%, var(--lh-bg) 100%);
  border-bottom:1px solid color-mix(in oklab, var(--lh-border) 80%, transparent);
  box-shadow:0 10px 34px rgba(0,0,0,.42);
  isolation:isolate;
}
.lh-aurora{ position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:-2; }
.lh-aurora span{
  position:absolute; display:block; border-radius:50%; filter:blur(46px); opacity:.5;
  animation:lh-drift 26s var(--lh-ease) infinite alternate;
}
.lh-aurora span:nth-child(1){ width:340px; height:150px; left:4%;  top:-70px; background:color-mix(in oklab, var(--lh-magenta) 60%, transparent); }
.lh-aurora span:nth-child(2){ width:420px; height:160px; left:44%; top:-90px; background:color-mix(in oklab, var(--lh-indigo) 55%, transparent); animation-delay:-9s; }
.lh-aurora span:nth-child(3){ width:300px; height:140px; right:3%; top:-64px; background:color-mix(in oklab, var(--lh-cyan) 42%, transparent); animation-delay:-17s; }
@keyframes lh-drift{
  0%{ transform:translate3d(0,0,0) scale(1); }
  50%{ transform:translate3d(40px,14px,0) scale(1.14); }
  100%{ transform:translate3d(-34px,4px,0) scale(.96); }
}
.lh-grain{
  position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.16;
  background-image:
    repeating-linear-gradient(0deg, color-mix(in oklab, var(--lh-text) 8%, transparent) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, color-mix(in oklab, var(--lh-text) 6%, transparent) 0 1px, transparent 1px 3px);
  mix-blend-mode:overlay;
}

.lh-in{ opacity:0; transform:translateY(-10px); animation:lh-in .55s var(--lh-ease) forwards; }
.lh-in-1{ animation-delay:.04s; } .lh-in-2{ animation-delay:.13s; } .lh-in-3{ animation-delay:.22s; }
@keyframes lh-in{ to{ opacity:1; transform:none; } }

/* =========================================================================
   Уровень 1
   ========================================================================= */
.lh-l1{ height:var(--lh-l1); }
.lh-l1-inner{
  height:100%; max-width:var(--lh-max); margin:0 auto; padding:0 22px;
  display:grid; grid-template-columns:minmax(150px,1fr) minmax(0,620px) minmax(150px,1fr);
  align-items:center; gap:18px;
}

.lh-brand{ display:flex; align-items:center; gap:12px; min-width:0; }
.lh-logo{ display:inline-flex; align-items:center; gap:10px; text-decoration:none; min-width:0; }
.lh-logo img{ max-height:42px; width:auto; display:block; }
.lh-logo-mark{
  width:36px; height:36px; border-radius:12px; display:grid; place-items:center; flex:0 0 auto;
  background:linear-gradient(140deg, var(--lh-accent-dk), var(--lh-violet) 55%, var(--lh-magenta));
  color:var(--lh-bg); box-shadow:0 6px 18px color-mix(in oklab, var(--lh-violet) 45%, transparent);
  transition:transform .3s var(--lh-ease), box-shadow .3s var(--lh-ease);
}
.lh-logo-svg{ width:21px; height:21px; }
.lh-logo:hover .lh-logo-mark{ transform:rotate(-8deg) scale(1.06); box-shadow:0 10px 26px color-mix(in oklab, var(--lh-magenta) 55%, transparent); }
.lh-logo-text{
  font-size:20px; font-weight:800; letter-spacing:.4px; white-space:nowrap;
  background:linear-gradient(96deg, var(--lh-text-2), var(--lh-magenta) 60%, var(--lh-cyan));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

.lh-burger{
  display:none; width:40px; height:40px; border-radius:11px; flex:0 0 auto;
  background:color-mix(in oklab, var(--lh-surface) 78%, transparent);
  border:1px solid var(--lh-border); cursor:pointer; padding:0;
  place-items:center; gap:4px; transition:border-color .2s, background .2s;
}
.lh-burger span{ display:block; width:17px; height:2px; border-radius:2px; background:var(--lh-text-2); transition:transform .28s var(--lh-ease), opacity .2s; }
.lh-burger:hover{ border-color:var(--lh-accent); }
.lh-burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.lh-burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.lh-burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

/* --- поиск --- */
.lh-search-wrap{ position:relative; min-width:0; }
.lh-header .lh-search,
.lh-msearch .lh-search{
  display:flex !important; align-items:center !important; gap:10px;
  height:46px; padding:0 6px 0 8px !important; margin:0 !important;
  border-radius:999px !important; border:1px solid var(--lh-border) !important;
  background:linear-gradient(120deg, color-mix(in oklab, var(--lh-surface) 92%, transparent), color-mix(in oklab, var(--lh-bg) 88%, var(--lh-indigo))) !important;
  box-shadow:inset 0 1px 0 color-mix(in oklab, var(--lh-text) 7%, transparent), 0 6px 20px rgba(0,0,0,.28) !important;
  box-sizing:border-box !important; transition:border-color .25s, box-shadow .25s;
}
.lh-header .lh-search:focus-within,
.lh-msearch .lh-search:focus-within{
  border-color:color-mix(in oklab, var(--lh-magenta) 70%, var(--lh-border)) !important;
  box-shadow:0 0 0 3px color-mix(in oklab, var(--lh-magenta) 18%, transparent), 0 12px 30px rgba(0,0,0,.36) !important;
}
.lh-search-avatar{ width:32px; height:32px; border-radius:50%; overflow:hidden; flex:0 0 32px; box-shadow:0 0 0 2px color-mix(in oklab, var(--lh-magenta) 45%, transparent); }
.lh-search-avatar img{ width:100%; height:100%; object-fit:cover; display:block; border-radius:50%; }

.lh-header input.lh-search-input,
.lh-msearch input.lh-search-input,
.lh-header .lh-search input[type="text"],
.lh-msearch .lh-search input[type="text"]{
  flex:1 1 auto !important; min-width:0 !important; width:auto !important;
  height:100% !important; margin:0 !important; padding:0 !important;
  border:0 !important; border-radius:0 !important; outline:none !important;
  background:transparent !important; background-color:transparent !important;
  background-image:none !important;
  box-shadow:none !important; -webkit-appearance:none !important; appearance:none !important;
  color:var(--lh-text) !important; -webkit-text-fill-color:var(--lh-text) !important;
  font-family:inherit !important; font-size:14.5px !important; font-weight:500 !important;
  line-height:normal !important; letter-spacing:normal !important; text-transform:none !important;
}
.lh-header input.lh-search-input::placeholder,
.lh-msearch input.lh-search-input::placeholder{ color:var(--lh-muted) !important; -webkit-text-fill-color:var(--lh-muted) !important; opacity:1 !important; }
.lh-header input.lh-search-input:focus,
.lh-msearch input.lh-search-input:focus{ background:transparent !important; box-shadow:none !important; outline:none !important; }
.lh-header input.lh-search-input:-webkit-autofill,
.lh-msearch input.lh-search-input:-webkit-autofill{
  -webkit-text-fill-color:var(--lh-text) !important;
  -webkit-box-shadow:0 0 0 1000px var(--lh-surface) inset !important;
  caret-color:var(--lh-text);
  transition:background-color 9999s ease-in-out 0s;
}

.lh-header button.lh-search-go,
.lh-msearch button.lh-search-go{
  width:36px !important; height:36px !important; min-width:36px !important; max-width:36px !important;
  flex:0 0 36px !important; padding:0 !important; margin:0 !important;
  border:0 !important; border-radius:50% !important; cursor:pointer;
  display:grid !important; place-items:center !important; line-height:0 !important;
  background:linear-gradient(140deg, var(--lh-violet), var(--lh-magenta)) !important;
  background-color:var(--lh-violet) !important;
  color:var(--lh-bg) !important; -webkit-text-fill-color:var(--lh-bg) !important;
  box-shadow:0 6px 16px color-mix(in oklab, var(--lh-violet) 48%, transparent) !important;
  text-transform:none !important; letter-spacing:0 !important; font-size:0 !important;
  transition:transform .22s var(--lh-ease), filter .22s;
}
.lh-header button.lh-search-go svg,
.lh-msearch button.lh-search-go svg{ width:17px !important; height:17px !important; display:block; stroke:currentColor !important; }
.lh-header button.lh-search-go:hover,
.lh-msearch button.lh-search-go:hover{ transform:scale(1.08) rotate(-6deg); filter:brightness(1.08); }
.lh-header button.lh-search-go:active,
.lh-msearch button.lh-search-go:active{ transform:scale(.95); }
.lh-header button.lh-search-go:focus-visible,
.lh-msearch button.lh-search-go:focus-visible{
  border-radius:50% !important;
  box-shadow:0 6px 16px color-mix(in oklab, var(--lh-violet) 48%, transparent), var(--lh-ring) !important;
}

.lh-results{
  position:absolute; top:calc(100% + 12px); left:0; right:0; display:none;
  background:linear-gradient(180deg, var(--lh-surface), color-mix(in oklab, var(--lh-surface) 86%, var(--lh-bg)));
  border:1px solid var(--lh-border); border-radius:var(--lh-radius); box-shadow:var(--lh-shadow); overflow:hidden;
}
.lh-results.is-open{ display:block; animation:lh-pop .26s var(--lh-ease); }
@keyframes lh-pop{ from{ opacity:0; transform:translateY(-8px) scale(.985); } to{ opacity:1; transform:none; } }
.lh-results-head{
  display:flex; align-items:center; gap:9px; padding:12px 14px;
  border-bottom:1px solid var(--lh-border); color:var(--lh-text-2); font-size:13px; font-weight:700;
  background:linear-gradient(90deg, color-mix(in oklab, var(--lh-violet) 18%, transparent), transparent);
}
.lh-results-head img{ width:24px; height:24px; border-radius:50%; object-fit:cover; }
.lh-results-close{
  margin-left:auto; width:26px; height:26px; min-width:26px; padding:0; border-radius:8px;
  border:1px solid var(--lh-border); background:transparent; color:var(--lh-muted);
  cursor:pointer; font-size:17px; line-height:1;
}
.lh-results-close:hover{ color:var(--lh-danger); border-color:var(--lh-danger); }
.lh-results-body{ padding:14px; max-height:min(56vh,440px); overflow:auto; color:var(--lh-text); font-size:14px; line-height:1.6; }
.lh-results-body a{ color:var(--lh-accent); }
.lh-ask{ margin-top:14px; padding-top:14px; border-top:1px solid var(--lh-border); text-align:center; }
.lh-ask button{
  border:0; background:transparent; cursor:pointer; font:inherit; font-size:13.5px; font-weight:700;
  color:var(--lh-magenta); display:inline-flex; align-items:center; gap:6px; padding:0; min-width:0;
}
.lh-ask button:hover{ color:var(--lh-cyan); }

/* --- правая часть --- */
.lh-actions{ display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.lh-stats{ display:flex; align-items:center; gap:6px; }
.lh-stat{
  display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 11px; border-radius:999px;
  text-decoration:none; color:var(--lh-text-2); font-size:13.5px; font-weight:700; white-space:nowrap;
  border:1px solid color-mix(in oklab, var(--lh-border) 85%, transparent);
  background:color-mix(in oklab, var(--lh-surface) 60%, transparent);
  transition:border-color .2s, color .2s, transform .2s var(--lh-ease), background .2s, box-shadow .2s;
}
.lh-stat .lh-ico-svg{ width:16px; height:16px; color:var(--lh-magenta); }
.lh-stat-karma .lh-ico-svg{ color:var(--lh-cyan); }
.lh-stat:hover{ transform:translateY(-2px); border-color:var(--lh-accent); color:var(--lh-text); background:color-mix(in oklab, var(--lh-surface) 92%, transparent); }
.lh-stat:focus-visible{ border-radius:999px; box-shadow:var(--lh-ring) !important; }

.lh-icon-btn{
  position:relative; width:38px; height:38px; min-width:38px; flex:0 0 38px; padding:0;
  display:grid; place-items:center; border-radius:12px; cursor:pointer; text-decoration:none;
  border:1px solid color-mix(in oklab, var(--lh-border) 85%, transparent);
  background:color-mix(in oklab, var(--lh-surface) 60%, transparent); color:var(--lh-text-2);
  transition:border-color .2s, color .2s, transform .2s var(--lh-ease), box-shadow .2s;
}
.lh-icon-btn .lh-ico-svg, .lh-icon-btn svg{ width:18px; height:18px; }
.lh-icon-btn:hover{ color:var(--lh-magenta); border-color:var(--lh-accent); transform:translateY(-2px); }
.lh-badge{
  position:absolute; top:-4px; right:-4px; min-width:17px; height:17px; padding:0 4px; border-radius:999px;
  display:grid; place-items:center; font-size:10px; font-weight:800; color:var(--lh-text);
  background:linear-gradient(140deg, var(--lh-danger), var(--lh-warn));
  box-shadow:0 0 0 2px var(--lh-bg), 0 0 10px color-mix(in oklab, var(--lh-danger) 60%, transparent);
}
.lh-search-toggle{ display:none; }

.lh-user{ position:relative; }
.lh-header button.lh-avatar-btn{
  display:flex !important; align-items:center; gap:5px;
  padding:3px 6px 3px 3px !important; margin:0 !important;
  border-radius:999px !important; cursor:pointer; min-width:0; line-height:0;
  border:1px solid color-mix(in oklab, var(--lh-border) 85%, transparent) !important;
  background:color-mix(in oklab, var(--lh-surface) 60%, transparent) !important;
  background-color:color-mix(in oklab, var(--lh-surface) 60%, transparent) !important;
  color:var(--lh-text-2) !important; box-shadow:none !important;
  transition:border-color .2s, box-shadow .2s, background .2s;
}
.lh-header button.lh-avatar-btn:hover,
.lh-header button.lh-avatar-btn:focus,
.lh-header button.lh-avatar-btn:active{
  border-color:color-mix(in oklab, var(--lh-magenta) 70%, var(--lh-border)) !important;
  background:color-mix(in oklab, var(--lh-surface) 92%, transparent) !important;
  background-color:color-mix(in oklab, var(--lh-surface) 92%, transparent) !important;
  box-shadow:0 0 0 3px color-mix(in oklab, var(--lh-magenta) 16%, transparent) !important;
  outline:none !important;
}
.lh-header button.lh-avatar-btn:focus-visible,
.lh-header .lh-user.is-open button.lh-avatar-btn{
  border-color:var(--lh-accent) !important;
  box-shadow:var(--lh-ring) !important;
  outline:none !important;
}
.lh-avatar-btn img,
.lh-avatar-btn .lh-avatar-img,
.lh-avatar-btn .gebo-avatar-pulse{
  width:34px; height:34px; border-radius:50%; object-fit:cover; display:block;
  outline:none !important; box-shadow:none;
}
.lh-avatar-btn:hover img,
.lh-avatar-btn:focus img,
.lh-avatar-btn:focus-visible img{ outline:none !important; }
.lh-avatar-caret{ width:12px; height:12px; color:var(--lh-muted); transition:transform .25s var(--lh-ease); }
.lh-avatar-caret svg{ width:12px; height:12px; }
.lh-avatar-btn[aria-expanded="true"] .lh-avatar-caret{ transform:rotate(180deg); }

.lh-drop-panel{
  position:absolute; top:calc(100% + 12px); right:0; width:250px; padding:8px;
  background:linear-gradient(180deg, var(--lh-surface), color-mix(in oklab, var(--lh-surface) 88%, var(--lh-bg)));
  border:1px solid var(--lh-border); border-radius:var(--lh-radius); box-shadow:var(--lh-shadow);
  max-height:min(70vh,460px); overflow:auto;
  opacity:0; visibility:hidden; transform:translateY(-8px) scale(.98); transform-origin:top right;
  transition:opacity .22s var(--lh-ease), transform .22s var(--lh-ease), visibility .22s;
}
.lh-user.is-open .lh-drop-panel{ opacity:1; visibility:visible; transform:none; }
.lh-drop-head{ display:flex; align-items:center; gap:8px; padding:8px 10px 10px; border-bottom:1px solid var(--lh-border); margin-bottom:6px; }
.lh-drop-name{ font-size:13.5px; font-weight:800; color:var(--lh-text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lh-plus-chip{
  margin-left:auto; flex:0 0 auto; font-size:10.5px; font-weight:900; letter-spacing:.6px; padding:3px 8px; border-radius:999px;
  color:var(--lh-bg); background:linear-gradient(120deg, var(--lh-magenta), var(--lh-violet));
}
.lh-drop-link{
  display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:10px;
  color:var(--lh-text); text-decoration:none; font-size:13.5px; font-weight:600;
  transition:background .18s, color .18s, transform .18s var(--lh-ease);
}
.lh-drop-link .lh-ico-svg{ width:17px; height:17px; color:var(--lh-muted); transition:color .18s; }
.lh-drop-link:hover{ background:color-mix(in oklab, var(--lh-magenta) 12%, transparent); color:var(--lh-magenta); transform:translateX(3px); }
.lh-drop-link:hover .lh-ico-svg{ color:var(--lh-magenta); }
.lh-drop-sep{ height:1px; margin:6px 4px; background:var(--lh-border); }
.lh-drop-exit{ color:color-mix(in oklab, var(--lh-danger) 82%, var(--lh-text)); }
.lh-drop-exit:hover{ background:color-mix(in oklab, var(--lh-danger) 14%, transparent); color:var(--lh-danger); }
.lh-drop-exit:hover .lh-ico-svg{ color:var(--lh-danger); }

.lh-login{
  display:inline-flex; align-items:center; height:38px; padding:0 20px; border-radius:999px;
  font-size:13.5px; font-weight:800; text-decoration:none; color:var(--lh-bg);
  background:linear-gradient(120deg, var(--lh-magenta), var(--lh-violet) 70%, var(--lh-indigo));
  box-shadow:0 8px 22px color-mix(in oklab, var(--lh-violet) 45%, transparent);
  transition:transform .22s var(--lh-ease), filter .22s;
}
.lh-login:hover{ transform:translateY(-2px); filter:brightness(1.07); }
.lh-login:focus-visible{ border-radius:999px; box-shadow:0 8px 22px color-mix(in oklab, var(--lh-violet) 45%, transparent), var(--lh-ring) !important; }
.lh-login-wide{ width:100%; justify-content:center; height:44px; }

/* =========================================================================
   Уровень 2
   ========================================================================= */
.lh-l2{
  height:var(--lh-l2); overflow:visible;
  border-top:1px solid color-mix(in oklab, var(--lh-border) 70%, transparent);
  background:linear-gradient(180deg, color-mix(in oklab, var(--lh-surface) 70%, transparent), color-mix(in oklab, var(--lh-bg) 78%, transparent));
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  transition:height .3s var(--lh-ease), opacity .25s var(--lh-ease);
}
.lh-header.lh-collapsed .lh-l2{ height:0; opacity:0; overflow:hidden; pointer-events:none; border-top-color:transparent; }
.lh-l2-inner{
  height:var(--lh-l2); max-width:var(--lh-max); margin:0 auto; padding:0 22px;
  display:flex; align-items:center; justify-content:center; gap:var(--lh-nav-gap); position:relative;
}
.lh-nav-list{
  display:flex; align-items:center; gap:var(--lh-nav-gap); margin:0; padding:0; list-style:none;
  min-width:0; flex:0 1 auto;
}
.lh-item{ position:relative; flex:0 0 auto; }
.lh-item.lh-overflow{ display:none !important; }
.lh-link{
  display:inline-flex; align-items:center; gap:7px; height:calc(var(--lh-l2) - 2px); padding:0 2px;
  color:var(--lh-muted); text-decoration:none; font-size:var(--lh-nav-size); font-weight:650; letter-spacing:.15px;
  white-space:nowrap; position:relative; transition:color .2s;
}
.lh-link::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:2px; border-radius:2px;
  background:linear-gradient(90deg, var(--lh-magenta), var(--lh-violet) 55%, var(--lh-cyan));
  transform:scaleX(0); transform-origin:center; transition:transform .28s var(--lh-ease);
}
.lh-item:hover > .lh-link, .lh-item.is-active > .lh-link{ color:var(--lh-text-2); }
.lh-item:hover > .lh-link::after, .lh-item.is-active > .lh-link::after{ transform:scaleX(1); }
.lh-item.is-active > .lh-link{ color:var(--lh-magenta); }
.lh-link:focus-visible{ border-radius:8px; box-shadow:var(--lh-ring) !important; }
.lh-ico{ display:inline-grid; place-items:center; transition:transform .28s var(--lh-ease), color .2s; color:color-mix(in oklab, var(--lh-accent) 75%, var(--lh-muted)); }
.lh-ico .lh-ico-svg{ width:16px; height:16px; }
.lh-item:hover > .lh-link .lh-ico{ transform:translateY(-2px) scale(1.08); color:var(--lh-magenta); }
.lh-item.is-active > .lh-link .lh-ico{ color:var(--lh-magenta); }
.lh-caret{ width:11px; height:11px; opacity:.75; transition:transform .25s var(--lh-ease); }
.lh-caret svg{ width:11px; height:11px; }
.lh-item.is-open > .lh-link .lh-caret{ transform:rotate(180deg); }

.lh-sub{
  position:absolute; top:calc(100% + 6px); left:50%; min-width:236px; padding:8px;
  transform:translate(-50%,-8px) scale(.98); transform-origin:top center;
  background:linear-gradient(180deg, var(--lh-surface), color-mix(in oklab, var(--lh-surface) 86%, var(--lh-bg)));
  border:1px solid var(--lh-border); border-radius:var(--lh-radius); box-shadow:var(--lh-shadow);
  opacity:0; visibility:hidden; transition:opacity .22s var(--lh-ease), transform .22s var(--lh-ease), visibility .22s;
}
.lh-sub::before{ content:''; position:absolute; top:-8px; left:0; right:0; height:10px; }
.lh-item.is-open > .lh-sub{ opacity:1; visibility:visible; transform:translate(-50%,0) scale(1); }
.lh-sub-inner{ display:flex; flex-direction:column; gap:2px; }
.lh-sublink{
  display:flex; align-items:center; gap:9px; padding:9px 11px; border-radius:10px;
  color:var(--lh-text); text-decoration:none; font-size:13px; font-weight:600; white-space:nowrap;
  transition:background .18s, color .18s, transform .18s var(--lh-ease);
}
.lh-subdot{ width:5px; height:5px; border-radius:50%; flex:0 0 auto; background:color-mix(in oklab, var(--lh-accent) 55%, transparent); transition:background .18s, transform .18s; }
.lh-sublink:hover{ background:color-mix(in oklab, var(--lh-magenta) 12%, transparent); color:var(--lh-magenta); transform:translateX(3px); }
.lh-sublink:hover .lh-subdot{ background:var(--lh-magenta); transform:scale(1.5); }
.lh-sublink.is-active{ color:var(--lh-magenta); background:color-mix(in oklab, var(--lh-magenta) 10%, transparent); }

/* --- «Ещё» --- */
.lh-more{ position:relative; flex:0 0 auto; }
.lh-more[hidden]{ display:none; }
.lh-more-btn{
  display:inline-flex; align-items:center; gap:7px; height:calc(var(--lh-l2) - 10px); padding:0 12px; min-width:0;
  border-radius:999px; cursor:pointer; font:inherit; font-size:var(--lh-nav-size); font-weight:700;
  color:var(--lh-text-2); border:1px solid var(--lh-border);
  background:color-mix(in oklab, var(--lh-surface) 75%, transparent);
  transition:border-color .2s, color .2s;
}
.lh-more-btn .lh-ico-svg{ width:15px; height:15px; color:var(--lh-accent); }
.lh-more-btn:hover, .lh-more.is-open .lh-more-btn{ border-color:var(--lh-accent); color:var(--lh-magenta); }
.lh-more-btn:focus-visible{ border-radius:999px; box-shadow:var(--lh-ring) !important; }
.lh-more.is-open .lh-more-btn .lh-caret{ transform:rotate(180deg); }
.lh-more-panel{
  position:absolute; top:calc(100% + 10px); right:0; width:268px; padding:8px;
  max-height:min(64vh,440px); overflow:auto;
  background:linear-gradient(180deg, var(--lh-surface), color-mix(in oklab, var(--lh-surface) 86%, var(--lh-bg)));
  border:1px solid var(--lh-border); border-radius:var(--lh-radius); box-shadow:var(--lh-shadow);
  opacity:0; visibility:hidden; transform:translateY(-8px) scale(.98); transform-origin:top right;
  transition:opacity .22s var(--lh-ease), transform .22s var(--lh-ease), visibility .22s;
}
.lh-more.is-open .lh-more-panel{ opacity:1; visibility:visible; transform:none; }
.lh-more-group + .lh-more-group{ margin-top:6px; padding-top:6px; border-top:1px solid var(--lh-border); }
.lh-more-parent{
  display:flex; align-items:center; gap:9px; padding:9px 11px; border-radius:10px;
  color:var(--lh-text-2); text-decoration:none; font-size:13.5px; font-weight:750;
}
.lh-more-parent .lh-ico-svg{ width:16px; height:16px; color:var(--lh-accent); }
.lh-more-parent:hover{ background:color-mix(in oklab, var(--lh-magenta) 12%, transparent); color:var(--lh-magenta); }
.lh-more-kid{
  display:block; padding:7px 11px 7px 34px; border-radius:9px;
  color:var(--lh-muted); text-decoration:none; font-size:12.5px; font-weight:600;
}
.lh-more-kid:hover{ color:var(--lh-magenta); background:color-mix(in oklab, var(--lh-magenta) 9%, transparent); }

/* =========================================================================
   Мобильная панель
   ========================================================================= */
.lh-drawer-backdrop{
  position:fixed; inset:0; z-index:940; background:color-mix(in oklab, var(--lh-bg) 72%, transparent);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  opacity:0; transition:opacity .3s var(--lh-ease);
}
.lh-drawer-backdrop[hidden]{ display:none; }
.lh-drawer-backdrop.is-open{ opacity:1; }
.lh-drawer{
  position:fixed; top:0; bottom:0; left:0; z-index:950; width:min(340px,88vw);
  display:flex; flex-direction:column;
  background:linear-gradient(170deg, var(--lh-surface), var(--lh-bg) 70%);
  border-right:1px solid var(--lh-border); box-shadow:26px 0 60px rgba(0,0,0,.55);
  transform:translateX(-102%); transition:transform .34s var(--lh-ease); visibility:hidden;
  font-family:'Manrope',system-ui,sans-serif;
}
.lh-drawer.is-open{ transform:none; visibility:visible; }
.lh-drawer-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:16px 16px 14px; border-bottom:1px solid var(--lh-border);
  background:linear-gradient(90deg, color-mix(in oklab, var(--lh-violet) 20%, transparent), transparent);
}
.lh-drawer-title{ font-size:16px; font-weight:800; color:var(--lh-text-2); }
.lh-drawer-body{ flex:1 1 auto; overflow:auto; padding:14px; }
.lh-dnav{ list-style:none; margin:0 0 14px; padding:0; display:flex; flex-direction:column; gap:3px; }
.lh-drow{ display:flex; align-items:center; gap:6px; }
.lh-dlink{
  flex:1 1 auto; display:flex; align-items:center; gap:11px; padding:12px; border-radius:12px;
  color:var(--lh-text); text-decoration:none; font-size:14.5px; font-weight:650;
}
.lh-dlink .lh-ico-svg{ width:18px; height:18px; color:var(--lh-accent); }
.lh-ditem.is-active > .lh-drow > .lh-dlink{ color:var(--lh-magenta); background:color-mix(in oklab, var(--lh-magenta) 11%, transparent); }
.lh-dtoggle{
  width:38px; height:38px; min-width:38px; flex:0 0 38px; padding:0; display:grid; place-items:center;
  border-radius:11px; cursor:pointer; border:1px solid var(--lh-border); background:transparent; color:var(--lh-muted);
  transition:transform .26s var(--lh-ease), color .2s, border-color .2s;
}
.lh-dtoggle svg{ width:14px; height:14px; }
.lh-dtoggle[aria-expanded="true"]{ transform:rotate(180deg); color:var(--lh-magenta); border-color:var(--lh-accent); }
.lh-dsub{
  list-style:none; margin:0 0 4px; padding:0 0 0 40px; overflow:hidden; max-height:0;
  transition:max-height .32s var(--lh-ease);
}
.lh-dsublink{
  display:block; padding:9px 12px; border-radius:9px; color:var(--lh-muted);
  text-decoration:none; font-size:13.5px; font-weight:600;
  border-left:2px solid color-mix(in oklab, var(--lh-border) 90%, transparent);
}
.lh-dsublink:hover, .lh-dsublink.is-active{ color:var(--lh-magenta); border-left-color:var(--lh-magenta); }
.lh-drawer-foot{ padding-top:14px; border-top:1px solid var(--lh-border); display:flex; flex-direction:column; gap:4px; }
.lh-dstats{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:12px; }
.lh-dstat{
  display:flex; flex-direction:column; align-items:center; gap:3px; padding:11px 6px; border-radius:12px;
  text-decoration:none; border:1px solid var(--lh-border); background:color-mix(in oklab, var(--lh-surface) 62%, transparent);
}
.lh-dstat .lh-ico-svg{ width:17px; height:17px; color:var(--lh-magenta); }
.lh-dstat span{ font-size:14px; font-weight:800; color:var(--lh-text-2); }
.lh-dstat em{ font-size:10.5px; font-style:normal; color:var(--lh-muted); letter-spacing:.3px; }
.lh-dlink2{
  display:flex; align-items:center; gap:11px; padding:11px 12px; border-radius:11px;
  color:var(--lh-text); text-decoration:none; font-size:14px; font-weight:650;
}
.lh-dlink2 .lh-ico-svg{ width:17px; height:17px; color:var(--lh-muted); }
.lh-dlink2:hover{ background:color-mix(in oklab, var(--lh-magenta) 10%, transparent); color:var(--lh-magenta); }

.lh-msearch{
  position:fixed; inset:0; z-index:960; display:flex; flex-direction:column;
  background:linear-gradient(180deg, var(--lh-bg), color-mix(in oklab, var(--lh-bg) 88%, var(--lh-indigo)));
  font-family:'Manrope',system-ui,sans-serif;
}
.lh-msearch[hidden]{ display:none; }
.lh-msearch-bar{ display:flex; align-items:center; gap:10px; padding:14px 16px; border-bottom:1px solid var(--lh-border); }
.lh-msearch-bar .lh-search{ flex:1 1 auto; }
.lh-msearch-body{ flex:1 1 auto; overflow:auto; padding:16px; color:var(--lh-text); font-size:14.5px; line-height:1.65; }
.lh-msearch-body a{ color:var(--lh-accent); }

/* =========================================================================
   Скроллбары
   ========================================================================= */
.lh-scroll{ scrollbar-width:thin; scrollbar-color:color-mix(in oklab, var(--lh-violet) 70%, transparent) transparent; }
.lh-scroll::-webkit-scrollbar{ width:9px; height:9px; }
.lh-scroll::-webkit-scrollbar-track{ background:color-mix(in oklab, var(--lh-bg) 70%, transparent); border-radius:999px; }
.lh-scroll::-webkit-scrollbar-thumb{
  border-radius:999px; border:2px solid transparent; background-clip:padding-box;
  background-image:linear-gradient(180deg, var(--lh-violet), var(--lh-magenta));
}
.lh-scroll::-webkit-scrollbar-thumb:hover{ background-image:linear-gradient(180deg, var(--lh-magenta), var(--lh-cyan)); }

/* =========================================================================
   Адаптив
   ========================================================================= */
@media (max-width:1180px){
  .lh-l1-inner{ grid-template-columns:minmax(120px,1fr) minmax(0,520px) minmax(120px,1fr); gap:12px; padding:0 16px; }
  .lh-l2-inner{ padding:0 16px; }
  .lh-stat-num{ display:none; }
  .lh-stat{ padding:0 9px; }
}
@media (max-width:980px){
  .lh-logo-text{ font-size:17px; }
  .lh-stats{ gap:4px; }
}
@media (max-width:900px){
  :root{ --lh-l1:60px; }
  .lh-l1-inner{ grid-template-columns:auto 1fr auto; gap:10px; padding:0 14px; }
  .lh-burger{ display:grid; }
  .lh-search-wrap{ display:none; }
  .lh-search-toggle{ display:grid; }
  .lh-l2{ display:none; }
  .lh-stats{ display:none; }
  .lh-logo img{ max-height:34px; }
  .lh-avatar-caret{ display:none; }
  .lh-drop-panel{ width:232px; }
  body.lh-active{ padding-top:calc(var(--lh-l1) + var(--lh-offset)) !important; }
  html{ scroll-padding-top:calc(var(--lh-l1) + var(--lh-offset) + 14px); }
  body.lh-active .gebo-rr-filters{ top:calc(var(--lh-l1) + var(--lh-offset) + 12px) !important; }
}
@media (max-width:560px){
  .lh-l1-inner{ padding:0 10px; }
  .lh-logo-text{ display:none; }
  .lh-bell{ width:36px; height:36px; min-width:36px; flex-basis:36px; }
  .lh-login{ padding:0 15px; }
  .lh-drawer{ width:min(320px,92vw); }
}

@media (prefers-reduced-motion:reduce){
  .lh-aurora span{ animation:none; }
  .lh-in{ animation:none; opacity:1; transform:none; }
  .lh-header *, .lh-drawer, .lh-drawer-backdrop{ transition-duration:.01ms !important; }
}

/* =========================================================================
   Админка плагина
   ========================================================================= */
.lh-admin{ max-width:1080px; margin:22px 0; font-family:'Manrope',system-ui,sans-serif; }
.lh-admin-title{ font-size:27px; font-weight:800; color:var(--lh-text-2, #E5E5E5); margin:0 0 6px; }
.lh-admin-sub{ color:var(--lh-muted, #B0A0C0); font-size:14px; margin:0 0 20px; }
.lh-admin-note{
  padding:12px 16px; margin:0 0 18px; border-radius:11px; font-weight:700; font-size:13.5px;
  color:var(--lh-ok); background:color-mix(in oklab, var(--lh-ok) 12%, transparent);
  border-left:3px solid var(--lh-ok);
}
.lh-admin .lh-card{
  background:var(--lh-surface, #231A2A); border:1px solid var(--lh-border, #3A2E42);
  border-radius:16px; padding:24px; margin:0 0 20px;
}
.lh-card-head{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.lh-card-title{ font-size:18px; font-weight:800; color:var(--lh-text-2, #fff); margin:0 0 16px; }
.lh-card-head .lh-card-title{ margin:0; }
.lh-card-tools{ display:flex; gap:8px; flex-wrap:wrap; }
.lh-btn-ghost{
  display:inline-flex; align-items:center; height:34px; padding:0 14px; border-radius:9px; text-decoration:none;
  font-size:13px; font-weight:700; color:var(--lh-accent, #f0abfc);
  border:1px solid var(--lh-border, #3A2E42); background:color-mix(in oklab, var(--lh-bg, #1A1220) 60%, transparent);
}
.lh-btn-ghost:hover{ border-color:var(--lh-accent, #f0abfc); }
.lh-grid2{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:12px; margin-bottom:20px; }
.lh-grid4{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; }
.lh-check{ display:flex; align-items:center; gap:10px; color:var(--lh-text, #D9D4CC); font-size:14px; font-weight:600; cursor:pointer; }
.lh-check input{ width:18px; height:18px; accent-color:var(--lh-accent, #f0abfc); margin:0; }
.lh-field{ display:flex; flex-direction:column; gap:7px; }
.lh-field > span{ font-size:12px; font-weight:700; letter-spacing:.3px; text-transform:uppercase; color:var(--lh-muted, #B0A0C0); }
.lh-field input{
  height:40px; padding:0 12px; border-radius:9px; font-size:14px;
  color:var(--lh-text, #D9D4CC); background:var(--lh-bg, #1A1220); border:1px solid var(--lh-border, #3A2E42);
}
.lh-field input:focus{ outline:none; border-color:var(--lh-accent, #f0abfc); box-shadow:0 0 0 2px color-mix(in oklab, var(--lh-accent, #f0abfc) 20%, transparent); }
.lh-field-wide{ margin-top:16px; }
.lh-icons-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:10px; }
.lh-icon-row{
  display:grid; grid-template-columns:40px 1fr 150px; align-items:center; gap:12px;
  padding:10px 12px; border-radius:12px; background:color-mix(in oklab, var(--lh-bg, #1A1220) 62%, transparent);
  border:1px solid var(--lh-border, #3A2E42);
}
.lh-icon-preview{
  width:36px; height:36px; border-radius:10px; display:grid; place-items:center;
  color:var(--lh-accent, #f0abfc); background:color-mix(in oklab, var(--lh-accent, #f0abfc) 12%, transparent);
}
.lh-icon-preview .lh-ico-svg{ width:19px; height:19px; }
.lh-icon-label{ font-size:14px; font-weight:700; color:var(--lh-text, #D9D4CC); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lh-icon-row select{
  height:36px; border-radius:9px; font-size:13px; color:var(--lh-text, #D9D4CC);
  background:var(--lh-bg, #1A1220); border:1px solid var(--lh-border, #3A2E42); color-scheme:dark;
}
.lh-admin-empty, .lh-admin-hint{ color:var(--lh-muted, #B0A0C0); font-size:13.5px; line-height:1.6; margin:0 0 14px; }
.lh-admin-empty a{ color:var(--lh-accent, #f0abfc); }
.lh-admin .lh-admin-save{
  background:linear-gradient(120deg, var(--lh-magenta), var(--lh-violet)) !important;
  color:var(--lh-bg, #1A1220) !important; border:0 !important; border-radius:10px !important;
  padding:12px 30px !important; font-weight:800 !important; font-size:14.5px !important; text-shadow:none !important;
}
@media (max-width:600px){ .lh-icon-row{ grid-template-columns:36px 1fr; } .lh-icon-row select{ grid-column:1 / -1; } }