/* LT-103: СГЕНЕРИРОВАНО scripts/ui-shell/scope-legacy-css.mjs из public/legal/styles.css + public/legal/lex.css. НЕ ПРАВИТЬ РУКАМИ.
   Прежние стили экранов в скоупе обёртки .lx-legacy — грузятся только при ui_shell=v31 (см. v31/lex31-css-loader.js). */
@font-face{
  font-family: 'PT Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-mono-400-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face{
  font-family: 'PT Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-mono-400-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face{
  font-family: 'PT Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-mono-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'PT Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-mono-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-400-italic-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face{
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-400-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face{
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-700-italic-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face{
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-700-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face{
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-700-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-700-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-400-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face{
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-400-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face{
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-700-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face{
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-700-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face{
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-narrow-400-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face{
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-narrow-400-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face{
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-narrow-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-narrow-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-narrow-700-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face{
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-narrow-700-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face{
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-narrow-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-narrow-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.lx-legacy{
  /* --- Сталь: нейтральная шкала каркаса --- */
  --steel-0:   #ffffff;
  --steel-50:  #f5f6f8;
  --steel-100: #eef0f3;
  --steel-150: #e6e9ed;
  --steel-200: #dadee3;
  --steel-300: #c6ccd3;
  --steel-400: #aab2bc;
  --steel-500: #8b939e;
  --steel-600: #69727e;
  --steel-700: #4a525d;
  --steel-800: #2e353f;
  --steel-900: #1c212a;

  /* --- Акцент действия: деловой стально-синий --- */
  --blue-50:  #e9f1fa;
  --blue-100: #cfe1f3;
  --blue-200: #a7c8e8;
  --blue-400: #3d83bf;
  --blue-500: #1f6fb2;   /* основной акцент */
  --blue-600: #185c95;
  --blue-700: #134b7b;

  /* --- Статусы: сдержанный «светофор» (приглушённые тона) --- */
  /* Активно — спокойный зелёный */
  --ok-bg:     #e8f1ea;
  --ok-border: #bcd6c4;
  --ok-fg:     #2f7d4f;
  --ok-solid:  #3f8f5b;

  /* Скоро истекает — приглушённый янтарь/охра */
  --warn-bg:     #faf1da;
  --warn-border: #e7d4a3;
  --warn-fg:     #936511;
  --warn-solid:  #c08a1e;

  /* Просрочено — притушенный кирпично-красный */
  --over-bg:     #f6e5e5;
  --over-border: #e2bcbc;
  --over-fg:     #ad3a3a;
  --over-solid:  #c24545;

  /* Нейтральный статус / черновик */
  --neutral-bg:     #eceef1;
  --neutral-border: #d2d7dd;
  --neutral-fg:     #5a626d;

  /* --- Полоса «окно продления» (сигнатурный элемент) --- */
  --rw-track:   #e3e6ea;          /* фон шкалы срока */
  --rw-tick:    #c6ccd3;          /* деления */
  --rw-fill-ok:   #6fae84;        /* запас по сроку */
  --rw-fill-warn: #d6a43f;        /* зона предупреждения */
  --rw-fill-over: #c66a6a;        /* просрочка */
  --rw-grace:   #cfe4d6;          /* льготное окно (заливка) */
  --rw-grace-line: #6fae84;       /* граница льготного окна */
  --rw-today:   #185c95;          /* отметка «сегодня» */
  --rw-deadline:#9aa2ac;          /* отметка дедлайна */

  /* ============================================================
     СЕМАНТИЧЕСКИЕ АЛИАСЫ — используйте их в компонентах
     ============================================================ */
  --app-bg:          var(--steel-100);
  --surface:         var(--steel-0);
  --surface-sunken:  var(--steel-50);
  --surface-header:  var(--steel-150);   /* шапки таблиц, тулбары */
  --surface-hover:   var(--steel-50);
  --surface-selected:var(--blue-50);

  --border:          var(--steel-300);
  --border-soft:     var(--steel-200);
  --border-strong:   var(--steel-400);
  --divider:         var(--steel-200);

  --text:            var(--steel-900);
  --text-secondary:  var(--steel-700);
  --text-muted:      var(--steel-500);
  --text-inverse:    var(--steel-0);
  --text-link:       var(--blue-600);

  --accent:          var(--blue-500);
  --accent-hover:    var(--blue-600);
  --accent-active:   var(--blue-700);
  --accent-soft-bg:  var(--blue-50);
  --on-accent:       var(--steel-0);

  --focus-ring:      0 0 0 2px var(--steel-0), 0 0 0 4px rgba(31,111,178,.55);

  /* --- Кнопки решений (стандарт BI, «Сталь v2») ---
     Отдельный слой от статусного светофора: только главные action-кнопки
     (uppercase, bold, radius ~20px). Статусы остаются приглушёнными. */
  --btn-go:        #2FC6F6;   /* позитив/вперёд: готово, запустить */
  --btn-go-text:   #063a4d;
  --btn-return:    #F0D980;   /* возврат/доработка: проблема, вернуть этап */
  --btn-return-text:#5C4A00;
  --btn-reject:    #FF5752;   /* отказ/брак */
  --btn-reject-text:#ffffff;
}
.lx-legacy{
  /* Семейства */
  --font-sans:   'PT Sans', 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-narrow: 'PT Sans Narrow', 'PT Sans', 'Segoe UI', sans-serif;
  --font-mono:   'PT Mono', 'Consolas', 'Courier New', monospace;

  /* Начертания (PT Sans: 400 / 700) */
  --fw-regular: 400;  /* @kind font */
  --fw-bold:    700;  /* @kind font */

  /* Размерная шкала (px) — крупная, под 50+ */
  --fs-2xs:  12px;   /* микро-подписи, бейджи */
  --fs-xs:   13px;   /* вторичные подписи */
  --fs-sm:   14px;   /* таблицы, плотные формы */
  --fs-base: 15px;   /* базовый текст интерфейса */
  --fs-md:   16px;   /* акцентный текст, поля ввода */
  --fs-lg:   18px;   /* подзаголовки */
  --fs-xl:   21px;   /* заголовки секций */
  --fs-2xl:  26px;   /* заголовки экранов */
  --fs-3xl:  32px;   /* крупные числа дашборда */
  --fs-4xl:  40px;   /* hero-числа */

  /* Интерлиньяж */
  --lh-tight:  1.2;   /* @kind font */
  --lh-snug:   1.35;  /* @kind font */
  --lh-base:   1.5;   /* @kind font */

  /* Трекинг */
  --ls-caps:   0.04em;   /* ВЕРХНИЙ РЕГИСТР заголовков-меток */
  --ls-normal: 0;        /* @kind font */

  /* Готовые роли текста */
  --text-screen-title: var(--fw-bold) var(--fs-2xl)/var(--lh-tight) var(--font-sans);
  --text-section:      var(--fw-bold) var(--fs-xl)/var(--lh-snug) var(--font-sans);
  --text-subhead:      var(--fw-bold) var(--fs-lg)/var(--lh-snug) var(--font-sans);
  --text-body:         var(--fw-regular) var(--fs-base)/var(--lh-base) var(--font-sans);
  --text-table:        var(--fw-regular) var(--fs-sm)/var(--lh-snug) var(--font-sans);
  --text-label:        var(--fw-bold) var(--fs-xs)/var(--lh-snug) var(--font-sans);
}
.lx-legacy{
  /* Шаг сетки 4px */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Скругления — маленькие, почти прямые углы */
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-pill: 999px;

  /* Высоты управляющих элементов */
  --control-h-sm: 28px;
  --control-h:    34px;
  --control-h-lg: 40px;

  /* Ряды таблиц */
  --row-h:        40px;   /* стандартный (компромисс для 50+) */
  --row-h-dense:  32px;   /* плотный режим «как в 1С» */

  /* Толщины линий */
  --border-w:      1px;
  --border-w-strong: 2px;

  /* Геометрия макета */
  --sidebar-w:     232px;
  --topbar-h:      52px;
  --toolbar-h:     48px;
  --content-max:   1440px;
  --gutter:        var(--space-6);
}
.lx-legacy{
  /* Тонкая «приподнятость» карточки — почти незаметная */
  --shadow-card:   0 1px 0 rgba(28,33,42,.04), 0 1px 2px rgba(28,33,42,.06);
  /* Всплывающие элементы поверх листа */
  --shadow-pop:    0 6px 18px rgba(28,33,42,.16), 0 1px 3px rgba(28,33,42,.12);
  /* Модальные диалоги */
  --shadow-dialog: 0 18px 48px rgba(28,33,42,.28);
  /* Залипающая шапка таблицы */
  --shadow-sticky: 0 1px 0 var(--border), 0 2px 4px rgba(28,33,42,.06);

  /* Кольцо фокуса (доступность, крупное — под 50+) */
  --ring: var(--focus-ring);
}
.lx-legacy .theme-grafit{
  --app-bg:         var(--steel-150);
  --surface-header: var(--steel-800);
  --on-header:      var(--steel-50);
  --row-zebra:      var(--steel-50);
  --accent:         var(--blue-500);
  --accent-hover:   var(--blue-600);
}
.lx-legacy .theme-grafit .nk-th{ color: var(--steel-50); }
.lx-legacy .theme-vedomost{
  --app-bg:         #eceae4;        /* чуть тёплый бумажный фон */
  --surface-header: var(--steel-200);
  --accent:         #2f6e63;        /* приглушённый сине-зелёный */
  --accent-hover:   #245649;
  --accent-active:  #1d463b;
  --accent-soft-bg: #e4efe9;
  --text-link:      #245649;
  --row-h:          var(--row-h-dense);
  --radius-md:      2px;
  --radius-lg:      3px;
}
.lx-legacy .theme-vedomost .nk-cell{ border-right: var(--border-w) solid var(--border-soft); }
.lx-legacy .theme-vedomost .nk-num{ font-family: var(--font-mono); }
.lx-legacy{
  /* --- Цвета РЕШЕНИЙ (кнопки и исходы) --- */
  /* Согласовать (ДЕЙСТВИЕ) — синяя, контрастная (бриф §7).
     ЗЕЛЁНЫЙ в СЭД — ТОЛЬКО индикатор «пройдено/завершено»
     (галочки волн, стадии Согласован/Утверждён): см. --ok-* / --wave-done. */
  --dec-approve-bg:     var(--blue-50);
  --dec-approve-border: var(--blue-200);
  --dec-approve-fg:     var(--blue-700);
  --dec-approve-solid:  var(--blue-500);
  --dec-approve-hover:  var(--blue-600);

  /* «Пройдено/завершено» — приглушённый зелёный (индикатор, не кнопка) */
  --dec-passed-bg:     var(--ok-bg);
  --dec-passed-border: var(--ok-border);
  --dec-passed-fg:     var(--ok-fg);
  --dec-passed-solid:  var(--ok-solid);

  /* На доработку — приглушённый янтарь (= warn) */
  --dec-rework-bg:     var(--warn-bg);
  --dec-rework-border: var(--warn-border);
  --dec-rework-fg:     var(--warn-fg);
  --dec-rework-solid:  var(--warn-solid);
  --dec-rework-hover:  #a97817;

  /* Отклонить — притушенный кирпичный (= over) */
  --dec-reject-bg:     var(--over-bg);
  --dec-reject-border: var(--over-border);
  --dec-reject-fg:     var(--over-fg);
  --dec-reject-solid:  var(--over-solid);
  --dec-reject-hover:  #9a3434;

  /* Запросить уточнение — спокойный сланцево-синий (нейтральнее акцента) */
  --dec-clarify-bg:     #e7edf3;
  --dec-clarify-border: #c2cfdd;
  --dec-clarify-fg:     #3f5063;
  --dec-clarify-solid:  #5b7088;

  /* --- СТАДИИ документа (7 вех жизненного цикла) --- */
  /* Чтобы человек 50+ мгновенно читал «где документ»:
     серый — ещё не начато, синий — идёт сейчас, зелёный — пройдено/готово,
     красный — отклонён, серо-штрих — отозван. */
  --stage-draft-fg:    #5a626d;   --stage-draft-bg:    #eceef1;   /* Черновик */
  --stage-review-fg:   #185c95;   --stage-review-bg:   #e3eef8;   /* На согласовании */
  --stage-agreed-fg:   #2f7d4f;   --stage-agreed-bg:   #e8f1ea;   /* Согласован */
  --stage-signing-fg:  #185c95;   --stage-signing-bg:  #e3eef8;   /* На подписании */
  --stage-approved-fg: #1f6b41;   --stage-approved-bg: #dceee0;   /* Утверждён */
  --stage-rejected-fg: #ad3a3a;   --stage-rejected-bg: #f6e5e5;   /* Отклонён */
  --stage-withdrawn-fg:#69727e;   --stage-withdrawn-bg:#e6e9ed;   /* Отозван */

  /* --- СТАТУС СОГЛАСУЮЩЕГО по документу --- */
  --appr-new-fg:     #185c95;   --appr-new-bg:     #e3eef8;   /* Новый */
  --appr-work-fg:    #936511;   --appr-work-bg:    #faf1da;   /* В работе */
  --appr-rework-fg:  #936511;   --appr-rework-bg:  #faf1da;   /* Отправлен на доработку */
  --appr-recheck-fg: #6b4fa3;   --appr-recheck-bg: #ece8f5;   /* Повторная проверка (круг N) */
  --appr-done-fg:    #2f7d4f;   --appr-done-bg:    #e8f1ea;   /* Согласовано */
  --appr-rej-fg:     #ad3a3a;   --appr-rej-bg:     #f6e5e5;   /* Отклонено */
  --appr-wd-fg:      #69727e;   --appr-wd-bg:      #e6e9ed;   /* Отозвано */

  /* --- Маршрут по волнам --- */
  --wave-done:    var(--ok-solid);     /* волна пройдена */
  --wave-current: var(--accent);       /* волна идёт сейчас */
  --wave-wait:    var(--steel-400);    /* волна ждёт очереди */
  --wave-line:    var(--steel-300);    /* соединительная линия */
  --wave-current-bg: var(--blue-50);   /* подсветка активной волны */

  /* --- Круг доработки --- */
  --round-fg: #6b4fa3;  --round-bg: #ece8f5;  --round-border:#d6ccec;
}
.lx-legacy .dmcp{
  /* Фоны и поверхности (светлая) */
  --dm-bg:        #fbfbfa;   /* тёплая бумага, Anthropic-настроение */
  --dm-surface:   #ffffff;
  --dm-surface-2: #f5f5f3;   /* приподнятые блоки, шапки таблиц */
  --dm-code-bg:   #f5f5f3;   /* код-блоки на светлой */
  --dm-border:    #e7e6e1;
  --dm-border-2:  #d6d5cf;

  /* Текст */
  --dm-text:      #1f1e1c;
  --dm-text-2:    #5c5a54;
  --dm-text-3:    #8a877f;
  --dm-on-accent: #ffffff;

  /* Акцент — технологичный индиго */
  --dm-accent:      #4f5bd5;
  --dm-accent-2:    #3d49c0;
  --dm-accent-soft: #ecedfb;
  --dm-accent-line: #cdd0f4;

  /* Семантика свежести/статусов (сдержанная) */
  --dm-ok:      #2f8f5b;  --dm-ok-bg:   #e8f2ec;  --dm-ok-line:  #bcdcc8;
  --dm-stale:   #a9781a;  --dm-stale-bg:#f8f0dd;  --dm-stale-line:#e6d5a6;
  --dm-error:   #c0413f;  --dm-error-bg:#f7e6e5;  --dm-error-line:#e6bfbe;
  --dm-info:    #2f6ab0;  --dm-info-bg: #e7eff7;

  /* Радиусы, тени, шрифты */
  --dm-radius:    10px;
  --dm-radius-sm: 7px;
  --dm-radius-lg: 16px;
  --dm-shadow:    0 1px 2px rgba(20,19,17,.05), 0 8px 24px rgba(20,19,17,.06);
  --dm-shadow-pop:0 12px 40px rgba(20,19,17,.18);
  --dm-font:      'PT Sans','Segoe UI',-apple-system,Arial,sans-serif;
  --dm-mono:      'PT Mono','SF Mono',ui-monospace,'Consolas',monospace; /* @kind font */

  color-scheme: light;
}
.lx-legacy .dmcp.dark{
  --dm-bg:        #17171a;   /* глубокий нейтральный, как Claude/Timeweb dark */
  --dm-surface:   #1e1e22;
  --dm-surface-2: #26262b;
  --dm-code-bg:   #101013;
  --dm-border:    #2e2e34;
  --dm-border-2:  #3b3b42;

  --dm-text:      #ececef;
  --dm-text-2:    #a9a8b0;
  --dm-text-3:    #77767e;
  --dm-on-accent: #ffffff;

  --dm-accent:      #8b96ff;
  --dm-accent-2:    #a3abff;
  --dm-accent-soft: #23243a;
  --dm-accent-line: #363861;

  --dm-ok:      #5fc98a;  --dm-ok-bg:   #16281d;  --dm-ok-line:  #274b34;
  --dm-stale:   #e0b054;  --dm-stale-bg:#2a2213;  --dm-stale-line:#4a3c1c;
  --dm-error:   #e57573;  --dm-error-bg:#2c1817;  --dm-error-line:#4d2827;
  --dm-info:    #6ea8e6;  --dm-info-bg: #15212e;

  --dm-shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
  --dm-shadow-pop:0 14px 44px rgba(0,0,0,.55);

  color-scheme: dark;
}
.lx-legacy{
  --lx-font-display: var(--font-sans);

  /* Каркас = шкала «Сталь» */
  --lx-bg:            var(--steel-100);
  --lx-surface:       var(--steel-0);
  --lx-surface-2:     var(--steel-50);
  --lx-surface-3:     var(--steel-150);
  --lx-hover:         var(--steel-50);
  --lx-sel:           var(--blue-50);
  --lx-border:        var(--steel-300);
  --lx-border-soft:   var(--steel-200);
  --lx-border-strong: var(--steel-400);

  --lx-text:   var(--steel-900);
  --lx-text-2: var(--steel-700);
  --lx-text-3: var(--steel-500);
  --lx-ink:    var(--steel-900);

  /* Акцент действия — стально-синий линейки */
  --lx-accent:       var(--blue-500);
  --lx-accent-hover: var(--blue-600);
  --lx-accent-active:var(--blue-700);
  --lx-accent-soft:  var(--blue-50);
  --lx-accent-line:  var(--blue-200);
  --lx-on-accent:    #ffffff;
  --lx-link:         var(--blue-600);

  /* Статусы / SLA = светофор линейки */
  --lx-ok-bg:var(--ok-bg);     --lx-ok-fg:var(--ok-fg);     --lx-ok-line:var(--ok-border);     --lx-ok-solid:var(--ok-solid);
  --lx-warn-bg:var(--warn-bg); --lx-warn-fg:var(--warn-fg); --lx-warn-line:var(--warn-border); --lx-warn-solid:var(--warn-solid);
  --lx-crit-bg:var(--over-bg); --lx-crit-fg:var(--over-fg); --lx-crit-line:var(--over-border); --lx-crit-solid:var(--over-solid);
  --lx-info-bg:#e3eef8;        --lx-info-fg:#185c95;        --lx-info-line:#b9d3ea;            --lx-info-solid:var(--blue-500);
  --lx-mute-bg:var(--neutral-bg); --lx-mute-fg:var(--neutral-fg); --lx-mute-line:var(--neutral-border);

  /* AI-слой — приглушённый аметист (как «повторная проверка» в СЭД) */
  --lx-ai:#6b4fa3; --lx-ai-bg:#ece8f5; --lx-ai-line:#d6ccec; --lx-ai-2:#8a6fc4;

  /* Геометрия «угловатая», деловая */
  --lx-r:var(--radius-md); --lx-r-lg:var(--radius-lg); --lx-r-sm:var(--radius-sm);
  --lx-shadow:0 1px 2px rgba(28,33,42,.06);
  --lx-shadow-pop:0 12px 32px rgba(28,33,42,.18);
  --lx-ring:var(--focus-ring);
}
[data-theme="dark"] .lx-legacy{
  --lx-bg:            #14171c;
  --lx-surface:       #1b1f26;
  --lx-surface-2:     #20252d;
  --lx-surface-3:     #272d36;
  --lx-hover:         #232932;
  --lx-sel:           #1d2a3a;
  --lx-border:        #333b46;
  --lx-border-soft:   #2a313b;
  --lx-border-strong: #47505c;

  --lx-text:   #e7eaee;
  --lx-text-2: #aeb6c0;
  --lx-text-3: #7f8894;
  --lx-ink:    #e7eaee;

  --lx-accent:       #4d94d8;
  --lx-accent-hover: #64a5e0;
  --lx-accent-active:#7db5e8;
  --lx-accent-soft:  #1d2c3d;
  --lx-accent-line:  #2e4660;
  --lx-on-accent:    #0e1117;
  --lx-link:         #64a5e0;

  --lx-ok-bg:#1a2a21;   --lx-ok-fg:#7fc498;  --lx-ok-line:#2d4535;  --lx-ok-solid:#3f8f5b;
  --lx-warn-bg:#2b2418; --lx-warn-fg:#d8ab5b; --lx-warn-line:#453a24; --lx-warn-solid:#c08a1e;
  --lx-crit-bg:#2e1e1e; --lx-crit-fg:#e28a82; --lx-crit-line:#4a2e2c; --lx-crit-solid:#c24545;
  --lx-info-bg:#1b2735; --lx-info-fg:#8fb8e2; --lx-info-line:#2c3f57; --lx-info-solid:#3d83bf;
  --lx-mute-bg:#242830; --lx-mute-fg:#9ca4ae; --lx-mute-line:#333b46;

  --lx-ai:#a58ad6; --lx-ai-bg:#26203a; --lx-ai-line:#3d3457; --lx-ai-2:#b9a3e4;

  --lx-shadow:0 1px 2px rgba(0,0,0,.5);
  --lx-shadow-pop:0 14px 36px rgba(0,0,0,.6);
  --lx-ring:0 0 0 2px var(--lx-surface), 0 0 0 4px rgba(77,148,216,.55);
}
.lx-legacy *,
.lx-legacy *::before,
.lx-legacy *::after{ box-sizing: border-box; }
.lx-legacy{ -webkit-text-size-adjust: 100%; }
.lx-legacy{
  margin: 0;
  font: var(--text-body);
  color: var(--text);
  background: var(--app-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lx-legacy h1,
.lx-legacy h2,
.lx-legacy h3,
.lx-legacy h4,
.lx-legacy p,
.lx-legacy figure{ margin: 0; }
.lx-legacy a{ color: var(--text-link); text-decoration: none; }
.lx-legacy a:hover{ text-decoration: underline; }
.lx-legacy button{ font-family: inherit; }
.lx-legacy .nk-tnum{ font-variant-numeric: tabular-nums; }
.lx-legacy ::selection{ background: var(--blue-100); }
.lx-legacy *{
  scrollbar-width: thin;
  scrollbar-color: var(--steel-400) transparent;
}
.lx-legacy *::-webkit-scrollbar{ width: 12px; height: 12px; }
.lx-legacy *::-webkit-scrollbar-thumb{
  background: var(--steel-400);
  border: 3px solid var(--app-bg);
  border-radius: 8px;
}
.lx-legacy{margin:0;background:var(--lx-bg)}
.lx-legacy{font:400 15px/1.5 var(--font-sans);color:var(--lx-text)}
.lx-legacy a{color:var(--lx-link)}
.lx-legacy a:hover{color:var(--lx-accent-hover)}
.lx-legacy ::selection{background:var(--lx-accent-soft);color:var(--lx-text)}
.lx-legacy *{scrollbar-width:thin;scrollbar-color:var(--lx-border-strong) transparent}
.lx-legacy *::-webkit-scrollbar{width:11px;height:11px}
.lx-legacy *::-webkit-scrollbar-thumb{background:var(--lx-border-strong);border:3px solid transparent;background-clip:content-box;border-radius:var(--lx-r-lg)}
.lx-legacy .lucide,
.lx-legacy [data-lucide]{width:16px;height:16px;stroke-width:1.9}
.lx-legacy .lx{min-height:100vh;display:flex;flex-direction:column;background:var(--lx-bg)}
.lx-legacy .lx-top{position:sticky;top:0;z-index:40;background:var(--lx-surface);border-bottom:1px solid var(--lx-border)}
.lx-legacy .lx-top__in{display:flex;align-items:center;gap:14px;height:58px;padding:0 20px;max-width:1660px;margin:0 auto}
.lx-legacy .lx-brand{display:flex;align-items:center;gap:11px;text-decoration:none}
.lx-legacy .lx-mark{width:36px;height:36px;border-radius:var(--lx-r-lg);background:var(--steel-800);color:#fff;display:flex;align-items:center;justify-content:center;font:700 15px/1 var(--lx-font-display);letter-spacing:.02em;flex:none}
.lx-legacy .lx-brand b{display:block;font:700 16px/1.15 var(--lx-font-display);color:var(--lx-ink);white-space:nowrap}
.lx-legacy .lx-brand small{display:block;font:400 11.5px/1.2 var(--font-narrow);color:var(--lx-text-3);letter-spacing:.03em;text-transform:uppercase}
.lx-legacy .lx-sp{flex:1}
.lx-legacy .lx-tabs{display:flex;gap:2px;margin-left:12px;flex-wrap:nowrap}
.lx-legacy .lx-tab{display:flex;align-items:center;gap:7px;height:38px;padding:0 13px;border:none;background:none;border-radius:var(--lx-r);font:400 14px var(--font-sans);color:var(--lx-text-2);cursor:pointer;white-space:nowrap}
.lx-legacy .lx-tab:hover{background:var(--lx-hover);color:var(--lx-text)}
.lx-legacy .lx-tab[data-on="true"]{background:var(--lx-accent-soft);color:var(--lx-accent);font-weight:700;box-shadow:inset 0 0 0 1px var(--lx-accent-line)}
.lx-legacy .lx-tab-n{min-width:19px;height:19px;padding:0 5px;border-radius:99px;background:var(--lx-crit-solid);color:#fff;font:700 11px/19px var(--font-sans);text-align:center}
.lx-legacy .lx-tab[data-on="true"] .lx-tab-n{background:var(--lx-accent)}
.lx-legacy .lx-tab-n[data-tone="mute"]{background:var(--lx-border-strong)}
.lx-legacy .lx-seg{display:flex;border:1px solid var(--lx-border-strong);border-radius:var(--lx-r);overflow:hidden}
.lx-legacy .lx-seg button{display:flex;align-items:center;gap:6px;height:32px;padding:0 11px;border:none;border-right:1px solid var(--lx-border);background:var(--lx-surface);color:var(--lx-text-2);font:400 13px var(--font-sans);cursor:pointer;white-space:nowrap}
.lx-legacy .lx-seg button:last-child{border-right:none}
.lx-legacy .lx-seg button:hover{background:var(--lx-hover)}
.lx-legacy .lx-seg button[data-on="true"]{background:var(--lx-accent);color:var(--lx-on-accent);font-weight:700}
.lx-legacy .lx-ico{width:34px;height:34px;border:1px solid var(--lx-border);border-radius:var(--lx-r);background:var(--lx-surface);color:var(--lx-text-2);display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;flex:none}
.lx-legacy .lx-ico:hover{background:var(--lx-hover);color:var(--lx-text)}
.lx-legacy .lx-ico[data-on="true"]{border-color:var(--lx-accent-line);background:var(--lx-accent-soft);color:var(--lx-accent)}
.lx-legacy .lx-ico-dot{position:absolute;top:-3px;right:-3px;min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:var(--lx-crit-solid);color:#fff;font:700 10px/16px var(--font-sans)}
.lx-legacy .lx-user{display:flex;align-items:center;gap:9px;padding-left:13px;border-left:1px solid var(--lx-border)}
.lx-legacy .lx-av{width:33px;height:33px;border-radius:50%;background:var(--lx-accent-soft);color:var(--lx-accent);border:1px solid var(--lx-accent-line);display:flex;align-items:center;justify-content:center;font:700 12.5px var(--font-sans);flex:none}
.lx-legacy .lx-av[data-size="sm"]{width:26px;height:26px;font-size:11px}
.lx-legacy .lx-av[data-size="lg"]{width:44px;height:44px;font-size:16px}
.lx-legacy .lx-av[data-tone="ink"]{background:var(--lx-info-bg);color:var(--lx-info-fg);border-color:var(--lx-info-line)}
.lx-legacy .lx-user-m{line-height:1.25;min-width:0}
.lx-legacy .lx-user-m b{display:block;font:700 13.5px var(--font-sans);color:var(--lx-text);white-space:nowrap}
.lx-legacy .lx-user-m span{display:block;font:400 11.5px var(--font-sans);color:var(--lx-text-3);white-space:nowrap}
.lx-legacy .lx-main{width:100%;max-width:1660px;margin:0 auto;padding:20px 20px 56px;flex:1}
.lx-legacy .lx-crumb{display:flex;align-items:center;gap:7px;font:400 13px var(--font-sans);color:var(--lx-text-3);margin-bottom:10px}
.lx-legacy .lx-crumb button{border:none;background:none;padding:0;color:var(--lx-link);font:400 13px var(--font-sans);cursor:pointer}
.lx-legacy .lx-crumb button:hover{text-decoration:underline}
.lx-legacy .lx-h1{font:700 24px/1.2 var(--lx-font-display);color:var(--lx-ink)}
.lx-legacy .lx-h2{font:700 18px/1.25 var(--lx-font-display);color:var(--lx-ink)}
.lx-legacy .lx-h3{font:700 14px/1.3 var(--font-sans);color:var(--lx-text)}
.lx-legacy .lx-lbl{font:700 11px var(--font-narrow);letter-spacing:.08em;text-transform:uppercase;color:var(--lx-text-3)}
.lx-legacy .lx-mut{color:var(--lx-text-3)}
.lx-legacy .lx-sec{color:var(--lx-text-2)}
.lx-legacy .lx-num{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
.lx-legacy .lx-head{display:flex;align-items:flex-end;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.lx-legacy .lx-head p{font:400 13.5px var(--font-sans);color:var(--lx-text-3);margin-top:4px}
.lx-legacy .lx-head .lx-sp{min-width:20px}
.lx-legacy .lx-hact{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.lx-legacy .lx-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 15px;border:1px solid var(--lx-border-strong);border-radius:var(--lx-r);background:var(--lx-surface);color:var(--lx-text);font:400 14px var(--font-sans);cursor:pointer;white-space:nowrap;text-decoration:none}
.lx-legacy .lx-btn:hover{background:var(--lx-hover);border-color:var(--lx-text-3)}
.lx-legacy .lx-btn:focus-visible{outline:none;box-shadow:var(--lx-ring)}
.lx-legacy .lx-btn i{flex:none}
.lx-legacy .lx-btn[data-kind="primary"]{background:var(--lx-accent);border-color:var(--lx-accent);color:var(--lx-on-accent);font-weight:700}
.lx-legacy .lx-btn[data-kind="primary"]:hover{background:var(--lx-accent-hover);border-color:var(--lx-accent-hover)}
.lx-legacy .lx-btn[data-kind="ink"]{background:var(--lx-ink);border-color:var(--lx-ink);color:#fff;font-weight:700}
.lx-legacy .lx-btn[data-kind="ink"]:hover{filter:brightness(1.15)}
.lx-legacy .lx-btn[data-kind="soft"]{background:var(--lx-accent-soft);border-color:var(--lx-accent-line);color:var(--lx-accent);font-weight:700}
.lx-legacy .lx-btn[data-kind="ghost"]{border-color:transparent;background:none;color:var(--lx-text-2)}
.lx-legacy .lx-btn[data-kind="ghost"]:hover{background:var(--lx-hover);color:var(--lx-text);border-color:transparent}
.lx-legacy .lx-btn[data-kind="ai"]{background:var(--lx-ai-bg);border-color:var(--lx-ai-line);color:var(--lx-ai);font-weight:700}
.lx-legacy .lx-btn[data-kind="ai"]:hover{background:var(--lx-ai);color:#fff;border-color:var(--lx-ai)}
.lx-legacy .lx-btn[data-kind="danger"]{background:var(--lx-crit-bg);border-color:var(--lx-crit-line);color:var(--lx-crit-fg);font-weight:700}
.lx-legacy .lx-btn[data-kind="danger"]:hover{background:var(--lx-crit-solid);color:#fff;border-color:var(--lx-crit-solid)}
.lx-legacy .lx-btn[data-sz="sm"]{height:30px;padding:0 11px;font-size:13px}
.lx-legacy .lx-btn[data-sz="lg"]{height:44px;padding:0 20px;font-size:15.5px}
.lx-legacy .lx-btn[disabled]{opacity:.45;cursor:default}
.lx-legacy .lx-btn[disabled]:hover{background:var(--lx-surface);border-color:var(--lx-border-strong)}
.lx-legacy .lx-btn[data-block="true"]{width:100%}
.lx-legacy .lx-bdg{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:var(--lx-r-sm);font:700 12px/1.6 var(--font-sans);background:var(--lx-mute-bg);color:var(--lx-mute-fg);box-shadow:inset 0 0 0 1px var(--lx-mute-line);white-space:nowrap}
.lx-legacy .lx-bdg[data-tone="ok"]{background:var(--lx-ok-bg);color:var(--lx-ok-fg);box-shadow:inset 0 0 0 1px var(--lx-ok-line)}
.lx-legacy .lx-bdg[data-tone="warn"]{background:var(--lx-warn-bg);color:var(--lx-warn-fg);box-shadow:inset 0 0 0 1px var(--lx-warn-line)}
.lx-legacy .lx-bdg[data-tone="crit"]{background:var(--lx-crit-bg);color:var(--lx-crit-fg);box-shadow:inset 0 0 0 1px var(--lx-crit-line)}
.lx-legacy .lx-bdg[data-tone="info"]{background:var(--lx-info-bg);color:var(--lx-info-fg);box-shadow:inset 0 0 0 1px var(--lx-info-line)}
.lx-legacy .lx-bdg[data-tone="ai"]{background:var(--lx-ai-bg);color:var(--lx-ai);box-shadow:inset 0 0 0 1px var(--lx-ai-line)}
.lx-legacy .lx-bdg[data-tone="accent"]{background:var(--lx-accent-soft);color:var(--lx-accent);box-shadow:inset 0 0 0 1px var(--lx-accent-line)}
.lx-legacy .lx-bdg i{width:13px;height:13px}
.lx-legacy .lx-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border:1px solid var(--lx-border);border-radius:99px;background:var(--lx-surface-2);font:400 12.5px var(--font-sans);color:var(--lx-text-2);white-space:nowrap}
.lx-legacy .lx-chip b{font-weight:700;color:var(--lx-text)}
.lx-legacy .lx-chip button{border:none;background:none;padding:0;color:var(--lx-text-3);cursor:pointer;display:flex}
.lx-legacy .lx-chip button:hover{color:var(--lx-crit-fg)}
.lx-legacy .lx-chips{display:flex;gap:6px;flex-wrap:wrap}
.lx-legacy .lx-card{background:var(--lx-surface);border:1px solid var(--lx-border);border-radius:var(--lx-r-lg);box-shadow:var(--lx-shadow)}
.lx-legacy .lx-card[data-pad="true"]{padding:16px 18px}
.lx-legacy .lx-ph{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--lx-border-soft)}
.lx-legacy .lx-ph .lx-h2,
.lx-legacy .lx-ph .lx-h3{margin-right:auto}
.lx-legacy .lx-pb{padding:16px}
.lx-legacy .lx-grid{display:grid;gap:14px}
.lx-legacy .lx-row{display:flex;gap:10px;align-items:center}
.lx-legacy .lx-col{display:flex;flex-direction:column;gap:12px;min-width:0}
.lx-legacy .lx-note{border-left:3px solid var(--lx-accent);background:var(--lx-accent-soft);border-radius:0 var(--lx-r) var(--lx-r) 0;padding:11px 14px;font:400 13.5px/1.5 var(--font-sans);color:var(--lx-text-2)}
.lx-legacy .lx-note[data-tone="ok"]{border-left-color:var(--lx-ok-solid);background:var(--lx-ok-bg)}
.lx-legacy .lx-note[data-tone="warn"]{border-left-color:var(--lx-warn-solid);background:var(--lx-warn-bg)}
.lx-legacy .lx-note[data-tone="crit"]{border-left-color:var(--lx-crit-solid);background:var(--lx-crit-bg)}
.lx-legacy .lx-note[data-tone="ai"]{border-left-color:var(--lx-ai);background:var(--lx-ai-bg)}
.lx-legacy .lx-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:5px;font:400 13px/1.5 var(--font-sans);color:var(--lx-text-2)}
.lx-legacy .lx-empty{padding:44px 20px;text-align:center;color:var(--lx-text-3)}
.lx-legacy .lx-empty i{width:34px;height:34px;color:var(--lx-border-strong);margin-bottom:8px}
.lx-legacy .lx-empty b{display:block;font:700 15px var(--font-sans);color:var(--lx-text-2);margin-bottom:4px}
.lx-legacy .lx-kv{display:grid;grid-template-columns:auto 1fr;gap:7px 14px;font:400 13.5px var(--font-sans)}
.lx-legacy .lx-kv dt{color:var(--lx-text-3);white-space:nowrap}
.lx-legacy .lx-kv dd{margin:0;color:var(--lx-text)}
.lx-legacy .lx-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:11px 14px;background:var(--lx-surface);border:1px solid var(--lx-border);border-radius:var(--lx-r-lg);margin-bottom:12px}
.lx-legacy .lx-inp,
.lx-legacy .lx-sel,
.lx-legacy .lx-ta{border:1px solid var(--lx-border-strong);border-radius:var(--lx-r);background:var(--lx-surface);color:var(--lx-text);font:400 14px var(--font-sans);padding:0 10px;height:34px;max-width:100%}
.lx-legacy .lx-ta{height:auto;padding:9px 11px;line-height:1.55;resize:vertical;width:100%}
.lx-legacy .lx-inp:focus,
.lx-legacy .lx-sel:focus,
.lx-legacy .lx-ta:focus{outline:none;border-color:var(--lx-accent);box-shadow:0 0 0 3px var(--lx-accent-soft)}
.lx-legacy .lx-sel{padding-right:26px;appearance:none;background-image:linear-gradient(45deg,transparent 49%,var(--lx-text-3) 50%),linear-gradient(-45deg,transparent 49%,var(--lx-text-3) 50%);background-size:5px 5px,5px 5px;background-position:calc(100% - 14px) 15px,calc(100% - 9px) 15px;background-repeat:no-repeat}
.lx-legacy .lx-search{position:relative;flex:1;min-width:200px}
.lx-legacy .lx-search i{position:absolute;left:10px;top:9px;color:var(--lx-text-3)}
.lx-legacy .lx-search input{width:100%;padding-left:32px}
.lx-legacy .lx-field{display:flex;flex-direction:column;gap:5px}
.lx-legacy .lx-field>label{font:700 12.5px var(--font-sans);color:var(--lx-text-2)}
.lx-legacy .lx-field>label span{font-weight:400;color:var(--lx-text-3)}
.lx-legacy .lx-field .lx-req{color:var(--lx-crit-fg)}
.lx-legacy .lx-hint{font:400 12px/1.45 var(--font-sans);color:var(--lx-text-3)}
.lx-legacy .lx-sw{display:flex;gap:0;border:1px solid var(--lx-border-strong);border-radius:var(--lx-r);overflow:hidden;width:fit-content}
.lx-legacy .lx-sw button{height:34px;padding:0 13px;border:none;border-right:1px solid var(--lx-border);background:var(--lx-surface);color:var(--lx-text-2);font:400 13.5px var(--font-sans);cursor:pointer}
.lx-legacy .lx-sw button:last-child{border-right:none}
.lx-legacy .lx-sw button:hover{background:var(--lx-hover)}
.lx-legacy .lx-sw button[data-on="true"]{background:var(--lx-accent-soft);color:var(--lx-accent);font-weight:700}
.lx-legacy .lx-toggle{width:40px;height:22px;border-radius:99px;border:1px solid var(--lx-border-strong);background:var(--lx-surface-3);position:relative;cursor:pointer;flex:none;padding:0}
.lx-legacy .lx-toggle::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--lx-text-3);transition:.15s}
.lx-legacy .lx-toggle[data-on="true"]{background:var(--lx-accent-soft);border-color:var(--lx-accent)}
.lx-legacy .lx-toggle[data-on="true"]::after{left:20px;background:var(--lx-accent)}
.lx-legacy .lx-tblw{background:var(--lx-surface);border:1px solid var(--lx-border);border-radius:var(--lx-r-lg);overflow:hidden}
.lx-legacy .lx-tbl{width:100%;border-collapse:collapse}
.lx-legacy .lx-tbl th{background:var(--lx-surface-3);border-bottom:1px solid var(--lx-border);padding:9px 12px;text-align:left;font:700 11.5px var(--font-narrow);letter-spacing:.06em;text-transform:uppercase;color:var(--lx-text-2);white-space:nowrap}
.lx-legacy .lx-tbl th[data-sort]{cursor:pointer;user-select:none}
.lx-legacy .lx-tbl th[data-sort]:hover{color:var(--lx-accent)}
.lx-legacy .lx-tbl td{border-bottom:1px solid var(--lx-border-soft);padding:11px 12px;font:400 13.5px var(--font-sans);vertical-align:top}
.lx-legacy .lx-tbl tbody tr:hover{background:var(--lx-hover)}
.lx-legacy .lx-tbl tbody tr[data-on="true"]{background:var(--lx-sel)}
.lx-legacy .lx-tbl tbody tr:last-child td{border-bottom:none}
.lx-legacy .lx-tbl .lx-r{text-align:right}
.lx-legacy .lx-tbl .lx-c{text-align:center}
.lx-legacy .lx-tl{border:none;background:none;padding:0;text-align:left;font:700 14px var(--font-sans);color:var(--lx-text);cursor:pointer}
.lx-legacy .lx-tl:hover{color:var(--lx-accent);text-decoration:underline}
.lx-legacy .lx-tsub{display:block;font:400 12.5px var(--font-sans);color:var(--lx-text-3);margin-top:3px}
.lx-legacy .lx-who{display:flex;align-items:center;gap:8px;white-space:nowrap}
.lx-legacy .lx-who b{font:400 13.5px var(--font-sans)}
.lx-legacy .lx-sla{display:flex;flex-direction:column;gap:4px;min-width:112px}
.lx-legacy .lx-sla-t{font:700 12.5px var(--font-sans)}
.lx-legacy .lx-sla[data-tone="ok"] .lx-sla-t{color:var(--lx-ok-fg)}
.lx-legacy .lx-sla[data-tone="warn"] .lx-sla-t{color:var(--lx-warn-fg)}
.lx-legacy .lx-sla[data-tone="crit"] .lx-sla-t{color:var(--lx-crit-fg)}
.lx-legacy .lx-sla-bar{height:4px;border-radius:2px;background:var(--lx-surface-3);overflow:hidden}
.lx-legacy .lx-sla-bar i{display:block;height:100%;border-radius:2px}
.lx-legacy .lx-sla[data-tone="ok"] .lx-sla-bar i{background:var(--lx-ok-solid)}
.lx-legacy .lx-sla[data-tone="warn"] .lx-sla-bar i{background:var(--lx-warn-solid)}
.lx-legacy .lx-sla[data-tone="crit"] .lx-sla-bar i{background:var(--lx-crit-solid)}
.lx-legacy .lx-rowline{box-shadow:inset 3px 0 0 var(--lx-crit-solid)}
.lx-legacy .lx-rowline[data-tone="warn"]{box-shadow:inset 3px 0 0 var(--lx-warn-solid)}
.lx-legacy .lx-split{display:grid;grid-template-columns:minmax(0,1fr) 392px;gap:16px;align-items:start}
@media (max-width:1240px){
.lx-legacy .lx-split{grid-template-columns:minmax(0,1fr)}
}
.lx-legacy .lx-doc-h{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border-bottom:1px solid var(--lx-border-soft)}
.lx-legacy .lx-doc-h h1{font:700 20px/1.3 var(--lx-font-display);color:var(--lx-ink)}
.lx-legacy .lx-doc-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px}
.lx-legacy .lx-stabs{display:flex;gap:2px;padding:0 14px;border-bottom:1px solid var(--lx-border-soft);background:var(--lx-surface-2)}
.lx-legacy .lx-stab{height:42px;padding:0 14px;border:none;background:none;border-bottom:2.5px solid transparent;font:400 14px var(--font-sans);color:var(--lx-text-2);cursor:pointer;display:flex;align-items:center;gap:7px}
.lx-legacy .lx-stab:hover{color:var(--lx-text)}
.lx-legacy .lx-stab[data-on="true"]{color:var(--lx-accent);border-bottom-color:var(--lx-accent);font-weight:700}
.lx-legacy .lx-stab-n{font:700 11px var(--font-sans);background:var(--lx-surface-3);color:var(--lx-text-2);border-radius:99px;padding:1px 6px}
.lx-legacy .lx-file{display:flex;align-items:center;gap:11px;padding:10px 12px;border:1px solid var(--lx-border);border-radius:var(--lx-r);background:var(--lx-surface-2)}
.lx-legacy .lx-file i{color:var(--lx-text-3);flex:none}
.lx-legacy .lx-file b{font:400 13.5px var(--font-sans);color:var(--lx-text)}
.lx-legacy .lx-file small{display:block;font:400 12px var(--font-mono);color:var(--lx-text-3)}
.lx-legacy .lx-drop{border:1.5px dashed var(--lx-border-strong);border-radius:var(--lx-r-lg);padding:22px;text-align:center;background:var(--lx-surface-2);color:var(--lx-text-2);cursor:pointer}
.lx-legacy .lx-drop:hover,
.lx-legacy .lx-drop[data-over="true"]{border-color:var(--lx-accent);color:var(--lx-accent);background:var(--lx-accent-soft)}
.lx-legacy .lx-drop i{width:26px;height:26px;margin-bottom:6px}
.lx-legacy .lx-route{display:flex;flex-direction:column}
.lx-legacy .lx-step{display:flex;gap:12px;padding:2px 0}
.lx-legacy .lx-step-i{display:flex;flex-direction:column;align-items:center;flex:none;width:26px}
.lx-legacy .lx-step-d{width:22px;height:22px;border-radius:50%;border:2px solid var(--lx-border-strong);background:var(--lx-surface);display:flex;align-items:center;justify-content:center;font:700 11px var(--font-sans);color:var(--lx-text-3)}
.lx-legacy .lx-step-d i{width:12px;height:12px}
.lx-legacy .lx-step-l{flex:1;width:2px;background:var(--lx-border);min-height:18px;margin:2px 0}
.lx-legacy .lx-step:last-child .lx-step-l{display:none}
.lx-legacy .lx-step[data-st="done"] .lx-step-d{background:var(--lx-ok-solid);border-color:var(--lx-ok-solid);color:#fff}
.lx-legacy .lx-step[data-st="current"] .lx-step-d{border-color:var(--lx-accent);color:var(--lx-accent);background:var(--lx-accent-soft)}
.lx-legacy .lx-step-b{padding-bottom:14px;min-width:0}
.lx-legacy .lx-step-b b{font:700 13.5px var(--font-sans);display:block}
.lx-legacy .lx-step-b span{font:400 12.5px var(--font-sans);color:var(--lx-text-3)}
.lx-legacy .lx-step-b .lx-cond{font:400 12px var(--font-sans);color:var(--lx-text-2)}
.lx-legacy .lx-step-b .lx-cond b{display:inline;font:700 12px var(--font-sans);color:var(--lx-text)}
.lx-legacy .lx-step-b .lx-bdg{font:700 12px/1.6 var(--font-sans)}
.lx-legacy .lx-cmt{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid var(--lx-border-soft)}
.lx-legacy .lx-cmt:last-child{border-bottom:none}
.lx-legacy .lx-cmt-b b{font:700 13.5px var(--font-sans)}
.lx-legacy .lx-cmt-b time{font:400 12px var(--font-sans);color:var(--lx-text-3);margin-left:8px}
.lx-legacy .lx-cmt-b p{font:400 13.5px/1.55 var(--font-sans);color:var(--lx-text-2);margin-top:3px}
.lx-legacy .lx-side{display:flex;flex-direction:column;gap:14px;position:sticky;top:74px}
.lx-legacy .lx-ai{background:var(--lx-surface);border:1px solid var(--lx-ai-line);border-radius:var(--lx-r-lg);overflow:hidden;box-shadow:var(--lx-shadow)}
.lx-legacy .lx-ai-h{display:flex;align-items:center;gap:10px;padding:12px 14px;background:var(--lx-ai-bg);border-bottom:1px solid var(--lx-ai-line)}
.lx-legacy .lx-ai-h b{font:700 14px var(--font-sans);color:var(--lx-ai)}
.lx-legacy .lx-ai-h small{display:block;font:400 11.5px var(--font-sans);color:var(--lx-text-3)}
.lx-legacy .lx-ai-mark{width:28px;height:28px;border-radius:var(--lx-r);background:var(--lx-ai);color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.lx-legacy .lx-ai-b{padding:14px;display:flex;flex-direction:column;gap:12px}
.lx-legacy .lx-ai-sec{font:700 11px var(--font-narrow);letter-spacing:.08em;text-transform:uppercase;color:var(--lx-ai);display:flex;align-items:center;gap:6px}
.lx-legacy .lx-ai-txt{font:400 13.5px/1.6 var(--font-sans);color:var(--lx-text-2)}
.lx-legacy .lx-ai-risk{display:flex;gap:9px;font:400 13px/1.5 var(--font-sans);color:var(--lx-text-2);padding:8px 10px;background:var(--lx-warn-bg);border-radius:var(--lx-r);box-shadow:inset 0 0 0 1px var(--lx-warn-line)}
.lx-legacy .lx-ai-risk i{color:var(--lx-warn-fg);flex:none;margin-top:2px}
.lx-legacy .lx-ai-foot{padding:9px 14px;border-top:1px solid var(--lx-border-soft);background:var(--lx-surface-2);font:400 11.5px/1.45 var(--font-sans);color:var(--lx-text-3);display:flex;gap:7px}
.lx-legacy .lx-ai-foot i{width:13px;height:13px;flex:none;margin-top:2px}
.lx-legacy .lx-conf{display:flex;align-items:center;gap:7px;font:700 12px var(--font-mono);color:var(--lx-ai)}
.lx-legacy .lx-conf-bar{width:52px;height:5px;border-radius:3px;background:var(--lx-ai-bg);overflow:hidden;box-shadow:inset 0 0 0 1px var(--lx-ai-line)}
.lx-legacy .lx-conf-bar i{display:block;height:100%;background:var(--lx-ai)}
.lx-legacy .lx-msgs{display:flex;flex-direction:column;gap:12px;padding:16px;overflow-y:auto;flex:1}
.lx-legacy .lx-msg{display:flex;gap:10px;max-width:88%}
.lx-legacy .lx-msg[data-me="true"]{align-self:flex-end;flex-direction:row-reverse}
.lx-legacy .lx-msg-b{padding:10px 13px;border-radius:var(--lx-r-lg);font:400 13.5px/1.6 var(--font-sans);background:var(--lx-surface-2);border:1px solid var(--lx-border-soft);color:var(--lx-text)}
.lx-legacy .lx-msg[data-me="true"] .lx-msg-b{background:var(--lx-accent);border-color:var(--lx-accent);color:var(--lx-on-accent)}
.lx-legacy .lx-msg-b p+p{margin-top:8px}
.lx-legacy .lx-msg-b ul{margin:8px 0 0;padding-left:18px}
.lx-legacy .lx-msg-b li{margin-bottom:4px}
.lx-legacy .lx-ai-in{display:flex;gap:8px;padding:12px;border-top:1px solid var(--lx-border-soft);background:var(--lx-surface)}
.lx-legacy .lx-ai-in .lx-inp{flex:1;height:40px}
.lx-legacy .lx-sugs{display:flex;gap:7px;flex-wrap:wrap;padding:0 12px 12px}
.lx-legacy .lx-sug{border:1px solid var(--lx-ai-line);background:var(--lx-ai-bg);color:var(--lx-ai);border-radius:99px;padding:6px 12px;font:700 12px var(--font-sans);cursor:pointer}
.lx-legacy .lx-sug:hover{background:var(--lx-ai);color:#fff}
.lx-legacy .lx-typing{display:flex;gap:4px;padding:4px 0}
.lx-legacy .lx-typing i{width:6px;height:6px;border-radius:50%;background:var(--lx-ai);animation:lxb 1s infinite}
.lx-legacy .lx-typing i:nth-child(2){animation-delay:.15s}
.lx-legacy .lx-typing i:nth-child(3){animation-delay:.3s}
@keyframes lxb{0%,60%,100%{opacity:.25}30%{opacity:1}}
.lx-legacy .lx-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(178px,1fr));gap:12px}
.lx-legacy .lx-kpi{background:var(--lx-surface);border:1px solid var(--lx-border);border-radius:var(--lx-r-lg);padding:14px 16px}
.lx-legacy .lx-kpi b{display:block;font:700 30px/1.1 var(--font-sans);color:var(--lx-ink);font-variant-numeric:tabular-nums}
.lx-legacy .lx-kpi span{display:block;font:400 12.5px var(--font-sans);color:var(--lx-text-3);margin-top:4px}
.lx-legacy .lx-kpi small{display:inline-flex;align-items:center;gap:4px;font:700 12px var(--font-sans);margin-top:8px}
.lx-legacy .lx-lawyers{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:12px}
.lx-legacy .lx-lw{background:var(--lx-surface);border:1px solid var(--lx-border);border-radius:var(--lx-r-lg);padding:14px;display:flex;flex-direction:column;gap:11px;cursor:pointer;text-align:left}
.lx-legacy .lx-lw:hover{border-color:var(--lx-accent-line);box-shadow:var(--lx-shadow)}
.lx-legacy .lx-lw[data-tone="crit"]{box-shadow:inset 3px 0 0 var(--lx-crit-solid)}
.lx-legacy .lx-lw[data-tone="warn"]{box-shadow:inset 3px 0 0 var(--lx-warn-solid)}
.lx-legacy .lx-lw[data-tone="info"]{box-shadow:inset 3px 0 0 var(--lx-info-solid)}
.lx-legacy .lx-lw-top{display:flex;gap:10px;align-items:center}
.lx-legacy .lx-lw-top b{display:block;font:700 14.5px var(--font-sans)}
.lx-legacy .lx-lw-top span{display:block;font:400 12px var(--font-sans);color:var(--lx-text-3)}
.lx-legacy .lx-pbar{height:8px;border-radius:4px;background:var(--lx-surface-3);overflow:hidden;display:flex}
.lx-legacy .lx-pbar i{display:block;height:100%}
.lx-legacy .lx-pbar i[data-tone="ok"]{background:var(--lx-ok-solid)}
.lx-legacy .lx-pbar i[data-tone="warn"]{background:var(--lx-warn-solid)}
.lx-legacy .lx-pbar i[data-tone="crit"]{background:var(--lx-crit-solid)}
.lx-legacy .lx-pbar i[data-tone="info"]{background:var(--lx-info-solid)}
.lx-legacy .lx-pbar i[data-tone="accent"]{background:var(--lx-accent)}
.lx-legacy .lx-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center}
.lx-legacy .lx-mini div{background:var(--lx-surface-2);border-radius:var(--lx-r);padding:7px 4px}
.lx-legacy .lx-mini b{display:block;font:700 17px var(--font-sans);color:var(--lx-text);font-variant-numeric:tabular-nums}
.lx-legacy .lx-mini span{font:400 11px var(--font-narrow);color:var(--lx-text-3);text-transform:uppercase;letter-spacing:.04em}
.lx-legacy .lx-dist{display:flex;flex-direction:column;gap:9px}
.lx-legacy .lx-dist-r{display:grid;grid-template-columns:190px 1fr 44px;gap:10px;align-items:center;font:400 13px var(--font-sans)}
.lx-legacy .lx-dist-r span:last-child{text-align:right;font-family:var(--font-mono);color:var(--lx-text-2)}
.lx-legacy .lx-when{display:flex;gap:5px;flex-wrap:wrap}
.lx-legacy .lx-cond{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:var(--lx-r-sm);background:var(--lx-surface-3);font:400 12px var(--font-sans);color:var(--lx-text-2)}
.lx-legacy .lx-cond b{font:700 12px var(--font-sans);color:var(--lx-text)}
.lx-legacy .lx-arrow{color:var(--lx-text-3);display:flex;align-items:center}
.lx-legacy .lx-tval{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.lx-legacy .lx-tadd{display:inline-flex;align-items:center;gap:5px;border:1px dashed var(--lx-border-strong);background:none;border-radius:99px;padding:4px 10px;font:400 12.5px var(--font-sans);color:var(--lx-text-3);cursor:pointer}
.lx-legacy .lx-tadd:hover{border-color:var(--lx-accent);color:var(--lx-accent)}
.lx-legacy .lx-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;background:var(--lx-border-soft);border:1px solid var(--lx-border);border-radius:var(--lx-r-lg);overflow:hidden}
.lx-legacy .lx-cal-hd{background:var(--lx-surface-3);padding:7px 9px;font:700 11px var(--font-narrow);letter-spacing:.06em;text-transform:uppercase;color:var(--lx-text-2);text-align:center}
.lx-legacy .lx-cal-d{background:var(--lx-surface);min-height:92px;padding:7px 8px;display:flex;flex-direction:column;gap:4px}
.lx-legacy .lx-cal-d[data-out="true"]{background:var(--lx-surface-2);color:var(--lx-text-3)}
.lx-legacy .lx-cal-d[data-we="true"]{background:var(--lx-surface-2)}
.lx-legacy .lx-cal-n{font:700 12.5px var(--font-mono);color:var(--lx-text-3)}
.lx-legacy .lx-cal-e{background:var(--lx-accent-soft);border-left:2px solid var(--lx-accent);border-radius:0 3px 3px 0;padding:3px 5px;font:400 11px/1.35 var(--font-sans);color:var(--lx-text);cursor:default}
.lx-legacy .lx-cal-e b{display:block;font:700 11px var(--font-mono);color:var(--lx-accent)}
.lx-legacy .lx-cal-e[data-tone="crit"]{background:var(--lx-crit-bg);border-left-color:var(--lx-crit-solid)}
.lx-legacy .lx-cal-e[data-tone="crit"] b{color:var(--lx-crit-fg)}
.lx-legacy .lx-soon{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px dashed var(--lx-border-strong);border-radius:var(--lx-r);color:var(--lx-text-3);font:400 13px var(--font-sans);background:var(--lx-surface-2)}
.lx-legacy .lx-soon i{color:var(--lx-text-3);flex:none}
.lx-legacy .lx-ov{position:fixed;inset:0;background:rgba(18,20,24,.5);z-index:100;display:flex;align-items:center;justify-content:center;padding:24px}
.lx-legacy .lx-modal{background:var(--lx-surface);border:1px solid var(--lx-border);border-radius:var(--lx-r-lg);box-shadow:var(--lx-shadow-pop);width:620px;max-width:100%;max-height:88vh;display:flex;flex-direction:column}
.lx-legacy .lx-modal[data-w="sm"]{width:460px}
.lx-legacy .lx-modal[data-w="lg"]{width:840px}
.lx-legacy .lx-modal-h{display:flex;align-items:center;gap:12px;padding:15px 18px;border-bottom:1px solid var(--lx-border-soft)}
.lx-legacy .lx-modal-h .lx-h2{margin-right:auto}
.lx-legacy .lx-modal-b{padding:18px;overflow-y:auto;display:flex;flex-direction:column;gap:14px}
.lx-legacy .lx-modal-f{display:flex;gap:9px;justify-content:flex-end;padding:14px 18px;border-top:1px solid var(--lx-border-soft);background:var(--lx-surface-2);border-radius:0 0 var(--lx-r-lg) var(--lx-r-lg)}
.lx-legacy .lx-toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:200;display:flex;align-items:center;gap:10px;padding:12px 18px;border-radius:var(--lx-r-lg);background:var(--steel-800);color:#fff;box-shadow:var(--lx-shadow-pop);font:400 14px var(--font-sans);animation:lxup .18s ease-out}
[data-theme="dark"] .lx-legacy .lx-toast{background:var(--lx-surface-3);border:1px solid var(--lx-border-strong);color:var(--lx-text)}
.lx-legacy .lx-toast i{color:var(--lx-ok-solid)}
@keyframes lxup{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}
.lx-legacy .lx-drawer{position:fixed;top:0;right:0;height:100vh;width:420px;max-width:94vw;background:var(--lx-surface);border-left:1px solid var(--lx-border);box-shadow:var(--lx-shadow-pop);z-index:110;display:flex;flex-direction:column}
.lx-legacy .lx-menu{position:absolute;top:calc(100% + 5px);right:0;min-width:230px;background:var(--lx-surface);border:1px solid var(--lx-border);border-radius:var(--lx-r-lg);box-shadow:var(--lx-shadow-pop);padding:5px;z-index:60}
.lx-legacy .lx-menu button{display:flex;align-items:center;gap:9px;width:100%;padding:9px 11px;border:none;background:none;border-radius:var(--lx-r);font:400 13.5px var(--font-sans);color:var(--lx-text);cursor:pointer;text-align:left}
.lx-legacy .lx-menu button:hover{background:var(--lx-hover)}
.lx-legacy .lx-menu button[data-on="true"]{color:var(--lx-accent);font-weight:700;background:var(--lx-accent-soft)}
.lx-legacy .lx-menu-h{padding:8px 11px 5px;font:700 11px var(--font-narrow);letter-spacing:.07em;text-transform:uppercase;color:var(--lx-text-3)}
.lx-legacy .lx-rel{position:relative}
@media print{
.lx-legacy .lx-top,
.lx-legacy .lx-side{display:none}
}
.lx-legacy .lx-search>svg{position:absolute;left:10px;top:9px;width:15px;height:15px;color:var(--lx-text-3)}
.lx-legacy .lx-empty>svg{width:34px;height:34px;color:var(--lx-border-strong);margin-bottom:8px}
.lx-legacy .lx-drop>svg{width:26px;height:26px;margin-bottom:6px}
.lx-legacy .lx-ai-risk>svg{color:var(--lx-warn-fg);flex:none;margin-top:2px;width:14px;height:14px}
.lx-legacy .lx-ai-foot>svg{width:13px;height:13px;flex:none;margin-top:2px}
.lx-legacy .lx-toast>svg{color:var(--lx-ok-solid);flex:none}
.lx-legacy .lx-toast[data-tone="crit"]>svg,
.lx-legacy .lx-toast[data-tone="crit"] i{color:var(--lx-crit-solid)}
.lx-legacy .lx-bdg>svg{width:13px;height:13px;flex:none}
.lx-legacy .lx-btn>svg,
.lx-legacy .lx-tab>svg,
.lx-legacy .lx-seg button>svg,
.lx-legacy .lx-menu button>svg,
.lx-legacy .lx-stab>svg,
.lx-legacy .lx-soon>svg,
.lx-legacy .lx-file>svg,
.lx-legacy .lx-ph>svg{flex:none}
.lx-legacy .lx-soon>svg,
.lx-legacy .lx-file>svg{color:var(--lx-text-3)}
.lx-legacy .lx-step-d>svg{width:12px;height:12px}
.lx-legacy .lx-cmt>svg{flex:none}
.lx-legacy .lx-tabs{min-width:0;overflow-x:auto;scrollbar-width:none}
.lx-legacy .lx-tabs::-webkit-scrollbar{display:none}
.lx-legacy .lx-sw button,
.lx-legacy .lx-seg button,
.lx-legacy .lx-tab,
.lx-legacy .lx-btn{white-space:nowrap}
.lx-legacy .lx-ph .lx-h3,
.lx-legacy .lx-ph .lx-h2{white-space:nowrap}
@media (max-width:1520px){
.lx-legacy .lx-user-m{display:none}
.lx-legacy .lx-brand small{display:none}
}
@media (max-width:1340px){
.lx-legacy .lx-seg button span{display:none}
.lx-legacy .lx-seg button{padding:0 10px}
}
@media (max-width:1024px){
.lx-legacy .lx-tab>span:not(.lx-tab-n){display:none}
.lx-legacy .lx-tab{padding:0 10px}
.lx-legacy .lx-tab[data-on="true"]>span:not(.lx-tab-n){display:inline}
.lx-legacy .lx-tab[data-on="true"]{padding:0 12px}
}
@media (max-width:1060px){
.lx-legacy .lx-top__in>.lx-btn[data-kind="primary"] span{display:none}
}
.lx-legacy .lx-agent{display:flex;gap:16px;align-items:flex-start;padding:18px 20px;margin-bottom:16px;border:1px solid var(--lx-ai-line);border-radius:var(--lx-r-lg);background:var(--lx-ai-bg)}
.lx-legacy .lx-agent__i{flex:0 0 auto;width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:var(--lx-ai);color:#fff}
.lx-legacy .lx-agent__h{font:700 17px/1.3 var(--font-sans);color:var(--lx-text)}
.lx-legacy .lx-agent__p{margin:5px 0 0;font:400 13.5px/1.6 var(--font-sans);color:var(--lx-text-2);max-width:74ch;text-wrap:pretty}
.lx-legacy .lx-agent__m{flex:0 0 auto;display:flex;gap:20px;padding-left:20px;border-left:1px solid var(--lx-ai-line)}
.lx-legacy .lx-agent__m div{display:flex;flex-direction:column;gap:2px}
.lx-legacy .lx-agent__m b{font:700 20px/1 var(--font-mono);color:var(--lx-ai)}
.lx-legacy .lx-agent__m span{font:400 11.5px var(--font-sans);color:var(--lx-text-3);white-space:nowrap}
.lx-legacy .lx-draft{display:flex;gap:12px;align-items:center;padding:11px 13px;border:1px solid var(--lx-border);border-radius:var(--lx-r);background:var(--lx-surface-2)}
.lx-legacy .lx-draft:hover{border-color:var(--lx-ai-line)}
.lx-legacy .lx-log{display:flex;flex-direction:column;gap:11px}
.lx-legacy .lx-log__i{display:flex;gap:10px;align-items:flex-start}
.lx-legacy .lx-log__d{flex:0 0 auto;width:24px;height:24px;display:grid;place-items:center;border-radius:7px;background:var(--lx-ai-bg);color:var(--lx-ai)}
.lx-legacy .lx-log__t{display:block;font:400 12.5px/1.5 var(--font-sans);color:var(--lx-text)}
.lx-legacy .lx-seg[data-env="true"] button[data-on="true"]{background:var(--lx-ai);color:#fff}
.lx-legacy .lx[data-env="web"] .lx-mark{border-radius:9px}
.lx-legacy .lx-ob{display:flex;gap:12px;align-items:flex-start;padding:11px 12px;border:1px solid var(--lx-border);border-radius:var(--lx-r);background:var(--lx-surface-2)}
.lx-legacy .lx-ob[data-done="true"]{background:var(--lx-ok-bg);border-color:var(--lx-ok-line)}
.lx-legacy .lx-ob-n{flex:none;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid var(--lx-border-strong);background:var(--lx-surface);font:700 12px var(--font-sans);color:var(--lx-text-3)}
.lx-legacy .lx-ob-n[data-done="true"]{background:var(--lx-ok-solid);border-color:var(--lx-ok-solid);color:#fff}
.lx-legacy .lx-ob-n i{width:13px;height:13px}
.lx-legacy .lx-h4{font:700 12px var(--font-sans);letter-spacing:.06em;text-transform:uppercase;color:var(--lx-text-3)}
.lx-legacy .lx-cond[data-off="true"]{opacity:.55;text-decoration:line-through}
.lx-legacy .lx-tbl tr[data-on="true"]{background:var(--lx-accent-soft)}
.lx-legacy .lx-flow{display:flex;flex-wrap:wrap;gap:6px}
.lx-legacy .lx-flow-s{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:99px;border:1px solid var(--lx-border);background:var(--lx-surface-2);font:400 12.5px var(--font-sans);color:var(--lx-text-3)}
.lx-legacy .lx-flow-s i{width:13px;height:13px}
.lx-legacy .lx-flow-s[data-st="done"]{background:var(--lx-ok-bg);border-color:var(--lx-ok-line);color:var(--lx-ok-fg)}
.lx-legacy .lx-flow-s[data-st="now"]{background:var(--lx-accent);border-color:var(--lx-accent);color:#fff;font-weight:700}
.lx-legacy .lx-ext{display:flex;flex-direction:column;gap:2px}
.lx-legacy .lx-ext-r{display:flex;gap:10px;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--lx-border-soft);font:400 13px var(--font-sans);color:var(--lx-text-2)}
.lx-legacy .lx-ext-r:last-child{border-bottom:none}
.lx-legacy .lx-ext-r b{font:700 13px var(--font-sans);color:var(--lx-text);text-align:right}
.lx-legacy .lx-src{display:inline-flex;align-items:center;gap:5px;font:400 11.5px var(--font-sans);color:var(--lx-text-3)}
.lx-legacy .lx-src i{width:12px;height:12px}
.lx-legacy .lx-pbf{border:1px solid var(--lx-border);border-radius:var(--lx-r-lg);background:var(--lx-surface);overflow:hidden}
.lx-legacy .lx-pbf-h{display:flex;gap:10px;align-items:center;padding:11px 14px;background:var(--lx-surface-2);border-bottom:1px solid var(--lx-border)}
.lx-legacy .lx-pbf-b{padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.lx-legacy .lx-cite{border-left:3px solid var(--lx-border-strong);padding:2px 0 2px 11px;font:400 13px/1.55 var(--font-mono);color:var(--lx-text-2)}
.lx-legacy .lx-pbf[data-v="bad"] .lx-cite{border-left-color:var(--lx-crit-solid)}
.lx-legacy .lx-pbf[data-v="warn"] .lx-cite{border-left-color:var(--lx-warn-solid)}
.lx-legacy .lx-pbf[data-v="ok"] .lx-cite{border-left-color:var(--lx-ok-solid)}
.lx-legacy .lx-fix{background:var(--lx-ok-bg);border:1px solid var(--lx-ok-line);border-radius:var(--lx-r);padding:9px 12px;font:400 13px/1.55 var(--font-sans);color:var(--lx-text)}
.lx-legacy .lx-ladder{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.lx-legacy .lx-faq{border:1px solid var(--lx-border);border-radius:var(--lx-r);background:var(--lx-surface);overflow:hidden}
.lx-legacy .lx-faq-q{display:flex;gap:10px;align-items:center;width:100%;padding:12px 14px;border:none;background:none;text-align:left;cursor:pointer;font:700 13.5px var(--font-sans);color:var(--lx-text)}
.lx-legacy .lx-faq-q:hover{background:var(--lx-surface-2)}
.lx-legacy .lx-faq-a{padding:0 14px 13px 40px;font:400 13.5px/1.6 var(--font-sans);color:var(--lx-text-2)}
.lx-legacy .lx-prog{height:5px;border-radius:99px;background:var(--lx-border);overflow:hidden}
.lx-legacy .lx-prog>span{display:block;height:100%;border-radius:99px;background:var(--lx-accent);transition:width .18s ease}
.lx-legacy .lx-pbf[data-acted="no"]{opacity:.72}
.lx-legacy .lx-auth{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1fr) 1.05fr;background:var(--lx-bg)}
.lx-legacy .lx-auth__form{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:48px 40px;gap:22px}
.lx-legacy .lx-auth__box{width:100%;max-width:412px}
.lx-legacy .lx-auth__sub{font:400 14px/1.6 var(--font-sans);color:var(--lx-text-2);margin:0}
.lx-legacy .lx-auth__modes{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:20px 0 18px}
.lx-legacy .lx-auth__modes button{display:flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid var(--lx-border);border-radius:var(--lx-r);background:var(--lx-surface);color:var(--lx-text-2);font:400 13px var(--font-sans);cursor:pointer;text-align:left}
.lx-legacy .lx-auth__modes button:hover{border-color:var(--lx-border-strong);color:var(--lx-text)}
.lx-legacy .lx-auth__modes button[data-on="true"]{border-color:var(--lx-accent);background:var(--lx-accent-soft);color:var(--lx-accent);font-weight:700}
.lx-legacy .lx-auth__link{border:none;background:none;padding:0;font:400 13px var(--font-sans);color:var(--lx-link);cursor:pointer;text-align:left}
.lx-legacy .lx-auth__link:hover{color:var(--lx-accent-hover);text-decoration:underline}
.lx-legacy .lx-auth__alt{display:flex;align-items:center;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--lx-border);flex-wrap:wrap}
.lx-legacy .lx-auth__legal{width:100%;max-width:412px;font:400 12px/1.55 var(--font-sans);color:var(--lx-text-3)}
.lx-legacy .lx-auth__ten{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid var(--lx-border);border-radius:var(--lx-r-lg);background:var(--lx-surface);cursor:pointer;color:var(--lx-text)}
.lx-legacy .lx-auth__ten:hover{border-color:var(--lx-accent);background:var(--lx-hover)}
.lx-legacy .lx-auth__ten b{display:block;font:700 14px var(--font-sans)}
.lx-legacy .lx-auth__ten small{display:block;font:400 12.5px/1.5 var(--font-sans);color:var(--lx-text-3)}
.lx-legacy .lx-auth__ok{width:44px;height:44px;border-radius:12px;background:var(--lx-ok-bg);color:var(--lx-ok-fg);display:grid;place-items:center;margin-bottom:14px}
.lx-legacy .lx-auth__side{background:var(--steel-900,var(--lx-ink));color:#fff;display:flex;align-items:center;padding:56px 52px}
.lx-legacy .lx-auth__side-in{max-width:520px;display:flex;flex-direction:column;gap:26px}
.lx-legacy .lx-auth__claim{font:700 clamp(26px,3vw,38px)/1.16 var(--lx-font-display);letter-spacing:-.015em}
.lx-legacy .lx-auth__facts{display:grid;grid-template-columns:1fr 1fr;gap:22px 30px}
.lx-legacy .lx-auth__facts b{display:block;font:700 30px/1 var(--lx-font-display);letter-spacing:-.02em}
.lx-legacy .lx-auth__facts span{display:block;font:400 13px/1.5 var(--font-sans);color:color-mix(in oklab,#fff 66%,transparent);margin-top:6px}
.lx-legacy .lx-auth__plat{display:flex;gap:7px;flex-wrap:wrap;padding-top:22px;border-top:1px solid color-mix(in oklab,#fff 18%,transparent)}
.lx-legacy .lx-auth__plat span{font:400 12px var(--font-narrow);letter-spacing:.04em;padding:5px 10px;border-radius:99px;background:color-mix(in oklab,#fff 10%,transparent);color:color-mix(in oklab,#fff 62%,transparent)}
.lx-legacy .lx-auth__plat span[data-on]{background:#fff;color:var(--lx-ink);font-weight:700}
@media(max-width:1080px){
.lx-legacy .lx-auth{grid-template-columns:1fr}
.lx-legacy .lx-auth__side{display:none}
}
@media(max-width:1180px){
.lx-legacy .lx-split{grid-template-columns:1fr}
.lx-legacy .lx-side{order:2}
.lx-legacy .lx-top__in{padding:0 14px;gap:10px}
.lx-legacy .lx-tabs{overflow-x:auto;scrollbar-width:none;margin-left:6px}
.lx-legacy .lx-tabs::-webkit-scrollbar{display:none}
}
@media(max-width:820px){
.lx-legacy .lx-top__in{height:54px}
.lx-legacy .lx-brand small{display:none}
.lx-legacy .lx-seg[data-env] span{display:none}
.lx-legacy .lx-kpis{grid-template-columns:1fr 1fr}
.lx-legacy .lx-head{flex-direction:column;align-items:flex-start;gap:12px}
.lx-legacy .lx-hact{width:100%;flex-wrap:wrap}
.lx-legacy .lx-bar{gap:6px}
.lx-legacy .lx-bar .lx-search{flex:1 1 100%}
.lx-legacy .lx-tblw{overflow-x:auto}
.lx-legacy .lx-tbl{min-width:760px}
.lx-legacy .lx-modal{width:calc(100vw - 24px)!important;max-height:calc(100vh - 24px)}
.lx-legacy .lx-cal-e b{display:block}
}
@media (max-width:390px){
.lx-legacy .lx-kpis{grid-template-columns:1fr}
.lx-legacy .lx-tab>span:not(.lx-tab-n){display:none}
.lx-legacy .lx-tab[data-on="true"]>span:not(.lx-tab-n){display:inline}
.lx-legacy .lx-tab{padding:0 10px}
.lx-legacy .lx-ph{flex-wrap:wrap}
.lx-legacy .lx-auth__form{padding:28px 18px}
.lx-legacy .lx-auth__modes{grid-template-columns:1fr}
.lx-legacy .lx-cal{font-size:11px}
}
.lx-legacy .lx-clip{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.lx-legacy .lx-courts{min-width:0}
.lx-legacy .lx-courts .lx-head{align-items:center}
.lx-legacy .lx-courts-bar{flex-wrap:wrap}
.lx-legacy .lx-courts-bar .lx-search{min-width:220px;flex:1 1 240px}
.lx-legacy .lx-courts-bar .lx-sel{width:auto;max-width:190px}
.lx-legacy .lx-kpis[data-compact="true"]{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.lx-legacy .lx-kpis[data-compact="true"] .lx-kpi{padding:11px 14px;min-width:0;height:100%;box-sizing:border-box}
.lx-legacy .lx-kpis[data-compact="true"] .lx-kpi b{font-size:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lx-legacy .lx-kpis[data-compact="true"] .lx-kpi span{margin-top:2px}
.lx-legacy .lx-kpis[data-compact="true"] .lx-kpi small{margin-top:5px;font-weight:400;display:block}
.lx-legacy .lx-courts-tbl{table-layout:fixed}
.lx-legacy .lx-courts-tbl td{vertical-align:top;overflow:hidden}
.lx-legacy .lx-courts-party{font:400 13.5px/1.4 var(--font-sans)}
.lx-legacy .lx-courts-sum{color:var(--lx-text-2);line-height:1.4}
.lx-legacy .lx-courts-tbl .lx-bdg{white-space:normal;line-height:1.35}
.lx-legacy .lx-courts-tbl .lx-who{min-width:0}
.lx-legacy .lx-hot{margin-bottom:4px}
.lx-legacy .lx-hot-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.lx-legacy .lx-hot-card{display:flex;align-items:center;gap:11px;min-width:0;padding:10px 12px;text-align:left;cursor:pointer;background:var(--lx-surface);border:1px solid var(--lx-border);border-radius:var(--lx-r-lg);color:var(--lx-text-3);font:inherit}
.lx-legacy .lx-hot-card:hover{background:var(--lx-hover)}
.lx-legacy .lx-hot-card[data-on="true"]{border-color:var(--lx-accent-line);box-shadow:inset 0 0 0 1px var(--lx-accent-line)}
.lx-legacy .lx-hot-ic{width:30px;height:30px;flex:none;border-radius:var(--lx-r);display:flex;align-items:center;justify-content:center;background:var(--lx-mute-bg);color:var(--lx-mute-fg)}
.lx-legacy .lx-hot-card[data-tone="warn"] .lx-hot-ic{background:var(--lx-warn-bg);color:var(--lx-warn-fg)}
.lx-legacy .lx-hot-card[data-tone="crit"] .lx-hot-ic{background:var(--lx-crit-bg);color:var(--lx-crit-fg)}
.lx-legacy .lx-hot-card[data-tone="info"] .lx-hot-ic{background:var(--lx-info-bg);color:var(--lx-info-fg)}
.lx-legacy .lx-hot-body{flex:1;min-width:0}
.lx-legacy .lx-hot-n{display:flex;align-items:baseline;gap:7px;font:700 20px/1.15 var(--font-sans);color:var(--lx-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.lx-legacy .lx-hot-l{font:400 13px var(--font-sans);color:var(--lx-text-2);overflow:hidden;text-overflow:ellipsis}
.lx-legacy .lx-hot-f{display:block;font:400 12px var(--font-sans);color:var(--lx-text-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.lx-legacy .lx-hot-card[data-tone="crit"] .lx-hot-f{color:var(--lx-crit-fg)}
.lx-legacy .lx-hot-panel{margin-top:10px;padding:12px 14px;background:var(--lx-surface);border:1px solid var(--lx-border);border-radius:var(--lx-r-lg)}
.lx-legacy .lx-hot-li{display:grid;grid-template-columns:130px minmax(0,1fr) auto;gap:12px;align-items:baseline;padding:7px 4px;border-bottom:1px solid var(--lx-border);cursor:pointer}
.lx-legacy .lx-hot-li:last-of-type{border-bottom:none}
.lx-legacy .lx-hot-li:hover{background:var(--lx-hover)}
.lx-legacy .lx-hot-li[data-unread="true"] .lx-hot-what{font-weight:700}
.lx-legacy .lx-hot-when{font:700 12.5px var(--font-mono);color:var(--lx-text-2);white-space:nowrap}
.lx-legacy .lx-hot-what{font:400 13.5px var(--font-sans);color:var(--lx-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lx-legacy .lx-hot-empty{display:flex;align-items:center;gap:9px;padding:10px 14px;background:var(--lx-surface);border:1px solid var(--lx-border);border-radius:var(--lx-r-lg);font:400 13.5px var(--font-sans);color:var(--lx-text-2)}
.lx-legacy .lx-hot-empty .lucide{color:var(--lx-ok-fg)}
.lx-legacy .lx-kb{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;align-items:stretch}
.lx-legacy .lx-kb-col{flex:1 0 150px;min-width:150px;background:var(--lx-surface-2);border-radius:var(--lx-r-lg);padding:8px;min-height:200px;box-sizing:border-box}
.lx-legacy .lx-kb-col[data-over="true"],
.lx-legacy .lx-kb-done[data-over="true"]{background:var(--lx-accent-soft)}
.lx-legacy .lx-kb-card{background:var(--lx-surface);border:1px solid var(--lx-border);border-radius:var(--lx-r);padding:7px 9px;margin-bottom:6px;min-width:0}
.lx-legacy .lx-kb-card .lx-tsub{margin-top:1px;font-size:12px}
.lx-legacy .lx-kb-done{flex:0 0 44px;display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px 0;border:1px dashed var(--lx-border-strong);border-radius:var(--lx-r-lg);background:var(--lx-surface-2);color:var(--lx-text-2);cursor:pointer;font:600 13px var(--font-sans)}
.lx-legacy .lx-kb-done span{writing-mode:vertical-rl;transform:rotate(180deg)}
.lx-legacy .lx-kb-done:hover{background:var(--lx-hover)}
.lx-legacy .lx-kb-hint{margin:0 0 6px;text-align:right}
@media (max-width:1100px){
.lx-legacy .lx-kpis[data-compact="true"]{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:820px){
.lx-legacy .lx-courts .lx-head{align-items:flex-start}
.lx-legacy .lx-courts .lx-tblw{overflow-x:auto}
.lx-legacy .lx-courts-tbl{min-width:1000px}
.lx-legacy .lx-courts-add .lx-row{flex-wrap:wrap}
.lx-legacy .lx-courts-add .lx-inp{flex:1 1 100%!important}
.lx-legacy .lx-hot-li{grid-template-columns:1fr;gap:2px}
}
@media (max-width:390px){
.lx-legacy .lx-kpis[data-compact="true"]{grid-template-columns:1fr 1fr}
.lx-legacy .lx-hot-row{grid-template-columns:1fr}
}
.lx-legacy .lx-hc{margin-bottom:12px;overflow:visible}
.lx-legacy .lx-hc-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid var(--lx-border)}
.lx-legacy .lx-hc-title{font:700 14px var(--font-sans);color:var(--lx-ink);white-space:nowrap}
.lx-legacy .lx-hc-who{width:auto;max-width:180px;height:32px}
.lx-legacy .lx-hc-nav{display:flex;align-items:center;gap:4px}
.lx-legacy .lx-hc-nav .lx-ico{width:32px;height:32px}
.lx-legacy .lx-hc-today{height:32px}
.lx-legacy .lx-hc-gearw{position:relative}
.lx-legacy .lx-hc-pop{position:absolute;right:0;top:40px;z-index:30;width:min(560px,86vw);padding:4px 14px 12px;background:var(--lx-surface);border:1px solid var(--lx-border-strong);border-radius:var(--lx-r-lg);box-shadow:0 10px 28px rgba(0,0,0,.14)}
.lx-legacy .lx-hc-main{min-width:0;padding:4px 14px 10px}
.lx-legacy .lx-hc-sub{white-space:nowrap}
.lx-legacy .lx-hc-main[data-view="month"],
.lx-legacy .lx-hc-main[data-view="week"]{padding-top:12px}
.lx-legacy .lx-hc-await{margin-top:10px;padding-top:8px;border-top:1px dashed var(--lx-border);display:flex;flex-direction:column;gap:4px;font:400 13px var(--font-sans)}
.lx-legacy .lx-ag-sep{display:flex;align-items:center;gap:10px;margin:8px 0 2px;font:700 12px var(--font-sans);color:var(--lx-text-2)}
.lx-legacy .lx-ag-sep::before,
.lx-legacy .lx-ag-sep::after{content:"";flex:1;height:1px;background:var(--lx-border)}
.lx-legacy .lx-ag-sep span{padding:2px 10px;border-radius:99px;background:var(--lx-surface-2);border:1px solid var(--lx-border)}
.lx-legacy .lx-ag-row{display:grid;grid-template-columns:104px 10px minmax(0,1fr) auto;gap:10px;align-items:center;padding:6px 6px;border-radius:var(--lx-r);cursor:pointer}
.lx-legacy .lx-ag-row:hover{background:var(--lx-hover)}
.lx-legacy .lx-ag-time{font:600 12.5px var(--font-mono);color:var(--lx-text-2);white-space:nowrap}
.lx-legacy .lx-ag-dot{width:9px;height:9px;border-radius:50%;background:var(--lx-accent)}
.lx-legacy .lx-ag-dot[data-tone="warn"]{background:var(--lx-warn-solid)}
.lx-legacy .lx-ag-dot[data-tone="crit"]{background:var(--lx-crit-solid)}
.lx-legacy .lx-ag-dot[data-tone="mute"]{background:var(--lx-border-strong)}
.lx-legacy .lx-ag-text{font:400 13.5px var(--font-sans);color:var(--lx-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lx-legacy .lx-ag-row[data-struck="true"] .lx-ag-text b,
.lx-legacy .lx-ag-row[data-struck="true"] .lx-ag-time{text-decoration:line-through;color:var(--lx-text-3)}
.lx-legacy .lx-ag-row[data-state="held"]{opacity:.65}
.lx-legacy .lx-ag-state{font:700 11px var(--font-sans);font-style:normal;color:var(--lx-warn-fg);margin-left:6px}
.lx-legacy .lx-ag-more{padding:6px 6px 0}
.lx-legacy .lx-cal-e[data-tone="warn"]{background:var(--lx-warn-bg);border-left-color:var(--lx-warn-solid)}
.lx-legacy .lx-cal-e[data-tone="warn"] b{color:var(--lx-warn-fg)}
.lx-legacy .lx-cal-e[data-tone="mute"]{background:var(--lx-surface-2);border-left-color:var(--lx-border-strong)}
.lx-legacy .lx-cal-e[data-tone="mute"] b{color:var(--lx-text-2)}
.lx-legacy .lx-hc-dn{border:none;background:none;padding:0;cursor:pointer;text-align:left;width:fit-content}
.lx-legacy .lx-hc-dn[data-today="true"]{color:var(--lx-on-accent);background:var(--lx-accent);border-radius:99px;padding:0 6px}
.lx-legacy .lx-hc-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--lx-border);border:1px solid var(--lx-border);border-radius:var(--lx-r-lg);overflow:hidden}
.lx-legacy .lx-hc-wcol{background:var(--lx-surface);min-height:190px;padding:6px;display:flex;flex-direction:column;gap:4px;min-width:0}
.lx-legacy .lx-hc-wcol[data-we="true"]{background:var(--lx-surface-2)}
.lx-legacy .lx-hc-wcol[data-today="true"]{box-shadow:inset 0 2px 0 var(--lx-accent)}
.lx-legacy .lx-hc-whd{display:flex;align-items:baseline;gap:6px;border:none;background:none;padding:2px 2px 6px;cursor:pointer;color:var(--lx-text-2);font:400 12px var(--font-sans)}
.lx-legacy .lx-hc-whd b{font:700 16px var(--font-sans);color:var(--lx-ink)}
.lx-legacy .lx-hc-wcol[data-today="true"] .lx-hc-whd b{color:var(--lx-accent)}
.lx-legacy .lx-mm{padding:10px 12px;margin:0}
.lx-legacy .lx-mm-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.lx-legacy .lx-mm-hd b{font:700 13px var(--font-sans);color:var(--lx-ink);text-transform:capitalize}
.lx-legacy .lx-mm-nav{width:24px;height:24px;border:none;background:none;border-radius:var(--lx-r);color:var(--lx-text-2);cursor:pointer;display:flex;align-items:center;justify-content:center}
.lx-legacy .lx-mm-nav:hover{background:var(--lx-hover)}
.lx-legacy .lx-mm-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.lx-legacy .lx-mm-wd{font:600 10.5px var(--font-sans);color:var(--lx-text-3);padding:2px 0}
.lx-legacy .lx-mm-d{height:26px;border:none;background:none;border-radius:99px;font:400 12px var(--font-sans);color:var(--lx-text);cursor:pointer;position:relative}
.lx-legacy .lx-mm-d:hover{background:var(--lx-hover)}
.lx-legacy .lx-mm-d[data-out="true"]{color:var(--lx-text-3)}
.lx-legacy .lx-mm-d[data-busy="true"],
.lx-legacy .lx-mm-d[data-busy]{background:var(--lx-accent-soft);color:var(--lx-accent);font-weight:700}
.lx-legacy .lx-mm-d[data-today="true"]{box-shadow:inset 0 0 0 1.5px var(--lx-accent)}
.lx-legacy .lx-mm-d[data-on="true"]{background:var(--lx-accent);color:var(--lx-on-accent)}
.lx-legacy .lx-courts-grid{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:16px;align-items:start}
.lx-legacy .lx-courts-main{min-width:0;display:flex;flex-direction:column;gap:12px}
.lx-legacy .lx-courts-main>.lx-hc,
.lx-legacy .lx-courts-main>.lx-hot{margin:0}
.lx-legacy .lx-courts-aside{position:sticky;top:74px;display:flex;flex-direction:column;gap:10px;min-width:0}
.lx-legacy .lx-kpis[data-stack="true"]{display:flex;flex-direction:column;gap:8px}
.lx-legacy .lx-kpis[data-stack="true"] .lx-kpi{padding:10px 14px}
.lx-legacy .lx-kpis[data-stack="true"] .lx-kpi b{font-size:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lx-legacy .lx-kpis[data-stack="true"] .lx-kpi span{margin-top:1px}
.lx-legacy .lx-kpis[data-stack="true"] .lx-kpi small{display:block;margin-top:4px;font-weight:400;font-size:11.5px}
.lx-legacy .lx-cases{overflow:hidden}
.lx-legacy .lx-cases-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid var(--lx-border)}
.lx-legacy .lx-cases .lx-bar{margin:0;border:none;border-radius:0;border-bottom:1px solid var(--lx-border)}
.lx-legacy .lx-cases .lx-tblw{border:none;border-radius:0}
.lx-legacy .lx-cases .lx-courts-add .lx-card{margin:0;border:none;border-radius:0;border-bottom:1px solid var(--lx-border)}
.lx-legacy .lx-cases .lx-kb{padding:10px}
@media (max-width:1100px){
.lx-legacy .lx-courts-grid{grid-template-columns:minmax(0,1fr)}
.lx-legacy .lx-courts-aside{position:static;order:-1;display:grid;grid-template-columns:260px minmax(0,1fr);align-items:start}
}
@media (max-width:820px){
.lx-legacy .lx-courts-aside{grid-template-columns:1fr}
.lx-legacy .lx-kpis[data-stack="true"] .lx-kpi small{display:none}
}
@media (max-width:820px){
.lx-legacy .lx-ag-row{grid-template-columns:auto 10px minmax(0,1fr)}
.lx-legacy .lx-ag-row>span:last-child{display:none}
.lx-legacy .lx-hc-week{grid-template-columns:1fr}
.lx-legacy .lx-hc-wcol{min-height:0}
}
.lx-legacy .lx-ag-state{margin:0 6px 0 8px}
.lx-legacy .lx-ag-from{color:var(--lx-info-fg)}
