/*
  Тур по программе (/tour, /en/tour): окно Luxify Assistant 2.1 — копия интерфейса программы.

  Отдельный файл, а не раздел style.css: здесь оформление ПРОГРАММЫ (D:\LVA, LuxUi.xaml и
  страницы Project/Pages), а не сайта, и оно нужно только странице тура — остальные
  страницы его не грузят. Классы с приставкой lx- сайту не встречаются.

  Источник размеров и цветов — XAML программы: окно 1050×650, меню 164 px (свёрнутое 72),
  шапка 75 px, карточки-стекло (заливка W0E, рамка W24, радиус 15), строки настроек 56 px,
  кнопки 38 px, переключатель 50×20, правые панели 205 px. «W…» в комментариях — белый
  нужной прозрачности в тёмном оформлении и чёрный той же прозрачности в светлом
  (UiTheme.W): здесь это rgba(var(--ink), доля).
*/

.tour-page { padding-top: 32px; }
.tour-head { width: 100%; max-width: 1050px; margin-left: auto; margin-right: auto; }
.tour-head p { max-width: 760px; }
.t-stage { position: relative; display: flex; justify-content: center; }
.t-noscript { padding: 24px; }

/* ------------------------------------------------------------------ окно и оформление */

.lx {
    --ink: 255, 255, 255;
    --fg: #fff;
    --acc: 68, 134, 255;
    --accent: rgb(var(--acc));
    --on-acc: #fff;
    --glass: rgba(var(--ink), 0.055);
    --glass-line: rgba(var(--ink), 0.141);
    --t2: rgba(var(--ink), 0.722);
    --muted: rgba(var(--ink), 0.5);
    --faint: rgba(var(--ink), 0.36);
    --div: rgba(var(--ink), 0.078);
    --sheet: rgba(24, 26, 32, 0.975);
    --menu: rgba(32, 33, 39, 0.98);
    --toast: rgba(32, 34, 40, 0.96);
    --dim: rgba(9, 10, 13, 0.65);
    --win: rgba(25, 26, 29, 0.94);
    --rail: rgba(14, 15, 18, 0.35);
    --good: #38db7f;
    --warn: #f5b544;
    --bad: #ff6b6b;
    --rail-w: 164px;

    position: relative;
    isolation: isolate;
    flex: none;
    width: 1050px;
    height: 650px;
    border-radius: 10px;
    border: 1px solid rgba(var(--ink), 0.102);
    background: var(--win);
    box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    overflow: clip;
    color: var(--fg);
    font: 400 14px/1.3 var(--font);
    text-align: left;
    -webkit-font-smoothing: antialiased;
    transition: background-color .35s, color .35s, border-color .35s;
}

.lx[data-mode="light"] {
    --ink: 0, 0, 0;
    --fg: #1a1c21;
    --glass: rgba(255, 255, 255, 0.706);
    --glass-line: rgba(0, 0, 0, 0.102);
    --t2: rgba(0, 0, 0, 0.659);
    --muted: rgba(0, 0, 0, 0.549);
    --faint: rgba(0, 0, 0, 0.47);
    --sheet: rgba(248, 249, 251, 0.99);
    --menu: rgba(255, 255, 255, 0.99);
    --toast: rgba(255, 255, 255, 0.98);
    --dim: rgba(16, 19, 24, 0.35);
    --win: rgba(200, 202, 207, 0.97);
    --rail: rgba(255, 255, 255, 0.32);
    box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 0.7);
}

.lx[data-rail="narrow"] { --rail-w: 72px; }

/* Сброс: селектор элемента вне :where() — специфичность как у правил сайта (style.css грузится
   раньше и проигрывает), но ниже любого класса lx- ниже по файлу. */
:where(.lx) *, :where(.lx) *::before, :where(.lx) *::after { box-sizing: border-box; }
:where(.lx) button, :where(.lx) input, :where(.lx) textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:where(.lx) button { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
:where(.lx) input, :where(.lx) textarea { margin: 0; outline: none; }
.lx :focus-visible { outline: 2px solid rgba(var(--acc), 0.7); outline-offset: 1px; }
:where(.lx) h3, :where(.lx) h4, :where(.lx) p { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: normal; }
:where(.lx) ul, :where(.lx) ol { margin: 0; padding: 0; list-style: none; }
:where(.lx) a { color: inherit; }
.lx svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

/* Свечение в углах окна (MainWindow.UpdateGlows): слева сверху — главное, справа снизу —
   второе, справа сверху — едва заметное. Цвет — цвет темы. */
.lx-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(560px 460px at 70px 30px, rgba(var(--acc), 0.17), rgba(var(--acc), 0.048) 55%, transparent 100%),
        radial-gradient(560px 500px at calc(100% - 60px) 100%, rgba(var(--acc), 0.14), rgba(var(--acc), 0.04) 55%, transparent 100%),
        radial-gradient(380px 280px at calc(100% - 70px) -30px, rgba(var(--acc), 0.05), rgba(var(--acc), 0.014) 55%, transparent 100%);
}

/* Круги у правого края: рисует tour.js по формуле MainWindow.DrawBlob. */
.lx-blob { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

.lx-frame { position: relative; z-index: 1; display: flex; height: 100%; }

/* ------------------------------------------------------------------ меню слева */

.lx-rail {
    position: relative;
    flex: none;
    width: var(--rail-w);
    overflow: hidden;
    transition: width .26s cubic-bezier(.2, .7, .2, 1);
}

.lx-rail-bg { position: absolute; inset: 0; border-radius: 8px 20px 20px 8px; background: var(--rail); transition: background-color .35s; }

.lx-logo { position: absolute; left: 18px; top: 20px; width: 48px; height: 46px; display: block; }
.lx-logo .b1 { fill: var(--accent); opacity: .4; }
.lx-logo .b2 { fill: var(--accent); opacity: .8; }
.lx-logo .b3 { fill: #fff; }

.lx-nav { position: absolute; left: 12px; top: 96px; width: 140px; }

.lx-navbtn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 140px;
    height: 42px;
    margin-bottom: 6px;
    padding: 0 10px 0 14px;
    border-radius: 10px;
    color: rgba(var(--ink), 0.702);
    font-size: 14.5px;
    white-space: nowrap;
    transition: background-color .15s, color .15s;
}
.lx-navbtn svg.i { width: 20px; height: 20px; }
.lx-navbtn:hover { color: var(--fg); background: rgba(var(--ink), 0.04); }
.lx-navbtn.on { color: var(--fg); background: rgba(var(--ink), 0.078); }
.lx-navbtn span { transition: opacity .18s; }
.lx[data-rail="narrow"] .lx-navbtn span { opacity: 0; }

.lx-ind {
    position: absolute;
    left: 15px;
    top: 0;
    width: 3px;
    height: 18px;
    border-radius: 1.5px;
    background: var(--accent);
    opacity: 0;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .2s;
    z-index: 1;
    pointer-events: none;
}

.lx-rail .lx-navbtn.bottom { position: absolute; left: 12px; bottom: 20px; margin: 0; }

.lx-railbtn {
    position: absolute;
    left: 12px;
    bottom: 68px;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 140px;
    height: 40px;
    padding: 0 10px 0 14px;
    border-radius: 10px;
    color: rgba(var(--ink), 0.502);
    font-size: 14px;
    white-space: nowrap;
}
.lx-railbtn svg.i { width: 20px; height: 20px; stroke-width: 1.6; }
.lx-railbtn:hover { color: var(--fg); background: rgba(var(--ink), 0.043); }
.lx[data-rail="narrow"] .lx-railbtn span { opacity: 0; }

/* ------------------------------------------------------------------ шапка и содержимое */

.lx-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0 20px 20px; }

.lx-head { position: relative; flex: none; height: 75px; }

.lx-back {
    position: absolute;
    left: -4px;
    top: 21px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: rgba(var(--ink), 0.651);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, background-color .15s;
}
.lx-back svg.i { width: 20px; height: 20px; stroke-width: 2; }
.lx-back:hover { color: var(--fg); background: rgba(var(--ink), 0.06); }
.lx.is-sub .lx-back { opacity: 1; visibility: visible; }

.lx-crumbs {
    position: absolute;
    left: 0;
    top: 24px;
    display: flex;
    align-items: center;
    height: 28px;
    font-size: 20px;
    white-space: nowrap;
    transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.lx.is-sub .lx-crumbs { transform: translateX(44px); }
.lx-crumb { color: rgba(var(--ink), 0.502); transition: color .15s; }
button.lx-crumb:hover { color: rgba(var(--ink), 0.8); }
.lx-crumb.cur { color: var(--fg); font-weight: 600; }
.lx-sep { width: 1.5px; height: 18px; margin: 1px 14px 0; border-radius: 1px; background: rgba(var(--ink), 0.251); flex: none; }
.lx-crumb.sub { max-width: 420px; overflow: hidden; text-overflow: ellipsis; }

/* Микрофон главной — в шапке, у правого края колонки страницы (460 px). */
.lx-mic {
    position: absolute;
    left: 420px;
    top: 18px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    border: 1px solid rgba(var(--ink), 0.141);
    background: rgba(var(--ink), 0.055);
    color: var(--fg);
    transition: background-color .2s, border-color .2s, transform .12s;
}
.lx-mic svg.i { width: 19px; height: 19px; }
.lx-mic.on { background: var(--accent); border-color: transparent; color: var(--on-acc); }
.lx-mic:active { transform: scale(.96); }
.lx-mic.pulse::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 11px;
    border: 1.5px solid var(--accent);
    animation: lx-ripple .6s ease-out forwards;
}
@keyframes lx-ripple { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

.lx-page { position: relative; flex: 1; min-height: 0; }
.lx-page > * { height: 100%; }
.lx-page.enter > * { animation: lx-page-in .3s cubic-bezier(.2, .7, .2, 1); }
@keyframes lx-page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Кнопки окна: 44×36, свернуть и развернуть приглушены, закрыть — цветом темы. */
.lx-winbtns { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; }
.lx-winbtns span { width: 44px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--fg); }
.lx-winbtns svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.lx-winbtns .min, .lx-winbtns .max { opacity: .45; }
.lx-winbtns .close { color: var(--accent); }

/* ------------------------------------------------------------------ общие элементы */

.lx-card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-line);
    border-radius: 15px;
    padding: 20px;
    transition: background-color .35s, border-color .35s;
}

.lx-ctitle { font-size: 18px; font-weight: 500; line-height: 24px; }
.lx-hint { font-size: 12.5px; color: var(--muted); line-height: 17px; }
.lx-cap { font-size: 12.5px; font-weight: 600; color: var(--faint); }

.lx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(var(--ink), 0.141);
    background: rgba(var(--ink), 0.059);
    color: rgba(var(--ink), 0.902);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.lx-btn svg.i { width: 16px; height: 16px; }
.lx-btn:hover { border-color: rgba(var(--ink), 0.239); background: rgba(var(--ink), 0.11); color: var(--fg); }
.lx-btn:active { transform: scale(.98); }
.lx-btn.acc { border-color: transparent; background: var(--accent); color: var(--on-acc); padding: 0 16px; }
.lx-btn.acc:hover { box-shadow: inset 0 0 0 99px rgba(var(--ink), 0.08); }
.lx[data-mode="light"] .lx-btn.acc:hover { box-shadow: inset 0 0 0 99px rgba(255, 255, 255, 0.14); }
.lx-btn.acc:disabled, .lx-btn.save:disabled {
    border-color: transparent;
    background: rgba(var(--ink), 0.071);
    color: rgba(var(--ink), 0.451);
    box-shadow: none;
    cursor: default;
    transform: none;
}
.lx-btn.block { width: 100%; }
.lx-btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.lx-btn.sm svg.i { width: 15px; height: 15px; }

.lx-ib {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    flex: none;
    border-radius: 8px;
    color: rgba(var(--ink), 0.651);
    transition: background-color .15s, color .15s;
}
.lx-ib svg.i { width: 16px; height: 16px; }
.lx-ib:hover { color: var(--fg); background: rgba(var(--ink), 0.06); }

.lx-plus {
    display: inline-flex;
    align-items: center;
    height: 17px;
    margin-left: 8px;
    padding: 0 5px 1px;
    border-radius: 5px;
    background: var(--accent);
    color: var(--on-acc);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
    vertical-align: 2px;
    flex: none;
}

.lx-info {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 7px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .5;
    vertical-align: -2px;
    cursor: help;
    flex: none;
}
.lx-info::before, .lx-info::after { content: ""; position: absolute; left: 6px; width: 1px; background: currentColor; }
.lx-info::before { top: 3px; height: 1px; }
.lx-info::after { top: 6px; height: 4px; }
.lx-info:hover { opacity: .9; }

/* Переключатель 50×20 (стиль Switch). */
.lx-sw {
    position: relative;
    width: 50px;
    height: 20px;
    flex: none;
    border-radius: 10px;
    border: 1px solid rgba(var(--ink), 0.18);
    transition: background-color .2s, border-color .2s;
}
.lx-sw::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #9a9a9a;
    transition: transform .22s cubic-bezier(.3, .7, .3, 1.1), background-color .2s;
}
.lx-sw.on { background: var(--accent); border-color: var(--accent); }
.lx-sw.on::after { transform: translateX(30px); background: var(--on-acc); }

/* Сегменты (SegTrack + SegItem). */
.lx-seg {
    display: inline-flex;
    flex: none;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid rgba(var(--ink), 0.102);
    background: rgba(var(--ink), 0.051);
}
.lx-seg button {
    height: 28px;
    padding: 0 12px;
    border-radius: 7px;
    border: 1px solid transparent;
    color: rgba(var(--ink), 0.651);
    font-size: 13px;
    white-space: nowrap;
    transition: background-color .15s, color .15s;
}
.lx-seg button:hover { color: rgba(var(--ink), 0.902); }
.lx-seg button.on { background: rgba(var(--ink), 0.141); border-color: rgba(var(--ink), 0.078); color: var(--fg); }

/* Поле (LuxField) и выпадающий список (LuxCombo). */
.lx-field {
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 11px;
    border-radius: 10px;
    border: 1px solid rgba(var(--ink), 0.141);
    background: rgba(var(--ink), 0.051);
    color: var(--fg);
    font-size: 14px;
    transition: border-color .15s;
}
.lx-field::placeholder { color: var(--faint); opacity: 1; }
.lx-field:hover { border-color: rgba(var(--ink), 0.239); }
.lx-field:focus { border-color: var(--accent); }
.lx-field.ro { pointer-events: none; }

.lx-search { position: relative; display: block; }
.lx-search svg.i { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.lx-search .lx-field { padding-left: 33px; font-size: 13.5px; }

.lx-combo {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 36px;
    padding: 0 34px 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(var(--ink), 0.141);
    background: rgba(var(--ink), 0.051);
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lx-combo:hover { border-color: rgba(var(--ink), 0.239); background: rgba(var(--ink), 0.075); }
.lx-combo svg.i { position: absolute; right: 11px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); opacity: .6; }
.lx-combo .note { margin-left: 8px; color: var(--muted); font-size: 12px; }

/* Ползунок (LuxSlider): полоса 4 px, ручка 18 px белая с тенью. */
.lx-slider {
    position: relative;
    height: 22px;
    flex: 1;
    min-width: 60px;
    cursor: pointer;
    touch-action: none;
}
.lx-slider::before, .lx-slider i {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    height: 4px;
    border-radius: 2px;
}
.lx-slider::before { right: 0; background: rgba(var(--ink), 0.149); }
/* --p — доля 0…1: ручка ходит в пределах полосы, не вылезая за края. */
.lx-slider i { width: calc(9px + (100% - 18px) * var(--p)); background: var(--accent); }
.lx-slider b {
    position: absolute;
    top: 2px;
    left: calc((100% - 18px) * var(--p));
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.lx-slider:focus-visible { outline-offset: 3px; border-radius: 6px; }
.lx-val {
    min-width: 52px;
    margin-left: 12px;
    padding: 2px 7px 3px;
    border-radius: 7px;
    background: rgba(var(--ink), 0.071);
    font-size: 12.5px;
    font-weight: 500;
    text-align: center;
    flex: none;
}

/* Флажок (CheckLabel). */
.lx-check { display: inline-flex; align-items: center; gap: 7px; color: rgba(var(--ink), 0.702); font-size: 12.5px; }
.lx-check i {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid rgba(var(--ink), 0.302);
    flex: none;
    transition: background-color .15s, border-color .15s;
}
.lx-check:hover { color: var(--fg); }
.lx-check:hover i { border-color: rgba(var(--ink), 0.502); }
.lx-check.on i { background: var(--accent); border-color: var(--accent); }
.lx-check.on i::after {
    content: "";
    position: absolute;
    left: 4.5px;
    top: 1.5px;
    width: 4px;
    height: 8px;
    border: solid var(--on-acc);
    border-width: 0 2px 2px 0;
    transform: rotate(40deg);
}

/* Рамка с пояснением (InfoBox). */
.lx-box { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(var(--ink), 0.102); background: rgba(var(--ink), 0.039); }

/* Плитка под значок (IconTile). */
.lx-tile {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 9px;
    border: 1px solid rgba(var(--ink), 0.078);
    background: rgba(var(--ink), 0.063);
}
.lx-tile svg.i { width: 16px; height: 16px; }

/* Полосы прокрутки: тонкий бегунок W33 без стрелок. */
.lx ::-webkit-scrollbar { width: 6px; height: 6px; }
.lx ::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(var(--ink), 0.2); border: 1px solid transparent; background-clip: padding-box; }
.lx ::-webkit-scrollbar-track, .lx ::-webkit-scrollbar-corner { background: transparent; }
.lx ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports not selector(::-webkit-scrollbar) {
    .lx * { scrollbar-width: thin; scrollbar-color: rgba(var(--ink), 0.2) transparent; }
}

.lx-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

/* Правая панель страниц (205 px): поиск сверху, разделы, кнопки внизу. */
.lx-side {
    display: flex;
    flex-direction: column;
    width: 205px;
    flex: none;
    padding: 10px;
    min-height: 0;
}
.lx-side .lx-cap { margin: 14px 10px 6px; }
.lx-side .lx-search .lx-field { height: 34px; }
.lx-side-foot { margin-top: auto; padding-top: 10px; display: grid; gap: 6px; }
.lx-side-foot.line { border-top: 1px solid var(--div); margin-left: 0; margin-right: 0; }
.lx-side .lx-search + .lx-cap { margin-top: 16px; }

.lx-pick {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    height: 38px;
    margin-bottom: 2px;
    padding: 0 10px;
    border-radius: 9px;
    color: rgba(var(--ink), 0.702);
    font-size: 14px;
    white-space: nowrap;
    transition: background-color .15s, color .15s;
}
.lx-pick svg.i { width: 16px; height: 16px; }
.lx-pick:hover { color: var(--fg); background: rgba(var(--ink), 0.045); }
.lx-pick.on { color: var(--fg); background: rgba(var(--ink), 0.078); }
.lx-pick .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lx-pick .n { color: var(--muted); font-size: 12.5px; }
/* Темы «Расширений» 2.4 длинные («Текст и буфер обмена», «Файлы, экран и стримы») — в две строки, а не многоточием. */
.lx-pick[data-ext-theme] { height: auto; min-height: 38px; padding-top: 7px; padding-bottom: 7px; white-space: normal; }
.lx-pick[data-ext-theme] .t { line-height: 1.3; }

/* Две колонки: содержимое и правая панель. */
.lx-two { display: flex; gap: 20px; min-height: 0; }
.lx-two > .lx-col { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }

/* Короткое сообщение внизу окна. */
.lx-toast {
    position: absolute;
    left: calc(50% + var(--rail-w) / 2);
    bottom: 22px;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: min(560px, calc(100% - var(--rail-w) - 40px));
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(var(--ink), 0.18);
    background: var(--toast);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    font-size: 13.5px;
    line-height: 1.35;
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s, transform .22s;
}
.lx-toast.show { opacity: 1; transform: translate(-50%, 0); }
.lx-toast svg.i { width: 15px; height: 15px; stroke-width: 2.2; color: var(--good); }

/* Плашка команды (CommandOverlayWindow): что услышано и что сделано, поверх всех окон.
   В туре — в правом нижнем углу окна. */
.lx-ovl {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 24;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    max-width: 440px;
    padding: 10px 18px 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(var(--ink), 0.18);
    background: var(--toast);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .25s, transform .25s cubic-bezier(.2, .7, .2, 1);
}
.lx-ovl.show { opacity: 1; transform: none; }
.lx-ovl .tile { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--accent); color: var(--on-acc); }
.lx-ovl .tile svg.i { width: 17px; height: 17px; }
.lx-ovl[data-tone="warn"] .tile { background: var(--warn); color: #1a1b1f; }
.lx-ovl b { display: block; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-ovl div span { display: block; margin-top: 1px; font-size: 12.5px; color: var(--t2); }

/* Меню (LuxMenu): «⋯», сортировка, выпадающие списки. */
.lx-menu {
    position: absolute;
    z-index: 40;
    min-width: 200px;
    max-width: 320px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(var(--ink), 0.141);
    background: var(--menu);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    animation: lx-fade .12s ease-out;
}
.lx-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 34px;
    padding: 0 12px 0 10px;
    border-radius: 8px;
    font-size: 13.5px;
    white-space: nowrap;
    color: rgba(var(--ink), 0.851);
}
.lx-menu button:hover { background: rgba(var(--ink), 0.071); color: var(--fg); }
.lx-menu button svg.i { width: 15px; height: 15px; color: var(--t2); }
.lx-menu button.danger, .lx-menu button.danger svg.i { color: var(--bad); }
.lx-menu .ck { width: 15px; display: grid; place-items: center; color: var(--accent); }
.lx-menu .ck svg.i { color: var(--accent); stroke-width: 2.2; }
.lx-menu span:last-child { overflow: hidden; text-overflow: ellipsis; }
.lx-menu .sep { display: block; height: 1px; margin: 5px 6px; background: var(--div); }

/* ------------------------------------------------------------------ листы (SheetWindow) */

.lx-dim {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--dim);
    animation: lx-fade .18s ease-out;
}
@keyframes lx-fade { from { opacity: 0; } }

.lx-sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 640px;
    max-width: 100%;
    max-height: 100%;
    border-radius: 16px;
    border: 1px solid rgba(var(--ink), 0.18);
    background: var(--sheet);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    animation: lx-sheet-in .22s cubic-bezier(.2, .7, .2, 1);
}
.lx-sheet::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(100% 130% at 10% 0, rgba(var(--acc), 0.26), rgba(var(--acc), 0.078) 55%, transparent),
        radial-gradient(80% 90% at 100% 100%, rgba(var(--acc), 0.12), rgba(var(--acc), 0.036) 55%, transparent);
}
.lx[data-mode="light"] .lx-sheet::before { opacity: .5; }
.lx-sheet > * { position: relative; }
@keyframes lx-sheet-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }

.lx-sheet-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px 0; }
.lx-sheet-head .lx-tile { width: 42px; height: 42px; border-radius: 13px; }
.lx-sheet-head .lx-tile svg.i { width: 19px; height: 19px; }
.lx-sheet-head h3 { font-size: 18px; font-weight: 600; line-height: 24px; }
.lx-sheet-head p { margin-top: 2px; font-size: 14px; color: var(--t2); line-height: 20px; }
.lx-sheet-head .grow { flex: 1; min-width: 0; padding-top: 1px; }
.lx-sheet-foot { display: flex; align-items: center; gap: 10px; padding: 16px 24px 22px; }
.lx-sheet-foot .lx-btn { height: 42px; min-width: 130px; }
.lx-sheet-foot .gap { flex: 1; }

/* ------------------------------------------------------------------ главная */

.lx-home { width: 460px; display: grid; grid-template-rows: minmax(150px, 1fr) 20px auto; }
.lx-hist { grid-row: 1; padding: 18px 20px 12px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.lx-hist .lx-ctitle { margin-bottom: 14px; flex: none; }
.lx-hist-list { min-height: 0; overflow: hidden; }
.lx-hrow { display: grid; grid-template-columns: 2px minmax(0, 1fr); grid-template-rows: 30px 26px; column-gap: 10px; margin-bottom: 2px; align-items: center; }
.lx-hrow::before, .lx-hrow::after { content: ""; width: 2px; height: 20px; border-radius: 1px; grid-column: 1; }
.lx-hrow::before { grid-row: 1; background: var(--accent); }
.lx-hrow::after { grid-row: 2; background: rgba(var(--ink), 0.502); }
.lx-hrow .ph { grid-column: 2; grid-row: 1; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-hrow .st { grid-column: 2; grid-row: 2; display: flex; align-items: center; min-width: 0; font-size: 15px; color: var(--muted); }
.lx-hrow .st span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-hrow.new { animation: lx-row-in .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes lx-row-in { from { opacity: 0; transform: translateY(-6px); } }

.lx-panel { grid-row: 3; }
.lx-panel .lx-ctitle { margin-bottom: 18px; }
.lx-prow { display: flex; align-items: center; justify-content: space-between; height: 30px; font-size: 15px; color: var(--muted); }
.lx-prow .lx-slider { margin: 0 4px 0 18px; }
.lx-prow .pct { width: 46px; text-align: right; font-size: 14px; color: var(--t2); flex: none; }

/* ------------------------------------------------------------------ команды: дерево */

.lx-cmds .lx-tree-card { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 14px 12px 8px 20px; }
.lx-tree-head { display: flex; align-items: flex-start; gap: 8px; padding-right: 8px; flex: none; }
.lx-tree-head .grow { flex: 1; min-width: 0; }
.lx-tree-head .lx-hint { font-size: 13px; margin-top: 1px; }
.lx-tree { flex: 1; margin-top: 6px; padding-right: 8px; }

.lx-node {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    padding-right: 6px;
    border-radius: 10px;
    padding-left: calc(var(--depth, 0) * 24px);
    border: 1px solid transparent;
    cursor: default;
    user-select: none;
    overflow: hidden;
    transition: background-color .12s;
}
.lx-node:hover { background: rgba(var(--ink), 0.043); }
.lx-node.sel { background: rgba(var(--ink), 0.063); }
.lx-node.hit { border-color: rgba(var(--acc), 0.75); background: rgba(var(--acc), 0.08); }
.lx-node.hit.cur { background: rgba(var(--acc), 0.18); }
.lx-node.col { height: 44px; }
.lx-node .chev { width: 20px; height: 22px; display: grid; place-items: center; flex: none; color: rgba(var(--ink), 0.651); border-radius: 6px; }
.lx-node .chev svg.i { width: 16px; height: 16px; transition: transform .2s; }
.lx-node .chev.open svg.i { transform: rotate(90deg); }
.lx-node .chev:hover { color: var(--fg); }
.lx-node .ico { width: 28px; height: 28px; margin-left: 4px; display: grid; place-items: center; flex: none; color: rgba(var(--ink), 0.702); }
.lx-node .ico svg.i { width: 18px; height: 18px; }
.lx-node .ico.tile { border-radius: 8px; background: rgba(var(--ink), 0.078); }
.lx-node .ico.tile svg.i { width: 15px; height: 15px; }
.lx-node .ico img { width: 18px; height: 18px; object-fit: contain; }
.lx-node .name { margin-left: 10px; font-size: 15px; white-space: nowrap; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lx-node.col .name { font-weight: 500; }
.lx-node .phr { margin-left: 8px; flex: 1 1 0; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-node .fill { flex: 1; min-width: 12px; }
.lx-node .cnt { padding-left: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; flex: none; }
.lx-node .acts { display: flex; align-items: center; gap: 0; margin-left: 8px; flex: none; visibility: hidden; }
.lx-node .acts .lx-ib.void { visibility: hidden !important; }
.lx-node:hover .acts, .lx-node.sel .acts, .lx-node:focus-within .acts { visibility: visible; }
.lx-node .pw { margin-left: 2px; color: var(--good); }
.lx-node .pw svg.i { width: 18px; height: 18px; }
.lx-node.off .name, .lx-node.off .phr, .lx-node.off .ico, .lx-node.dim-off .name, .lx-node.dim-off .phr { opacity: .45; }
.lx-node.off .pw { color: rgba(var(--ink), 0.4); }
.lx-node .pw.hidden { visibility: hidden; }
.lx-branch { position: relative; }
.lx-branch::before {
    content: "";
    position: absolute;
    left: calc(var(--d) * 24px + 10px);
    top: 0;
    bottom: 6px;
    width: 1px;
    background: rgba(var(--ink), 0.078);
}
.lx-rename { width: 220px; height: 30px; margin-left: 10px; font-size: 14.5px; }
.lx-empty { padding: 30px 10px; text-align: center; color: var(--muted); font-size: 13.5px; }
.lx-empty b { display: block; margin-bottom: 4px; color: var(--fg); font-size: 14.5px; font-weight: 500; }

.lx-cmd-side .lx-btn { width: 100%; height: 36px; }
.lx-cmd-side .lx-btn.acc { height: 38px; }
.lx-cmd-side .lx-btn + .lx-btn { margin-top: 8px; }
.lx-cmd-side .lx-cap { margin: 14px 10px 8px; }
.lx-cmd-side .lx-box { margin-top: 16px; }
.lx-cmd-side .lx-box b { display: block; font-size: 13.5px; font-weight: 500; }
.lx-cmd-side .lx-box span { display: block; margin-top: 3px; font-size: 12.3px; color: var(--t2); }
.lx-hits { display: flex; align-items: center; gap: 2px; margin: 8px 0 -4px 10px; font-size: 12.5px; color: var(--t2); }
.lx-hits span { flex: 1; }
.lx-hits .lx-ib { width: 24px; height: 24px; }
.lx-hits .lx-ib svg.i { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ команды: карточка команды */

.lx-ccard .lx-col.lx-scroll { padding-right: 14px; margin-right: -14px; gap: 0; display: block; }
.lx-ccard .lx-card + .lx-card { margin-top: 18px; }
.lx-name-card { padding: 16px 20px 14px; }
.lx-path { font-size: 12.5px; color: var(--muted); margin-left: 2px; }
.lx-name {
    display: block;
    width: 100%;
    height: 42px;
    margin-top: 8px;
    padding: 0 15px;
    border-radius: 10px;
    border: 1px solid rgba(var(--ink), 0.141);
    background: rgba(var(--ink), 0.051);
    font-size: 17px !important;
    font-weight: 600 !important;
}
.lx-name:focus { border-color: var(--accent); }
.lx-name.err { border-color: var(--bad); }
.lx-err { margin: 6px 2px 0; font-size: 12.5px; color: var(--bad); }
.lx-phr-row { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; min-height: 22px; color: var(--fg); }
.lx-phr-row > svg.i { width: 16px; height: 16px; color: var(--t2); }
.lx-phr-row b { font-size: 14px; font-weight: 600; flex: none; }
.lx-phr-row .lx-st { flex: 1; min-width: 0; margin-left: 4px; font-size: 13px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-phr-row .lx-st.bad { color: var(--warn); }
.lx-phr-row .chv { color: var(--t2); transition: transform .2s; }
.lx-phr-row .chv svg.i { width: 15px; height: 15px; }
.lx-phr-row.open .chv { transform: rotate(180deg); }
.lx-phr-body { margin-top: 12px; border-top: 1px solid var(--div); }
.lx-phr-group { padding-top: 14px; }
.lx-phr-group > .lbl { display: flex; align-items: center; font-size: 14.5px; }
.lx-phr-group > .lx-hint { margin-top: 2px; }
.lx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lx-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 10px 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(var(--ink), 0.141);
    background: rgba(var(--ink), 0.059);
    font-size: 14px;
}
.lx-chip button { width: 18px; height: 18px; display: grid; place-items: center; color: var(--muted); border-radius: 5px; }
.lx-chip button:hover { color: var(--fg); background: rgba(var(--ink), 0.08); }
.lx-chip button svg.i { width: 12px; height: 12px; stroke-width: 2; }
.lx-chip.taken { border-color: rgba(245, 181, 68, 0.6); }
.lx-chip-add { width: 170px; height: 34px; font-size: 13.5px; }
.lx-warn {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(245, 181, 68, 0.35);
    background: rgba(245, 181, 68, 0.08);
    font-size: 13px;
    line-height: 18px;
    color: var(--t2);
}
.lx-warn svg.i { width: 16px; height: 16px; color: var(--warn); margin-top: 1px; }

.lx-acts-card { padding: 16px 20px; }
.lx-acts-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.lx-acts-head .lx-ctitle { display: flex; align-items: baseline; gap: 8px; margin-right: auto; }
.lx-acts-head .lx-ctitle small { font-size: 14px; color: var(--muted); font-weight: 400; }
.lx-acts-head .lx-btn { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.lx-acts-head .rec svg.i { color: var(--bad); }
.lx-steps { display: grid; gap: 8px; }
.lx-step {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 8px 0 6px;
    border-radius: 10px;
    background: rgba(var(--ink), 0.039);
    animation: lx-row-in .3s cubic-bezier(.2, .7, .2, 1);
}
.lx-step .grip { color: var(--faint); cursor: grab; }
.lx-step .grip svg.i { width: 16px; height: 16px; stroke-width: 2.4; }
.lx-step .num { width: 16px; text-align: center; font-size: 13px; color: var(--muted); flex: none; }
.lx-step .aico { color: var(--t2); }
.lx-step .aico svg.i { width: 18px; height: 18px; }
.lx-step .aname { width: 170px; flex: none; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-step .lx-field { flex: 1; min-width: 0; height: 32px; border-radius: 8px; font-size: 13.5px; }
.lx-step .noarg { flex: 1; font-size: 13px; color: var(--faint); }
.lx-steps-empty { padding: 18px 0 8px; text-align: center; }
.lx-steps-empty b { display: block; font-size: 14.5px; font-weight: 500; }
.lx-steps-empty span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }

.lx-more-card { padding: 0 20px; }
.lx-more {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 54px;
    font-size: 14px;
    color: var(--fg);
}
.lx-more svg.i { width: 15px; height: 15px; transition: transform .2s; }
.lx-more.open svg.i { transform: rotate(180deg); }
.lx-more .lx-st { margin-left: auto; font-size: 13px; color: var(--muted); }
.lx-more-body { padding-bottom: 6px; }

/* Строка настроек (SetRow): подпись и пояснение слева, элемент справа. */
.lx-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 56px;
    padding: 12px 0;
    border-top: 1px solid var(--div);
}
.lx-row > .l { flex: 1; min-width: 0; }
.lx-row > .l > .lbl { display: flex; align-items: center; font-size: 14.5px; }
.lx-row > .l > .lx-hint { margin-top: 3px; }
.lx-row > .r { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.lx-row > .r.wide { flex: 0 1 290px; width: 290px; }
.lx-row > .r.slide { flex: 0 1 260px; width: 260px; }
.lx-row.sub { padding-left: 18px; }
.lx-row.stack { flex-direction: column; align-items: stretch; gap: 12px; }
.lx-row.stack > .r { justify-content: flex-start; }
.lx-row .lx-slider { min-width: 0; }
.lx-slide-cap { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.lx-test .lx-cap { margin: 4px 0 8px; display: flex; align-items: center; font-size: 12.5px; color: var(--t2); }
.lx-test-res { display: flex; gap: 8px; margin: 10px 2px 0; font-size: 12.5px; line-height: 17px; color: var(--t2); }
.lx-test-res svg.i { width: 15px; height: 15px; margin-top: 1px; color: var(--muted); }
.lx-test-res.ok svg.i { color: var(--good); }
.lx-test-res.other svg.i, .lx-test-res.none svg.i { color: var(--warn); }
.lx-sum { margin: 16px 2px 0; padding-top: 14px; border-top: 1px solid var(--div); }
.lx-sum .lx-cap { margin: 0 0 8px; color: var(--t2); }
.lx-sum p { display: flex; align-items: center; gap: 9px; margin-top: 6px; font-size: 13px; color: var(--t2); }
.lx-sum p svg.i { width: 15px; height: 15px; color: var(--muted); }
.lx-sum .lx-btn { margin-top: 14px; width: 100%; height: 36px; font-size: 13.5px; }

/* ------------------------------------------------------------------ лист «Добавить действие» */

.lx-picker { width: 744px; height: 584px; }
.lx-picker .lx-search { margin: 18px 24px 0; }
.lx-picker .lx-search .lx-field { height: 38px; border-color: rgba(var(--acc), 0.75); font-size: 14px; }
.lx-picker-body { flex: 1; min-height: 0; display: flex; gap: 12px; padding: 14px 12px 0 24px; }
.lx-picker-cats { width: 172px; flex: none; padding-right: 8px; border-right: 1px solid var(--div); }
.lx-picker-list { flex: 1; min-width: 0; padding-right: 10px; }
.lx-picker-list .grp { margin: 6px 0 6px 2px; font-size: 12.5px; font-weight: 600; color: var(--t2); }
.lx-arow {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background-color .12s, border-color .12s;
}
.lx-arow:hover { background: rgba(var(--ink), 0.05); }
.lx-arow.on { background: rgba(var(--acc), 0.12); border-color: rgba(var(--acc), 0.6); }
.lx-arow .lx-tile { width: 32px; height: 32px; border-radius: 9px; }
.lx-arow .lx-tile svg.i { width: 17px; height: 17px; }
.lx-arow .tx { flex: 1; min-width: 0; }
.lx-arow .tx b { display: block; font-size: 14.5px; font-weight: 500; }
.lx-arow .tx .d { display: block; margin-top: 1px; font-size: 12.5px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-danger { flex: none; padding: 2px 7px 3px; border-radius: 6px; background: rgba(245, 181, 68, 0.14); color: var(--warn); font-size: 11.5px; font-weight: 500; }

/* ------------------------------------------------------------------ дополнения */

.lx-mods .lx-col { gap: 0; }
.lx-tabs { display: flex; gap: 8px; flex: none; margin-bottom: 14px; }
.lx-tabs .lx-btn { height: 40px; }
.lx-tabs .lx-btn svg.i { width: 16px; height: 16px; }
.lx-tabs .gap { flex: 1; }
.lx-mods .lx-col > .lx-scroll { flex: 1; padding-right: 14px; margin-right: -14px; }

.lx-plugin { display: flex; gap: 16px; padding: 16px 20px; margin-bottom: 18px; }
.lx-plugin .pl-tile { width: 74px; height: 74px; border-radius: 18px; display: grid; place-items: center; flex: none; }
.lx-plugin .pl-tile.av { background: #4486ff; }
.lx-plugin .pl-tile.av i { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); display: grid; place-items: center; }
.lx-plugin .pl-tile.av i::after { content: ""; width: 34px; height: 28px; border-radius: 50%; background: #eef4ff; }
.lx-plugin .pl-tile.pc { background: #3ccf7f; color: #fff; }
.lx-plugin .pl-tile.pc svg.i { width: 22px; height: 22px; stroke-width: 2; }
.lx-plugin .pl-body { flex: 1; min-width: 0; padding-top: 2px; }
.lx-plugin h4 { display: flex; align-items: center; font-size: 18px; font-weight: 500; }
.lx-plugin p { margin-top: 5px; font-size: 13px; line-height: 18px; color: var(--muted); }
.lx-plugin .st { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12.5px; color: var(--t2); }
.lx-plugin .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--ink), 0.4); }
.lx-plugin .st.on::before { background: var(--good); }
.lx-plugin .pl-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 14px; flex: none; }
.lx-soon { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.lx-soon svg.i { color: var(--t2); width: 18px; height: 18px; }
.lx-soon b { display: block; font-size: 13.5px; font-weight: 600; }
.lx-soon span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--t2); }

.lx-side-note { margin: 0 10px; font-size: 13px; line-height: 18px; color: var(--t2); }
.lx-side-count { margin-top: 10px; font-size: 13px; }

.lx-sec { margin-bottom: 18px; }
.lx-sec-title { display: inline-flex; align-items: center; gap: 10px; height: 28px; margin-bottom: 10px; font-size: 16px; font-weight: 500; }
.lx-sec-title svg.i { width: 15px; height: 15px; color: var(--t2); transition: transform .2s; }
.lx-sec-title.open svg.i { transform: rotate(90deg); }

.lx-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.lx-pack { position: relative; display: flex; flex-direction: column; padding: 14px 14px 12px; border-radius: 15px; min-width: 0; }
.lx-pack .top { display: flex; align-items: center; gap: 12px; }
.lx-pack .logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(var(--ink), 0.071); }
.lx-pack .logo img { width: 26px; height: 26px; object-fit: contain; }
.lx-pack .logo.mono img { filter: none; }
.lx[data-mode="light"] .lx-pack .logo.mono { background: #2a2c33; }
.lx-pack .logo.quad { grid-template-columns: 1fr 1fr; gap: 3px; padding: 8px; }
.lx-pack .logo.quad img { width: 13px; height: 13px; }
.lx-pack .tt { min-width: 0; padding-right: 30px; }
.lx-pack .tt b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-pack .tt span { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.lx-pack .tt span.inst { color: var(--t2); }
.lx-pack .tt span.inst::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.lx-pack p { margin-top: 10px; font-size: 13px; line-height: 18px; color: var(--t2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.lx-pack .bot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.lx-pack .bot .lx-btn { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.lx-pack .bot .lx-btn.done { color: var(--muted); }
.lx-pack .lx-plus { position: absolute; top: 12px; right: 12px; margin: 0; }
.lx-showall { height: 34px !important; margin-top: 10px; font-size: 13px !important; }
.lx-showall svg.i { transition: transform .2s; }
.lx-showall.open svg.i { transform: rotate(180deg); }

.lx-now { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; }
.lx-now .lx-tile { width: 34px; height: 34px; border-radius: 10px; }
.lx-now .tx { flex: 1; min-width: 0; }
.lx-now b { display: block; font-size: 15px; font-weight: 600; }
.lx-now span { display: block; margin-top: 1px; font-size: 13px; color: var(--t2); }
.lx-voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.lx-voice { position: relative; padding: 16px; border-radius: 15px; }
.lx-voice.on { border: 1.5px solid var(--accent); padding: 15.5px; }
.lx-voice .vi { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--ink), 0.071); color: var(--accent); }
.lx-voice .vi svg.i { width: 18px; height: 18px; }
.lx-voice .play { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--t2); }
.lx-voice .play svg.i { width: 18px; height: 18px; }
.lx-voice .play:hover { color: var(--fg); background: rgba(var(--ink), 0.06); }
.lx-voice .play.playing { color: var(--accent); }
.lx-voice b { display: block; margin-top: 16px; font-size: 15px; font-weight: 600; }
.lx-voice .fr { display: block; margin-top: 3px; font-size: 13px; color: var(--t2); }
.lx-voice .ph { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.lx-voice .lx-btn { width: 100%; height: 34px; margin-top: 14px; font-size: 13.5px; }

/* Вложенные экраны настроек (аватар, PC Control, Luxify AI): разделы-карточки и панель справа. */
.lx-sections { padding-right: 14px; margin-right: -14px; }
.lx-secard { padding: 16px 20px 4px; margin-bottom: 16px; }
.lx-sec-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 12px; }
.lx-sec-head .lx-tile { width: 34px; height: 34px; border-radius: 10px; }
.lx-sec-head .lx-tile svg.i { width: 17px; height: 17px; }
.lx-sec-head .grow { flex: 1; min-width: 0; }
.lx-sec-head h3 { display: flex; align-items: center; font-size: 18px; font-weight: 500; line-height: 22px; }
.lx-sec-head .lx-hint { margin-top: 2px; }
.lx-more-t { display: flex; align-items: center; gap: 8px; width: 100%; height: 44px; border-top: 1px solid var(--div); font-size: 13.5px; color: rgba(var(--ink), 0.651); }
.lx-more-t:hover, .lx-more-t.open { color: var(--fg); }
.lx-more-t svg.i { width: 14px; height: 14px; transition: transform .2s; }
.lx-more-t.open svg.i { transform: rotate(180deg); }
.lx-rows-more { padding-bottom: 4px; }
.lx-grpcap { padding: 14px 0 4px; border-top: 1px solid var(--div); font-size: 12.5px; font-weight: 600; color: var(--faint); }
.lx-grpcap + .lx-row { border-top: 0; }

.lx-preview { position: relative; height: 128px; margin-bottom: 10px; border-radius: 12px; border: 1px solid rgba(var(--ink), 0.078); background: rgba(var(--ink), 0.035); overflow: hidden; }
.lx-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lx-preview span { position: absolute; left: 10px; top: 8px; font-size: 11.5px; font-weight: 500; color: var(--t2); }
.lx-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(var(--ink), 0.2); background: var(--accent); flex: none; }

.lx-tg { margin-bottom: 10px; padding: 10px; border-radius: 12px; border: 1px solid rgba(var(--ink), 0.078); background: rgba(var(--ink), 0.035); }
.lx-tg-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.lx-tg-head i { width: 22px; height: 22px; border-radius: 50%; background: #3ccf7f; display: grid; place-items: center; color: #fff; }
.lx-tg-head i svg.i { width: 12px; height: 12px; stroke-width: 2.2; }
.lx-tg-msg { display: inline-block; margin-top: 8px; padding: 6px 9px; border-radius: 9px; background: rgba(var(--ink), 0.09); font-size: 12px; font-weight: 600; line-height: 1.3; }
.lx-tg-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; }
.lx-tg-keys span { padding: 5px 4px; border-radius: 7px; background: rgba(var(--ink), 0.07); font-size: 11px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-tg-keys.one { grid-template-columns: 1fr; }
.lx-tg-keys.three { grid-template-columns: 1fr 1fr 1fr; }
.lx-secret { position: relative; display: flex; align-items: center; width: 100%; }
.lx-secret .lx-field { padding-right: 40px; letter-spacing: 1px; }
.lx-secret .lx-ib { position: absolute; right: 4px; }
.lx-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t2); }
.lx-row .lbl .lx-status { font-size: 13px; }
.lx-row:has(.lbl .lx-status) { border-top: 0; min-height: 0; padding-top: 0; }
.lx-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--ink), 0.4); flex: none; }
.lx-status.ok::before { background: var(--good); }

/* ------------------------------------------------------------------ Luxify AI */

.lx-ai { display: flex; gap: 19px; }
.lx-chats { width: 224px; flex: none; display: flex; flex-direction: column; padding: 12px 10px 10px; }
.lx-chats .lx-btn.acc { width: 100%; }
.lx-chats .lx-cap { margin: 16px 10px 6px; }
.lx-chats .lst { flex: 1; margin-top: 2px; }
.lx-chats .lx-pick { font-size: 14px; }
.lx-chats .foot { padding-top: 10px; border-top: 1px solid var(--div); }
.lx-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.lx-chat-top { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 10px 0 18px; flex: none; }
.lx-chat-top b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-mode { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 8px; border: 1px solid rgba(var(--ink), 0.102); background: rgba(var(--ink), 0.051); font-size: 13px; color: var(--t2); }
.lx-mode svg.i { width: 14px; height: 14px; }
.lx-msgs { flex: 1; margin-top: 14px; padding: 16px 12px 16px 18px; display: flex; flex-direction: column; min-height: 0; }
.lx-msgs .lx-scroll { flex: 1; padding-right: 8px; display: flex; flex-direction: column; gap: 4px; }
.lx-msg { display: flex; flex-direction: column; max-width: 74%; }
.lx-msg.me { align-self: flex-end; align-items: flex-end; }
.lx-bub { padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; background: rgba(var(--ink), 0.071); overflow-wrap: anywhere; }
.lx-msg.me .lx-bub { background: var(--accent); color: var(--on-acc); }
.lx-bub ul { margin: 6px 0 2px; padding-left: 0; }
.lx-bub li { position: relative; padding-left: 16px; margin-top: 3px; }
.lx-bub li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.lx-bub strong { font-weight: 600; }
.lx-msg-acts { display: flex; gap: 4px; margin: 4px 0 10px; color: var(--muted); }
.lx-msg-acts .lx-ib { width: 26px; height: 26px; }
.lx-msg-acts .lx-ib svg.i { width: 15px; height: 15px; }
.lx-done { align-self: flex-start; max-width: 100%; margin-bottom: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(var(--ink), 0.078); background: rgba(var(--ink), 0.039); }
.lx-done .cap { font-size: 12px; font-weight: 600; color: var(--muted); }
.lx-done p { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13.5px; white-space: nowrap; }
.lx-done p svg.i { width: 15px; height: 15px; color: var(--good); stroke-width: 2; }
.lx-done p i { font-style: normal; color: var(--muted); }
.lx-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.lx-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: lx-blink 1s infinite; }
.lx-typing i:nth-child(2) { animation-delay: .15s; }
.lx-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lx-blink { 50% { opacity: .25; } }
.lx-input { display: flex; gap: 10px; margin-top: 14px; flex: none; }
.lx-sq { width: 48px; height: 48px; padding: 0; border-radius: 12px; }
.lx-sq svg.i { width: 19px; height: 19px; }
.lx-ask { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; height: 48px; padding: 0 8px 0 16px; border-radius: 12px; border: 1px solid rgba(var(--ink), 0.141); background: rgba(var(--ink), 0.051); }
.lx-ask:focus-within { border-color: var(--accent); }
.lx-ask input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 14px; }
.lx-ask input::placeholder { color: var(--faint); }
.lx-model { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px 0 11px; border-radius: 8px; background: rgba(var(--ink), 0.071); font-size: 13px; white-space: nowrap; }
.lx-model svg.i { width: 13px; height: 13px; opacity: .6; }
.lx-send { height: 48px !important; border-radius: 12px !important; min-width: 130px; }

.lx-usage { padding: 4px 0 14px; }
.lx-usage .lx-ubar { height: 6px; margin-top: 10px; border-radius: 3px; background: rgba(var(--ink), 0.1); overflow: hidden; }
.lx-usage .lx-ubar i { display: block; height: 100%; width: var(--v); border-radius: 3px; background: var(--accent); }
.lx-usage .big { font-size: 22px; font-weight: 600; }
.lx-usage .big small { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 6px; }

/* ------------------------------------------------------------------ настройки */

.lx-swatches { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.lx-swatch { position: relative; width: 32px; height: 32px; margin-right: 6px; border-radius: 50%; }
.lx-swatch::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--fg); opacity: 0; transition: opacity .15s; }
.lx-swatch::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, 0.12); }
.lx-swatch:hover::before { opacity: .35; }
.lx-swatch.on::before { opacity: 1; }
.lx-swatch-add { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); }
.lx-swatch-add i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed rgba(var(--ink), 0.4); display: grid; place-items: center; }
.lx-swatch-add svg.i { width: 13px; height: 13px; }
.lx-vsep { width: 1px; height: 22px; margin: 0 12px 0 6px; background: var(--div); }
.lx-bgsw { position: relative; width: 28px; height: 28px; margin-right: 4px; border-radius: 9px; }
.lx-bgsw::before { content: ""; position: absolute; inset: 0; border-radius: 9px; border: 2px solid var(--fg); opacity: 0; }
.lx-bgsw::after { content: ""; position: absolute; inset: 4px; border-radius: 6px; background: var(--c); border: 1px solid rgba(var(--ink), 0.251); }
.lx-bgsw.on::before { opacity: 1; }
.lx-bgsw:hover::before { opacity: .35; }
.lx-hex { width: 104px !important; flex: none; font-variant-numeric: tabular-nums; }
.lx-vtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 12px; }
.lx-vtile { position: relative; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 26px 0 12px; border-radius: 12px; border: 1px solid rgba(var(--ink), 0.102); background: rgba(var(--ink), 0.039); text-align: left; }
.lx-vtile:hover { background: rgba(var(--ink), 0.078); border-color: rgba(var(--ink), 0.161); }
.lx-vtile.on { border: 1.5px solid var(--accent); background: rgba(var(--acc), 0.08); }
.lx-vtile.on::after { content: ""; position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.lx-vtile .vi { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--ink), 0.071); color: var(--accent); flex: none; }
.lx-vtile .vi svg.i { width: 15px; height: 15px; }
.lx-vtile b { display: block; font-size: 14px; font-weight: 600; }
.lx-vtile span { display: block; font-size: 12px; color: var(--muted); }
.lx-folders { width: 100%; padding-bottom: 12px; }
.lx-folder { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 10px; border-radius: 10px; background: rgba(var(--ink), 0.039); margin-bottom: 6px; font-size: 13.5px; }
.lx-folder svg.i { width: 16px; height: 16px; color: var(--t2); }
.lx-folder span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-pos { display: grid; grid-template-columns: repeat(3, 22px); gap: 4px; padding: 4px; border-radius: 8px; background: rgba(var(--ink), 0.051); border: 1px solid rgba(var(--ink), 0.102); }
.lx-pos button { height: 14px; border-radius: 4px; background: rgba(var(--ink), 0.1); }
.lx-pos button.on { background: var(--accent); }
.lx-nores { padding: 40px 20px; text-align: center; }
.lx-nores b { display: block; font-size: 15px; font-weight: 500; }
.lx-nores span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ аккаунт */

.lx-acc { display: flex; gap: 21px; }
.lx-acc .left { width: 460px; flex: none; display: flex; flex-direction: column; gap: 21px; min-height: 0; }
.lx-acc .right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 21px; min-height: 0; }
.lx-me { display: flex; gap: 16px; padding: 20px; }
.lx-ava { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, rgb(var(--acc-hi, 106, 158, 255)), rgb(var(--acc-lo, 47, 95, 184))); color: #fff; font-size: 18px; font-weight: 600; }
.lx-ava.out { background: rgba(var(--ink), 0.071); color: var(--t2); }
.lx-ava.out svg.i { width: 24px; height: 24px; }
.lx-me .grow { flex: 1; min-width: 0; }
.lx-me h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; line-height: 26px; }
.lx-me h3 > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-plan { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--accent); color: var(--on-acc); font-size: 12.5px; font-weight: 600; flex: none; }
.lx-plan svg.i { width: 12px; height: 12px; stroke-width: 2; }
.lx-plan.basic { background: rgba(var(--ink), 0.1); color: var(--t2); }
.lx-me .ln { display: flex; align-items: center; gap: 9px; margin-top: 6px; font-size: 13.5px; color: var(--t2); }
.lx-me .ln.ln2 { color: var(--muted); margin-top: 4px; }
.lx-me .ln svg.i { width: 15px; height: 15px; }
.lx-me .ln i { width: 7px; height: 7px; margin: 0 4px; border-radius: 50%; background: var(--good); flex: none; }
.lx-me .ln i.warn { background: var(--warn); }
.lx-me .btns { display: flex; gap: 10px; margin-top: 16px; }
.lx-me .lx-btn.spin svg.i { animation: lx-spin .8s linear infinite; }
@keyframes lx-spin { to { transform: rotate(360deg); } }
.lx-feat { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 18px 20px 14px; }
.lx-feat-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.lx-feat-head span { font-size: 13px; color: var(--muted); }
.lx-feat .lx-scroll { flex: 1; margin-right: -10px; padding-right: 10px; }
.lx-fgrp { display: flex; justify-content: space-between; margin: 10px 0 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lx-fgrp:first-child { margin-top: 0; }
.lx-fgrp span { font-weight: 400; color: var(--fg); }
.lx-fgrp span.off { color: var(--muted); }
.lx-fitem { display: flex; align-items: center; gap: 10px; height: 24px; font-size: 14.5px; }
.lx-fitem i { width: 16px; height: 16px; border-radius: 50%; background: var(--good); display: grid; place-items: center; flex: none; }
.lx-fitem i::after { content: ""; width: 3.5px; height: 7px; margin-top: -2px; border: solid #10301e; border-width: 0 1.8px 1.8px 0; transform: rotate(40deg); }
.lx-fitem.lock i { background: rgba(var(--ink), 0.12); }
.lx-fitem.lock i::after { width: 6px; height: 5px; margin-top: 3px; border: 0; border-radius: 1px; background: rgba(var(--ink), 0.55); transform: none; box-shadow: 0 -3px 0 -1px transparent; }
.lx-fitem.lock { color: var(--muted); }
.lx-links { padding: 18px 20px 14px; }
.lx-links .lx-ctitle { margin-bottom: 10px; }
.lx-link { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 12px 0 0; border-radius: 10px; color: rgba(var(--ink), 0.851); font-size: 14.5px; text-decoration: none; }
.lx-link:hover { color: var(--fg); background: rgba(var(--ink), 0.055); padding-left: 0; }
.lx-link > span:not(.lx-tile) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-link .arr { width: 15px; height: 15px; opacity: .3; transition: opacity .15s, transform .18s; }
.lx-link:hover .arr { opacity: .9; transform: translate(1.5px, -1.5px); }
.lx-ver { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--div); font-size: 13px; color: var(--muted); }
.lx-ver b { font-weight: 500; color: var(--fg); }
.lx-devs { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 18px 20px 14px; }
.lx-devs-head { display: flex; align-items: baseline; justify-content: space-between; }
.lx-devs-head span { font-size: 13px; color: var(--t2); }
.lx-seats { display: flex; gap: 6px; margin: 14px 0 12px; }
.lx-seats i { flex: 1; height: 4px; border-radius: 2px; background: rgba(var(--ink), 0.12); }
.lx-seats i.on { background: var(--accent); }
.lx-dev { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.lx-dev b { display: block; font-size: 14.5px; font-weight: 500; }
.lx-dev span { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.lx-dev .grow { flex: 1; min-width: 0; }
.lx-this { padding: 2px 8px 3px; border-radius: 6px; background: rgba(var(--acc), 0.18); color: var(--accent); font-size: 11px; font-weight: 600; text-transform: lowercase; }
.lx-devs .foot { margin-top: auto; padding-top: 10px; font-size: 12.5px; color: var(--muted); }
.lx-out-note { margin-top: 6px; font-size: 13.5px; line-height: 19px; color: var(--t2); }

/* ------------------------------------------------------------------ подсказка под окном */

.t-guide {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    gap: 24px 32px;
    align-items: center;
    max-width: 1050px;
    margin: 18px auto 0;
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--card-2), var(--card));
}
.t-guide > * { animation: t-in .35s var(--ease); }
@keyframes t-in { from { opacity: 0; transform: translateY(6px); } }
.t-guide h2 { margin: 0 0 6px; font-size: 21px; }
.t-guide p { margin: 0; color: var(--muted); font-size: 14.5px; }
.t-guide .kicker { margin-bottom: 8px; }
.t-guide .small-ticks { margin: 0; }
.t-guide-actions { display: grid; gap: 8px; justify-items: stretch; }
.t-try { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.t-try button {
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: 500 13px var(--font);
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.t-try button:hover { background: rgba(68, 134, 255, 0.14); border-color: rgba(68, 134, 255, 0.45); }

/* ------------------------------------------------------------------ узкие экраны

   Окно программы не бывает уже 980 px, а сайт открывают и с телефона. Порядок упрощения:
   до 1100 px окно сжимается и меню сворачивается до значков (как кнопкой «Свернуть»),
   до 860 px правые панели уходят под содержимое, на телефоне меню становится строкой
   значков над экраном. Состав экранов при этом не меняется. */

@media (max-width: 1100px) {
    .lx { width: 100%; --rail-w: 72px; }
    .lx .lx-navbtn span, .lx .lx-railbtn span { opacity: 0; }
    .lx-railbtn { display: none; }
    .lx-tabs .lx-btn[data-act="sort"] span { display: none; }
    .lx-tabs .lx-btn[data-act="sort"] { width: 40px; padding: 0; }
    .lx-home { width: min(460px, 100%); }
    .lx-mic { left: min(420px, calc(100% - 40px)); }
}

@media (max-width: 860px) {
    .lx { --rail-w: 72px; height: 640px; }
    .lx-blob { opacity: .55; }
    .lx .lx-navbtn span, .lx .lx-railbtn span { opacity: 0; }
    .lx-railbtn { display: none; }
    .lx-main { padding: 0 14px 14px; }
    .lx-two { flex-direction: column; gap: 12px; overflow-y: auto; }
    .lx-two > .lx-col { flex: none; min-height: auto; }
    .lx-two > .lx-col > .lx-scroll, .lx-two > .lx-col.lx-scroll { overflow: visible; margin-right: 0; padding-right: 0; }
    .lx-side { width: 100%; }
    .lx-side-foot { grid-template-columns: 1fr 1fr; }
    .lx-cmds .lx-tree-card { flex: none; }
    .lx-tree { overflow: visible; }
    .lx-ai { flex-direction: column; overflow-y: auto; gap: 12px; }
    .lx-chats { width: 100%; }
    .lx-chats .lst { flex: none; }
    .lx-chat { flex: none; min-height: 520px; }
    .lx-acc { flex-direction: column; overflow-y: auto; gap: 12px; }
    .lx-acc .left, .lx-acc .right { width: 100%; flex: none; gap: 12px; }
    .lx-feat, .lx-devs { flex: none; }
    .lx-feat .lx-scroll { overflow: visible; }
    .lx-picker { width: 100%; height: 100%; }
    .lx-picker-cats { display: none; }
    .lx-picker-body { padding-left: 16px; }
    .lx-sheet-head, .lx-sheet-foot { padding-left: 16px; padding-right: 16px; }
    .lx-picker .lx-search { margin-left: 16px; margin-right: 16px; }
    .lx-dim { padding: 10px; }
    .t-guide { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
    .t-guide-actions { grid-column: auto; }
}

@media (max-width: 640px) {
    .t-stage { margin: 0 -6px; }
    .lx { --rail-w: 0px; height: 620px; border-radius: 14px; }
    .lx-frame { flex-direction: column; }
    .lx-rail { display: flex; align-items: center; width: 100%; height: 52px; flex: none; padding-right: 8px; overflow-x: auto; overflow-y: hidden; }
    .lx-rail-bg { border-radius: 0; }
    .lx-logo { position: static; display: none; }
    .lx-nav { position: static; display: flex; gap: 4px; width: auto; padding: 6px 8px; }
    .lx-navbtn, .lx-rail .lx-navbtn.bottom { position: static; width: 42px; height: 40px; margin: 0; padding: 0; justify-content: center; flex: none; }
    .lx-navbtn span { display: none; }
    .lx-ind { display: none; }
    .lx-head { height: 56px; }
    .lx-crumbs { top: 16px; font-size: 16px; }
    .lx-crumbs .lx-brand, .lx-crumbs .lx-brand + .lx-sep { display: none; }
    .lx.is-sub .lx-crumbs { transform: translateX(34px); }
    .lx-back { top: 13px; }
    .lx-crumb.sub { max-width: 46vw; }
    .lx-mic { top: 9px; left: auto; right: 0; width: 38px; height: 38px; }
    .lx-winbtns { display: none; }
    /* min-height: 0 — иначе в колонке окна раздел растёт по содержимому, а окно его обрезает и прокрутки нет. */
    .lx-main { padding: 0 10px 10px; min-height: 0; }
    .lx-card { padding: 16px; }
    .lx-home { width: 100%; grid-template-rows: auto 12px auto; overflow-y: auto; }
    .lx-hist { min-height: 220px; }
    .lx-node { padding-left: calc(var(--depth, 0) * 14px); }
    .lx-branch::before { left: calc(var(--d) * 14px + 10px); }
    .lx-node .phr, .lx-node .acts { display: none; }
    .lx-node.sel .acts { display: flex; }
    .lx-node .cnt { display: none; } /* на телефоне место — названию коллекции */
    .lx-node .name { max-width: none; flex: 1; min-width: 0; }
    .lx-node .fill { display: none; }
    .lx-tabs { gap: 6px; margin-bottom: 12px; }
    .lx-tabs .lx-btn[data-act="sort"] { display: none; }
    .lx-tabs .lx-btn[data-mods] { flex: 1 1 auto; min-width: 0; }
    .lx-tabs .lx-btn[data-mods] svg.i { display: none; }
    .lx-tabs .lx-btn { height: 36px; padding: 0 8px; font-size: 13px; }
    .lx-tabs .gap { display: none; }
    .lx-plugin { flex-wrap: wrap; }
    .lx-plugin .pl-tile { width: 54px; height: 54px; border-radius: 14px; }
    .lx-plugin .pl-side { flex-direction: row; width: 100%; align-items: center; }
    .lx-packs { grid-template-columns: 1fr; }
    .lx-voices { grid-template-columns: 1fr 1fr; }
    .lx-row { flex-wrap: wrap; gap: 10px; }
    .lx-row > .r, .lx-row > .r.wide, .lx-row > .r.slide { width: 100%; flex: 1 1 100%; justify-content: flex-start; }
    .lx-row > .r .lx-seg { max-width: 100%; overflow-x: auto; }
    .lx-vtiles { grid-template-columns: 1fr 1fr; }
    /* Шаг — в две строки: действие и кнопки сверху, параметр во всю ширину снизу. */
    .lx-step { flex-wrap: wrap; height: auto; row-gap: 6px; padding: 8px 6px 8px 10px; }
    .lx-step .aname { flex: 1; width: auto; min-width: 0; }
    .lx-step .lx-field, .lx-step .noarg { order: 9; flex: 1 1 100%; }
    .lx-step .grip { display: none; }
    .lx-acts-head { flex-wrap: wrap; }
    .lx-acts-head .lx-ctitle { width: 100%; }
    .lx-msg, .lx-done { max-width: 90%; }
    .lx-send { min-width: 0; padding: 0 14px !important; }
    .lx-send span { display: none; }
    .lx-input .lx-model { display: none; }
    .lx-toast { left: 50%; max-width: calc(100% - 24px); bottom: 14px; }
    .lx-me { flex-wrap: wrap; }
    .lx-picker-list .lx-danger { display: none; }
    .lx-sheet-foot { flex-wrap: wrap; }
    .lx-sheet-foot .lx-btn { min-width: 0; flex: 1; }
    .lx-sheet-foot [data-act="pick-empty"] { flex: 1 1 100%; }
    .lx-sheet-foot .gap { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lx *, .lx *::before, .lx *::after { animation: none !important; transition: none !important; }
    .t-guide > * { animation: none; }
}

@media (max-width: 1100px) {
    .t-guide { grid-template-columns: 1fr 1fr; }
    .t-guide-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
    .t-guide-actions .btn-primary { order: 2; }
}

/* ------------------------------------------------------------------ правки 06.10.2026 */

/* Сообщение-вопрос (MessageWindow): значок сверху, текст, три равные кнопки. */
.lx-msgsheet { width: 430px; padding: 22px 24px 24px; }
.lx-msgsheet .lx-tile { width: 42px; height: 42px; border-radius: 13px; }
.lx-msgsheet .lx-tile svg.i { width: 19px; height: 19px; }
.lx-tile.warn { color: var(--warn); }
.lx-msgsheet h3 { margin-top: 16px; font-size: 18px; font-weight: 600; line-height: 24px; }
.lx-msgsheet p { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--t2); }
.lx-msg-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.lx-msg-btns.two { grid-template-columns: 1fr 1fr; margin: 18px 24px 22px; }
.lx-msg-btns .lx-btn { height: 40px; padding: 0 10px; }

/* Подтверждение команды: полоса до автоотмены. */
.lx-confirm { width: 400px; }
.lx-confirm .lx-sheet-head h3 { overflow-wrap: anywhere; }
.lx-countdown { height: 4px; margin: 18px 24px 0; border-radius: 2px; background: rgba(var(--ink), 0.12); overflow: hidden; }
.lx-countdown i { display: block; height: 100%; width: 100%; border-radius: 2px; background: var(--accent); transition: width .25s linear; }
.lx-countdown-t { margin: 8px 24px 0; font-size: 12.5px; color: var(--t2); }

/* Галочка у последнего «Выполнено» в истории. */
.lx-hrow .st svg.i.ok { width: 16px; height: 16px; margin-left: 8px; color: var(--good); stroke-width: 2.2; }

/* Стрелка раскрытия в дереве — кнопка. */
.lx-node button.chev { cursor: pointer; }
.lx-node button.chev:hover { background: rgba(var(--ink), 0.06); }

@media (max-width: 640px) {
    .lx-msgsheet { width: 100%; padding: 18px; }
    .lx-msg-btns { grid-template-columns: 1fr; }
    .lx-msg-btns.two { grid-template-columns: 1fr 1fr; margin: 16px 16px 18px; }
    .lx-confirm { width: 100%; }
}

/* Luxify AI: вложения, созданные файлы и картинки, источники (ArtifactTemplate, SourcesChip). */
.lx-bub .lx-gap { display: block; height: 8px; }
.lx-att, .lx-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 8px;
    border-radius: 12px;
    border: 1px solid rgba(var(--ink), 0.12);
    background: rgba(var(--ink), 0.05);
    text-align: left;
}
.lx-att { align-self: flex-end; margin-bottom: 6px; max-width: 280px; }
.lx-att .ft, .lx-file .ft { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: rgba(var(--acc), 0.18); color: var(--accent); }
.lx-att .ft svg.i, .lx-file .ft svg.i { width: 16px; height: 16px; }
.lx-att .fn, .lx-file .fn { min-width: 0; flex: 1; }
.lx-att b, .lx-file b { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-att .fn span, .lx-file .fn span { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
.lx-files { display: grid; gap: 8px; margin-top: 10px; }
.lx-file { width: 100%; max-width: 360px; color: var(--fg); transition: background-color .15s, border-color .15s; }
.lx-file:hover { background: rgba(var(--ink), 0.08); border-color: rgba(var(--ink), 0.2); }
.lx-file > svg.i { width: 16px; height: 16px; opacity: .6; }
.lx-msg.me .lx-bub .lx-file { color: var(--on-acc); }
.lx-art { margin: 10px 0 0; max-width: 360px; }
.lx-art .pic { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.lx-art .pic svg { display: block; width: 100%; height: 100%; }
.lx-art figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.lx-src {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 4px 8px 5px 9px;
    border-radius: 8px;
    background: rgba(var(--ink), 0.071);
    color: rgba(var(--ink), 0.78);
    font-size: 12.5px;
}
.lx-src:hover { background: rgba(var(--ink), 0.125); color: var(--fg); }
.lx-src svg.i { width: 13px; height: 13px; }
.lx-src svg.i:last-child { width: 12px; height: 12px; opacity: .7; transition: transform .2s; }
.lx-src.open svg.i:last-child { transform: rotate(180deg); }
.lx-src-list { display: grid; gap: 4px; margin-top: 8px; }
.lx-src-item { display: block; padding: 6px 10px; border-radius: 9px; border: 1px solid rgba(var(--ink), 0.1); background: rgba(var(--ink), 0.04); text-align: left; }
.lx-src-item:hover { background: rgba(var(--ink), 0.08); }
.lx-src-item b { display: block; font-size: 12.5px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-src-item span { display: block; font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------------------------ 2.2: вкладки главной, «Расширения», подключения */

/* Вкладки главной (DeskTabs): выбранная — заливка без обводки, черта между встроенными и столами. */
.lx-hwrap { display: flex; flex-direction: column; min-height: 0; }
.lx-hwrap > .lx-home, .lx-hwrap > .lx-ai { flex: 1; min-height: 0; height: auto; }
.lx-htabs { display: flex; align-items: center; gap: 4px; height: 30px; margin-bottom: 14px; flex: none; }
.lx-htab { height: 30px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; color: rgba(var(--ink), 0.651); white-space: nowrap; transition: background-color .15s, color .15s; }
.lx-htab:hover { color: var(--fg); background: rgba(var(--ink), 0.045); }
.lx-htab.on { color: var(--fg); background: rgba(var(--ink), 0.1); font-weight: 600; }
.lx-htab.add { width: 30px; padding: 0; display: grid; place-items: center; }
.lx-htab.add svg.i { width: 15px; height: 15px; }
.lx-htab-sep { width: 1.5px; height: 16px; margin: 0 6px; border-radius: 1px; background: rgba(var(--ink), 0.22); flex: none; }

/* Карандаш правки главной — рядом с микрофоном, без рамки (как в программе). */
.lx-hedit { position: absolute; left: 372px; top: 20px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: rgba(var(--ink), 0.651); transition: background-color .15s, color .15s; }
.lx-hedit svg.i { width: 18px; height: 18px; }
.lx-hedit:hover { color: var(--fg); background: rgba(var(--ink), 0.06); }

/* Плитка плагина (ExtIconTile): ровный тон без рамки и бликов, белый двухтонный знак на 62 % стороны. */
.lx-ptile { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 15px; background: var(--tone); }
.lx-ptile svg { width: 62%; height: 62%; overflow: visible; }
.lx-ptile path { stroke-linecap: round; stroke-linejoin: round; }

.lx-tabs .lx-btn .n { margin-left: 2px; font-size: 12.5px; opacity: .72; }
.lx-tabs .lx-btn .lx-plus { margin-left: 4px; }
.lx-tabs .lx-btn.acc .lx-plus { background: rgba(255, 255, 255, 0.24); color: inherit; }
.lx-tabs .lx-seg { align-self: center; }

.lx-xsec { margin-bottom: 18px; }
.lx-xsec-title { margin: 2px 0 10px; font-size: 15px; font-weight: 600; }
.lx-xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.lx-xcard { position: relative; display: flex; flex-direction: column; padding: 16px; border-radius: 15px; min-width: 0; }
.lx-xcard .x-body h4 { display: flex; align-items: center; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--fg); }
.lx-xcard .x-body p { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--t2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lx-xcard .x-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.lx-xcard .st { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--t2); min-width: 0; }
.lx-xcard .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--ink), 0.4); flex: none; }
.lx-xcard .st.on::before { background: var(--good); }
.lx-xcard .x-sw { position: absolute; top: 16px; right: 16px; }

/* Вид «Список»: одна строка на плагин. */
.lx-xgrid.list { grid-template-columns: 1fr; gap: 8px; }
.lx-xcard.row { flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; }
.lx-xcard.row .lx-ptile { width: 44px; height: 44px; border-radius: 12px; }
.lx-xcard.row .x-body { flex: 1; min-width: 0; }
.lx-xcard.row .x-body h4 { margin-top: 0; }
.lx-xcard.row .x-body p { -webkit-line-clamp: 1; margin-top: 2px; }
.lx-xcard.row .x-foot { margin-top: 0; padding-top: 0; flex: none; }
.lx-xcard.row .x-sw { position: static; flex: none; }

/* Подключения: вступление с тремя шагами, «Мои подключения», готовые по категориям. */
.lx-conn-intro { padding: 18px 20px; margin-bottom: 18px; }
.lx-conn-intro .lx-hint { margin-top: 6px; font-size: 13px; line-height: 18px; }
.lx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.lx-steps li { position: relative; display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 17px; color: var(--t2); min-width: 0; }
.lx-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent); color: var(--on-acc); font-size: 13px; font-weight: 600; }
.lx-conn-empty { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.lx-conn-empty .grow { flex: 1; min-width: 0; }
.lx-conn-empty b { display: block; font-size: 14px; font-weight: 600; }
.lx-conn-empty span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 17px; color: var(--t2); }
.lx-conn-empty .lx-btn { flex: none; }
.lx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.lx-chip { height: 28px; padding: 0 11px; border-radius: 8px; border: 1px solid rgba(var(--ink), 0.12); background: rgba(var(--ink), 0.05); font-size: 12.5px; color: var(--t2); white-space: nowrap; transition: background-color .15s, color .15s; }
.lx-chip:hover { color: var(--fg); background: rgba(var(--ink), 0.09); }
.lx-chip.on { border-width: 0; padding: 0 12px; background: var(--accent); color: var(--on-acc); }
.lx-conn .logo.line { color: var(--accent); }
.lx-conn .logo.line svg.i { width: 22px; height: 22px; }
.lx-conn .tt span.need { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Luxify AI: кружок лимитов (UsageRing), «Агент» в строке ввода, три кнопки внизу списка чатов. */
.lx-ring { width: 22px; height: 22px; flex: none; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--u, 0) * 1turn), rgba(var(--ink), 0.16) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); }
.lx-ring:hover { filter: brightness(1.15); }
.lx-agent { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-right: 6px; padding: 0 10px; border-radius: 8px; background: rgba(var(--ink), 0.071); font-size: 13px; white-space: nowrap; color: rgba(var(--ink), 0.8); }
.lx-agent svg.i { width: 14px; height: 14px; }
.lx-agent.on { background: var(--accent); color: var(--on-acc); }
.lx-chats .foot { display: grid; gap: 6px; }
/* Отправка — квадратный значок (в окне такой ширины программа показывает «Отправить/Стоп» значками). */
.lx-send { min-width: 0; width: 48px; padding: 0 !important; }
.lx-send span { display: none; }

/* Вкладка «Команды агента» пустая — пояснение и переход в Luxify AI. */
.lx-agent-empty .lx-nores { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lx-agent-empty .lx-nores .lx-tile { width: 42px; height: 42px; border-radius: 13px; margin-bottom: 12px; }
.lx-agent-empty .lx-nores .lx-tile svg.i { width: 19px; height: 19px; }
.lx-agent-empty .lx-nores span { max-width: 430px; line-height: 18px; }
.lx-agent-empty .lx-nores .lx-btn { margin-top: 16px; }

@media (max-width: 1100px) {
    .lx-hedit { left: min(372px, calc(100% - 86px)); }
}
@media (max-width: 860px) {
    .lx-hwrap > .lx-ai { overflow-y: auto; }
}
@media (max-width: 640px) {
    .lx-hedit { top: 10px; left: auto; right: 44px; }
    .lx-hwrap { overflow-y: auto; }
    .lx-hwrap > .lx-home { flex: none; }
    .lx-htabs { margin-bottom: 10px; }
    .lx-tabs .lx-btn[data-ext-tab], .lx-tabs .lx-btn[data-cmd-view] { flex: 1 1 auto; min-width: 0; }
    .lx-tabs .lx-btn[data-ext-tab] svg.i, .lx-tabs .lx-btn[data-cmd-view] svg.i { display: none; }
    .lx-tabs .lx-seg { display: none; }
    .lx-xgrid { grid-template-columns: 1fr; }
    .lx-steps { grid-template-columns: 1fr; }
    .lx-conn-empty { flex-wrap: wrap; }
    .lx-agent span, .lx-input .lx-agent { padding: 0 8px; }
}

/* ------------------------------------------------------------------ 2.2: главная из виджетов (WidgetBoard, WidgetFrame)

   Сетка мелких ячеек: колонки и высоту строки задаёт tour.js (--cols, --ch), карточки стоят по своим клеткам
   (grid-column / grid-row). В режиме правки свободные клетки — точки, под мышью «+»; поверх карточки — плёнка
   с названием, кнопками «настройки / убрать» и ручкой размера. На телефоне — четыре колонки, карточки по порядку. */
.lx-hwrap > .lx-board { flex: 1; min-height: 0; height: auto; }
.lx-board { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px; align-content: start; overflow-x: hidden; overflow-y: auto; margin-right: -4px; padding-right: 4px; }
.lx-board.lx-narrow { grid-auto-rows: var(--ch); grid-auto-flow: row dense; }

.lx-cell { position: relative; display: grid; place-items: center; min-width: 0; border-radius: 12px; border: 1px dashed transparent; color: var(--accent); transition: background-color .12s, border-color .12s; }
.lx-cell::before { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: rgba(var(--ink), 0.24); transition: opacity .12s; }
.lx-cell svg.i { width: 20px; height: 20px; opacity: 0; transition: opacity .12s; }
.lx-cell:hover, .lx-cell:focus-visible { border-color: rgba(var(--acc), 0.6); background: rgba(var(--acc), 0.09); }
.lx-cell:hover::before, .lx-cell:focus-visible::before { opacity: 0; }
.lx-cell:hover svg.i, .lx-cell:focus-visible svg.i { opacity: 1; }
.lx-cell.wide { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-color: rgba(var(--ink), 0.2); color: var(--t2); font-size: 13.5px; }
.lx-cell.wide::before { display: none; }
.lx-cell.wide svg.i { opacity: 1; width: 16px; height: 16px; }

.lx-w { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 14px 16px; overflow: hidden; }
.lx-w.low { padding: 11px 13px; }
.lx-w.bare { background: transparent; border-color: transparent; }
.lx-w.titled { padding-top: 16px; }
.lx-wtitle { flex: none; margin-bottom: 10px; padding-right: 8px; font-size: 18px; font-weight: 500; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-wbody { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.lx-w-history .lx-wbody { overflow: visible; }
.lx-wmini { display: flex; align-items: center; gap: 7px; flex: none; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; }
.lx-wmini svg.i { width: 15px; height: 15px; color: var(--accent); }
.lx-wmini .lx-plus { margin-left: auto; }
.lx-wsub { flex: none; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-wbar { display: block; flex: none; height: 6px; border-radius: 3px; background: rgba(var(--ink), 0.1); overflow: hidden; }
.lx-wbar i { display: block; width: var(--v); height: 100%; border-radius: 3px; background: var(--accent); }

/* Режим правки: плёнка поверх карточки — её и тянут. */
.lx-wedit { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border-radius: 15px; border: 1px solid rgba(var(--ink), 0.2); background: rgba(22, 24, 29, 0.9); cursor: grab; touch-action: none; animation: lx-fade .15s ease-out; }
.lx[data-mode="light"] .lx-wedit { background: rgba(246, 247, 250, 0.92); }
.lx-w-orb .lx-wedit { background: rgba(22, 24, 29, 0.42); }
.lx[data-mode="light"] .lx-w-orb .lx-wedit { background: rgba(246, 247, 250, 0.5); }
.lx-wedit .mid { display: flex; flex-direction: column; align-items: center; gap: 5px; max-width: 100%; min-width: 0; padding: 18px 12px 8px; text-align: center; pointer-events: none; }
.lx-wedit .mid svg.i { width: 22px; height: 22px; color: var(--accent); }
.lx-wedit .mid b { max-width: 100%; font-size: 13px; font-weight: 500; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-wedit .mid .sz { font-size: 11.5px; color: var(--faint); }
.lx-wedit .btns { position: absolute; top: 7px; right: 8px; display: flex; gap: 2px; }
.lx-wedit .btns .lx-ib { width: 26px; height: 26px; cursor: pointer; }
.lx-wedit .btns .lx-ib svg.i { width: 15px; height: 15px; }
.lx-wsize { position: absolute; right: 3px; bottom: 3px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 0 0 12px 0; color: var(--muted); cursor: nwse-resize; }
.lx-wsize svg.i { width: 14px; height: 14px; stroke-width: 2; }
.lx-wsize:hover { color: var(--accent); }
.lx-w.dragging { z-index: 6; box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.7); }
.lx-w.dragging .lx-wedit { cursor: grabbing; border-color: rgba(var(--acc), 0.7); }
.lx-w.resizing .lx-wedit { border-color: rgba(var(--acc), 0.7); }
.lx-wghost { z-index: 5; border-radius: 15px; border: 2px solid rgba(var(--acc), 0.75); background: rgba(var(--acc), 0.12); pointer-events: none; }
.lx-wempty { grid-column: 1 / -1; grid-row: 1 / span 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--muted); font-size: 13px; }
.lx-wempty .lx-tile { width: 42px; height: 42px; margin-bottom: 4px; border-radius: 13px; }
.lx-wempty .lx-tile svg.i { width: 19px; height: 19px; }
.lx-wempty b { font-size: 15px; font-weight: 600; color: var(--fg); }
.lx-wempty span { max-width: 380px; line-height: 18px; }
.lx-wempty .lx-btn { margin-top: 8px; }

/* Шапка в правке: галочка «Готово», шаги назад и вперёд, «Отменить». */
.lx-hedit.on { background: var(--accent); color: var(--on-acc); }
.lx-hedit.on:hover { background: var(--accent); color: var(--on-acc); box-shadow: inset 0 0 0 99px rgba(255, 255, 255, 0.1); }
.lx-hsteps { position: absolute; left: 470px; top: 22px; display: flex; gap: 2px; animation: lx-fade .15s ease-out; }
.lx-hsteps .lx-ib { width: 32px; height: 32px; }
.lx-hsteps .lx-ib svg.i { width: 17px; height: 17px; }
.lx-hsteps .lx-ib:disabled { opacity: .35; cursor: default; background: none; }
.lx-htab-edit { width: 150px; height: 30px; margin: 0; font-size: 13.5px; }

/* История: фильтр в шапке карточки (как ExtraHost), строки «не найдено» — серые. */
.lx-w-history .lx-hist-list { min-height: 0; overflow: hidden; }
.lx-hrow.err::before { background: rgba(var(--ink), 0.35); }
.lx-hfilt { display: flex; gap: 3px; flex: none; }
.lx-w-history.titled .lx-hfilt { position: absolute; top: -34px; right: -4px; }
.lx-hfilt button { height: 26px; padding: 0 9px; border-radius: 8px; font-size: 12px; color: var(--muted); transition: background-color .12s, color .12s; }
.lx-hfilt button:hover { color: var(--fg); }
.lx-hfilt button.on { background: rgba(var(--ink), 0.09); color: var(--fg); }
.lx-w-panel .lx-prow { flex: none; }
.lx-w .lx-prow > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Быстрые команды, программы, сайты, подсказки. */
.lx-wquick { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; overflow: hidden; }
.lx-wquick .lx-btn.sm { max-width: 100%; height: 30px; padding: 0 10px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.lx-wapps, .lx-wsites { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); align-content: start; gap: 4px; overflow: hidden; }
.lx-wapp { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 7px 2px 6px; border-radius: 10px; font-size: 11.5px; color: var(--t2); transition: background-color .12s; }
.lx-wapp:hover { background: rgba(var(--ink), 0.06); color: var(--fg); }
.lx-wapp img { width: 26px; height: 26px; object-fit: contain; }
.lx-wsites .lx-wapp img { width: 22px; height: 22px; }
.lx-wapp span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-whints { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; overflow: hidden; }
.lx-whints button { height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid rgba(var(--ink), 0.14); background: rgba(var(--ink), 0.05); font-size: 12.5px; color: var(--t2); white-space: nowrap; transition: background-color .12s, border-color .12s, color .12s; }
.lx-whints button:hover { border-color: rgba(var(--acc), 0.45); background: rgba(var(--acc), 0.14); color: var(--fg); }

/* Фото и питомец — без заголовка, во всю карточку. */
.lx-w-photo { padding: 0; }
.lx-wphoto { position: relative; flex: 1; min-height: 0; margin: 0; border-radius: 14px; overflow: hidden; }
.lx-wphoto svg { display: block; width: 100%; height: 100%; }
.lx-wphoto figcaption { position: absolute; left: 10px; right: 10px; bottom: 8px; font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-wpet { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.lx-wpet svg { width: min(62%, 150px); height: auto; max-height: 75%; animation: lx-bob 3.4s ease-in-out infinite; }
.lx-wpet span { font-size: 11.5px; color: var(--muted); text-align: center; }
@keyframes lx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Поиск. */
.lx-wsearch { flex: none; }
.lx-wsearch .lx-field { height: 34px; }
.lx-wengines { display: flex; flex-wrap: wrap; gap: 4px; overflow: hidden; }
.lx-wengines span { padding: 3px 8px; border-radius: 6px; background: rgba(var(--ink), 0.05); font-size: 11.5px; color: var(--muted); }
.lx-wengines span.on { background: rgba(var(--acc), 0.18); color: var(--fg); }

/* Часы и календарь. */
.lx-wclock { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.lx-wclock b { font-size: 42px; font-weight: 600; line-height: 1.05; letter-spacing: -0.5px; }
.lx-w.low .lx-wclock b { font-size: 32px; }
.lx-wclock span { margin-top: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-wworld { display: flex; gap: 6px; flex: none; }
.lx-wworld div { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 9px; background: rgba(var(--ink), 0.05); }
.lx-wworld span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-wworld b { font-size: 15px; font-weight: 600; }
.lx-wclock-tabs { display: flex; gap: 3px; flex: none; }
.lx-wclock-tabs span { padding: 4px 8px; border-radius: 7px; font-size: 11.5px; color: var(--muted); }
.lx-wclock-tabs span.on { background: rgba(var(--ink), 0.09); color: var(--fg); }
.lx-wtoday { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lx-wtoday span { font-size: 12px; color: var(--muted); }
.lx-wtoday b { font-size: 38px; font-weight: 600; line-height: 1.1; color: var(--accent); }
.lx-wcal-head { flex: none; font-size: 13px; font-weight: 600; color: var(--t2); }
.lx-wcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-content: start; gap: 2px; }
.lx-wcal .wd { padding: 2px 0; text-align: center; font-size: 10.5px; color: var(--faint); }
.lx-wcal button { position: relative; height: 24px; border-radius: 7px; font-size: 12px; color: var(--t2); text-align: center; }
.lx-wcal button:hover { background: rgba(var(--ink), 0.07); color: var(--fg); }
.lx-wcal button.today { background: var(--accent); color: var(--on-acc); font-weight: 600; }
.lx-wcal button.dot::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }

/* Задачи, события, заметки, расписание, новости, недавние. */
.lx-wtasks { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.lx-wtask { display: flex; align-items: center; gap: 9px; min-height: 28px; padding: 2px 5px; border-radius: 8px; font-size: 13.5px; text-align: left; transition: background-color .12s; }
.lx-wtask:hover { background: rgba(var(--ink), 0.05); }
.lx-wtask i { width: 16px; height: 16px; flex: none; display: grid; place-items: center; border-radius: 5px; border: 1.5px solid rgba(var(--ink), 0.35); }
.lx-wtask i svg.i { width: 11px; height: 11px; stroke-width: 3; }
.lx-wtask.done i { border-color: transparent; background: var(--accent); color: var(--on-acc); }
.lx-wtask span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-wtask.done span { color: var(--muted); text-decoration: line-through; }
.lx-wadd { flex: none; height: 32px; font-size: 13px; }
.lx-wlist { min-height: 0; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.lx-wli { display: flex; flex-direction: column; flex: none; gap: 1px; min-width: 0; padding: 5px 9px; border-radius: 9px; background: rgba(var(--ink), 0.04); text-align: left; }
.lx-wli b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-wli span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-wli.link { transition: background-color .12s; }
.lx-wli.link:hover { background: rgba(var(--ink), 0.08); }
.lx-wli.file { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; }
.lx-wli.file svg.i { grid-row: span 2; align-self: center; width: 16px; height: 16px; color: var(--accent); }
.lx-wli.note b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
.lx-wchip { align-self: flex-start; flex: none; padding: 3px 8px; border-radius: 6px; background: rgba(var(--acc), 0.16); font-size: 11.5px; }

/* Отсчёт и привычки. */
.lx-wcount { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.lx-wcount b { font-size: 34px; font-weight: 600; line-height: 1; color: var(--accent); }
.lx-wcount span { font-size: 13px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-whabits { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.lx-whabit { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 9px; border-radius: 9px; background: rgba(var(--ink), 0.04); font-size: 13px; text-align: left; }
.lx-whabit > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-whabit .dots { display: flex; gap: 4px; flex: none; }
.lx-whabit .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--ink), 0.15); }
.lx-whabit .dots i.on { background: var(--good); }

/* Погода. */
.lx-wwx { display: flex; align-items: center; gap: 12px; flex: none; min-width: 0; }
.lx-wwx .big { display: flex; align-items: center; gap: 8px; flex: none; }
.lx-wwx .big svg.i { width: 32px; height: 32px; color: var(--warn); }
.lx-wwx .big b { font-size: 30px; font-weight: 600; }
.lx-wwx .txt { display: flex; flex-direction: column; min-width: 0; }
.lx-wwx .txt b { font-size: 14px; font-weight: 600; }
.lx-wwx .txt span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-w.slim .lx-wwx .txt span { display: none; }
.lx-whours { display: flex; justify-content: space-between; gap: 4px; flex: none; }
.lx-whours div { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; color: var(--muted); }
.lx-whours svg.i { width: 16px; height: 16px; color: var(--t2); }
.lx-whours b { font-size: 13px; font-weight: 500; color: var(--fg); }

/* Курсы, крипта, акции, конвертер. */
.lx-wrates { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.lx-wrate { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; column-gap: 8px; min-height: 26px; font-size: 13px; }
.lx-wrate .cc { font-size: 12px; font-weight: 600; color: var(--t2); }
.lx-wrate .nm { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-wrate b { font-weight: 600; white-space: nowrap; }
.lx-w.slim .lx-wrate .nm { display: none; }
.lx-chg { padding: 1px 6px; border-radius: 6px; font-size: 11.5px; white-space: nowrap; }
.lx-chg.up { color: var(--good); background: rgba(56, 219, 127, 0.13); }
.lx-chg.down { color: var(--bad); background: rgba(255, 107, 107, 0.13); }
.lx[data-mode="light"] .lx-chg.up { color: #1e9a55; }
.lx[data-mode="light"] .lx-chg.down { color: #d33c3c; }
.lx-spark { display: block; width: 100%; min-width: 0; height: 20px; }
.lx-spark path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lx-spark.up path { stroke: var(--good); }
.lx-spark.down path { stroke: var(--bad); }
.lx-wconv { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lx-wconv label { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.lx-wconv label .lx-field { width: 100%; min-width: 0; height: 32px; padding: 0 8px; }
.lx-wconv span { font-size: 11.5px; color: var(--muted); }
.lx-wconv > svg.i { flex: none; color: var(--muted); }
.lx-wconv > div { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; flex: 1; min-width: 0; }
.lx-wconv > div b { font-size: 16px; font-weight: 600; white-space: nowrap; }

/* Плеер, система, умный дом, плагины, субтитры. */
.lx-wplay { flex: 1; min-height: 0; display: flex; align-items: center; gap: 10px; }
.lx-wplay .cover { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, rgba(var(--acc), 0.95), rgba(var(--acc), 0.35)); color: #fff; }
.lx-wplay .cover svg.i { width: 20px; height: 20px; }
.lx-wplay .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lx-wplay .tx b { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-wplay .tx > span { font-size: 12px; color: var(--muted); }
.lx-wplay .ctl { display: flex; gap: 2px; flex: none; }
.lx-wplay .ctl .lx-ib svg.i { width: 15px; height: 15px; }
.lx-wplay .ctl .lx-ib.on { background: var(--accent); color: var(--on-acc); }
.lx-w.slim .lx-wplay .tx { display: none; }
/* Высокий плеер: обложка сверху, название, полоса и кнопки по центру. */
.lx-wplay.tall { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
.lx-wplay.tall .cover { width: min(46%, 120px); height: auto; aspect-ratio: 1; border-radius: 16px; }
.lx-wplay.tall .cover svg.i { width: 34%; height: 34%; }
.lx-wplay.tall .tx { flex: none; width: 100%; align-items: center; }
.lx-wplay.tall .tx .lx-wbar { width: 80%; margin-top: 6px; }
.lx-wplay.tall .ctl { gap: 8px; }
.lx-wplay.tall .ctl .lx-ib { width: 34px; height: 34px; }
.lx-wsys { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.lx-wsysrow { display: grid; grid-template-columns: minmax(0, 76px) minmax(0, 1fr) 36px; align-items: center; column-gap: 8px; font-size: 12.5px; color: var(--t2); }
.lx-wsysrow > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-wsysrow b { text-align: right; font-weight: 600; color: var(--fg); }
.lx-whome { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); align-content: start; gap: 6px; overflow: hidden; }
.lx-wdev { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 8px 10px; border-radius: 11px; border: 1px solid rgba(var(--ink), 0.08); background: rgba(var(--ink), 0.05); text-align: left; transition: background-color .15s, border-color .15s; }
.lx-wdev svg.i { width: 18px; height: 18px; color: var(--muted); }
.lx-wdev span { max-width: 100%; font-size: 12px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-wdev b { font-size: 12.5px; font-weight: 600; }
.lx-wdev.on { border-color: rgba(var(--acc), 0.45); background: rgba(var(--acc), 0.16); }
.lx-wdev.on svg.i { color: var(--warn); }
.lx-wdev.sensor { cursor: default; }
.lx-wplus { position: absolute; top: -32px; right: 0; }
.lx-w-smarthome .lx-wbody { overflow: visible; }
.lx-wplugs { display: flex; flex-direction: column; overflow: hidden; }
.lx-wplugs .lx-prow { font-size: 13.5px; }
.lx-wplugs .lx-prow > span:first-child { margin-right: 8px; }
.lx-wlisten { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-wlisten .lx-btn { flex: 1 1 0; min-width: 0; }

/* Лист «Добавить виджет»: темы, значок, название и строка о деле. */
.lx-wsheet { width: 540px; height: min(600px, 100%); }
.lx-wsheet .lx-search { margin: 16px 24px 0; }
.lx-wsheet .lx-search .lx-field { height: 38px; }
.lx-wsheet-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 18px 16px 24px; }
.lx-wsheet-list .grp { margin: 14px 0 4px 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.lx-wrow { min-height: 50px; margin-bottom: 2px; padding: 7px 8px; cursor: default; }
.lx-wrow .lx-tile { width: 36px; height: 36px; border-radius: 11px; color: var(--accent); }
.lx-wrow .tx b { display: flex; align-items: center; gap: 6px; }
.lx-wrow .lx-btn { flex: none; min-width: 104px; height: 30px; }

/* Лист «Новый стол»: название и двенадцать заготовок в три колонки. */
.lx-dsheet { width: 600px; }
.lx-dsheet-body { min-height: 0; overflow-y: auto; padding: 16px 24px 0; }
.lx-dsheet-body .lx-cap { margin: 16px 0 8px; }
.lx-dtpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lx-dtpl { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; column-gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid rgba(var(--ink), 0.1); background: rgba(var(--ink), 0.04); text-align: left; transition: background-color .12s, border-color .12s; }
.lx-dtpl:hover { background: rgba(var(--ink), 0.07); }
.lx-dtpl.on { border-color: rgba(var(--acc), 0.7); background: rgba(var(--acc), 0.12); }
.lx-dtpl .lx-tile { grid-row: span 2; width: 32px; height: 32px; color: var(--accent); }
.lx-dtpl b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-dtpl span:not(.lx-tile) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; line-height: 15px; color: var(--muted); }

@media (max-width: 860px) {
    .lx-hsteps { display: none; }
    .lx-dtpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .lx-board { margin-right: 0; padding-right: 0; overflow: visible; }
    .lx-hwrap > .lx-board { flex: none; }
    .lx-wsheet { width: 100%; height: 100%; }
    .lx-wsheet-list { padding-left: 14px; padding-right: 10px; }
    .lx-wsheet .lx-search { margin-left: 14px; margin-right: 14px; }
    .lx-wrow .lx-btn { min-width: 0; }
    .lx-dsheet { width: 100%; }
    .lx-dsheet-body { padding-left: 16px; padding-right: 16px; }
    .lx-dtpls { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ «Дополнения → Оформление» (2.4, AppearanceView)
   Карточки тем с миниатюрой-градиентом (цвета темы, не снимок), серия «Ван Гог» одной карточкой, эффекты — капсулами. */
.lx-sec-static { cursor: default; }
.lx-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.lx-looks-vg { margin-top: 10px; }
.lx-look { position: relative; display: flex; flex-direction: column; padding: 10px 10px 12px; border-radius: 15px; min-width: 0; }
.lx-look.on { border: 1.5px solid var(--accent); padding: 9.5px 9.5px 11.5px; }
.lx-look > .lx-plus { position: absolute; top: 16px; right: 16px; margin: 0; z-index: 1; }
.lk-pv { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; background: var(--pv); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.lk-pv i { position: absolute; left: 12%; top: 20%; right: 12%; bottom: 14%; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.1); }
.lk-pv i::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22%; border-right: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); }
.lk-pv i::after { content: ""; position: absolute; left: 32%; right: 12%; top: 22%; height: 14%; border-radius: 3px; background: rgba(255, 255, 255, 0.2); box-shadow: 0 9px 0 rgba(255, 255, 255, 0.12); }
.lk-pv.vg i { display: none; }
.lk-pv.neon i { border-color: rgba(0, 229, 255, 0.8); background: rgba(0, 229, 255, 0.05); box-shadow: 0 0 10px rgba(0, 229, 255, 0.45); }
.lx-look b { display: block; margin-top: 10px; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-look .d { display: -webkit-box; margin-top: 2px; min-height: 34px; overflow: hidden; font-size: 12.5px; line-height: 17px; color: var(--t2); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lx-look .lx-btn { margin-top: 10px; height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.lx-series .lx-btn svg.i { width: 14px; height: 14px; transition: transform .2s; }
.lx-series .lx-btn.open svg.i { transform: rotate(180deg); }
.lx-fx { margin-top: 0; }
@media (max-width: 640px) {
    .lx-looks { grid-template-columns: 1fr 1fr; }
}
