@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,400,0,0");

:root {
  --canvas: #f5f5f7; --surface: #ffffff; --glass-surface: rgba(255, 255, 255, 0.88);
  --glass-popover: rgba(255, 255, 255, 0.98); --secondary-control: rgba(118, 118, 128, 0.11);
  --field: #ededf0; --hover: #e7e7ec; --selected: rgba(0, 122, 255, 0.12);
  --text: #1d1d1f; --secondary-text: #616166; --divider: rgba(60, 60, 67, 0.1);
  --primary: #007aff; --primary-hover: #0066d6; --primary-soft: rgba(0, 122, 255, 0.11); --primary-text: #ffffff;
  --semantic-ok: #2b8a3e; --semantic-ok-bg: rgba(52, 199, 89, 0.13);
  --semantic-warn: #d97706; --semantic-warn-bg: rgba(255, 149, 0, 0.14);
  --semantic-err: #ff3b30; --semantic-err-bg: rgba(255, 59, 48, 0.12);
  --shell-inset: 8px; --sidebar-width: 232px; --sidebar-padding: 10px;
  --page-gap: 14px; --field-gap: 12px; --related-gap: 8px; --joined-gap: 3px;
  --control-height: 36px; --nav-item-height: 36px;
  --radius-control: 10px; --radius-joined-inner: 4px; --radius-surface: 18px; --radius-modal: 22px; --radius-sidebar: 16px;
  --sidebar-shadow: 0 6px 22px rgba(0, 0, 0, 0.07); --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scrollbar-gutter: stable; }
strong, b { font-weight: 500; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.015em; }
::-webkit-scrollbar { width: 5px; height: 5px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; margin: 4px 0; }
::-webkit-scrollbar-thumb { background: rgba(60, 60, 67, 0.18); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(60, 60, 67, 0.36); }

.lh-ms-ico { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; user-select: none; flex-shrink: 0; vertical-align: middle; }
.lh-ms-ico.is-sz-11, .lh-ms-ico.is-sz-12 { font-size: 14px; }
.lh-ms-ico.is-sz-13, .lh-ms-ico.is-sz-14 { font-size: 16px; }
.lh-ms-ico.is-sz-15, .lh-ms-ico.is-sz-16 { font-size: 17px; }
.lh-ms-ico.is-sz-17, .lh-ms-ico.is-sz-18 { font-size: 19px; }
.lh-ms-ico.is-sz-20 { font-size: 20px; }

body, .lh-body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px; color: var(--text); background-color: var(--canvas); -webkit-font-smoothing: antialiased; overflow-x: hidden; scrollbar-gutter: stable; }
body.is-no-page-scroll { overflow: hidden !important; height: 100dvh !important; }

.has-scroll-fade-bottom { -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 18px), transparent 100%); }
.has-scroll-fade-top { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18px, #000 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 18px, #000 100%); }
.has-scroll-fade-both { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16px, #000 calc(100% - 16px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 16px, #000 calc(100% - 16px), transparent 100%); }
.lh-viewport-fade-top, .lh-viewport-fade-bottom { position: fixed; left: 0; right: 0; height: 22px; pointer-events: none; z-index: 65; opacity: 0; transition: opacity 200ms var(--ease-apple); }
.lh-viewport-fade-top { top: 0; background: linear-gradient(to bottom, rgba(245, 245, 247, 0.85) 0%, rgba(245, 245, 247, 0) 100%); }
.lh-viewport-fade-bottom { bottom: 0; background: linear-gradient(to top, rgba(245, 245, 247, 0.85) 0%, rgba(245, 245, 247, 0) 100%); }
.lh-viewport-fade-top.is-visible, .lh-viewport-fade-bottom.is-visible { opacity: 1; }

.lh-fixed-view { height: calc(100dvh - 82px); display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: var(--radius-surface); }
.lh-pane-box { background: var(--surface); display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 16px 20px; gap: 12px; flex: 1; }
.lh-pane-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 4px; }
.lh-loader-bar, #global-loader, #loading-pill, .lh-mobile-only, .lh-mobile-dock { display: none !important; animation: none !important; }

/* Движок динамического одноцветного SVG-спиннера (SpinnerEngine, Google Material style) */
@keyframes lhSpin { to { transform: rotate(360deg); } }
@keyframes lhGSpinRotate { 100% { transform: rotate(360deg); } }
@keyframes lhGSpinDash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 92, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 92, 150; stroke-dashoffset: -124; }
}
.lh-spinner { animation: lhSpin 0.75s linear infinite; }
.lh-gspinner { animation: lhGSpinRotate 1.75s linear infinite; display: inline-block; vertical-align: middle; flex-shrink: 0; color: currentColor; }
.lh-gspinner-arc { animation: lhGSpinDash 1.35s ease-in-out infinite; }
.lh-center-spinner-box { width: 100%; min-height: 240px; padding: 36px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--text); }
.lh-center-spinner-ring { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: #1d1d1f; }
.lh-center-spinner-title { font-size: 14px; font-weight: 600; color: var(--text); }

.lh-shell { display: flex; min-height: 100dvh; }
.lh-sidebar { position: fixed; top: var(--shell-inset); left: var(--shell-inset); bottom: var(--shell-inset); width: var(--sidebar-width); height: calc(100dvh - 2 * var(--shell-inset)); background: var(--surface); border-radius: var(--radius-sidebar); box-shadow: var(--sidebar-shadow); padding: var(--sidebar-padding); display: flex; flex-direction: column; gap: 6px; z-index: 80; }
.lh-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 6px; }
.lh-brand-badge { width: 30px; height: 30px; border-radius: 8px; background: #1d1d1f; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12.5px; }
.lh-brand-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 18px; letter-spacing: -0.015em; }
.lh-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; padding-right: 2px; scrollbar-width: none; }
.lh-nav::-webkit-scrollbar { width: 0; height: 0; }
.lh-nav-group-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; color: var(--secondary-text); padding: 10px 10px 4px; letter-spacing: 0.04em; }
.lh-nav-item-wrap { display: flex; flex-direction: column; gap: 2px; }
.lh-nav-btn { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: var(--nav-item-height); padding: 0 10px; border: 0; outline: 0; border-radius: 10px; background: transparent; color: var(--text); font-size: 13.5px; font-weight: 500; cursor: pointer; text-align: left; }
.lh-nav-btn:hover { background: var(--hover); }
.lh-nav-btn.is-active { background: #1d1d1f; color: #ffffff; font-weight: 500; }

.lh-nav-subtabs { display: none; flex-direction: column; gap: 2px; padding: 2px 0 4px 26px; }
.lh-nav-subtabs.is-open { display: flex; }
.lh-nav-subbtn { height: 29px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--secondary-text); font-size: 12.5px; font-weight: 500; text-align: left; cursor: pointer; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-nav-subbtn:hover { background: var(--hover); color: var(--text); }
.lh-nav-subbtn.is-sub-active { background: var(--field); color: var(--text); font-weight: 600; }

.lh-lottie-wrap { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; pointer-events: none; }
.lh-lottie-canvas { width: 20px; height: 20px; display: block; opacity: 0; transform: scale(0.88); transition: opacity 180ms var(--ease-apple), transform 180ms var(--ease-apple); }
.lh-lottie-canvas.is-ready { opacity: 0.86; transform: scale(1); }
.lh-nav-btn.is-active .lh-lottie-canvas { opacity: 1; filter: brightness(0) invert(1); }
.lh-nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-sidebar-footer { padding-top: 8px; border-top: 1px solid var(--divider); }
.lh-sidebar-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.lh-sidebar-quick-link { height: 34px; min-width: 0; padding: 0 8px; border-radius: 9px; background: var(--field); color: var(--text); font-size: 12px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-sidebar-quick-link:hover { background: var(--hover); }

.lh-main { margin-left: calc(var(--sidebar-width) + var(--shell-inset) + var(--page-gap)); padding: var(--shell-inset) var(--page-gap) 12px 0; flex: 1; min-width: 0; }
.lh-main.is-full-viewport { padding: 0; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.lh-main.is-full-viewport > .lh-topbar { display: none !important; }
.lh-main.is-full-viewport > .lh-viewport { flex: 1; height: 100dvh; min-height: 0; padding: var(--shell-inset) var(--page-gap) var(--shell-inset) 0; gap: 0; overflow: hidden; }
.lh-tab-mount { display: flex; flex-direction: column; gap: 14px; width: 100%; height: 100%; flex: 1; min-height: 0; }
.lh-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 48px; min-height: 48px; margin-bottom: 10px; padding: 0 4px; flex-wrap: nowrap; }
.lh-topbar-heading { flex: 1; min-width: 0; overflow: hidden; }
.lh-page-title { font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-page-subtitle { font-size: 12.5px; line-height: 16px; color: var(--secondary-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-topbar-actions { display: flex; align-items: center; gap: var(--related-gap); flex-wrap: wrap; }
.lh-viewport { display: flex; flex-direction: column; gap: 14px; background: transparent; overflow: visible; flex: 1; min-height: 0; }
.lh-pulse-card { background: var(--surface); border-radius: var(--radius-surface); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: background-color 90ms ease; }
.lh-pulse-card:hover { background: var(--hover); }
.lh-pulse-rail { width: 100%; height: 12px; border-radius: 999px; background: var(--field); overflow: hidden; }
.lh-pulse-fill { height: 100%; background: #1d1d1f; border-radius: 999px; transition: width 260ms var(--ease-apple); }
.lh-pulse-periods { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.lh-pulse-period-item { background: var(--canvas); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
