/* влифте — чистый рабочий интерфейс (по фирменному макету «концепция 03»):
   белый фон, светлая боковая панель, синий акцент, Golos, тонкие линии вместо теней. */
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('fonts/golos-text-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('fonts/golos-text-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212; }

:root {
  --bg: #ffffff; --side: #f5f5f3; --panel: #ffffff; --panel-2: #f7f8f4; --hover: #eceee9;
  --text: #2c3037; --muted: #787d84; --faint: #9a9f95; --soft-ink: #64686c;
  --line: #eceeeb; --line-2: #e1e5de;
  --accent: #1a46a1; --accent-hover: #14377e; --accent-ink: #ffffff; --accent-soft: #e9edf4; --accent-soft-2: #d9e1f0;
  --warm: #bbaeaa;
  --ok: #4f7a5a; --ok-soft: #eff3ee; --ok-dot: #718b73;
  --warn: #927340; --warn-soft: #f5f0e7; --warn-dot: #ab936b; --duty-soft: #fbf0bf;
  --bad: #b3261e; --bad-soft: #fcebea;
  --shadow: none; --shadow-up: 0 10px 40px rgba(24, 43, 53, .10);
  --r: 10px; --r-s: 7px;
  --card: #ffffff; --soft: #f1f1ee;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #17191d; --side: #1d2024; --panel: #1f2226; --panel-2: #24272c; --hover: #2a2e34;
  --text: #e6e8ec; --muted: #9aa0a8; --faint: #7a8089; --soft-ink: #b4b9c0;
  --line: #2c3036; --line-2: #383d44;
  --accent: #7d9ef0; --accent-hover: #93b0f5; --accent-ink: #0f1a33; --accent-soft: #232c40; --accent-soft-2: #2c3852;
  --ok: #8fc39b; --ok-soft: #1f2b23; --ok-dot: #8fc39b; --warn: #d9b679; --warn-soft: #2e281d; --warn-dot: #d9b679; --duty-soft: #413718;
  --bad: #ff8a80; --bad-soft: #3a2220; --shadow-up: 0 10px 40px rgba(0, 0, 0, .5);
  --card: #1f2226; --soft: #2a2e34;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* ПРАВИЛО НА ВЕСЬ САЙТ: скрытое атрибутом hidden обязано исчезать.
   Браузер задаёт hidden слабым правилом display:none, и ЛЮБОЙ наш display:flex/grid его перебивает —
   элемент остаётся на экране, хотя скрипт его «спрятал». Так сломался поиск сотрудника в окне
   «Карточка сотрудника» (.link-opt — display:flex): человек печатает, а список не отбирается.
   Ниже по файлу есть десяток точечных правил «.что-то[hidden] { display: none }» — они писались
   каждый раз, когда эти грабли находили заново. Теперь правило одно и общее, точечные не мешают. */
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 13px/1.55 'Golos Text', Golos, Arial, sans-serif; letter-spacing: -.12px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1 { font-size: 31px; line-height: 1.25; letter-spacing: -1px; font-weight: 500; margin: 0; }
h2 { font-size: 16px; letter-spacing: -.3px; font-weight: 500; margin: 0 0 12px; }
h3 { font-size: 13px; font-weight: 550; margin: 0 0 8px; }
.ic { flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 18px; }
.spacer { flex: 1; }

/* ---------- каркас ---------- */
.app { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: 238px; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 26px 15px 16px; z-index: 30; overflow-y: auto; }
.main { margin-left: 238px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 9px; padding: 0 12px 24px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; background: var(--accent); width: 30px; height: 33px; border-radius: 7px; color: #fff; flex: none; }
.brand-word { font-size: 26px; font-weight: 560; letter-spacing: -1.1px; line-height: 1; transition: letter-spacing .45s cubic-bezier(.2, .8, .2, 1); }
/* при наведении буквы чуть разъезжаются */
.brand:hover .brand-word, .brand:focus-visible .brand-word { letter-spacing: 1.6px; }
@media (prefers-reduced-motion: reduce) { .brand-word { transition: none; } }
.brand-word i { font-style: normal; color: var(--warm); }
.company { display: flex; align-items: center; gap: 9px; padding: 8px 10px 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line-2); min-width: 0; }
.company b { font-size: 12px; font-weight: 550; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
/* Баланс под названием компании — обычным текстом, как и просили: не кнопка и не плашка.
   Что это ссылка, видно только при наведении: мозолить глаза деньгам незачем. */
.company .co-bal { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.company .co-bal:hover, .company .co-bal:focus-visible { color: var(--accent); text-decoration: none; }
.company > span:last-child { min-width: 0; }
.mono { width: 29px; height: 29px; border-radius: 7px; background: #eaece7; color: #70786c; font-size: 10px; font-weight: 600; display: grid; place-items: center; flex: none; }
:root[data-theme="dark"] .mono { background: var(--hover); color: var(--muted); }
.nav { display: flex; flex-direction: column; }
.nav-sec { padding: 20px 12px 6px; font-size: 11px; color: #7e847b; }
.nav-i { display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 1px 0; border-radius: 7px; color: var(--soft-ink); font-size: 13px; min-width: 0; }
.nav-i:hover { background: var(--hover); text-decoration: none; }
.nav-i .ic { color: #868b8d; }
.nav-i.on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.nav-i.on .ic { color: var(--accent); }
.nav-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-n { margin-left: auto; font-size: 11px; color: #959991; }
.nav-i.on .nav-n { color: #8393b2; }
.nav-i.sub { padding: 6px 12px; font-size: 12.5px; gap: 9px; }
.nav-c { min-width: 24px; height: 19px; padding: 0 5px; border-radius: 5px; background: #e8e9e4; color: #5d6359; font-size: 10.5px; font-weight: 600; display: inline-grid; place-items: center; flex: none; }
.nav-i.sub.on .nav-c { background: var(--accent-soft-2); color: var(--accent); }
.nav-i.sub.warn .nav-c { background: var(--warn-soft); color: var(--warn); }
:root[data-theme="dark"] .nav-c { background: var(--hover); color: var(--muted); }
.nav-empty { padding: 4px 12px; font-size: 11.5px; color: var(--faint); }
.side-bottom { margin-top: auto; padding-top: 18px; }
.me { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line-2); margin-top: 12px; padding: 14px 6px 0; }
.me form { margin: 0; }
.ava { width: 30px; height: 30px; border-radius: 50%; background: #e7e2dc; color: #777064; display: grid; place-items: center; font-size: 10px; font-weight: 600; flex: none; }
.me-t { flex: 1; min-width: 0; line-height: 1.25; }
.me-t b { font-size: 12px; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-t small { font-size: 11px; color: var(--muted); }
/* «Помощь» — нарочно обычная подчёркнутая ссылка, а не кнопка: её жмут редко, и в ряду разделов
   работы она бы только отвлекала. Стоит под именем и «Выйти» — внизу, где её и ищут. */
.side-help { display: block; padding: 10px 6px 2px; font-size: 12px; color: var(--muted); text-decoration: underline; }
.side-help:hover { color: var(--accent); }
.topbar { height: 64px; padding: 0 44px; display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: #93988f; }
.crumb-sep { color: #c6c8c5; }
.crumb-now { color: #727970; font-weight: 450; }
/* «Назад» живёт в шапке и только в ней: место одно и то же на каждой странице, высота не пляшет.
   Ведёт туда, где человек был (inc/layout.php, след в сессии), а не в начало раздела. */
.topback { display: inline-flex; align-items: center; gap: 5px; max-width: 230px; flex: none;
  padding: 6px 12px 6px 8px; margin-right: 2px; border-radius: 99px; text-decoration: none;
  font-size: 12.5px; font-weight: 500; color: var(--accent); background: var(--accent-soft); }
.topback:hover { background: var(--accent-soft-2); color: var(--accent-hover); text-decoration: none; }
.topback svg { flex: none; }
.topback span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ВКЛАДКИ, как в браузере (assets/app.js): полоса под шапкой, до 10 вкладок. Не влезают — полоса
   прокручивается вбок, текущая всегда на виду. На телефоне скрыта: места нет, там — кнопка «назад». */
.vtabs { display: flex; align-items: flex-end; gap: 4px; padding: 0 44px; margin: -8px 0 8px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line); }
.vtabs[hidden] { display: none; }
.vtab { flex: 0 1 auto; display: inline-flex; align-items: center; max-width: 200px; min-width: 90px; border: 1px solid var(--line); border-bottom: none; border-radius: 9px 9px 0 0; background: var(--panel-2, var(--bg)); }
.vtab a { flex: 1 1 auto; min-width: 0; padding: 7px 4px 7px 12px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.vtab a:hover { color: var(--text); text-decoration: none; }
.vtab button { flex: none; width: 22px; height: 22px; margin-right: 4px; border: none; background: none; border-radius: 6px; color: var(--faint); font-size: 10px; cursor: pointer; }
.vtab button:hover { background: var(--bad-soft); color: var(--bad); }
.vtab.on { background: var(--panel); border-color: var(--line-2); box-shadow: 0 -2px 0 var(--accent) inset; position: relative; top: 1px; }
.vtab.on a { color: var(--text); font-weight: 500; }
.vtabs-n { flex: none; margin-left: auto; padding: 0 2px 8px 10px; font-size: 11px; color: var(--faint); white-space: nowrap; }
@media (max-width: 760px) { .vtabs { display: none !important; } }
@media print { .vtabs { display: none !important; } }
/* ПЕРЕТАСКИВАНИЕ ФАЙЛОВ (assets/app.js): зона приёма подсвечивается, когда над ней держат файл */
.dropping { outline: 2px dashed var(--accent); outline-offset: 3px; background: var(--accent-soft); }
.drop-note { margin-top: 6px; font-size: 12px; color: var(--accent); }
.drop-note.bad { color: var(--bad); }
.drop-tip { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
/* на телефоне тащить нечем — подсказку не показываем */
@media (hover: none) { .drop-tip { display: none; } }

/* «вперёд» — только стрелка, без подписи: это пара к «назад», а не самостоятельный путь */
.topfwd { padding: 6px 8px; border: 0; cursor: pointer; font: inherit; }
@media (max-width: 760px) { .topback { max-width: 130px; } .topback span { display: none; } .topback { padding: 6px 8px; } }
.content { max-width: 1270px; margin: 0 auto; padding: 22px 54px 28px; }
.side-shade, .side-close, .only-m { display: none; }
.foot { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 10.5px; color: #afb5a4; }

@media (max-width: 1100px) { .side { width: 214px; } .main { margin-left: 214px; } .content { padding: 20px 30px; } .topbar { padding: 0 30px; } }
@media (max-width: 760px) {
  .side { transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-up); }
  .side.open { transform: none; }
  .side-close { display: grid; position: absolute; top: 8px; right: 6px; }
  .side-shade.open { display: block; position: fixed; inset: 0; background: rgba(24, 32, 51, .25); backdrop-filter: blur(2px); z-index: 25; }
  .main { margin-left: 0; }
  .only-m { display: inline-grid; color: var(--accent); }
  .topbar { height: 56px; padding: 0 14px; }
  .content { padding: 16px 18px 24px; }
  h1 { font-size: 27px; }
}

/* ---------- заголовок страницы ---------- */
.eyebrow { font-size: 10.5px; letter-spacing: .5px; color: #949b91; text-transform: uppercase; }
.ph { display: flex; align-items: center; gap: 16px; margin: 10px 0 8px; flex-wrap: wrap; }
.ph h1 { flex: 1; min-width: 0; }
.ph-a { display: flex; gap: 8px; flex-wrap: wrap; }
.sub { margin: 0 0 22px; color: #768071; font-size: 13px; max-width: 760px; }
.ph + .sub { margin-top: 0; }

/* ---------- элементы ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 8px 13px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 12px; font-weight: 450; cursor: pointer; white-space: nowrap; line-height: 1.2; }
.btn:hover { background: var(--panel-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { min-height: 30px; padding: 5px 10px; font-size: 11.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-s); border: none; background: transparent; color: #8f9988; cursor: pointer; }
.icon-btn:hover { background: var(--hover); color: var(--accent); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.card.pad { padding: 20px 22px; }
.card + .card { margin-top: 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.card-h h2 { margin: 0; }
.card-b { padding: 16px 20px; }

.note { display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px; border-radius: var(--r-s); margin-bottom: 14px; font-size: 12.5px; }
.note .ic { margin-top: 1px; }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note.err { background: var(--bad-soft); color: var(--bad); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.info { background: var(--accent-soft); color: var(--accent); }

/* статусы: точка + текст, без плашек — как в макете */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; white-space: nowrap; color: var(--ok); }
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.pill.ok { color: var(--ok); }
.pill.warn, .pill.unknown { color: var(--warn); }
.pill.soon { color: var(--bad); }
.pill.over { color: #fff; background: var(--bad); padding: 2px 8px; border-radius: 5px; }
.pill.over::before { background: #fff; }
.pill.accent { color: var(--accent); }
.pill.plain { color: var(--muted); }

/* формы */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > span { font-size: 11.5px; color: var(--muted); }
.field small { color: var(--faint); font-size: 11px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 39px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: #fdfefb; color: var(--text); font-size: 13px; outline: none; transition: border-color .12s, box-shadow .12s; }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background: var(--panel-2); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: #a0a799; }
textarea { min-height: 80px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 9px; padding: 6px 0; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.seg-radio { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-radio label { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); cursor: pointer; font-size: 12.5px; }
.seg-radio input { accent-color: var(--accent); }
.seg-radio label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* сводка над реестром */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin: 26px 0 30px; padding-bottom: 24px; }
.stat { padding: 4px 26px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-h { font-size: 12px; color: #727c6e; }
.stat-v { font-size: 29px; font-weight: 450; letter-spacing: -.8px; margin: 10px 0 6px; line-height: 1.1; }
.stat-v small { font-size: 11px; color: #808976; letter-spacing: 0; margin-left: 7px; font-weight: 400; }
.stat-f { font-size: 11px; color: #788271; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--ok-dot); margin-right: 6px; vertical-align: middle; }
.dot.amber { background: var(--warn-dot); }
.dot.red { background: var(--bad); }
@media (max-width: 760px) { .stats { margin: 20px 0; } .stat { padding: 3px 12px; } .stat-v { font-size: 24px; } .stat-v small { display: none; } .stat-h, .stat-f { font-size: 10px; } }

/* вкладки и поиск */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { padding: 0 0 12px; color: #798571; font-size: 12px; border-bottom: 2px solid transparent; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.tab em { font-style: normal; font-size: 10px; color: #a5ab9e; margin-left: 4px; }
.tab.on em { color: #899cc3; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 6px; }
/* Поле поиска. Было почти невидимым: заливка #fdfefb на белом фоне плюс волосяная рамка —
   на странице читалось как пустое место. Берём серую заливку панели и заметную рамку. */
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; min-height: 39px; padding: 0 12px; border: 1px solid #d3d8cf; border-radius: var(--r-s); background: var(--panel-2); color: var(--soft-ink); transition: border-color .12s, background .12s; }
.search:hover { border-color: #bcc3b7; }
.search:focus-within { border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { flex: none; color: var(--muted); }
:root[data-theme="dark"] .search { background: var(--panel-2); border-color: var(--line-2); }
:root[data-theme="dark"] .search:hover { border-color: #4a505a; }
.search input { border: none; box-shadow: none; padding: 0; min-height: 37px; background: transparent; color: var(--text); }
.search input:focus { box-shadow: none; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.toolbar select { width: auto; min-width: 150px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; font-size: 11.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); cursor: pointer; }
.chip:hover { text-decoration: none; border-color: #cfd4cb; }
.chip.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft-2); }

/* таблицы */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; text-align: left; }
.tbl th { font-size: 11px; color: #7b8772; font-weight: 450; padding: 15px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 16px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; vertical-align: middle; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.card .tbl th:first-child, .card .tbl td:first-child { padding-left: 20px; }
.card .tbl th:last-child, .card .tbl td:last-child { padding-right: 20px; }
.tbl tbody tr:hover { background: #fafcf7; }
:root[data-theme="dark"] .tbl tbody tr:hover { background: var(--panel-2); }
.tbl tr[data-href] { cursor: pointer; }
.tbl-group td { background: var(--side); font-size: 11px; color: var(--muted); padding: 8px 12px !important; letter-spacing: .3px; text-transform: uppercase; }
.liftname { display: flex; gap: 11px; align-items: center; min-width: 0; }
.lifticon { width: 29px; height: 34px; display: grid; place-items: center; color: #8d989e; flex: none; }
/* значок лифта рисует CSS, а не SVG в каждой строке: в реестре сотни строк — минус 240 КБ разметки */
.lifticon:empty::before { content: ""; width: 19px; height: 19px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M12 8v13M9 6h6M2 10h1M2 14h1'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M12 8v13M9 6h6M2 10h1M2 14h1'/%3E%3C/svg%3E") center / contain no-repeat; }
.liftname strong { font-size: 13px; font-weight: 450; color: #3d4744; display: block; }
:root[data-theme="dark"] .liftname strong { color: var(--text); }
.liftname a:hover strong { color: var(--accent); }
.liftname a:hover { text-decoration: none; }
.liftname small { display: block; margin-top: 4px; font-size: 11px; color: #7f8b74; }
.fno { color: var(--muted); font-weight: 400; }
.mech { display: flex; gap: 8px; align-items: center; color: #77846b; font-size: 11.5px; white-space: nowrap; }
.tiny-ava { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #f0f1eb; color: #9da18d; font-size: 8px; font-weight: 600; flex: none; }
.gap { font-size: 10.5px; color: var(--bad); white-space: nowrap; }
.list-foot { display: flex; justify-content: space-between; gap: 14px; margin-top: 16px; font-size: 11px; color: #7e8a71; }
@media (max-width: 760px) { .tbl.lifts { min-width: 560px; } .col-mech { display: none; } }

/* пустые состояния */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty h2 { color: var(--text); font-size: 18px; }
.empty .btn { margin-top: 10px; }

/* карточка лифта */
/* «назад» переехала в шапку (.topback): раньше она рисовалась тут, внутри страницы, и её высота
   зависела от того, сколько плашек над ней; в админ панели её не было вовсе. */
.lift-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 18px; }
.kv div span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.kv div b { font-weight: 450; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 980px) { .cols { grid-template-columns: 1fr; } }
.parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.part { border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; background: var(--panel); }
.part-t { font-weight: 500; font-size: 12.5px; line-height: 1.3; }
.part-g { font-size: 11px; color: var(--muted); }
.bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin: 8px 0 6px; }
.bar i { display: block; height: 100%; background: var(--ok-dot); }
.bar i.warn { background: var(--warn-dot); } .bar i.soon, .bar i.over { background: var(--bad); }
.part-f { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
/* последняя заметка к узлу — строкой под кнопками, ведёт на запись журнала */
.part-note { display: block; margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line-2); font-size: 11.5px; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.part-note:hover { text-decoration: none; color: var(--accent); }
.part-note span { display: block; color: var(--muted); font-size: 11px; }
.ev { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; align-items: center; }
.ev:last-child { border-bottom: none; }
.ev-d { width: 82px; flex: none; font-weight: 500; }
.ev-d.over { color: var(--bad); }
.ev-t { flex: 1; min-width: 0; }
.log-i { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.log-i:last-child { border-bottom: none; }
a.log-link { display: block; color: var(--text); border-radius: var(--r-s); margin: 0 -8px; padding: 10px 8px; }
a.log-link:hover { background: var(--panel-2); text-decoration: none; }
.brief { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.brief span { font-size: 11.5px; color: var(--soft-ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.brief span.bad { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.access { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-s); background: var(--warn-soft); color: #6d5a33; font-size: 12.5px; margin-top: 14px; }
:root[data-theme="dark"] .access { color: var(--warn); }
.thread { border-left: 1px solid var(--line-2); margin-left: 6px; padding-left: 16px; }
.cmt { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cmt:last-child { border-bottom: none; }
.cmt-h { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.cmt-h b { color: var(--text); font-weight: 500; }

/* календарь */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { font-size: 10.5px; color: var(--muted); text-align: center; padding: 4px 0; text-transform: uppercase; letter-spacing: .4px; }
.cal-c { min-height: 84px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 6px; font-size: 11px; overflow: hidden; }
.cal-c.x { background: transparent; border-color: transparent; }
.cal-c.today { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cal-n { font-weight: 500; color: var(--muted); margin-bottom: 3px; }
.cal-tag { display: block; margin: 2px 0; padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-tag:hover { text-decoration: none; filter: brightness(.97); }
.cal-tag.over { background: var(--bad); color: #fff; }
.cal-tag.part { background: var(--warn-soft); color: var(--warn); }
.cal-tag.proj { background: transparent; border: 1px dashed var(--accent-soft-2); }
@media (max-width: 720px) { .cal-c { min-height: 54px; } .cal-tag { font-size: 9px; padding: 1px 4px; } }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-s); overflow: hidden; }
.seg a { padding: 7px 12px; font-size: 11.5px; color: var(--muted); }
.seg a:hover { text-decoration: none; background: var(--panel-2); }
.seg a.on { background: var(--accent-soft); color: var(--accent); }

/* модальное окно — справа, как карточка в макете */
dialog.modal { border: none; padding: 0; margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(560px, 100vw); background: var(--panel); color: var(--text); box-shadow: -10px 0 70px rgba(24, 43, 53, .12); }
dialog.modal::backdrop { background: rgba(24, 32, 51, .25); backdrop-filter: blur(3px); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 8px; }
.modal-h h2 { margin: 0; font-size: 22px; letter-spacing: -.6px; }
.modal-b { padding: 16px 28px 28px; }

/* гостевые страницы */
body.guest { background: var(--side); }
.guest-wrap { max-width: 440px; margin: 0 auto; padding: 48px 16px 30px; min-height: 100vh; display: flex; flex-direction: column; }
.guest-wrap.wide { max-width: 980px; }
.guest-brand { margin: 0 auto 26px; padding: 0; }
.guest-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.guest-card h1 { font-size: 26px; margin-bottom: 6px; }
.guest-card .sub { margin-bottom: 20px; }
.guest-alt { text-align: center; margin-top: 16px; color: var(--muted); font-size: 12.5px; }
.guest-foot { margin-top: auto; padding-top: 30px; text-align: center; color: var(--faint); font-size: 11px; }
.hero { text-align: center; padding: 30px 0 10px; }
.hero h1 { font-size: 44px; letter-spacing: -1.6px; line-height: 1.1; }
.hero p { font-size: 15px; color: var(--muted); max-width: 560px; margin: 16px auto 26px; }
.hero .actions { justify-content: center; }
.hero .btn { min-height: 44px; padding: 10px 22px; font-size: 13px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 40px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.feature .brand-mark { margin-bottom: 12px; width: 28px; height: 30px; }
.feature b { font-weight: 500; }
.feature p { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; }

/* прочее */
.quiet { font-size: 11.5px; color: var(--faint); }
.quiet a { color: var(--faint); text-decoration: underline dotted; }
.sync-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-s); margin-bottom: 8px; cursor: pointer; }
.sync-opt input { margin-top: 3px; accent-color: var(--accent); }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi > div { border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; }
.kpi b { display: block; font-size: 20px; font-weight: 450; }
.kpi span { font-size: 11px; color: var(--muted); }
@media print { .side, .topbar, .foot { display: none; } .main { margin: 0; } }
/* мобильные кнопки (меню, закрыть) — только на узком экране; правило в конце, чтобы .icon-btn его не перебивал */
.side-close, .only-m { display: none !important; }
@media (max-width: 760px) { .side-close { display: grid !important; } .only-m { display: inline-grid !important; } }

/* ---------- календарь ТО v2 ---------- */
.cal-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav b { font-size: 16px; font-weight: 500; min-width: 140px; text-align: center; letter-spacing: -.3px; }
.cal-nav .icon-btn { font-size: 18px; border: 1px solid var(--line-2); }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg.l-to1 { background: var(--accent-soft-2); } .lg.l-to-big { background: var(--accent); } .lg.l-osv { background: #7a5bb5; }
.lg.l-part { background: var(--warn-dot); } .lg.l-over { background: var(--bad); } .lg.l-proj { border: 1px dashed var(--accent); }
.lg.l-ptof { background: var(--bad-soft); box-shadow: inset 0 0 0 1px var(--bad); }
.lg.l-done { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .cal-wrap { grid-template-columns: 1fr; } }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-dow { font-size: 10.5px; color: var(--muted); text-align: left; padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--side); text-transform: uppercase; letter-spacing: .4px; }
.cal-dow.we { color: var(--faint); }
a.cal-c, .cal-c { display: flex; flex-direction: column; gap: 3px; min-height: 104px; padding: 7px 8px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--text); overflow: hidden; box-shadow: none; }
a.cal-c:hover { background: var(--panel-2); text-decoration: none; }
.cal-c.x { background: var(--side); }
.cal-c.we { background: #fbfbf9; }
:root[data-theme="dark"] .cal-c.we { background: var(--panel-2); }
.cal-c.today .cal-n { background: var(--accent); color: #fff; }
.cal-c.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-n { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--soft-ink); padding: 1px 7px; border-radius: 6px; margin-bottom: 2px; }
.cal-n em { font-style: normal; font-size: 10px; color: var(--muted); font-weight: 400; }
.cal-c.today .cal-n em { color: #dfe6f5; }
.cal-tag { display: block; padding: 2px 6px; border-radius: 5px; font-size: 10.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; }
.cal-tag b { font-weight: 600; }
.cal-tag.t-to1 { background: var(--accent-soft); color: var(--accent); }
.cal-tag.t-big { background: var(--accent); color: #fff; }
.cal-tag.t-osv { background: #efe9f8; color: #5d3f96; }
.cal-tag.t-part { background: var(--warn-soft); color: var(--warn); }
.cal-tag.t-over { background: var(--bad); color: #fff; }
/* срок устранения замечания из акта ПТО: не наша работа и не срок узла — отдельный цвет */
.cal-tag.t-ptof { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.cal-tag.t-proj { background: transparent; border-style: dashed; border-color: var(--accent-soft-2); color: var(--accent); }
/* календарь внутри карточки лифта: уже сделанное — приглушённым, чтобы не путалось с планом */
.cal-tag.t-done { background: var(--panel-2); color: var(--muted); border-color: var(--line); }
.cal-more { font-size: 10.5px; color: var(--muted); padding-left: 4px; }
.cal-day { position: sticky; top: 16px; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--panel); }
.day-i { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.day-i:hover { text-decoration: none; }
.day-i:hover b { color: var(--accent); }
.day-i .cal-tag { flex: none; min-width: 46px; text-align: center; }
.day-t { min-width: 0; }
.day-t b { display: block; font-weight: 450; font-size: 12.5px; }
.day-t small { color: var(--muted); font-size: 11px; }
.cal-over { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
/* раскрытый список просроченного: своя прокрутка, иначе приклеенная колонка уезжает за экран */
.cal-over-all { max-height: 52vh; overflow: auto; }
@media (max-width: 720px) { a.cal-c, .cal-c { min-height: 58px; padding: 4px; } .cal-tag { font-size: 0; padding: 0; height: 5px; border-radius: 3px; } .cal-more { display: none; } .cal-n { font-size: 11px; padding: 0 4px; } }

/* документы лифта: полка и книга */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.book-card { display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.book-card:hover { text-decoration: none; }
.book-card:hover .book-cover { border-color: var(--accent); box-shadow: var(--shadow-up); }
.book-cover { aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); transition: box-shadow .15s, border-color .15s; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.book-card b { font-weight: 500; font-size: 12.5px; line-height: 1.3; }
.book-card small { font-size: 11px; color: var(--muted); }
.book { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; } .book-toc { position: static !important; max-height: none !important; } }
.book-toc { position: sticky; top: 14px; max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: var(--panel); }
.toc-i { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 12px; color: var(--soft-ink); }
.toc-i:hover { background: var(--hover); text-decoration: none; }
.toc-i.on { background: var(--accent-soft); color: var(--accent); }
.toc-i em { font-style: normal; color: var(--faint); }
.thumbs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.thumbs-grid a { position: relative; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; aspect-ratio: 3 / 4; display: block; }
.thumbs-grid a.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.thumbs-grid a.hit { border-color: var(--warn-dot); }
.thumbs-grid img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumbs-grid span { position: absolute; right: 3px; bottom: 3px; font-size: 9px; background: rgba(0, 0, 0, .55); color: #fff; padding: 0 4px; border-radius: 3px; }
.book-page { min-width: 0; }
.book-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.book-img { display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.book-img img { width: 100%; display: block; }
.book-text { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.book-text summary { cursor: pointer; color: var(--accent); font-size: 12.5px; }
.book-text div { margin-top: 10px; font-size: 13px; line-height: 1.65; }
mark { background: #fbe7a1; color: inherit; border-radius: 2px; }

/* электромеханики */
.ava-img { object-fit: cover; padding: 0; background: var(--panel-2); }
.mech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mech-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--text); }
.mech-card:hover { text-decoration: none; border-color: var(--accent-soft-2); box-shadow: var(--shadow-up); }
.mech-card .ava { grid-row: span 2; }
/* МОДЕЛИ ЛИФТОВ (models.php): карточки моделей, «что обычно», параметры узлов, папки лифтов */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.model-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--text); }
.model-card:hover { text-decoration: none; border-color: var(--accent-soft-2); box-shadow: var(--shadow-up); }
.model-ic { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-s); background: var(--accent-soft); color: var(--accent); }
.model-t { display: flex; flex-direction: column; min-width: 0; }
.model-t b { font-weight: 600; font-size: 14px; }
.model-t small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-f { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); }
.model-typ td { padding: 6px 8px; font-size: 12.5px; }
.model-typ td:first-child { width: 45%; }
.warn-t { color: var(--warn); }
.model-nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.model-node h3 { font-size: 12px; margin: 0 0 6px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.model-node.sm { margin-top: 10px; }
.model-np { display: flex; gap: 8px; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.model-np span { color: var(--muted); }
.model-np b { font-weight: 500; text-align: right; }
.model-np small { color: var(--faint); font-size: 10.5px; }
.model-unit { border: 1px solid var(--line); border-radius: var(--r-s); margin-bottom: 8px; }
.model-unit > summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.model-unit > summary::-webkit-details-marker { display: none; }
.model-unit > summary .spacer { flex: 1 1 auto; }
.model-unit-ic { color: var(--accent); display: inline-flex; }
.model-unit-b { padding: 0 12px 12px; }
.model-unit-links { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; font-size: 12.5px; }
/* подсказка по модели в мастере создания лифта */
.wiz-mhint { margin: 0 0 10px; }
/* ЗАЯВКИ ДИСПЕТЧЕРА (calls.php): дежурные сегодня, новая заявка, горящие заявки; «проблема» — жёлтым */
.calls-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .calls-top { grid-template-columns: 1fr; } }
.calls-duty-g { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 10px 0 4px; }
.calls-duty-g:first-child { margin-top: 0; }
.calls-duty-i { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.calls-duty-i:last-child { border-bottom: none; }
.calls-duty-i.now { background: var(--ok-soft); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--r-s); border-bottom-color: transparent; }
.calls-duty-n { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.calls-duty-n b { font-weight: 500; }
.calls-duty-n small { color: var(--muted); font-size: 11.5px; }
.calls-now { color: var(--ok); font-weight: 600; }
.duty-let { flex: none; display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.duty-let.sm { min-width: 20px; height: 20px; font-size: 11px; border-radius: 5px; }
.calls-new select[size] { width: 100%; margin-top: 6px; padding: 4px; }
.calls-new select[size] option { padding: 4px 6px; }
.call-i { border: 1px solid var(--line); border-left: 4px solid var(--warn-dot, var(--warn)); border-radius: var(--r-s); padding: 10px 14px; margin-bottom: 10px; background: var(--panel); }
.call-i:last-child { margin-bottom: 0; }
.call-i.problem { border-left-color: #e0a800; background: color-mix(in srgb, #ffd23f 12%, var(--panel)); }
.call-i.closed { border-left-color: var(--line-2); opacity: .85; }
.call-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.call-h .spacer { flex: 1 1 auto; }
.call-a { margin-top: 6px; font-size: 14px; font-weight: 500; }
.call-n { margin-top: 4px; color: var(--soft-ink, var(--text)); }
.call-m { margin-top: 6px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.call-p { display: flex; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: var(--r-s); background: color-mix(in srgb, #ffd23f 28%, var(--panel)); color: #7a5a00; font-size: 12.5px; }
/* жёлтый треугольник «есть проблема» */
.btn.call-warn { background: #ffd23f; border-color: #e0b400; color: #4a3600; }
.btn.call-warn:hover { background: #ffc800; }
/* монтажное звено (fitters.php): та же карточка, плюс крестик «убрать из звена» в углу */
.mech-card-wrap { position: relative; display: grid; }
.mech-card-wrap > .mech-card { padding-right: 34px; }
.mech-card-x { position: absolute; top: 6px; right: 6px; margin: 0; }
.mech-card-x .btn-x { width: 24px; height: 24px; border: none; background: none; border-radius: 6px; color: var(--faint); cursor: pointer; font-size: 12px; line-height: 1; }
.mech-card-x .btn-x:hover { color: var(--bad); background: var(--bad-soft); }
.mech-t b { display: block; font-weight: 500; }
.mech-t small { color: var(--muted); font-size: 11.5px; }
.mech-f { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); align-items: center; }
.mech-f b { color: var(--text); font-weight: 500; }
.profile { display: flex; gap: 22px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.profile-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.profile-photo label { cursor: pointer; }
.doc { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.doc:last-child { border-bottom: none; }
.doc-file { width: 64px; height: 80px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; overflow: hidden; background: var(--panel-2); color: var(--muted); }
.doc-file img { width: 100%; height: 100%; object-fit: cover; }
.doc-t b { font-weight: 500; display: block; }
.doc-t small { color: var(--muted); font-size: 11.5px; }
.doc-v { margin-top: 6px; }
.doc-a { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.decoded { margin-top: 8px; font-size: 12px; }
.decoded summary { cursor: pointer; color: var(--accent); }
.decoded div { margin-top: 6px; padding: 10px 12px; background: var(--panel-2); border-radius: var(--r-s); max-height: 260px; overflow: auto; color: var(--soft-ink); }

/* отчёт о ТО */
.item { border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px 4px; margin-bottom: 10px; background: var(--panel-2); }
.item-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
/* фото в записи журнала */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.gallery a { display: block; position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; background: var(--panel-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery span { position: absolute; left: 6px; top: 6px; font-size: 10px; background: rgba(0, 0, 0, .55); color: #fff; padding: 1px 6px; border-radius: 4px; }
.gallery a.file { display: grid; place-items: center; font-size: 11px; color: var(--muted); padding: 8px; text-align: center; }
.remark { border-top: 1px solid var(--line); padding: 14px 0; }
.remark:first-child { border-top: none; padding-top: 4px; }
.remark-h { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ba h4 { margin: 0 0 6px; font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
/* список проведённых ТО в карточке */
.to-list a { display: flex; align-items: center; gap: 10px; padding: 10px 8px; margin: 0 -8px; border-radius: var(--r-s); color: var(--text); border-bottom: 1px solid var(--line); }
.to-list a:last-child { border-bottom: none; }
.to-list a:hover { background: var(--panel-2); text-decoration: none; }
.to-k { flex: none; min-width: 54px; text-align: center; font-size: 11px; font-weight: 600; padding: 3px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); }
.to-k.big { background: var(--accent); color: #fff; } .to-k.osv { background: #efe9f8; color: #5d3f96; }
.to-t { flex: 1; min-width: 0; font-size: 12.5px; }
.to-m { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ДОКУМЕНТЫ: три обязательных раздела + дополнительные */
.doc-kit { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; margin-left: auto; margin-right: 8px; display: inline-flex; align-items: center; gap: 5px; }
.doc-kit.ok { background: var(--ok-soft); color: var(--ok); }
.doc-kit.part { background: var(--warn-soft); color: var(--warn); }
.doc-kit.none { background: var(--bad-soft); color: var(--bad); }
.doc-req { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.doc-slot { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.doc-slot.empty { border-style: dashed; }
/* КОНТРАГЕНТЫ (counterparties.php): зона карточки предприятия, поля, заполненные из неё, запросы «заведите» */
.cp-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--accent-soft); }
.cp-card-t { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; color: var(--accent); }
.cp-card-t span { display: flex; flex-direction: column; min-width: 0; }
.cp-card-t b { font-weight: 500; font-size: 13.5px; }
.cp-card-t small { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.cp-card .btn, .cp-card .icon-btn { flex: none; }
.cp-sec { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.cp-sec::after { content: ''; flex: 1; height: 1px; background: var(--line); }
/* поле заполнено из документа и ещё не проверено человеком */
.ai-filled { background: var(--ok-soft) !important; box-shadow: inset 3px 0 0 var(--ok-dot); }
.cp-reqs { margin-bottom: 16px; }
.cp-req { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cp-req:last-child { border-bottom: 0; padding-bottom: 0; }
.cp-req:first-child { padding-top: 0; }
.cp-req-t { display: flex; flex-direction: column; flex: 1 1 240px; min-width: 0; }
.cp-req-t b { font-weight: 500; }
.cp-req-t small { color: var(--muted); font-size: 11.5px; }
@media (max-width: 640px) { .cp-card { flex-wrap: wrap; } }
.doc-slot .shelf { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.doc-slot-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.doc-slot-h b { font-weight: 500; font-size: 13.5px; }
.doc-slot-h .btn, .doc-slot-h label.btn { margin-left: auto; flex: none; white-space: nowrap; }
/* узкая плашка: заголовку не хватает места рядом с кнопкой — кнопка уходит строкой ниже, а не жмёт название в столбик */
.doc-slot-h { flex-wrap: wrap; }
.doc-slot-h b { flex: 1 1 120px; min-width: 0; text-align: left; }
.doc-extra .doc-slot-h b { flex: 0 1 auto; }   /* здесь за названием идёт счётчик — название не растягиваем */
.doc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok-dot); flex: none; }
.doc-slot.empty .doc-dot { background: var(--bad); }
.doc-extra { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.doc-extra h3 { font-size: 12px; color: var(--muted); font-weight: 500; margin: 12px 0 8px; }
.doc-also { color: var(--accent) !important; }
.mt-s { margin-top: 8px; }
.toc-i.sec span { font-weight: 500; }
.doc-matrix th.c, .doc-matrix td.c { text-align: center; width: 150px; }
.doc-cell { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 30px; height: 26px; border-radius: 8px; font-size: 12px; }
.doc-cell.ok { color: var(--ok); background: var(--ok-soft); }
.doc-cell.add { border: 1px dashed var(--line); color: var(--muted); cursor: pointer; font-size: 15px; background: none; font-family: inherit; padding: 0; }
.doc-cell.add:hover { border-color: var(--accent); color: var(--accent); }
.doc-sec-line { display: flex; justify-content: space-between; gap: 10px; max-width: 240px; margin-top: 6px; }
.doc-recent { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.doc-recent:last-child { border-bottom: 0; }
@media (max-width: 860px) { .doc-req { grid-template-columns: 1fr; } .doc-matrix th.c, .doc-matrix td.c { width: auto; font-size: 11px; } }

/* крестик «удалить навсегда» — его видит только администратор платформы (purge_x) */
.purge-x { display: inline-block; margin: 0; line-height: 0; }
.purge-x button { background: none; border: 0; padding: 2px; cursor: pointer; color: var(--muted); opacity: .55; border-radius: 4px; }
.purge-x button:hover { color: var(--bad); opacity: 1; background: color-mix(in srgb, var(--bad) 12%, transparent); }
/* плитка фото с крестиком: крестик кладём углом поверх снимка, иначе он растянет сетку */
.g-i { position: relative; }
.g-i .purge-x { position: absolute; right: 4px; top: 4px; z-index: 2; background: rgba(0, 0, 0, .45); border-radius: 4px; }
.g-i .purge-x button { color: #fff; opacity: .9; }

/* ЛКДС */
pre.code { background: var(--soft, rgba(0,0,0,.04)); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12px; overflow: auto; max-height: 420px; white-space: pre; }
.lk-pair { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lk-pair select { max-width: 320px; }
.lk-src { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lk-src .pill { margin-left: 8px; }
.lk-src-a { display: flex; gap: 6px; }
.lk-steps li { margin-bottom: 8px; line-height: 1.5; }
.lk-steps code, .lk-src code { font-size: 11.5px; word-break: break-all; }
.lk-now { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.lk-ev { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.lk-ev:last-child { border-bottom: 0; }
.lk-ev time { color: var(--muted); font-variant-numeric: tabular-nums; }
.lk-ev.alarm span { color: var(--bad); }
.lk-ev.warn span { color: var(--warn); }
details.card > summary { list-style: none; cursor: pointer; }
details.card > summary::-webkit-details-marker { display: none; }
.lk-reg.alarm, .lk-reg.stop { color: var(--bad) !important; }

/* ОФЛАЙН */
.offline-bar { position: sticky; top: 0; z-index: 50; background: var(--warn-soft); color: var(--warn); text-align: center; font-size: 12.5px; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.offline-state { font-size: 11.5px; color: var(--muted); }
/* без сети блокируем то, что отправить нельзя; формы с очередью (data-outbox) — работают: сохранятся в телефоне */
body.is-offline form[method="post"]:not([data-outbox]) button[type="submit"], body.is-offline .doc-up, body.is-offline .doc-cell.add, body.is-offline [data-open] { opacity: .45; pointer-events: none; }
.offline-bar { pointer-events: none; }

/* ЧЕК-ЛИСТ ТО */
.chk { border-bottom: 1px solid var(--line); padding: 8px 0; }
.chk:last-child { border-bottom: 0; }
.chk-row { display: flex; align-items: center; gap: 10px; }
.chk-n { width: 22px; flex: none; font-size: 11px; color: var(--muted); text-align: right; }
.chk-t { flex: 1; font-size: 13.5px; line-height: 1.4; }
.chk-b { display: flex; gap: 6px; flex: none; }
.chk-b label { cursor: pointer; }
.chk-b input { position: absolute; opacity: 0; pointer-events: none; }
.chk-b span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 34px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 16px; color: var(--muted); }
.chk-ok input:checked + span { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.chk-is input:checked + span { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.chk-b input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.chk-issue { display: none; margin: 8px 0 4px 32px; }
.chk.is-issue .chk-issue { display: block; }
.chk-issue textarea { width: 100%; min-height: 54px; margin-bottom: 6px; }
.thumbs video { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #000; }
.chk-done { display: flex; gap: 10px; padding: 4px 0; font-size: 13px; }
.chk-done span { width: 20px; text-align: center; font-weight: 600; color: var(--ok); }
.chk-done.bad span { color: var(--bad); }
.remark-st { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.remark-st input[type=text] { flex: 1; min-width: 180px; }
.gallery .vid { position: relative; }
.gallery video { width: 160px; height: 120px; object-fit: cover; border-radius: 10px; background: #000; display: block; }
.remark:target { box-shadow: 0 0 0 2px var(--accent); border-radius: 10px; }
.rm-media { display: flex; gap: 4px; }
.rm-media img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.rm-vid { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: 6px; background: var(--soft-ink, #555); color: #fff; font-size: 11px; }

/* ОБЪЕКТ И МЕХАНИК В КАРТОЧКЕ */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; } }
.map-box { margin-top: 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); height: 240px; background: var(--soft, rgba(0,0,0,.03)); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
body.is-offline .map-box { display: none; }
.mech-card { display: flex; gap: 12px; align-items: center; color: var(--text); }
.mech-card:hover { text-decoration: none; }
.mech-card span { display: flex; flex-direction: column; }
.mech-card small { color: var(--muted); font-size: 12px; }

/* ИИ-АНАЛИЗ ЛКДС */
.mb { margin-bottom: 14px; }
.lk-ai-f { display: flex; gap: 6px; margin-left: auto; }
.lk-ai-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.lk-ai-f-i { border-left: 3px solid var(--line); padding: 6px 0 6px 12px; margin: 8px 0; }
.lk-ai-f-i.critical { border-color: var(--bad); }
.lk-ai-f-i.warning { border-color: var(--warn); }
.lk-ai-f-i.info { border-color: var(--accent); }
.lk-ai-t { font-weight: 500; font-size: 13.5px; margin-bottom: 2px; }

/* РАЗДЕЛЫ КАРТОЧКИ ЛИФТА */
.sec-chips { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; margin: 10px 0 0; background: var(--bg); scrollbar-width: none; }
.sec-chips::-webkit-scrollbar { display: none; }
.sec-chips a { flex: none; font-size: 12.5px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--text); background: var(--card, transparent); }
.sec-chips a:hover { border-color: var(--accent); text-decoration: none; }
#info, #object, #lkds, #docs, #parts, #to, #journal { scroll-margin-top: 56px; }
/* реестр замечаний на телефоне — карточками */
@media (max-width: 700px) {
  .tbl.remarks thead { display: none; }
  .tbl.remarks, .tbl.remarks tbody, .tbl.remarks tr, .tbl.remarks td { display: block; width: 100%; }
  .tbl.remarks tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
  .tbl.remarks td { border: 0; padding: 3px 0; }
  .tbl.remarks td:first-child { display: flex; gap: 8px; align-items: baseline; }
}
.lk-guide h3 { margin: 6px 0 6px; }
.lk-step { font-size: 13px; line-height: 1.55; padding: 8px 0; border-top: 1px solid var(--line); }
.lk-step .btn { margin: 4px 6px 4px 0; }
.lk-step summary { cursor: pointer; }
.part-pct { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.part-pct b { font-weight: 600; color: var(--ok); }
.part-pct b.warn, .part-pct b.soon { color: var(--warn); }
.part-pct b.over { color: var(--bad); }

/* РЕЗЕРВНЫЕ КОПИИ И S3 */
.bk-last { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); }
.bk-last.bad { background: var(--warn-soft); }
.s3-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.s3-form .check, .s3-form .actions { grid-column: 1 / -1; }
@media (max-width: 760px) { .s3-form { grid-template-columns: 1fr; } }
.s3-view { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.s3-path { font-size: 13px; margin-bottom: 8px; word-break: break-all; }
.s3-tbl td { font-size: 12.5px; word-break: break-all; }

/* НАСТРОЙКИ: подразделы слева */
.set-wrap { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; }
/* у настроек колонка подразделов слева — страница шире на её ширину, чтобы формы были как в обычных разделах */
.content:has(.set-wrap) { max-width: 1474px; }
.set-nav { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 2px; }
.set-nav a { padding: 8px 12px; border-radius: 9px; color: var(--text); font-size: 13.5px; }
.set-nav a:hover { background: var(--soft, rgba(0,0,0,.04)); text-decoration: none; }
.set-nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.set-h h2 { font-size: 19px; font-weight: 500; margin: 0 0 14px; }
@media (max-width: 860px) {
  .set-wrap { grid-template-columns: 1fr; gap: 12px; }
  .set-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .set-nav a { flex: none; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; }
}
/* реестр и карточка сотрудника */
.staff-who { display: flex; gap: 10px; align-items: center; color: var(--text); }
.staff-who:hover { text-decoration: none; }
.staff-who span { display: flex; flex-direction: column; min-width: 0; }
.staff-who small { color: var(--muted); font-size: 12px; }
.kv.kv1 { grid-template-columns: 1fr; gap: 10px; }
.acc-role { display: flex; gap: 6px; }
.acc-role select { flex: 1; min-width: 0; }
.pw-once { border-color: var(--accent); }
.mono-pw { font-family: ui-monospace, Consolas, monospace; font-size: 17px; letter-spacing: 1px; }
.danger-zone { border-style: dashed; }
.doc-more { display: block; color: var(--muted); font-size: 11.5px; }
/* логотип компании */
.co-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: var(--card, #fff); flex: none; }
.logo-prev { width: 140px; height: 140px; border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--card, #fff); }
.logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-prev .mono.big { font-size: 34px; width: auto; height: auto; background: none; }

/* ЧАТ */
.chat { display: grid; grid-template-columns: 280px minmax(0, 1fr); height: calc(100vh - 150px); min-height: 460px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card, #fff); }
.chat-rooms { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-rooms-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
#roomList { overflow-y: auto; flex: 1; }
.chat-room { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--text); border-bottom: 1px solid var(--line); }
.chat-room:hover { text-decoration: none; background: var(--soft, rgba(0,0,0,.03)); }
.chat-room.on { background: var(--accent-soft); }
.chat-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--soft, #eee); display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; color: var(--muted); }
.chat-rt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.chat-un { font-style: normal; background: var(--accent); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; }
.chat-main { display: flex; flex-direction: column; min-height: 0; }
.chat-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 50px; }
.chat-back { display: none !important; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 78%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-ava { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; background: var(--soft, #eee); display: grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--muted); }
.msg-b { background: var(--soft, #f1f1ee); border-radius: 14px; padding: 7px 11px; min-width: 0; }
.msg.mine .msg-b { background: var(--accent-soft); }
.msg-a { font-size: 11.5px; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.msg-t { font-size: 14px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; }
.msg-t img, .msg-t video { display: block; max-width: min(320px, 100%); max-height: 320px; border-radius: 10px; margin: 2px 0; }
.msg-m { font-size: 10.5px; color: var(--muted); text-align: right; margin-top: 2px; display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.msg-del { border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; display: inline-flex; opacity: .5; }
.msg-del:hover { opacity: 1; color: var(--bad); }
.msg.del .msg-t { color: var(--muted); font-size: 12.5px; }
.msg-day { align-self: center; font-size: 11px; color: var(--muted); background: var(--soft, #f1f1ee); border-radius: 99px; padding: 2px 10px; margin: 6px 0; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-input { flex: 1; min-width: 0; }
.chat-input textarea { width: 100%; resize: none; min-height: 40px; max-height: 160px; border-radius: 12px; padding: 9px 12px; }
.chat-pending { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.chat-attach { cursor: pointer; }
.chat-send { height: 40px; }
.chat-peers { max-height: 50vh; overflow-y: auto; }
.chat-peer { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.chat-peer span { flex: 1; display: flex; flex-direction: column; }
.chat-peer small { color: var(--muted); font-size: 11.5px; }
@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; height: calc(100vh - 120px); border-radius: 12px; }
  .chat .chat-main { display: none; }
  .chat.open .chat-rooms { display: none; }
  .chat.open .chat-main { display: flex; }
  .chat-back { display: inline-grid !important; }
  .msg { max-width: 90%; }
}

/* СПРОСИТЬ */
.ask .msg.ai { max-width: 92%; }
.ask .msg.ai .msg-b { background: transparent; border: 1px solid var(--line); }
.ask .msg-t p { margin: 0 0 8px; } .ask .msg-t p:last-child { margin-bottom: 0; }
.ask .msg-t h4 { margin: 10px 0 6px; font-size: 14px; }
.ask .msg-t ul, .ask .msg-t ol { margin: 4px 0 8px; padding-left: 20px; }
.ask .msg-t code { background: var(--soft, #f1f1ee); border-radius: 4px; padding: 0 4px; font-size: 12.5px; }
.src-n { color: var(--accent); cursor: pointer; font-size: 10.5px; }
.ask-src { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.ask-src a span { color: var(--accent); }
.ask-files { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.ask-files img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
.ask-vis { margin-top: 8px; font-size: 12px; color: var(--muted); }
.ask-typing { font-size: 11px; color: var(--muted); margin-top: 4px; animation: askblink 1.2s infinite; }
@keyframes askblink { 50% { opacity: .35; } }
.ask-err { color: var(--bad); }
.ask-foot { padding: 10px 14px; border-top: 1px solid var(--line); }
.ask .chat-rooms { display: flex; flex-direction: column; }
.ctx-hit { padding: 9px 0; border-bottom: 1px solid var(--line); }
.ctx-hit:last-child { border-bottom: 0; }
.ctx-hit span { display: block; margin: 2px 0; }

/* ОЧЕРЕДЬ ОТПРАВКИ */
.vl-outbox-chip { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--accent); color: #fff; padding: 9px 14px; border-radius: 99px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.vl-outbox-chip:hover { text-decoration: none; color: #fff; }
.vl-outbox-chip.bad { background: var(--bad); }
.vl-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 70; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 13.5px; transition: .3s; max-width: calc(100vw - 32px); }
.vl-toast.on { opacity: 1; transform: translate(-50%, 0); }
.vl-toast.bad { background: var(--bad); color: #fff; }
.outbox-saved h2 { margin-top: 0; }
.outbox-list .ob { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.outbox-list .ob:last-child { border-bottom: 0; }
.outbox-list .ob span { flex: 1; min-width: 200px; }
.outbox-list .ob .err { color: var(--bad); font-size: 12px; display: block; }
.code-in { font-size: 24px; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.twofa-line { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text); }

/* ---------- вход, регистрация, код: две половины ---------- */
body.guest.auth-page { background: var(--bg); }
.auth { display: grid; grid-template-columns: minmax(380px, 44%) 1fr; min-height: 100vh; min-height: 100dvh; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 34px 44px 30px; color: #fff;
  background: radial-gradient(900px 520px at -10% -10%, rgba(92, 140, 240, .55), transparent 60%),
              radial-gradient(700px 500px at 110% 110%, rgba(187, 174, 170, .28), transparent 60%),
              linear-gradient(165deg, #1a46a1 0%, #133784 48%, #0b1f52 100%); }
.auth-art::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.auth-brand { position: relative; padding: 0; color: #fff; align-self: flex-start; }
.auth-brand .brand-word { font-size: 28px; }
.auth-brand .brand-word i { color: #f0c9a8; }
.auth-pitch { position: relative; margin: auto 0; max-width: 360px; padding: 40px 0; }
.auth-pitch h2 { font-size: 38px; line-height: 1.1; letter-spacing: -1.4px; font-weight: 500; margin: 0 0 16px; color: #fff; }
.auth-pitch p { font-size: 15px; color: rgba(255, 255, 255, .74); margin: 0 0 30px; }
.auth-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-feats li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: rgba(255, 255, 255, .9); }
.auth-feats li span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .14); flex: none; }
.auth-copy { position: relative; font-size: 11.5px; color: rgba(255, 255, 255, .5); }

/* шахта: направляющие, этажи, кабина ездит с остановками */
.shaft { position: absolute; top: 0; bottom: 0; right: 58px; width: 84px; pointer-events: none; }
.shaft-rail { position: absolute; top: 0; bottom: 0; left: 6px; width: 1px; background: rgba(255, 255, 255, .16); }
.shaft-rail.r { left: auto; right: 6px; }
.shaft-floor { position: absolute; left: -10px; right: -10px; height: 1px; top: calc(14% + var(--f) * 18% + 82px); background: rgba(255, 255, 255, .12); }
.shaft-rope { position: absolute; left: 50%; top: 0; width: 1px; height: 14%; background: rgba(255, 255, 255, .3); animation: shaft-rope 16s cubic-bezier(.65, 0, .35, 1) infinite; }
.shaft-cab { position: absolute; left: 12px; right: 12px; top: 14%; height: 82px; border-radius: 9px; border: 1.5px solid rgba(255, 255, 255, .6);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); box-shadow: 0 0 40px rgba(130, 170, 255, .35); animation: shaft-cab 16s cubic-bezier(.65, 0, .35, 1) infinite; }
.shaft-cab b { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 1px; background: rgba(255, 255, 255, .45); }
.shaft-cab::after { content: ""; position: absolute; left: 50%; top: -12px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #f0c9a8; box-shadow: 0 0 10px #f0c9a8; }
@keyframes shaft-cab { 0%, 14% { top: 14%; } 28%, 40% { top: 50%; } 52%, 62% { top: 68%; } 78%, 88% { top: 32%; } 100% { top: 14%; } }
@keyframes shaft-rope { 0%, 14% { height: 14%; } 28%, 40% { height: 50%; } 52%, 62% { height: 68%; } 78%, 88% { height: 32%; } 100% { height: 14%; } }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 28px; min-width: 0; }
.auth-box:has(.grid2) { max-width: 470px; }
.auth-box { width: 100%; max-width: 400px; animation: auth-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes auth-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.auth-page .guest-card { background: none; border: 0; padding: 0; border-radius: 0; }
.auth-page .guest-card h1, .auth-page .guest-card h1[style] { font-size: 34px !important; letter-spacing: -1.3px; line-height: 1.15; margin-bottom: 8px; }
.auth-page .guest-card .sub { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.auth-page .guest-card h3 { font-size: 13px; color: var(--soft-ink); margin: 6px 0 12px; }
.auth-page .field { gap: 7px; margin-bottom: 16px; }
.auth-page .field > span { font-size: 12.5px; color: var(--soft-ink); font-weight: 500; }
.auth-page input[type=text], .auth-page input[type=email], .auth-page input[type=tel], .auth-page input[type=password] {
  height: 48px; padding: 0 14px; border-radius: 11px; font-size: 15px; background: var(--panel); border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s; }
.auth-page input:focus { box-shadow: 0 0 0 4px var(--accent-soft); }
.auth-page .btn.primary.block { min-height: 50px; border-radius: 11px; font-size: 14px; font-weight: 500; margin-top: 10px; gap: 9px;
  box-shadow: 0 10px 24px -10px rgba(26, 70, 161, .65); transition: background .15s, transform .15s, box-shadow .15s; }
.auth-page .btn.primary.block:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(26, 70, 161, .7); }
.auth-page .btn.primary.block .ic { transition: transform .2s; }
.auth-page .btn.primary.block:hover .ic { transform: translateX(3px); }
.auth-page .note { border-radius: 11px; }
.auth-alt { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); text-align: center; }
.auth-alt span { display: block; margin-top: 6px; font-size: 12px; color: var(--faint); }
.auth-page .guest-alt { margin-top: 22px; font-size: 13.5px; }

/* пароль: показать / скрыть */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 48px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.pw-eye:hover { background: var(--hover); color: var(--text); }

/* код из 5 цифр: одно настоящее поле поверх пяти клеток (вставка и автозаполнение работают как обычно) */
.auth-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; margin-bottom: 22px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-soft-2); }
.otp { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; cursor: text; }
.otp .otp-in { position: absolute; inset: 0; width: 100%; height: 100% !important; opacity: 0; border: 0; padding: 0; font-size: 16px; z-index: 2; cursor: text; }
.otp-c { height: 62px; display: grid; place-items: center; border: 1.5px solid var(--line-2); border-radius: 13px; background: var(--panel); font-size: 27px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.otp-c.full { border-color: var(--soft-ink); }
.otp-c.on { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.otp-c.on:empty::after { content: ""; width: 2px; height: 26px; border-radius: 1px; background: var(--accent); animation: otp-caret 1s steps(1) infinite; }
@keyframes otp-caret { 50% { opacity: 0; } }
.otp.err .otp-c { border-color: var(--bad); }
.otp.err { animation: otp-shake .4s; }
@keyframes otp-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.otp-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 18px; }
.otp-foot .btn { color: var(--soft-ink); }
.otp-foot .btn[disabled] { opacity: .65; }

@media (max-width: 1180px) { .shaft { display: none; } }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-art { padding: 18px 20px; border-radius: 0 0 22px 22px; }
  .auth-pitch, .shaft, .auth-copy { display: none; }
  .auth-brand .brand-word { font-size: 24px; }
  .auth-main { align-items: flex-start; padding: 34px 16px 40px; }
  .auth-page .guest-card h1, .auth-page .guest-card h1[style] { font-size: 28px !important; }
  .otp { gap: 8px; }
  .otp-c { height: 56px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .shaft-cab, .shaft-rope, .auth-box, .otp.err, .otp-c.on:empty::after { animation: none; }
}

/* ---------- синхронизация со Складом ---------- */
.sync-last { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.sync-last > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.sync-last span { font-size: 11.5px; color: var(--muted); }
.sync-last b { font-size: 14px; font-weight: 550; }
.sync-last small { font-size: 11.5px; color: var(--faint); }
.sync-runs { border-top: 1px solid var(--line); }
.sync-run { border-bottom: 1px solid var(--line); }
.sync-run summary { display: grid; grid-template-columns: 170px 1fr 1fr 110px; gap: 12px; align-items: center; padding: 12px 18px; cursor: pointer; list-style: none; }
.sync-run summary::-webkit-details-marker { display: none; }
.sync-run[data-empty] summary { cursor: default; }
.sync-run summary:hover { background: var(--panel-2); }
.sr-t { font-size: 12.5px; display: flex; flex-direction: column; }
.sr-t small, .sr-d i { font-size: 11px; color: var(--faint); font-style: normal; display: block; }
.sr-d { font-size: 12.5px; }
.sr-s { text-align: right; }
.sr-body { padding: 4px 18px 16px; display: grid; gap: 10px; }
.sr-g b { font-size: 12.5px; font-weight: 550; }
.conflict { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.conflict-h { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.conflict-t td, .conflict-t th { padding: 8px 10px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
@media (max-width: 720px) { .sync-run summary { grid-template-columns: 1fr 1fr; } .sr-s { text-align: left; } }

/* ---------- счётчик срока службы лифта (25 лет) ---------- */
.lift-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.lifeclock { display: grid; gap: 3px; padding: 7px 12px 8px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--panel); min-width: 250px; }
.lifeclock .lc-label { font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.lifeclock .lc-time { display: flex; align-items: baseline; gap: 2px 7px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.lifeclock .lc-time b { font-size: 17px; font-weight: 550; letter-spacing: -.3px; color: var(--text); }
.lifeclock .lc-time i { font-style: normal; font-size: 11.5px; color: var(--muted); margin-left: 1px; }
.lifeclock .lc-bar { display: block; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 2px; }
.lifeclock .lc-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width .4s; }
.lifeclock.soon { border-color: var(--warn-dot); background: var(--warn-soft); }
.lifeclock.soon .lc-bar i { background: var(--warn); }
.lifeclock.soon .lc-label { color: var(--warn); }
.lifeclock.over { border-color: var(--bad); background: var(--bad-soft); }
.lifeclock.over .lc-label, .lifeclock.over .lc-time b { color: var(--bad); }
.lifeclock.over .lc-bar i { background: var(--bad); }
@media (max-width: 720px) { .lift-top { flex-direction: column; align-items: stretch; } .lifeclock { min-width: 0; } }

/* ---------- карточка лифта: разделы вкладками ---------- */
.tabbed [data-tab][hidden], .tabbed .cols > div[hidden] { display: none !important; }
.tabbed .cols { grid-template-columns: minmax(0, 1fr); }
.tabbed .cols > div > .card + .card { margin-top: 14px; }
.sec-chips[data-tabs] { padding: 10px 0; gap: 8px; }
.sec-chips[data-tabs] a { font-size: 13px; padding: 7px 15px; transition: background .15s, border-color .15s, color .15s; }
.sec-chips[data-tabs] a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- лендинг ---------- */
body.guest.land-page { background: var(--bg); }
.land-in { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.land-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 14px max(28px, calc((100% - 1160px) / 2 + 28px));
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .land-nav { background: rgba(23, 25, 29, .82); }
.land-brand { padding: 0; }
.land-brand .brand-word { font-size: 25px; }
.land-nav nav { display: flex; gap: 22px; margin-right: auto; }
.land-nav nav a { color: var(--soft-ink); font-size: 13.5px; }
.land-nav nav a:hover { color: var(--text); text-decoration: none; }
.land-nav-a { display: flex; gap: 8px; }
.land-nav-a .btn { min-height: 38px; padding: 8px 16px; font-size: 13px; border-radius: 10px; }

.land-hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 600px at 0% 0%, rgba(92, 140, 240, .55), transparent 60%),
              radial-gradient(700px 500px at 100% 100%, rgba(240, 201, 168, .22), transparent 60%),
              linear-gradient(160deg, #1a46a1 0%, #133784 50%, #0b1f52 100%); }
.land-hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 95%); mask-image: linear-gradient(180deg, #000, transparent 95%); }
.land-hero-in { position: relative; max-width: 1160px; margin: 0 auto; padding: 84px 28px 96px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.land-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .92); margin-bottom: 22px; }
.land-tag.dark { background: var(--accent-soft); border-color: var(--accent-soft-2); color: var(--accent); }
.land-copy h1 { font-size: 58px; line-height: 1.04; letter-spacing: -2.4px; font-weight: 500; margin: 0 0 22px; color: #fff; }
.land-copy p { font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .78); max-width: 520px; margin: 0 0 32px; }
.land-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.land-cta.center { justify-content: center; }
.land-btn { min-height: 52px; padding: 12px 24px; font-size: 15px; font-weight: 500; border-radius: 12px; gap: 9px; }
.land-hero .btn.primary { background: #fff; color: #133784; border-color: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }
.land-hero .btn.primary:hover { background: #eef2fb; }
.land-btn .ic { transition: transform .2s; }
.land-btn:hover .ic { transform: translateX(3px); }
.ghost-light { background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .28) !important; color: #fff !important; }
.ghost-light:hover { background: rgba(255, 255, 255, .16) !important; }
.land-proof { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 34px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.land-proof span { display: inline-flex; gap: 7px; align-items: center; }

/* витрина: карточка лифта и шахта */
.land-visual { position: relative; min-height: 420px; }
.lv-card { position: relative; z-index: 2; background: #fff; color: #2c3037; border-radius: 18px; padding: 20px 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); margin-right: 70px; animation: lv-float 7s ease-in-out infinite; }
:root[data-theme="dark"] .lv-card { background: #1f2226; color: #e6e8ec; }
@keyframes lv-float { 50% { transform: translateY(-8px); } }
.lv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.lv-eye { font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: #949b91; margin-top: 4px; }
.lv-clock { display: grid; gap: 2px; padding: 6px 10px 7px; border: 1px solid #e1e5de; border-radius: 10px; }
.lv-clock i { font-style: normal; font-size: 9px; letter-spacing: .4px; text-transform: uppercase; color: #787d84; }
.lv-clock b { font-size: 14px; font-weight: 550; font-variant-numeric: tabular-nums; }
.lv-clock small, .lv-clock em { font-style: normal; }
.lv-clock small { font-size: 10px; color: #787d84; margin: 0 4px 0 1px; font-weight: 400; }
.lv-bar { display: block; height: 3px; background: #eceeeb; border-radius: 2px; overflow: hidden; }
.lv-bar s { display: block; width: 57%; height: 100%; background: #1a46a1; }
.lv-title { font-size: 24px; font-weight: 500; letter-spacing: -.8px; margin: 10px 0 12px; }
.lv-chips { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.lv-chips span { font-size: 11.5px; padding: 4px 11px; border: 1px solid #e1e5de; border-radius: 99px; }
.lv-chips span.on { background: #1a46a1; border-color: #1a46a1; color: #fff; }
.lv-rows { display: grid; gap: 8px; }
.lv-rows div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border: 1px solid #eceeeb; border-radius: 10px; }
.lv-rows span { font-size: 11px; color: #787d84; }
.lv-rows b { font-size: 13px; font-weight: 500; grid-row: 2; }
.lv-rows em { font-style: normal; font-size: 11px; grid-row: 1 / 3; grid-column: 2; align-self: center; padding: 3px 8px; border-radius: 6px; }
.lv-rows em.ok { color: #4f7a5a; background: #eff3ee; }
.lv-rows em.warn { color: #927340; background: #f5f0e7; }
.lv-rows em.bad { color: #b3261e; background: #fcebea; }
.lv-shaft { position: absolute; z-index: 1; right: 0; top: -60px; bottom: -80px; width: 92px; }
.lv-shaft .r { position: absolute; top: 0; bottom: 0; left: 8px; width: 1px; background: rgba(255, 255, 255, .2); }
.lv-shaft .r2 { left: auto; right: 8px; }
.lv-shaft .cab { position: absolute; left: 14px; right: 14px; height: 86px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, .65);
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05)); box-shadow: 0 0 40px rgba(130, 170, 255, .4); animation: lv-cab 14s cubic-bezier(.65, 0, .35, 1) infinite; }
.lv-shaft .cab b { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 1px; background: rgba(255, 255, 255, .5); }
.lv-shaft .cab::after { content: ""; position: absolute; left: 50%; top: -12px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #f0c9a8; box-shadow: 0 0 10px #f0c9a8; }
@keyframes lv-cab { 0%, 15% { top: 12%; } 32%, 46% { top: 58%; } 62%, 74% { top: 34%; } 90%, 100% { top: 12%; } }

/* разделы */
.land-sec { padding: 96px 0; scroll-margin-top: 64px; }
.land-h { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.land-h h2, .land-split h2, .land-final h2 { font-size: 38px; line-height: 1.12; letter-spacing: -1.4px; font-weight: 500; margin: 0 0 14px; }
.land-h p, .land-split p, .land-final p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.land-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.land-f { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.land-f:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(24, 43, 53, .35); border-color: var(--line-2); }
.land-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.land-f b { display: block; font-size: 16px; font-weight: 550; margin-bottom: 6px; }
.land-f p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.land-band { background: var(--side); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.land-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.land-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.land-steps li { counter-increment: st; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.land-steps li::before { content: counter(st); grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px; }
.land-steps b { font-size: 15px; font-weight: 550; }
.land-steps span { font-size: 13px; color: var(--muted); }
.land-final { text-align: center; padding: 56px 28px; border-radius: 24px; background: var(--accent-soft); border: 1px solid var(--accent-soft-2); }
.land-final p { margin-bottom: 28px; }
.land-foot { display: flex; justify-content: space-between; gap: 12px; max-width: 1160px; margin: 0 auto; padding: 26px 28px 40px; font-size: 12.5px; color: var(--faint); border-top: 1px solid var(--line); }
@media (max-width: 980px) {
  .land-hero-in, .land-split { grid-template-columns: 1fr; }
  .land-hero-in { padding: 56px 20px 64px; gap: 40px; }
  .land-copy h1 { font-size: 40px; letter-spacing: -1.4px; }
  .land-grid { grid-template-columns: 1fr 1fr; }
  .lv-card { margin-right: 0; }
  .lv-shaft { display: none; }
  .land-visual { min-height: 0; }
}
@media (max-width: 640px) {
  .land-nav { gap: 10px; padding: 12px 16px; }
  .land-nav nav { display: none; }
  .land-nav-a { margin-left: auto; }
  .land-nav-a .btn.primary { display: none; }
  .land-in { padding: 0 16px; }
  .land-sec { padding: 64px 0; }
  .land-grid { grid-template-columns: 1fr; }
  .land-h h2, .land-split h2, .land-final h2 { font-size: 28px; }
  .land-copy h1 { font-size: 34px; }
  .land-foot { flex-direction: column; padding: 22px 16px 32px; }
}
@media (prefers-reduced-motion: reduce) { .lv-card, .lv-shaft .cab { animation: none; } }

/* ---------- «Про лифты» ---------- */
.lib-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.lib-stats > div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.lib-stats span { font-size: 11.5px; color: var(--muted); }
.lib-stats b { font-size: 18px; font-weight: 550; }
.lib-stats small { font-size: 11.5px; color: var(--ok); }
.lib-add .card-b { display: grid; gap: 14px; }
.lib-opts { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
.lib-opt { display: grid; gap: 5px; }
.lib-opt > span { font-size: 11.5px; color: var(--muted); }
.lib-pv { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; display: grid; gap: 10px; }
.lib-pv-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.lib-pv-s { font-size: 13px; color: var(--muted); }
.lib-pv-s b { color: var(--text); font-weight: 600; }
.lib-pv-s em { font-style: normal; color: var(--ok); margin-left: 6px; }
.lib-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.lib-thumbs img { height: 120px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.lib-search { display: flex; gap: 8px; margin: 18px 0 12px; }
.lib-search input { flex: 1; height: 44px; font-size: 14px; }
.lib-makers { margin-bottom: 14px; }
.lib-makers a:hover { text-decoration: none; }
.lib-list { display: grid; gap: 10px; }
.lib-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; }
.lib-t { display: flex; gap: 10px; align-items: center; color: var(--text); }
.lib-t b { font-weight: 550; font-size: 14px; }
.lib-hit { display: block; font-size: 12.5px; color: var(--soft-ink); padding: 6px 10px; border-radius: 8px; background: var(--panel-2); margin-top: 4px; }
.lib-hit span { color: var(--accent); margin-right: 8px; font-weight: 500; }
.lib-pages { max-height: 70vh; overflow-y: auto; }
.lib-text { white-space: pre-wrap; font-size: 14px; line-height: 1.65; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; max-width: 860px; }
.lib-text mark, .book-text mark { background: #ffe58a; color: inherit; border-radius: 2px; }

.lib-co { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; margin-bottom: 8px; }

/* ---------- реестр: выбор лифтов и закрепление пачкой ---------- */
.tbl.lifts .col-chk { width: 34px; padding-right: 0; }
.tbl.lifts .col-chk input { width: 17px; height: 17px; cursor: pointer; }
.tbl.lifts tr.picked td { background: var(--accent-soft); }
.tbl-group[data-bulk-group] td { cursor: pointer; }
.tbl-group[data-bulk-group] td:hover { color: var(--accent); }
.bulk-bar { position: sticky; bottom: 14px; z-index: 25; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 12px 16px;
  background: var(--panel); border: 1px solid var(--accent-soft-2); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(24, 43, 53, .45); }
.bulk-bar[hidden] { display: none; }
.bulk-bar .bulk-n { font-size: 13px; margin-right: 4px; }
.bulk-bar select { min-width: 220px; max-width: 100%; }

/* ---------- замещение механика ---------- */
.subs { display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.sub-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.sub-row > span { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sub-row.now { border-color: var(--accent-soft-2); background: var(--accent-soft); }
.sub-row .muted { font-size: 12px; }

/* ---------- безопасность компании ---------- */
.sec-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.sec-stats > div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.sec-stats span { font-size: 11.5px; color: var(--muted); }
.sec-stats b { font-size: 15px; font-weight: 550; }
.sec-stats .ok b { color: var(--ok); }
.sec-stats .warn b { color: var(--warn); }
.sec-stats .bad b { color: var(--bad); }
.sec-tbl td.r { text-align: right; }
.sec-filter select { min-width: 200px; }
.sec-ev { font-size: 12.5px; padding: 3px 8px; border-radius: 6px; background: var(--panel-2); white-space: nowrap; }
.sec-ev.bad { color: var(--bad); background: var(--bad-soft); }
.sec-ev.warn { color: var(--warn); background: var(--warn-soft); }
.sec-ev.sec { color: var(--ok); background: var(--ok-soft); }
.sec-ev.in { color: var(--accent); background: var(--accent-soft); }

/* ---------- карта лифтов ---------- */
.map-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.map-tools select { min-width: 220px; }
/* поиск по объектам на карте: поле и выпадающие подсказки */
.map-search { position: relative; flex: 1 1 300px; max-width: 420px; }
.map-search .search { width: 100%; }
.map-sugg { position: absolute; z-index: 1200; top: calc(100% + 4px); left: 0; right: 0; max-height: 420px; overflow: auto; background: var(--card, #fff);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); padding: 4px; }
.map-sg { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.map-sg:hover, .map-sg.on { background: var(--accent-soft, #eef2fb); }
.map-sg span { display: flex; flex-direction: column; min-width: 0; }
.map-sg small { color: var(--muted); }
.map-sg i { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--muted); }
.map-sg i.ok { background: #3f9a5a; } .map-sg i.warn { background: #e0962b; } .map-sg i.bad { background: #d9372b; } .map-sg i.none { background: none; border: 2px dashed var(--muted); }
.map-sg-more { padding: 8px 10px; color: var(--muted); font-size: 13px; }
/* подбор адреса: варианты, что нашёл Яндекс; проверка автоматически поставленных точек */
.geo-cands { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; max-height: 320px; overflow: auto; }
.geo-cand { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.geo-cand > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.geo-cand small { color: var(--muted); }
.geo-cand i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.geo-cand i.ok { background: #3f9a5a; } .geo-cand i.warn { background: #e0962b; }
.geo-rv-h { font-size: 15px; margin: 14px 0 8px; }
.geo-rv td { vertical-align: top; }
.geo-rv-act { white-space: nowrap; text-align: right; }
.geo-rv-ok { margin-top: 12px; }
.geo-rv-ok summary { cursor: pointer; }
.geo-all { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
@media (max-width: 640px) { .geo-cand { flex-wrap: wrap; } .geo-rv-act { white-space: normal; text-align: left; } }
/* подсказки адреса при вводе (assets/app.js, data-addr): список под полем. Свой объект помечен синим — его
   выбор привязывает лифт к уже заведённому дому, а не создаёт двойника. */
.ac-host { position: relative; }
.ac-list { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin-top: 3px; max-height: 266px; overflow: auto;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 14px 34px rgba(24, 43, 53, .16); padding: 4px; }
.ac-item { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; padding: 7px 10px; border: 0;
  border-radius: 8px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.ac-item b { font-weight: 500; font-size: 13.5px; }
.ac-item small { color: var(--muted); font-size: 11px; }
.ac-item.own b { color: var(--accent); }
.ac-item:hover, .ac-item.on { background: var(--panel-2); }
.ac-note { padding: 7px 10px 5px; font-size: 11.5px; color: var(--muted); }
/* тарифы: что входит */
.tariff-max { margin: 4px 0 12px; }
.tariff-h { font-size: 15px; margin: 14px 0 6px; }
.tariff-feat td { vertical-align: top; }
.tariff-feat .tariff-g td { background: var(--bg-soft, #f6f7f9); font-weight: 600; font-size: 13px; color: var(--muted); }
.tariff-mode { white-space: nowrap; }
.tariff-mode .check { display: inline-flex; margin-right: 10px; }
.tariff-price { width: 90px; margin-left: 4px; padding: 4px 8px; }
@media (max-width: 640px) { .tariff-mode { white-space: normal; } }
.tariff-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; margin: 6px 0; }
.tariff-list div { display: flex; gap: 6px; align-items: baseline; }
/* аварийная служба: графики дежурств */
.duty-who .card-b { position: relative; }
.duty-who .search { width: 100%; }
.duty-whores { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.duty-whog { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.duty-whop { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.duty-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.duty-now { display: block; }
.duty-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.duty-month { display: flex; align-items: center; gap: 6px; }
.duty-month b { min-width: 130px; text-align: center; }
.duty-bar select { width: auto; min-width: 220px; }
.duty-appr { align-items: center; }
.duty-appr form { margin-left: auto; flex: none; }
.duty-appr a { color: inherit; text-decoration: underline; }
.duty-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start; }
.duty-side { position: sticky; top: 12px; }
.duty-grid th, .duty-grid td { vertical-align: top; }
.duty-grid thead th small { display: block; font-weight: 400; color: var(--muted); }
.duty-grid tbody th { white-space: nowrap; font-weight: 400; color: var(--muted); }
.duty-grid tbody th b { color: var(--ink, inherit); }
.duty-grid tr.we th, .duty-grid tr.we td { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.duty-grid tr.today th { box-shadow: inset 3px 0 0 var(--accent); }
.duty-grid td.off { color: var(--muted); text-align: center; }
.dcell { min-width: 140px; }
.dcell.dover { outline: 2px dashed var(--accent); outline-offset: -2px; }
.dchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; margin: 2px; border-radius: 999px; background: var(--accent-soft, #eef2fb); font-size: 13px; cursor: grab; user-select: none; border: 1px solid transparent; }
.dchip.picked { outline: 2px solid var(--accent); }
.dchip.c-hand { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.dchip.c-rest { background: #fff3cd; }
.dchip.c-ovl { background: #ffe0b8; border-color: #e0962b; }
.dchip.c-abs { background: #fde2df; border-color: #d9372b; text-decoration: line-through; }
.dchip .dx { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 0 0 2px; font-size: 14px; line-height: 1; }
.dempty { display: inline-block; margin: 2px; padding: 3px 8px; border: 1px dashed var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }
.duty-pal { display: flex; flex-direction: column; gap: 6px; }
.dpal-i small { display: block; color: var(--muted); margin-left: 4px; }
.duty-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; color: var(--muted); }
.duty-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 4px; vertical-align: -1px; }
.duty-legend .c-abs { background: #fde2df; border: 1px solid #d9372b; } .duty-legend .c-ovl { background: #ffe0b8; border: 1px solid #e0962b; }
.duty-legend .c-rest { background: #fff3cd; } .duty-legend .c-hand { background: var(--accent-soft, #eef2fb); border: 1px solid var(--accent); }
.duty-shifts input[type=text] { min-width: 150px; } .duty-shifts .duty-need { width: 64px; }
.duty-wd { white-space: nowrap; } .duty-wd label { display: inline-flex; flex-direction: column; align-items: center; font-size: 11px; margin-right: 4px; }
.duty-mem-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.duty-mem-tools .search { flex: 1 1 280px; }
.duty-mem label[hidden] { display: none; }
.duty-month input[type=month] { height: 32px; padding: 0 8px; font-size: 13px; margin-left: 6px; }
.duty-mem { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; }
.duty-mem small { display: block; color: var(--muted); }
.duty-order-box { margin-top: 14px; }
.duty-order { list-style: none; margin: 6px 0 0; padding: 0; max-width: 520px; display: flex; flex-direction: column; gap: 4px; }
.duty-order li { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); }
.duty-order-n { color: var(--muted); min-width: 22px; }
.duty-order li[data-sep] { border-style: dashed; background: var(--panel-2); }
.duty-order li[data-sep] b { font-weight: 400; font-size: 12.5px; }
.duty-order button[disabled] { opacity: .35; }
.duty-map { height: 420px; }
.duty-area { margin-top: 12px; }
.duty-area > summary { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; padding: 6px 0; font-size: 13px; cursor: pointer; list-style: none; }
.duty-area > summary::-webkit-details-marker { display: none; }
.duty-area > summary::before { content: '▸'; color: var(--muted); }
.duty-area[open] > summary::before { content: '▾'; }
.duty-lift { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft, #eef2fb); }
.duty-map-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
@media (max-width: 900px) { .duty-wrap { grid-template-columns: 1fr; } .duty-side { position: static; order: -1; } .duty-groups { grid-template-columns: 1fr; } }
.link-list { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow: auto; margin: 6px 0 12px; }
.link-opt { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: none; font: inherit; color: inherit; cursor: pointer; }
.link-opt small { color: var(--muted); }
.link-opt:hover { border-color: var(--accent); }
.link-opt.on { border-color: var(--accent); background: var(--accent-soft, #eef2fb); }
.link-cur { margin-top: 6px; color: var(--muted); }
.past-h { font-size: 14px; margin: 14px 0 6px; }
.past-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.past-row { display: grid; grid-template-columns: 1fr 160px; gap: 8px; }
@media (max-width: 520px) { .past-row { grid-template-columns: 1fr; } }
.hist-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.hist-tiles div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.hist-tiles b { font-size: 22px; font-weight: 600; } .hist-tiles span { font-size: 12px; color: var(--muted); }
.hist-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hist-row { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.hist-row small { color: var(--muted); width: 100%; }
@media (max-width: 900px) { .hist-tiles { grid-template-columns: repeat(2, 1fr); } .hist-cols { grid-template-columns: 1fr; } }
.wp-cov { font-size: 12.5px; padding: 3px 10px; border-radius: 99px; margin-left: 8px; white-space: nowrap; }
.wp-cov.ok { background: #e7f4ea; color: #2f7a46; } .wp-cov.warn { background: #fff3d6; color: #8a6510; } .wp-cov.bad { background: #fde2df; color: #b3261e; }
.wp-emp .card-h { flex-wrap: wrap; gap: 6px; }
.wp-days { display: flex; gap: 14px; flex-wrap: wrap; }
.wp-per { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 14px; }
.wp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wp-wd { font-size: 12px; color: var(--muted); text-align: center; padding: 2px 0; }
.wp-wd small { display: block; font-size: 10.5px; opacity: .85; }
/* режим работы компании (п.15): обед и свои часы на отдельные дни недели */
.wp-mode-line { display: flex; align-items: center; gap: 6px; margin: 2px 0 10px; flex-wrap: wrap; }
.wp-mode-line .ic { flex: none; }
.wp-mode input[type="time"] { width: 100%; min-width: 92px; padding: 4px 6px; }
.wp-mode td, .wp-mode th { padding: 4px 6px; }
.wp-mode tr.muted > td { opacity: .6; }
.wp-day { min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; background: var(--panel, #fff); }
.wp-day.pad { border: 0; background: none; }
.wp-day.off { background: color-mix(in srgb, var(--muted) 7%, transparent); }
/* день дежурства: механик занят аварийкой, но лифты в этот день ему всё равно ставятся */
.wp-day.duty { background: var(--duty-soft); border-color: var(--warn-dot); }
.wp-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.wp-dh { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; flex-wrap: wrap; font-size: 12px; }
.wp-why { color: var(--muted); font-size: 11px; text-align: right; }
.wp-duty { color: var(--warn); font-size: 10.5px; }
.wp-dayoff { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); font-size: 10.5px; text-decoration: underline dotted; }
.wp-dayoff:hover { color: var(--bad); }
.wp-lefth { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wp-n { color: var(--muted); font-size: 11px; } .wp-n.over { color: var(--bad); }
.wp-chip { display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 8px; background: var(--accent-soft, #eef2fb); font-size: 12px; line-height: 1.25; cursor: pointer; border: 1px solid transparent; position: relative; }
/* вид ТО: надпись (i) и та же надпись кнопкой (.wk) — выглядят одинаково, но по кнопке выбирают вид */
.wp-chip i, .wp-chip .wk { font-style: normal; font-weight: 600; font-size: 10.5px; padding: 1px 5px; border-radius: 5px; background: #fff; flex: none; }
.wp-chip .wk { font-family: inherit; color: inherit; border: 0; cursor: pointer; line-height: 1.25; }
.wp-chip .wk:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.wp-chip a { color: inherit; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-chip .dx { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0; font-size: 14px; }
.wp-chip.hand { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.wp-chip.k-to i, .wp-chip.k-to .wk { background: #fff3cd; } .wp-chip.k-osvid i { background: #ffe0b8; }
/* окошко выбора вида ТО — под плашкой; клетка дня его не обрезает, поэтому хватает z-index */
.wp-kmenu { position: absolute; z-index: 30; top: calc(100% + 3px); left: 0; min-width: 136px; display: flex; flex-direction: column; gap: 1px;
  padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel, #fff); box-shadow: 0 8px 24px rgba(16, 24, 40, .16); cursor: default; }
.wp-kmenu .h { font-size: 10.5px; color: var(--muted); padding: 2px 6px 4px; }
.wp-kmenu button { font: inherit; font-size: 12px; text-align: left; padding: 4px 7px; border: 0; border-radius: 6px; background: none; cursor: pointer; color: inherit; }
.wp-kmenu button:hover { background: var(--accent-soft, #eef2fb); }
.wp-kmenu button.on { background: var(--accent-soft, #eef2fb); color: var(--accent); font-weight: 600; }
.wp-chip.over { background: #fde2df; }
.wp-chip.picked { outline: 2px solid var(--accent); }
.wp-chip[draggable] { cursor: grab; } .wp-chip.dragging { opacity: .45; }
.wp-day.dover { outline: 2px dashed var(--accent); outline-offset: -2px; }
.wp-chip.gone { background: #eee; color: var(--muted); text-decoration: line-through; }
.wp-left { display: flex; flex-wrap: wrap; gap: 6px; }
.wp-left .wp-chip { flex-direction: row; max-width: 320px; }
.wp-left .wp-chip small { color: var(--muted); margin-left: 4px; }
.wp-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 12px; max-height: 240px; overflow: auto; margin-top: 6px; }
.wp-pick label[hidden] { display: none; }
@media (max-width: 900px) { .wp-cal { grid-template-columns: 1fr; } .wp-wd, .wp-day.pad { display: none; } .wp-day { min-height: 0; } .wp-day.off:not(.today) { display: none; } }
.autosave-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; align-items: center; padding: 8px 12px; margin-bottom: 12px; border-radius: 10px; background: var(--accent-soft, #eef2fb); color: var(--accent); font-size: 13px; }
.autosave-st { margin-left: auto; color: var(--muted); }
.autosave-st.ok { color: var(--ok, #3f9a5a); } .autosave-st.bad { color: var(--bad, #d9372b); }
.map-man.hl { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.map-legend { display: inline-flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: -6px; }
.map-legend i.ok { background: #56a14b; } .map-legend i.warn { background: #f29d36; } .map-legend i.bad { background: #e0393e; }
.map-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel-2); }
.ymap { width: 100%; height: calc(100vh - 230px); min-height: 460px; }
.map-off { display: flex; flex-wrap: wrap; gap: 6px; }
.map-off a { font-size: 12.5px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; }
.mb { min-width: 240px; max-width: 320px; font: 13px/1.45 'Golos Text', Arial, sans-serif; }
.mb-a { color: #787d84; font-size: 12px; margin-bottom: 8px; }
.mb-l { display: block; padding: 7px 9px; margin-bottom: 5px; border-radius: 8px; border-left: 3px solid #56a14b; background: #f7f8f4; color: #2c3037 !important; text-decoration: none !important; }
.mb-l.warn { border-color: #f29d36; } .mb-l.bad { border-color: #e0393e; background: #fcebea; }
.mb-l b { display: block; font-weight: 550; }
.mb-l span { font-size: 11.5px; color: #787d84; }
@media (max-width: 720px) { .ymap { height: 70vh; } }

/* ---------- ЛКДС: загрузка журналов ---------- */
.lk-prog { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 10px; }
.lk-prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.lk-imp td, .lk-imp th { padding: 9px 10px; font-size: 12.5px; }

/* ---------- телефон: верхняя строка, реестр карточками, крупнее ссылки ---------- */
.topbar { min-width: 0; }
.crumb-now { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .topbar .crumb, .topbar .crumb-sep { display: none; }
}
@media (max-width: 640px) {
  .tbl-wrap .tbl.lifts { min-width: 0 !important; }
  .tbl.lifts thead { display: none; }
  .tbl.lifts tr { display: block; position: relative; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl.lifts td { display: block; border: 0 !important; padding: 0 !important; }
  .tbl.lifts td:not(.col-name):not(.col-chk) { padding-left: 44px !important; margin-top: 5px; }
  .tbl.lifts .col-mech { display: none; }
  .tbl.lifts.bulk tr:not(.tbl-group) { padding-right: 36px; }
  .tbl.lifts.bulk td.col-chk { position: absolute; right: 0; top: 14px; }
  .tbl.lifts tr.tbl-group td { padding: 6px 0 !important; }
  .tbl.lifts td.small .muted { display: inline; margin-left: 6px; }
}

#ymaps .acc-role { flex-wrap: wrap; }
#ymaps .acc-role input { flex: 1 1 220px; min-width: 0; }

/* ---------- полоса прокрутки: тонкая, без дорожки, короче края окна ---------- */
:root { --scroll-thumb: color-mix(in srgb, var(--text) 22%, transparent); --scroll-thumb-on: color-mix(in srgb, var(--text) 42%, transparent); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background: var(--scroll-thumb-on); }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; } }

/* подразделы админ панели: счётчик заявок */
.set-nav .badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
/* карта OpenStreetMap (запасная): кнопка «где я», шрифт подписей */
.leaflet-container { font: 12px/1.4 'Golos Text', Arial, sans-serif; }
.osm-me { display: block; width: 30px; height: 30px; line-height: 28px; text-align: center; font-size: 18px; background: #fff; color: #2c3037 !important; text-decoration: none !important; cursor: pointer; }
.field[hidden] { display: none; }

/* боковое меню: листается, но полосы не видно */
.side { scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }

/* ---------- админ панель: плитки, графики, топы, объявления ---------- */
.pill.bad { color: var(--bad); }
/* лифт, с которым расторгли договор: механику он виден, но уже не рабочий — красный и приглушённый */
.lift-gone { opacity: .72; }
.lift-gone .liftname strong { color: var(--bad); }
.bad-t { color: var(--bad); font-size: 12px; margin-top: 4px; }
.warn-t { color: var(--warn); font-size: 12px; margin-top: 4px; }
.mono-t { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stat-t { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--panel); min-width: 0; }
.stat-t span { display: block; font-size: 12px; color: var(--muted); }
.stat-t b { display: block; font-size: 26px; font-weight: 500; letter-spacing: -.6px; margin: 4px 0 2px; }
.stat-t small { display: block; font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.stat-t.warn { border-color: var(--warn-dot); background: var(--warn-soft); }
.seg-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart-box { position: relative; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .ch-grid { stroke: var(--line); stroke-width: 1; }
.chart .ch-base { stroke: var(--line-2); stroke-width: 1; }
.chart .ch-ax { fill: var(--muted); font-size: 10.5px; font-family: inherit; }
.chart .ch-bar { fill: var(--accent); }
.chart .ch-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.chart .ch-area { fill: var(--accent); opacity: .1; }
.chart .ch-hit { fill: transparent; cursor: default; }
.chart .ch-xh { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .ch-dot { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.chart:not(.ch-linebox) .ch-hit:hover { fill: var(--text); opacity: .05; }
.ch-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--text); color: var(--bg); font-size: 12px; padding: 5px 9px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -130%); }
.ch-table { margin-top: 8px; font-size: 12px; }
.ch-table summary { cursor: pointer; color: var(--muted); }
.ch-table .tbl-wrap { max-height: 260px; overflow: auto; margin-top: 6px; }
.top-list { display: flex; flex-direction: column; gap: 9px; }
.top-n { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.top-n span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-n small { width: 34px; text-align: right; }
.top-bar { height: 4px; border-radius: 4px; background: var(--panel-2); margin-top: 4px; overflow: hidden; }
.top-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.kvr { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.kvr.sub { padding-left: 12px; color: var(--muted); border-bottom: 0; padding-top: 2px; padding-bottom: 2px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters input[type=search] { flex: 1 1 240px; min-width: 0; }
.pager { display: flex; gap: 4px; flex-wrap: wrap; }
.ann-bar { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; background: var(--accent-soft); color: var(--text); border-bottom: 1px solid var(--line); font-size: 13px; }
.ann-bar.important { background: var(--bad-soft); }
.ann-bar > svg { flex: none; margin-top: 2px; color: var(--accent); }
.ann-bar.important > svg { color: var(--bad); }
.ann-t { flex: 1; min-width: 0; }
.ann-t span { display: block; color: var(--soft-ink); margin-top: 2px; }
.ann-bar form { margin: 0; }
.ann-cos { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow: auto; margin-top: 6px; padding-left: 4px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
fieldset.field legend { font-size: 12px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.chart [hidden] { display: none; }
.ch-tip[hidden] { display: none; }
.set-nav .badge.bad { background: var(--bad); }
.set-body { min-width: 0; }
@media (max-width: 760px) { .set-wrap { grid-template-columns: minmax(0, 1fr); } }
.stat-tiles { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.filters select { width: auto; flex: 0 1 220px; min-width: 0; }
.row-menu { position: relative; display: inline-block; }
.row-menu summary { list-style: none; cursor: pointer; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu-b { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px; min-width: 170px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-up); }
.row-menu-b form { display: block !important; }
.row-menu-b .btn { width: 100%; justify-content: flex-start; }
/* в таблице с прокруткой выпадашку обрезало бы — раскрываем меню прямо в строке */
.tbl .row-menu-b { position: static; box-shadow: none; margin-top: 4px; }
.tbl .row-menu-b { min-width: 0; padding: 0; border: 0; background: none; align-items: flex-end; }
.tbl .row-menu-b .btn { width: auto; }
.kvr b { white-space: nowrap; }
/* расходы по объекту на телефоне — карточками: что, потом дата · сколько · вид · кому · сумма */
@media (max-width: 640px) {
  .tbl.costs { min-width: 0 !important; }
  .tbl.costs thead { display: none; }
  .tbl.costs tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tbl.costs td { display: block; border: 0 !important; padding: 0 !important; font-size: 12.5px; text-align: left !important; }
  .tbl.costs tr:not(.tbl-group) td:nth-child(2) { order: -1; width: 100%; font-size: 13.5px; }
  .tbl.costs tr.tbl-group { padding: 6px 0; }
  .tbl.costs tr:not(.tbl-group) td:last-child { margin-left: auto; font-weight: 500; }
}
#costs .stat-tiles { grid-template-columns: 1fr 1fr; }

/* админ панель → «Защита» */
.guard-i { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.guard-i:last-of-type { border-bottom: 0; }
.guard-i > .pill { flex: none; width: 92px; margin-top: 2px; }
.ok-t { color: var(--ok); }
.kvr { flex-wrap: wrap; }
.kvr .mono-t { white-space: normal; word-break: break-all; min-width: 0; }
.cols-2 > * { min-width: 0; }
.tbl.costs tr.cost-ret td { color: var(--ok); }

/* меню: список механиков сворачивается (их могут быть сотни), поиск по нему */
.nav-grp > summary { list-style: none; cursor: pointer; user-select: none; }
.nav-grp > summary::-webkit-details-marker { display: none; }
.nav-grp-h .nav-n { margin-left: auto; }
.nav-car { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin: 0 3px 0 6px; opacity: .6; transition: transform .15s; flex: none; }
.nav-grp[open] .nav-car { transform: rotate(45deg); }
.nav-grp-b { max-height: 46vh; overflow-y: auto; scrollbar-width: none; }
.nav-grp-b::-webkit-scrollbar { display: none; }
.nav-filter { margin: 2px 6px 4px; width: calc(100% - 12px); padding: 5px 9px; font-size: 12px; border-radius: 7px; }
.nav-i.sub[hidden] { display: none; }
/* инициалы в кружке — всегда по центру (стили карточек меняли display у span) */
span.ava { display: inline-grid !important; place-items: center; text-align: center; line-height: 1; flex-direction: row; }
/* «Передать лифты»: список с галочками */
.tr-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.tr-head input[type=search] { flex: 1 1 160px; min-width: 0; }
.tr-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px 10px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.tr-list label[hidden] { display: none; }
/* адреса с помощью ИИ: правка прямо в таблице */
.tbl.geo-ai input[type=text] { width: 100%; min-width: 120px; padding: 5px 8px; font-size: 12.5px; }
.tbl.geo-ai .ga-city { margin-bottom: 4px; }
/* пункт меню .sub — не подзаголовок страницы (.sub давал отступ 22px) */
.nav-i.sub { margin: 1px 0; color: var(--soft-ink); max-width: none; }
.nav-i.sub.on { color: var(--accent); }

/* распознавание паспорта: главы книги, паспортные данные, проверка */
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; }
.toc-i.dim span { color: var(--faint); }
.pd-node { border-top: 1px solid var(--line); padding: 8px 0; }
.pd-node summary { cursor: pointer; list-style: none; }
.pd-node summary::-webkit-details-marker { display: none; }
.pd-node summary::before { content: '›'; display: inline-block; width: 14px; color: var(--muted); transition: transform .15s; }
.pd-node[open] summary::before { transform: rotate(90deg); }
.pd-params { padding: 6px 0 2px 14px; }
.tbl.pdata input[type=text] { width: 100%; min-width: 140px; padding: 5px 8px; font-size: 12.5px; }
.tbl.pdata tr.same td { color: var(--muted); }

/* Админ панель → «ИИ · расходы» */
.aicost-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.aicost-2 .card { margin: 0; }
.tbl th.r, .tbl td.r { text-align: right; }
.aicost-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.aicost-t td { vertical-align: top; }
@media (max-width: 560px) { .aicost-2 { grid-template-columns: 1fr; } }
.aicost-t td:nth-child(5) { min-width: 220px; }

/* Лендинг: карточки возможностей — градиентная иконка, номер, полоса сверху, ключевая деталь меткой */
.land-feat { position: relative; background:
  radial-gradient(900px 420px at 50% 0%, var(--accent-soft), transparent 70%), var(--bg); }
.land-f { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 28px 26px 24px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel) 60%, color-mix(in srgb, var(--accent-soft) 45%, var(--panel)) 100%);
  box-shadow: 0 1px 2px rgba(24, 43, 53, .05), 0 10px 28px -22px rgba(24, 43, 53, .35); }
.land-f::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 35%, #7cc4ff)); opacity: .55; transition: opacity .2s; }
.land-f:hover::before { opacity: 1; }
.land-f:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.land-f .land-ic { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, #5aa2ff), var(--accent));
  box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.land-no { position: absolute; top: 18px; right: 22px; font-size: 34px; font-weight: 600; letter-spacing: -1px; line-height: 1;
  color: color-mix(in srgb, var(--accent) 14%, transparent); font-variant-numeric: tabular-nums; }
.land-f b { font-size: 17px; }
.land-f p { flex: 1; }
.land-chip { align-self: flex-start; margin-top: 16px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-soft-2); }

/* Код входа: живой отсчёт */
.otp-ttl { display: grid; gap: 6px; margin: -4px 0 16px; font-size: 13.5px; color: var(--muted); }
.otp-ttl b { color: var(--text); font-variant-numeric: tabular-nums; display: inline-block; min-width: 2ch; text-align: right; }
.otp-ttl-bar { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.otp-ttl-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .25s linear; }
.otp-ttl.low b, .otp-ttl.low { color: var(--warn); }
.otp-ttl.low .otp-ttl-bar i { background: var(--warn); }
.otp-ttl.gone { color: var(--bad); }
.otp-ttl.gone .otp-ttl-bar { display: none; }

/* Перетаскивание файлов */
.doc-drop-hint { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; padding: 10px 14px; border: 1.5px dashed var(--line-2); border-radius: 12px; font-size: 13px; color: var(--muted); }
@media (hover: none) { .doc-drop-hint { display: none; } }
body.drag-files .drop-zone { outline: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; transition: outline-color .15s; }
body.drag-files #docs.drop-zone .doc-drop-hint { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.drop-zone.drop-on { outline: 2px solid var(--accent) !important; background-color: var(--accent-soft) !important; }
td.drop-zone.drop-on .doc-cell { background: var(--accent); color: var(--accent-ink); }
body.drag-files td.drop-zone { outline: none; }
body.drag-files td.drop-zone .doc-cell.add { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }

/* ЛКДС: сверка пачкой */
.lk-ck { width: 34px; text-align: center; }
.lk-ck input { width: 17px; height: 17px; cursor: pointer; accent-color: var(--accent); }
.lk-bulk { position: sticky; bottom: 12px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 14px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 14px 34px -16px rgba(24, 43, 53, .45); }
.lk-bulk[hidden] { display: none; }
.lk-bulk > span { color: var(--muted); font-size: 13px; margin-right: 6px; }
.lk-bulk .btn[hidden] { display: none; }
.btn.danger-ghost { color: var(--bad); }
.lk-units-drop { padding: 10px; border: 1.5px dashed var(--line-2); border-radius: 12px; }
.tbl tr:has(.lk-ck input:checked) td { background: var(--accent-soft); }

/* Заказы Склада в карточке лифта */
.order-row { padding: 12px 0; border-top: 1px solid var(--line); }
.order-row:first-child { border-top: 0; padding-top: 0; }
.order-row.closed { opacity: .72; }
.order-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.order-items { margin: 8px 0 4px; padding-left: 18px; font-size: 13.5px; }
.order-items li { margin: 2px 0; }

/* Лендинг: полоса фактов, «Знакомо?», «Начать за день», безопасность в 4 колонки */
.land-facts { border-bottom: 1px solid var(--line); background: var(--panel); }
.land-facts-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.land-facts-in > div { padding: 26px 20px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.land-facts-in > div:first-child { border-left: 0; padding-left: 0; }
.land-facts-in b { font-size: 22px; font-weight: 600; letter-spacing: -.5px; color: var(--accent); }
.land-facts-in span { font-size: 13px; color: var(--muted); }
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pain { display: grid; grid-template-rows: auto 1fr; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel);
  box-shadow: 0 10px 28px -22px rgba(24, 43, 53, .35); transition: transform .2s, box-shadow .2s; }
.pain:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -24px rgba(24, 43, 53, .4); }
.pain-was { display: flex; gap: 12px; align-items: flex-start; padding: 18px 22px; background: color-mix(in srgb, var(--bad) 6%, var(--panel)); border-bottom: 1px solid var(--line); }
.pain-was b { font-size: 15.5px; font-weight: 550; line-height: 1.4; }
.pain-x { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.pain-now { display: flex; gap: 12px; align-items: flex-start; padding: 18px 22px 20px; }
.pain-now p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--soft-ink, var(--text)); }
.land-ic.sm { flex: none; width: 34px; height: 34px; border-radius: 10px; margin: 0; }
.land-start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.land-start > div { position: relative; padding: 26px 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.land-start b { display: block; font-size: 16.5px; font-weight: 550; margin: 14px 0 6px; }
.land-start p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.land-step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, #5aa2ff), var(--accent)); }
.land-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .land-facts-in { grid-template-columns: 1fr 1fr; }
  .land-facts-in > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .land-facts-in > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pain-grid, .land-start { grid-template-columns: 1fr; }
  .land-grid.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .land-grid.four { grid-template-columns: 1fr; } .land-facts-in b { font-size: 18px; } }

/* Роли и права */
.roles-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.roles-list { padding: 6px; display: grid; gap: 2px; position: sticky; top: 12px; }
.role-i { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.role-i:hover { background: var(--soft); text-decoration: none; }
.role-i.on { background: var(--accent-soft); }
.role-i small { color: var(--muted); font-size: 12px; }
.perm-g { border: 0; padding: 0; margin: 0 0 16px; }
.perm-g legend { font-weight: 600; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.perm { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.perm:hover { background: var(--soft); }
.perm input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.perm span { display: grid; gap: 1px; }
.perm small { color: var(--muted); font-size: 12.5px; }
.role-from { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.role-opt { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.role-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.role-opt span { display: grid; gap: 2px; }
.role-opt small { color: var(--muted); font-size: 12px; }
.roles-del { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 860px) { .roles-wrap { grid-template-columns: 1fr; } .roles-list { position: static; } }
.tbl tr.lk-gone { opacity: 0; transition: opacity .25s; }
.lk-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.lk-meta b { color: var(--text); font-weight: 550; }
.lk-meta i { font-style: normal; color: var(--faint); }

/* «Спросить»: ползунок усилий */
.ask-level { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 14px 0; font-size: 13px; color: var(--muted); }
.ask-level-l { font-weight: 550; color: var(--text); }
.ask-level input[type=range] { -webkit-appearance: none; appearance: none; width: 180px; height: 6px; border-radius: 99px; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) var(--p, 33%), var(--line) var(--p, 33%)); }
.ask-level input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--panel); border: 3px solid var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.ask-level input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 3px solid var(--accent); }
.ask-level[data-lv="4"] input[type=range] { background: linear-gradient(90deg, #7c4dff, var(--accent)); }
.ask-level-t b { color: var(--text); }
.ask-lvl { display: inline-block; margin: 6px 0 0; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
@media (max-width: 560px) { .ask-level input[type=range] { width: 100%; } }

/* Документ лифта на телефоне: страница — первой, оглавление — по кнопке, навигация прилипает сверху */
.book-toc-btn { display: none; }
@media (max-width: 900px) {
  .book-page { order: -1; }
  .book-toc { display: none; }
  .book-toc.open { display: block; }
  .book-toc-btn { display: inline-flex; gap: 6px; }
  .book-toc-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
  .book-nav { position: sticky; top: 0; z-index: 6; margin: 0 -16px 10px; padding: 8px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
  .book-nav .book-pos { order: -1; flex: 1 0 100%; text-align: center; }
  .book-nav .book-head { display: none; }
  .book-nav .btn { min-height: 40px; }
  .book-img img { touch-action: pan-y pinch-zoom; }
  .thumbs-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Сотрудники: документы истекают — жёлтая строка, просрочены — красная */
.tbl tr.row-soon td { background: color-mix(in srgb, var(--warn) 9%, transparent); }
.tbl tr.row-soon td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.tbl tr.row-over td { background: color-mix(in srgb, var(--bad) 8%, transparent); }
.tbl tr.row-over td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.staff-docs-sum { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.staff-docs-sum .sd { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 99px; font-size: 13px; }
.staff-docs-sum .sd.over { background: var(--bad-soft); color: var(--bad); }
.staff-docs-sum .sd.soon { background: var(--warn-soft); color: var(--warn); }
.staff-docs-bar .btn { margin-left: auto; }
.lk-lift-in { min-width: 260px; max-width: 420px; flex: 1; }
.lk-lift-in.bad { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad-soft); }
.lk-pair { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Документы пачкой */
.bulk-drop { display: grid; justify-items: center; gap: 6px; padding: 34px 16px; border: 2px dashed var(--line-2); border-radius: 16px; text-align: center; color: var(--muted); }
.bulk-drop b { color: var(--text); font-size: 16px; }
body.drag-files .bulk-card .bulk-drop, .bulk-card.drop-on .bulk-drop { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.bulk-opts { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 16px; align-items: end; margin-top: 14px; }
.bulk-opts p { margin: 0 0 10px; }
@media (max-width: 700px) { .bulk-opts { grid-template-columns: 1fr; } }

/* Участки */
.area-name { font-size: 17px; font-weight: 600; border: 1px solid transparent; background: transparent; padding: 4px 8px; margin-left: -8px; border-radius: 8px; max-width: 420px; }
.area-name:hover, .area-name:focus { border-color: var(--line-2); background: var(--panel); }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.area-grid h3 { margin: 0 0 8px; font-size: 14px; }
.area-grid .check { display: flex; margin: 4px 0; }
.area-new { display: flex; gap: 10px; flex-wrap: wrap; }
.area-new input { flex: 1; min-width: 240px; }
@media (max-width: 700px) { .area-grid { grid-template-columns: 1fr; } }

/* Колокольчик */
.bell { position: relative; }
.bell-btn { position: relative; }
.bell-btn.on { color: var(--accent); }
.bell-n { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; font-weight: 700; }
.bell-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; max-width: calc(100vw - 24px); z-index: 50; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 44px -18px rgba(24, 43, 53, .45); padding: 8px; }
.bell-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 8px; }
.bell-empty { margin: 4px 8px 10px; color: var(--muted); font-size: 13.5px; }
.bell-i { display: flex; gap: 10px; align-items: flex-start; padding: 9px 8px; border-radius: 10px; color: var(--text); text-decoration: none; }
.bell-i:hover { background: var(--soft); text-decoration: none; }
.bell-i i { flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--accent); }
.bell-i.bad i { background: var(--bad); } .bell-i.warn i { background: var(--warn); } .bell-i.ok i { background: var(--ok); }
.bell-i span { display: grid; gap: 2px; } .bell-i b { font-weight: 550; font-size: 13.5px; } .bell-i small { color: var(--muted); font-size: 12.5px; }
.bell-i.read { opacity: .62; }
.bell-i.read i { background: var(--line-2); }

/* ===== Отчёт за месяц: лист в «лифтовом» стиле ===== */
.rp-body { background: var(--bg); margin: 0; }
.rp-bar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.rp-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-sheet { max-width: 1120px; margin: 18px auto 40px; background: #fff; color: #172033; border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; box-shadow: 0 20px 50px -30px rgba(24, 43, 53, .35); }
/* Шапка отчёта — как у бумажного документа: кто исполнитель, кто заказчик, за какой месяц.
   Раньше здесь была нарисованная шахта лифта и «этажный индикатор» с цифрами месяца —
   на отчёте, который уходит в управляющую компанию, это выглядело чужеродно. */
.rp-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; padding-bottom: 18px; border-bottom: 2px solid #172033; }
.rp-brand { display: flex; align-items: baseline; gap: 12px; color: #5a6478; font-size: 13px; }
.rp-brand .brand-word { font-size: 20px; color: #172033; }
.rp-title h1 { margin: 6px 0 4px; font-size: 26px; letter-spacing: -.6px; font-weight: 600; }
.rp-period { color: #5a6478; font-size: 14px; }
.rp-period b { color: #172033; }
.rp-stamp { display: grid; grid-template-columns: auto; gap: 1px 0; align-content: start; min-width: 210px; padding: 10px 14px; border: 1px solid #d7dce6; border-radius: 10px; background: #f8f9fb; }
.rp-stamp span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .3px; color: #8a93a5; }
.rp-stamp b { font-size: 13px; font-weight: 600; color: #172033; margin-bottom: 6px; }
.rp-stamp b:last-child { margin-bottom: 0; }
.rp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 20px 0 22px; }
.rp-tile { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #f4f6fa; border: 1px solid #e0e5ee; border-left: 3px solid #1a46a1; color: #3f4759; }
.rp-dig { font-size: 28px; font-weight: 700; line-height: 1; color: #172033; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.rp-tile.good { border-left-color: #1d8a55; } .rp-tile.good .rp-dig { color: #166b43; }
.rp-tile.bad { border-left-color: #d6453a; background: #fdf4f3; } .rp-tile.bad .rp-dig { color: #c2362c; }
.rp-tile.warn { border-left-color: #d98818; background: #fdfaf3; } .rp-tile.warn .rp-dig { color: #9a5f06; }
.rp-tile small { font-size: 11.5px; line-height: 1.35; color: #6b7487; }
/* Разделы отчёта: «Что сделано», «Успевание», «Что заменено», «Активность сотрудников», «По каждому лифту» */
.rp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rp-sec { margin: 0 0 22px; break-inside: avoid; }
.rp-sec h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 15px; font-weight: 600; color: #172033; padding-bottom: 5px; border-bottom: 1px solid #d7dce6; }
.rp-sub { font-size: 11.5px; font-weight: 400; color: #8a93a5; }
.rp-kv { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rp-kv th { text-align: left; font-weight: 400; color: #3f4759; padding: 5px 8px 5px 0; border-bottom: 1px solid #eef0f5; }
.rp-kv td { text-align: right; padding: 5px 0; border-bottom: 1px solid #eef0f5; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.rp-kv tr.rp-sum th, .rp-kv tr.rp-sum td { border-bottom: 0; border-top: 1px solid #172033; padding-top: 7px; }
.rp-kv td[colspan] { text-align: left; font-weight: 400; }
.rp-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 18px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
.rp-parts li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px dotted #d7dce6; }
.rp-parts span { flex: 1; } .rp-parts b { font-variant-numeric: tabular-nums; }
.rp-foot { font-size: 10.5px; color: #8a93a5; margin: 6px 0 0; }
.rp-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rp-tbl th { text-align: left; font-weight: 600; font-size: 11.5px; color: #5a6478; text-transform: uppercase; letter-spacing: .3px; padding: 8px 8px; border-bottom: 2px solid #172033; vertical-align: bottom; }
.rp-tbl th small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.rp-tbl td { padding: 8px; border-bottom: 1px solid #e3e7ee; vertical-align: top; }
.rp-tbl td b { font-weight: 600; } .rp-tbl td small { display: block; color: #6b7487; font-size: 11px; margin-top: 2px; }
.rp-tbl .r { text-align: right; }
.rp-tbl tbody tr:nth-child(even) td { background: #f8f9fb; }
.rp-tbl tr.rp-over td:first-child { box-shadow: inset 3px 0 0 #d6453a; }
.rp-bad { color: #c2362c; } .rp-ok { color: #1d8a55; } .rp-mute { color: #a3abba; }
.rp-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.rp-sign div { display: grid; gap: 4px; } .rp-sign span { font-size: 12px; color: #5a6478; }
.rp-sign i { display: block; height: 28px; border-bottom: 1px solid #172033; } .rp-sign small { font-size: 11px; color: #6b7487; }
.rp-note { grid-column: 1 / -1; font-size: 10.5px; color: #8a93a5; margin: 6px 0 0; }
@media (max-width: 700px) { .rp-sheet { margin: 0; border-radius: 0; padding: 18px 14px; overflow-x: auto; } .rp-head { grid-template-columns: 1fr; } .rp-cols { grid-template-columns: 1fr; } .rp-tbl { font-size: 11.5px; } }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .no-print { display: none !important; }
  .rp-body { background: #fff; }
  .rp-sheet { margin: 0; max-width: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
  .rp-tile, .rp-stamp { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rp-tbl tr, .rp-sec { break-inside: avoid; }
}
.rp-filters select { width: auto; min-width: 170px; } .rp-filters .btn { min-height: 38px; }
.lib-for { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.lib-for-i { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.lib-for-i:hover { border-color: var(--accent); text-decoration: none; }
.lib-for-i span { display: grid; gap: 2px; } .lib-for-i small { color: var(--muted); font-size: 12px; }

/* ===== Оплата: админка «Платёжная система» и Настройки → «Тариф и оплата» ===== */
.pay-mode { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.pay-keys { border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 14px 12px; margin: 12px 0 0; }
.pay-keys.on { border-color: var(--accent); }
.pay-keys legend { padding: 0 6px; font-size: 12.5px; font-weight: 600; }
.pay-hook { word-break: break-all; margin: 4px 0 6px; padding: 7px 10px; background: var(--bg-soft, var(--line)); border-radius: var(--r-s); user-select: all; }
.pay-tariffs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pay-t { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; cursor: pointer; }
.pay-t:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pay-t input { margin-top: 3px; }
.pay-t span { display: flex; flex-direction: column; gap: 3px; }
.pay-t i { font-style: normal; font-weight: 600; }
.pay-t small { color: var(--muted); font-size: 12px; }
.pay-t.dim { opacity: .65; }

/* ===== Условия и политика (legal.php), согласие при регистрации ===== */
.legal { max-width: 760px; margin: 0 auto; line-height: 1.6; }
.legal h1 { margin: 10px 0 4px; }
.legal h2 { font-size: 16px; margin: 22px 0 6px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal-tabs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.legal-tabs a.on { font-weight: 600; text-decoration: none; color: var(--text); }
.legal-agree { margin: 8px 0 12px; font-size: 12.5px; }
.guest-foot a, .land-legal a { color: inherit; }
.land-legal { font-size: 12.5px; }

/* ===== Страница лифта для УК (uk.php) и блок в карточке ===== */
.uk-find { max-width: 520px; margin: 30px auto; text-align: center; }
.uk-form { display: flex; gap: 8px; margin-top: 16px; }
.uk-form input { flex: 1; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.uk-page { max-width: 1100px; margin: 0 auto; }
.uk-to { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.uk-to:last-child { border-bottom: 0; }
.uk-to .to-m { margin-left: auto; color: var(--muted); font-size: 12px; }
.uk-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.uk-code { font-weight: 700; letter-spacing: .08em; font-size: 16px; }
@media (max-width: 600px) { .uk-form { flex-direction: column; } }

/* ===== Поиск элемента электросхемы (карточка лифта → Документы) ===== */
.el-find { border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; margin: 12px 0; }
.el-find .search { max-width: 360px; }
.el-hit { padding: 6px 0; border-bottom: 1px solid var(--line); }
.el-hit:last-of-type { border-bottom: 0; }
.el-hit a { margin-left: 6px; }
.el-sheets { margin-top: 6px; }

/* ===== Аналитика лифтов ===== */
.an-bar { display: inline-block; width: 60px; height: 6px; border-radius: 3px; background: var(--line); vertical-align: middle; overflow: hidden; }
.an-bar i { display: block; height: 100%; background: var(--bad); border-radius: 3px; }
.an-tbl small { display: block; }
.an-diff { padding: 8px 0; border-bottom: 1px solid var(--line); }
.an-diff:last-child { border-bottom: 0; }

/* ===== Дубли (dupes.php) ===== */
.dup-g { border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; margin-bottom: 10px; }
.dup-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.dup-r { padding: 6px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ===== Экран для УК: ввод трек-номера (uk.php) — в стиле главной, без рекламы ===== */
.uk-nav { justify-content: space-between; }
.uk-nav-t { font-size: 13px; color: var(--soft-ink); }
.uk-hero .land-copy p { max-width: 520px; }
.uk-big { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 26px 0 22px; max-width: 520px; }
.uk-big-f { flex: 1 1 260px; display: grid; gap: 6px; }
.uk-big-f span { font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.uk-big-f input { height: 58px; padding: 0 18px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff;
  font-size: 26px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-variant-numeric: tabular-nums; outline: none; transition: border-color .15s, background .15s; }
.uk-big-f input::placeholder { color: rgba(255, 255, 255, .35); }
.uk-big-f input:focus { border-color: #fff; background: rgba(255, 255, 255, .16); }
.uk-big .land-btn { height: 58px; padding: 0 26px; }
.uk-err { flex-basis: 100%; display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; background: rgba(255, 235, 233, .95); color: #b3261e; font-size: 13px; }
.uk-grid { grid-template-columns: repeat(3, 1fr); }
.uk-where { max-width: 760px; margin: 48px auto 0; text-align: center; }
.uk-where h3 { font-size: 20px; font-weight: 500; margin: 0 0 16px; }
.uk-where-g { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; text-align: left; }
.uk-where-g div { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel, #fff); }
.uk-where-g b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.uk-where-g span { font-size: 13.5px; }
@media (max-width: 980px) { .uk-grid, .uk-where-g { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .uk-nav-t { display: none; } .uk-big-f input { font-size: 22px; } .uk-big .land-btn { flex: 1 1 100%; justify-content: center; } }

/* ===== Договоры с УК (contracts.php) ===== */
.ctr-lifts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; font-size: 13.5px; }
.ctr-ext { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ctr-ext .field { margin: 0; }

/* ===== Обучение: затемнение, подсветка, подсказка со стрелкой (assets/app.js, 08_tour) ===== */
.tour-ov { position: fixed; inset: 0; z-index: 9000; background: transparent; }
.tour-ov.dim { background: rgba(14, 18, 26, .55); }
.tour-spot { position: fixed; z-index: 9000; pointer-events: none; border-radius: 12px; box-shadow: 0 0 0 3px #fff, 0 0 0 9999px rgba(14, 18, 26, .55); animation: tour-pulse 1.8s ease-in-out infinite; transition: all .2s; }
@keyframes tour-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .8), 0 0 0 9999px rgba(14, 18, 26, .55); } }
.tour-blk { position: fixed; z-index: 9001; background: transparent; }
.tour-card { position: fixed; z-index: 9002; width: min(380px, calc(100vw - 24px)); background: var(--panel); color: var(--text); border-radius: 16px; padding: 18px 18px 14px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .55); }
.tour-card.center { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tour-card.bottom { left: 50%; bottom: 16px; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); }
.tour-card.float::before { content: ""; position: absolute; left: var(--ax, 50%); width: 14px; height: 14px; margin-left: -7px; background: var(--panel); transform: rotate(45deg); }
.tour-card.arrow-up::before { top: -7px; }
.tour-card.arrow-down::before { bottom: -7px; }
.tour-k { font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.tour-t { display: block; font-size: 16px; margin-bottom: 4px; }
.tour-card p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--soft-ink); }
.tour-a { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.tour-hint { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-right: auto; }
.tour-bar { height: 3px; border-radius: 2px; background: var(--line); margin-top: 12px; overflow: hidden; }
.tour-bar i { display: block; height: 100%; background: var(--accent); }
.tour-card.shake { animation: tour-shake .35s; }
@keyframes tour-shake { 25% { margin-left: -6px; } 75% { margin-left: 6px; } }
/* Помощь */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.help-c b { display: block; margin: 10px 0 4px; }
.help-c p { margin: 0; font-size: 13px; color: var(--soft-ink); }
.help-tour { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Техподдержка: обращение и переписка по нему */
.sup-t { border-top: 1px solid var(--line-2); padding: 14px 0; }
.sup-t:first-child { border-top: 0; padding-top: 0; }
.sup-t-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sup-b { margin: 6px 0; font-size: 13px; color: var(--soft-ink); white-space: pre-line; }
.sup-img { max-width: 240px; max-height: 180px; border-radius: 8px; border: 1px solid var(--line-2); }
.sup-m { margin: 8px 0 0 14px; padding: 8px 10px; border-radius: 8px; background: var(--hover); font-size: 13px; }
.sup-m.from-s { background: var(--accent-soft); }
.sup-reply { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.sup-reply textarea { flex: 1; }
.sup-rate { display: flex; align-items: center; gap: 6px; margin-top: 10px; }

/* ===== Карта: «Изменить адрес» ===== */
.map-man { border-bottom: 1px solid var(--line); }
.map-man > summary { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 0; cursor: pointer; list-style: none; }
.map-man > summary::-webkit-details-marker { display: none; }
.map-man > summary::before { content: '▸'; color: var(--muted); }
.map-man[open] > summary::before { content: '▾'; }
.map-man-act { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.map-man-b { display: grid; gap: 4px; padding: 2px 0 12px 18px; font-size: 13px; }
.map-man-b > div > span:first-child { display: inline-block; min-width: 110px; color: var(--muted); font-size: 12px; }
.map-pin-bar { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 8px; }
.map-pin-bar .btn { margin-left: auto; }
.map-pin-bar[hidden] { display: none; }
.ymap.pinning { outline: 3px solid var(--accent); cursor: crosshair; }
.mb-ap { margin: -4px 0 8px; font-size: 12px; color: #b26a00; }
.mb-fix { margin-left: 6px; padding: 2px 8px; font-size: 11.5px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); color: var(--accent); cursor: pointer; }
.map-offobj { display: grid; gap: 8px; margin-bottom: 14px; }
.map-offobj > div { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.map-offobj > div > .btn:first-of-type { margin-left: auto; }

/* ===== страница лифта для УК: первый экран, сводка, ТО лентой, узлы; 3D-лифт сбоку на широком экране ===== */
.lift3d { display: block; pointer-events: none; }
.lift3d lift-animation { display: block; width: 100%; height: 100%; }
@media (max-width: 1099px) { .lift3d { display: none !important; } }
.lift3d-hero { position: absolute; z-index: 1; right: -8%; top: -140px; bottom: -100px; width: 100%; }
.has-lift3d .uk-hero .lv-shaft { display: none; }
.uko-hero { position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(800px 500px at 0% 0%, rgba(92, 140, 240, .55), transparent 60%), linear-gradient(160deg, #1a46a1 0%, #133784 55%, #0b1f52 100%); }
.uko-hero::before { content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; }
.uko-hero-in { position: relative; max-width: 1160px; margin: 0 auto; padding: 46px 28px 92px; }
.uko-eyebrow { font-size: 13px; color: rgba(255, 255, 255, .72); }
.uko-eyebrow b { color: #fff; font-weight: 500; }
.uko-hero h1 { font-size: 40px; line-height: 1.1; letter-spacing: -1.4px; font-weight: 500; margin: 12px 0 16px; max-width: 760px; color: #fff; }
.uko-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; font-size: 13.5px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.uko-status i { width: 9px; height: 9px; border-radius: 50%; background: #6fd08c; box-shadow: 0 0 0 4px rgba(111, 208, 140, .25); }
.uko-status.warn i { background: #f0b24a; box-shadow: 0 0 0 4px rgba(240, 178, 74, .25); }
.uko-status.bad i { background: #ff6b5e; box-shadow: 0 0 0 4px rgba(255, 107, 94, .25); }
.uko-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.uko-wrap { max-width: 1160px; margin: -58px auto 0; padding: 0 28px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; position: relative; }
.has-lift3d .uko-wrap { grid-template-columns: minmax(0, 1fr) 340px; }
.uko-side { position: relative; }
.lift3d-side { position: sticky; top: 10px; height: min(88vh, 820px); margin-top: -350px; margin-right: -6%; width: 112%; z-index: 1; }
.uko-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.uko-tile { background: var(--panel, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 18px 40px -26px rgba(11, 31, 82, .45); display: flex; flex-direction: column; gap: 4px; }
.uko-tile span { font-size: 12px; color: var(--muted); }
.uko-tile b { font-size: 21px; font-weight: 550; letter-spacing: -.4px; }
.uko-tile small { font-size: 12.5px; color: var(--muted); }
.uko-tile.warn { border-color: #f0d4a0; } .uko-tile.warn b { color: #9a6b12; }
.uko-tile.bad { border-color: #f3b8b2; } .uko-tile.bad b { color: #b3261e; }
/* Главная плитка — синяя. На ней то, по чему лифт опознают: заводской номер. Раньше он лежал
   шестым пунктом в ровной сетке из двадцати подписей, и его не находили. */
.uko-tile.key { border-color: transparent; color: #fff;
  background: radial-gradient(520px 320px at 0% 0%, rgba(92, 140, 240, .5), transparent 62%), linear-gradient(160deg, #1a46a1 0%, #133784 60%, #0b1f52 100%); }
.uko-tile.key span, .uko-tile.key small { color: rgba(255, 255, 255, .72); }
.uko-tile.key b { color: #fff; }

/* Карточка лифта, вкладка «Основное»: плитки сверху и списки «подпись — значение» в карточках. */
.lift-tiles { margin-top: 16px; }
.lf-file { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12.5px; }
.lf { display: flex; flex-direction: column; }
.lf-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 10px 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.lf-row:first-child { border-top: none; padding-top: 0; }
.lf-row > span { font-size: 13.5px; color: var(--muted); }
.lf-row > b { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.lf-row > b small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.lf-no { font-style: normal; font-weight: 400; color: var(--muted); }
@media (max-width: 560px) { .lf-row { grid-template-columns: 1fr; gap: 2px; } }
.uko-card { background: var(--panel, #fff); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin-top: 16px; }
.uko-card h2 { font-size: 19px; font-weight: 550; margin: 0 0 14px; letter-spacing: -.3px; }
.uko-card h2 .muted { font-weight: 400; font-size: 14px; margin-left: 6px; }
.uko-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 500; margin: 18px 0 10px; }
.uko-next { display: flex; flex-direction: column; gap: 8px; }
.uko-ev { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.uko-ev.over { background: #fdeceb; }
.uko-ev-d { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--panel, #fff); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); line-height: 1.1; }
.uko-ev-d b { font-size: 19px; color: var(--ink, #222); font-weight: 600; }
.uko-ev-t { display: flex; flex-direction: column; }
.uko-ev-t small { color: var(--muted); }
.uko-ev.over .uko-ev-t small { color: #b3261e; }
.uko-year { font-size: 12px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; letter-spacing: .5px; }
.uko-year:first-of-type { margin-top: 0; }
.uko-tl { position: relative; padding-left: 18px; }
.uko-tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.uko-tl-i { position: relative; display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; }
.uko-dot { position: absolute; left: -18px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--panel, #fff); border: 2px solid #9fb2d9; }
.uko-dot.big { border-color: var(--accent); background: var(--accent); }
.uko-dot.osv { border-color: #d18a2c; background: #d18a2c; }
.uko-tl-d { color: var(--muted); font-size: 13px; }
.uko-tl-k { font-weight: 500; }
.uko-tl-m { font-size: 12.5px; color: #4f7a5a; }
.uko-tl-m.warn { color: #9a6b12; }
.uko-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.uko-part { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.uko-part-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.uko-part-h span { font-weight: 600; }
.uko-part-h span.warn { color: #9a6b12; } .uko-part-h span.bad, .uko-part-h span.over { color: #b3261e; } .uko-part-h span.ok { color: #4f7a5a; }
.uko-part small { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .uko-tiles { grid-template-columns: repeat(2, 1fr); } .uko-hero h1 { font-size: 30px; } }
@media (max-width: 560px) { .uko-tiles { grid-template-columns: 1fr; } .uko-wrap { padding: 0 14px 30px; } .uko-hero-in { padding: 30px 16px 80px; } .uko-card { padding: 18px 16px; } .uko-tl-i { grid-template-columns: 1fr; gap: 2px; } }
@media print { .uko-hero { background: none; color: #000; } .uko-hero h1, .uko-eyebrow b { color: #000; } .uko-act, .uk-nav, .land-foot, .uko-side { display: none; } .uko-wrap { margin-top: 0; } }

/* меню «Скачать» в карточке лифта: значок, под ним Excel / пакет для инспектора / печать */
.btn.icon-only { padding-left: 10px; padding-right: 10px; }
.dl-menu { z-index: 90; }
.dl-menu .row-menu-b { min-width: 230px; z-index: 90; }
.ph:has(.dl-menu[open]) { position: relative; z-index: 90; }
/* история: материалы — заказы и выдачи по дому */
.mat-list { display: flex; flex-direction: column; }
.mat-year { font-weight: 600; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.mat-year:first-child { margin-top: 0; }
.mat-row { display: grid; grid-template-columns: 88px 78px 1fr; gap: 4px 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mat-d { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.mat-k { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; justify-self: start; white-space: nowrap; background: var(--accent-soft); color: var(--accent); }
.mat-ret .mat-k { background: #fff3d6; color: #8a6510; }
.mat-order .mat-k { background: #e7f4ea; color: #2f7a46; }
.mat-b small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.log-mat { display: block; }
.log-mat .mat-row { border: 0; padding: 0; }
/* отбор в «Истории» прячет строки через hidden, но у .log-link и .log-mat свой display —
   он перебивает умолчание браузера, поэтому прячем явно */
.log-i[hidden], [data-feednote][hidden] { display: none; }
@media (max-width: 640px) { .mat-row { grid-template-columns: 1fr auto; } .mat-d { order: 2; justify-self: end; } .mat-b { grid-column: 1 / -1; } }
.tour-quit { display: block; margin: 8px auto 0; background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
/* аварийная служба: буквы смен, правила смены, загрузка из файла */
.duty-letter { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: #ffff00; color: #111; font-weight: 700; font-size: 13px; border: 1px solid #c9c900; }
.duty-letter.sm { min-width: 18px; height: 18px; font-size: 11.5px; border-radius: 5px; }
.duty-let { width: 52px; text-align: center; font-weight: 700; text-transform: uppercase; }
.duty-rules { margin-top: 6px; }
.duty-rules summary { font-size: 12px; color: var(--accent); cursor: pointer; }
.duty-rules-b { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 14px; padding: 10px 0 4px; }
.duty-shifts td:first-child { width: 36%; min-width: 260px; }
.duty-shifts td:nth-child(2) { width: 64px; }
.duty-rules-b small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.duty-pool { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.duty-rules-b .field:last-child { grid-column: 1 / -1; }
.imp-warn td { background: #fff7e0; }
:root[data-theme="dark"] .imp-warn td { background: #3a3220; }
/* Загрузка годового графика ТО: выбор лифта в строке — поиск по адресу вместо списка на тысячу лифтов */
.wp-lp { min-width: 260px; }
.wp-lp-cur .check { align-items: flex-start; }
.wp-lp-cur .btn { margin-top: 4px; }
.wp-lp-box { display: flex; flex-direction: column; gap: 4px; }
.wp-lp-cands { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.wp-lp-q { width: 100%; min-width: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: inherit; font-size: 12.5px; }
.wp-lp-res { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; max-height: 160px; overflow: auto; }
.wp-lp-res .btn { text-align: left; white-space: normal; }
/* «что именно сделает эта галочка»: список лифтов под галочкой, по умолчанию свёрнут */
.wp-chk { margin: 0 0 10px 26px; font-size: 12.5px; }
.wp-chk > summary { cursor: pointer; color: var(--accent); }
.wp-chk ul { margin: 6px 0 0; padding-left: 18px; max-height: 240px; overflow: auto; }
.wp-chk li { margin-bottom: 3px; line-height: 1.4; }
.wp-chk p { margin: 6px 0 0; }
/* УК: подпись к модели — какие узлы на ней красным (только там, где модель видна) */
.uko-worn { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 12px; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #5c1a14; font-size: 13px; line-height: 1.45; }
.uko-worn .dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #e02424; }
.uko-worn b.over { color: #b3261e; }
@media (max-width: 1099px) { .uko-worn { display: none; } }
/* аварийная служба: вид «как в документе» — люди × дни, буквы смен */
.duty-view a { cursor: pointer; }
.duty-doc { margin-top: 10px; }
.ddoc-wrap { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ddoc { border-collapse: collapse; font-size: 13px; width: 100%; }
.ddoc th, .ddoc td { border: 1px solid #c8c8c8; text-align: center; padding: 0; height: 30px; min-width: 28px; }
.ddoc thead th { background: var(--panel); font-weight: 700; font-size: 12.5px; line-height: 1.1; padding: 3px 0; position: sticky; top: 0; z-index: 1; }
.ddoc thead th small { display: block; font-weight: 400; font-size: 10px; color: var(--muted); }
.ddoc thead th.we { background: #ff3b30; color: #fff; }
.ddoc thead th.we small { color: #ffe3e0; }
.ddoc thead th.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.ddoc .ddoc-no { width: 30px; min-width: 30px; background: #ffff00; font-weight: 700; color: #111; }
.ddoc .ddoc-nm { text-align: left; padding: 0 8px; white-space: nowrap; font-weight: 600; min-width: 150px; background: #ddebf7; color: #111; position: sticky; left: 0; z-index: 1; }
.ddoc thead .ddoc-nm, .ddoc thead .ddoc-no { background: var(--panel); color: var(--text); }
.ddoc tr.tint td.dd, .ddoc tr.tint .ddoc-nm { background: var(--row); color: #111; }
.ddoc td.dd { cursor: default; font-weight: 700; }
.ddoc td.dd.we { box-shadow: inset 0 0 0 999px rgba(255, 59, 48, .06); }
.ddoc td.dd b { display: inline-block; min-width: 18px; padding: 1px 2px; border-radius: 4px; font-size: 13.5px; color: #111; }
.ddoc td.dd b + b { margin-left: 1px; }
.ddoc td.dd i { font-style: normal; font-size: 11px; color: #777; }
.ddoc td.dd.abs { background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.07) 0 4px, transparent 4px 8px); }
.ddoc td.dd.ovl b { outline: 2px solid #e02424; }
.ddoc td.dd.rest b { outline: 2px dashed #e39b00; }
.ddoc td.dd.today { box-shadow: inset 0 0 0 2px var(--accent); }
.ddoc td.dd.dover { background: var(--accent-soft) !important; }
.ddoc .ddoc-sum { min-width: 34px; font-size: 12px; color: var(--muted); }
.ddoc .ddoc-sep td { height: 14px; background: var(--panel-2); border-left: 0; border-right: 0; }
.ddoc .ddoc-miss td { color: #b3261e; font-weight: 700; font-size: 12px; background: #fdecea; }
.ddoc .ddoc-miss .ddoc-nm { background: #fdecea; color: #b3261e; }
body:has(#dDoc:not([hidden])) .ddoc td.dd { cursor: pointer; }
.ddoc td.dd b[draggable] { cursor: grab; }
.ddoc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 2px 4px; font-size: 13px; }
.ddoc-legend b { display: inline-flex; justify-content: center; min-width: 20px; margin-right: 6px; padding: 1px 4px; border-radius: 4px; background: #ffff00; color: #111; }
.ddoc-legend i { font-style: normal; display: inline-flex; justify-content: center; min-width: 20px; margin-right: 6px; color: #777; background: repeating-linear-gradient(135deg, rgba(0,0,0,.08) 0 4px, transparent 4px 8px); border-radius: 4px; }
.ddoc-legend small { color: var(--muted); }
.ddoc-pop { position: fixed; z-index: 200; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-up); padding: 6px; min-width: 230px; max-height: min(60vh, 420px); overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.ddoc-pop-h { font-size: 12px; color: var(--muted); padding: 4px 8px 6px; }
.ddoc-pop button { display: flex; align-items: center; gap: 8px; text-align: left; background: none; border: 0; padding: 7px 8px; border-radius: 7px; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; }
.ddoc-pop button:hover { background: var(--hover); }
.ddoc-pop button.on { background: var(--accent-soft); }
.ddoc-pop button b { display: inline-flex; justify-content: center; min-width: 20px; padding: 1px 4px; border-radius: 4px; background: #ffff00; color: #111; }
.ddoc-pop button small { color: var(--muted); margin-top: 0; }
.ddoc-pop button small.bad-t { color: var(--bad); }
.ddoc-pop-h .duty-letter { vertical-align: -3px; }
:root[data-theme="dark"] .ddoc th, :root[data-theme="dark"] .ddoc td { border-color: #3a4152; }
.duty-wrap[hidden], .duty-doc[hidden] { display: none !important; }
/* карточка лифта, вкладка «Износ»: узлы слева, 3D-модель с подписями изношенных — справа (только компьютер) */
.cols:has(> [hidden]) { grid-template-columns: 1fr; }
.parts-3d { display: none; }
@media (min-width: 1100px) {
  .parts-3d-wrap.with-3d:has(.lift3d:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 18px; align-items: start; }
  .parts-3d { display: block; position: sticky; top: 56px; }
  .lift3d-parts { height: min(78vh, 720px); }
  .parts-3d-note { margin: 4px 0 0; text-align: center; }
}
/* чек-лист ТО: разделы регламента (машинное помещение, кабина, шахта, приямок…) и пометки («раз в 3 года») */
.chk-sec { margin: 14px 0 4px; padding: 4px 0; font-size: 12.5px; font-weight: 700; color: var(--accent); border-bottom: 1px solid var(--line); text-transform: none; }
.chk-sec:first-child { margin-top: 0; }
.chk-note { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 99px; background: #fff3d6; color: #8a6510; }

/* ПТО — ПЕРИОДИЧЕСКОЕ ТЕХНИЧЕСКОЕ ОСВИДЕТЕЛЬСТВОВАНИЕ.
   Плашка со сроком, таблица сверки акта с карточкой, страницы скана, отчёт о загрузке. */
.sec-chips a.pto-hot { border-color: var(--bad); color: var(--bad); }
.sec-chips[data-tabs] a.pto-hot.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.pto-plate { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: var(--r); padding: 14px 18px; background: var(--panel); }
.pto-plate.soon { border-left-color: var(--bad); }
.pto-plate.over, .pto-plate.none { border-left-color: var(--bad); background: var(--bad-soft); }
.pto-plate-d { flex: none; min-width: 190px; }
.pto-plate-k { display: block; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.pto-plate-d b { display: block; font-size: 23px; font-weight: 450; letter-spacing: -.5px; margin: 3px 0 2px; }
.pto-plate-d span:last-child { font-size: 11.5px; color: var(--muted); }
.pto-plate-m { min-width: 220px; flex: 1; }
.pto-plate-m b { display: block; font-size: 13px; }
.pto-plate-m span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.pto-top { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .pto-top { grid-template-columns: 1fr; } .pto-plate-d { min-width: 0; } }
.pto-check td, .pto-check th { font-size: 12.5px; }
.pto-check tr.bad td { background: var(--bad-soft); }
.pto-y { color: var(--ok); }
.pto-n { color: var(--bad); font-weight: 700; }
.pto-def tr.done td { color: var(--muted); }
.pto-def td.n, .pto-def th.n { width: 34px; text-align: right; color: var(--muted); }
.pto-scan { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pto-scan a { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: #fff; }
.pto-scan a:hover { border-color: var(--accent); }
.pto-scan img { display: block; width: 100%; height: auto; }
.pto-scan span { position: absolute; right: 6px; bottom: 6px; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; }
.pto-rep { margin-top: 12px; }
.pto-rep-err { border: 1px solid var(--bad); border-radius: var(--r-s); padding: 10px 14px; font-size: 12.5px; color: var(--bad); background: var(--bad-soft); margin: 0 0 10px; }
.pto-rep-act { border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: var(--r-s); padding: 12px 14px; margin-bottom: 10px; }
.pto-rep-act.ok { border-left-color: var(--ok); }
.pto-rep-act.soon, .pto-rep-act.over { border-left-color: var(--bad); }
.pto-rep-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.pto-rep-h .pill { margin-left: auto; }
.pto-rep-act table { margin-top: 8px; }

/* ---------- ВЫДАЧА СПЕЦОДЕЖДЫ (mechanic.php, mechanics.php; inc/modules/20b_workwear.php) ---------- */
dialog.modal.modal-wide { width: min(640px, 100vw); }
.profile-act { margin-left: auto; align-self: center; }
.profile.wear-alert .ava { box-shadow: 0 0 0 3px var(--bad); }
a.wear-bar { display: flex; margin-top: 14px; text-decoration: none; }
a.wear-bar:hover { text-decoration: none; filter: brightness(.98); }
.wear-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wear-item:last-child { border-bottom: none; padding-bottom: 0; }
.wear-item:first-child { padding-top: 0; }
.wear-item.bad { margin: 0 -12px; padding-left: 12px; padding-right: 12px; background: var(--bad-soft); border-radius: var(--r-s); border-bottom-color: transparent; }
.wear-item.bad + .wear-item { border-top: none; }
.wear-t { min-width: 0; }
.wear-t b { font-weight: 500; }
.wear-t small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.wear-size { margin-left: 8px; font-size: 12px; color: var(--soft-ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.wear-item.bad .wear-size { background: var(--panel); }
/* история выдач в профиле: всё, что человеку выдавали, включая списанное */
.wear-hist { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.wear-hist > summary { cursor: pointer; font-size: 12.5px; color: var(--accent); list-style: none; }
.wear-hist > summary::-webkit-details-marker { display: none; }
.wear-hist > summary::before { content: '▸ '; }
.wear-hist[open] > summary::before { content: '▾ '; }
.wear-hist .tbl-wrap { margin-top: 10px; }
.wear-hist .tbl td, .wear-hist .tbl th { font-size: 12px; padding: 6px 8px; }
.wear-s { display: flex; gap: 10px; align-items: center; }
.wear-s form { margin: 0; }
/* окно: три блока с подписью, чтобы форма читалась сверху вниз, а не стеной полей */
.wear-form .wear-sec { margin-bottom: 20px; }
.wear-sec-h { font-size: 11.5px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.wear-people { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.wear-man { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-soft-2); }
.wear-x { border: none; background: none; color: inherit; cursor: pointer; font-size: 11px; padding: 0; opacity: .7; line-height: 1; }
.wear-x:hover { opacity: 1; }
.wear-add { display: inline-flex; align-items: center; }
.wear-plus { width: 28px; height: 28px; border-radius: 50%; border: 1px dashed var(--line-2); background: var(--panel); color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.wear-plus:hover { border-color: var(--accent); color: var(--accent); }
.wear-add select { font-size: 12.5px; padding: 5px 8px; max-width: 240px; }
.wear-row { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 0 14px; padding: 14px 40px 0 14px; margin-bottom: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); }
.wear-row.bad { border-color: var(--bad); background: var(--bad-soft); }
.wear-row .wear-del { position: absolute; top: 6px; right: 6px; }
.wear-row .wear-del[hidden] { display: none; }
.mech-card.wear-bad { border-color: var(--bad); box-shadow: inset 3px 0 0 var(--bad); }
@media (max-width: 520px) { .wear-row { grid-template-columns: 1fr; } .profile-act { margin-left: 0; width: 100%; } }

/* ---------- ИИ: УРОВЕНЬ УСИЛИЙ (platform_company.php) и отрицательный баланс ---------- */
.ai-lv-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.ai-lv input[type=range] { width: 100%; accent-color: var(--accent); margin: 0; }
.ai-lv-ticks { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 4px; }
.ai-lv-ticks span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; color: var(--muted); cursor: pointer; text-align: center; }
.ai-lv-ticks span:first-child { align-items: flex-start; text-align: left; }
.ai-lv-ticks span:last-child { align-items: flex-end; text-align: right; }
.ai-lv-ticks span b { font-size: 14px; font-weight: 500; color: var(--soft-ink); }
.ai-lv-ticks span.on, .ai-lv-ticks span.on b { color: var(--accent); }
.company .co-bal.neg { color: var(--bad); font-weight: 500; }

/* ---------- ПРИВЯЗКА МЕССЕНДЖЕРА КОДОМ ИЗ ЦИФР (settings.php?s=notify) ---------- */
.bot-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bot-num { margin: 4px 0 14px; padding: 16px 18px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); }
.bot-num[hidden] { display: none; }
.bot-num-steps { margin: 0 0 10px; padding-left: 18px; font-size: 13px; }
.bot-num-steps li { margin-bottom: 4px; }
.bot-num-code { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bot-num-code b { font-size: 34px; font-weight: 600; letter-spacing: 4px; font-variant-numeric: tabular-nums; color: var(--accent); }
.bot-num-bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; margin-top: 10px; }
.bot-num-bar i { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: 3px; transition: width .25s linear; }

/* ---------- МАССОВЫЕ ДЕЙСТВИЯ (lifts_mass.php) ---------- */
.mass-tbl input[type=date] { min-width: 140px; }
.mass-tbl input[type=text] { min-width: 180px; }
.mass-tbl td { vertical-align: middle; }
.mass-tbl tr[hidden] { display: none; }
.mass-list { margin: 12px 0; padding-left: 18px; font-size: 13px; max-height: 240px; overflow: auto; }
.mass-list li { margin-bottom: 3px; }
.mass-tbl td:nth-child(2) { min-width: 230px; }

/* ---------- ПОДТВЕРЖДЕНИЕ ЗАКРЕПЛЕНИЯ ЛИФТОВ (assign.php) ---------- */
.asg-h { font-size: 15px; font-weight: 500; margin: 26px 0 0; color: var(--soft-ink); }
.asg-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 12px 0; }
.asg-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.asg-row:last-child { border-bottom: none; }
.asg-row:hover { background: var(--panel-2); }
.asg-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.asg-row b { display: block; font-weight: 500; }
.asg-row small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.asg-row:has(input:not(:checked)) { background: var(--bad-soft); }
.asg-row:has(input:not(:checked)) b { text-decoration: line-through; color: var(--muted); }

/* УВЕДОМЛЕНИЕ О КУКИ (assets/app.js): полоса внизу экрана у того, кто зашёл впервые. Поверх страницы,
   но ниже окон программы; на телефоне текст и кнопка встают друг под другом. */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: var(--panel, #fff); border-top: 1px solid var(--line-2); box-shadow: 0 -8px 28px rgba(24, 43, 53, .10); }
.cookie-bar-in { max-width: 1320px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.cookie-bar p { margin: 0; flex: 1 1 auto; font-size: 13.5px; color: var(--text); line-height: 1.45; }
.cookie-bar a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.cookie-bar .btn { flex: none; min-width: 180px; justify-content: center; }
html.has-cookie-bar body { padding-bottom: 72px; }
@media (max-width: 640px) {
  .cookie-bar-in { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .cookie-bar .btn { min-width: 0; }
  html.has-cookie-bar body { padding-bottom: 132px; }
}
@media print { .cookie-bar { display: none; } }

/* ФОТО СОСТОЯНИЯ ЛИФТА (lift.php #photos, мастер): плитки по дням загрузки, новые сверху */
.lph-day { margin-top: 12px; }
.lph-day:first-child { margin-top: 0; }
.lph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 6px; }
.lph { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.lph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lph-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: none; cursor: pointer; font-size: 12px; line-height: 24px; padding: 0;
  background: rgba(14, 18, 26, .6); color: #fff; opacity: 0; transition: opacity .15s; }
.lph:hover .lph-x, .lph:focus-within .lph-x { opacity: 1; }
@media (hover: none) { .lph-x { opacity: 1; } }
.lph-new { animation: lph-in .5s ease-out; }
@keyframes lph-in { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.lph-drop { margin-bottom: 10px; }
.wiz-ph-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* наша кнопка выбора файла вместо системной (assets/app.js — file-pick) */
.file-pick { display: inline-flex; align-items: center; gap: 8px; position: relative; max-width: 100%; }
.file-pick-i { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-pick-n { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-pick.has .file-pick-n { color: var(--text); }

/* новый ключ API (api_keys.php): показывается один раз */
.api-key-show { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.api-key-show code { font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); word-break: break-all; }


/* карточка графика аварийной службы (duty.php): смены плашками, переносятся внутри блока — сколько бы их ни было */
.duty-kv b { white-space: normal; min-width: 0; text-align: right; }
.duty-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 75%; }
.duty-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 8px; border-radius: 99px; background: var(--line); font-weight: 500; font-size: 12px; white-space: nowrap; }
.duty-chip small { color: var(--muted); font-weight: 400; }
.duty-groups .card { min-width: 0; overflow-wrap: anywhere; }

/* пачка файлов из разных папок (data-pile в app.js) */
.pile { border: 1.5px dashed var(--line-2, var(--line)); border-radius: 10px; padding: 10px; }
.pile.drop-on { border-color: var(--accent); background: var(--accent-soft, transparent); }
.pile-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pile-l { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.pile-l li { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 8px; background: var(--line); font-size: 12.5px; min-width: 0; }
.pile-l li span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pile-x { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 13px; padding: 0 2px; }
.pile-say { margin-top: 6px; }
/* ДОМА (houses.php): строка дома — как у конкурента: дом, лифты и их состояние, ТО, механик; нажал — раскрылись лифты */
.houses-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.houses-q { flex: 1 1 260px; max-width: 420px; }
.houses { padding: 0; overflow: hidden; }
.houses-h, .house-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 16px; }
.houses-h { font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.house { border-bottom: 1px solid var(--line); }
.house:last-child { border-bottom: 0; }
.house-row { cursor: pointer; list-style: none; }
.house-row::-webkit-details-marker { display: none; }
.house-row:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.house-row > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.house-row small { font-size: 11.5px; }
.house-t { flex-direction: row !important; align-items: center; gap: 10px !important; }
.house-t b { overflow: hidden; text-overflow: ellipsis; }
.house-t small { color: var(--muted); }
.house[open] .house-row { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.house-b { padding: 4px 16px 14px; }
.house-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.house-add { display: flex; gap: 6px; flex: 1 1 280px; }
.house-add input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 760px) { .houses-h { display: none; } .house-row { grid-template-columns: 1fr 1fr; } .house-t { grid-column: 1 / -1; } }
/* аватарка дома: фото или плитка со значком здания своего оттенка (house_avatar) */
.house-av { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--hh, 210) 70% 92%), hsl(var(--hh, 210) 60% 82%)); color: hsl(var(--hh, 210) 55% 32%); }
.house-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.house-av svg { stroke: currentColor; }
.house-photo { flex: 0 0 auto; align-items: center; }


/* ПРОСМОТР ДОКУМЕНТА ВНУТРИ СТРАНИЦЫ (vlViewer в app.js) */
.vlv { position: fixed; inset: 0; z-index: 9000; background: rgba(20, 22, 26, .92); display: flex; flex-direction: column; }
.vlv[hidden] { display: none; }
.vlv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card, #fff); border-bottom: 1px solid var(--line, #ddd); }
.vlv-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.vlv-act { display: flex; gap: 6px; flex-wrap: wrap; }
.vlv-body { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; outline: none; }
.vlv-page { max-width: min(1100px, 100%); width: auto; height: auto; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .35); border-radius: 2px; }
.vlv-msg { color: #fff; margin: auto; text-align: center; max-width: 520px; line-height: 1.5; }
.vlv-msg a { color: #9ec1ff; }
body.vlv-open { overflow: hidden; }
@media (max-width: 640px) { .vlv-bar { flex-wrap: wrap; } .vlv-act { width: 100%; } .vlv-body { padding: 8px; } }
@media print {
  body.vlv-print > *:not(#vlViewer) { display: none !important; }
  body.vlv-print #vlViewer { position: static; background: none; display: block; }
  body.vlv-print .vlv-bar { display: none; }
  body.vlv-print .vlv-body { overflow: visible; padding: 0; display: block; }
  body.vlv-print .vlv-page { max-width: 100%; width: 100%; box-shadow: none; page-break-after: always; break-after: page; display: block; margin: 0; }
}


/* АДМИН ПАНЕЛЬ — чтобы не путать с другими разделами (владелец 19.11.2026): пункт меню и её подразделы — жирным,
   при наведении текст зачёркивается (видно, на чём сейчас курсор) */
.nav-i.nav-k-admin .nav-t { font-weight: 700; }
.admin-wrap .set-nav a { font-weight: 700; }
.nav-i.nav-k-admin:hover .nav-t, .admin-wrap .set-nav a:hover { text-decoration: line-through; text-decoration-thickness: 2px; }


/* СВЯЗИ СОТРУДНИКА (окно в карточке, emp_links.php) */
.emp-link-g { border-bottom: 1px solid var(--line, #e5e3dc); padding: 8px 0; }
.emp-link-g summary { cursor: pointer; }
.emp-link-l { margin: 6px 0 2px; padding-left: 18px; line-height: 1.6; }
.emp-link-l small { display: block; }
#dlgEmpLinks .modal-b { max-height: 70vh; overflow: auto; }

/* ---- Админ панель → «Сервер» (inc/admin_server.php): запас мощности, железо прогресс-барами ---- */
.hw-cap-b { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hw-big { min-width: 120px; text-align: center; padding: 10px 14px; border-radius: var(--r); background: var(--ok-soft); color: var(--ok); }
.hw-big b { display: block; font-size: 38px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hw-big small { font-size: 12px; }
.hw-big.warn { background: var(--warn-soft); color: var(--warn); }
.hw-big.bad { background: var(--bad-soft); color: var(--bad); }
.hw-adv { display: grid; gap: 8px; border-top: 1px solid var(--line); }
.hw-adv-i { display: grid; gap: 2px; padding: 8px 12px; border-radius: var(--r-s); border-left: 3px solid var(--ok); background: var(--ok-soft); }
.hw-adv-i.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.hw-adv-i.bad { border-left-color: var(--bad); background: var(--bad-soft); }
.hw-grid { display: grid; gap: 14px; }
.hw-mh { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 4px; }
.hw-mh b { font-variant-numeric: tabular-nums; }
.hw-bar { position: relative; height: 10px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); overflow: visible; }
.hw-bar.sm { height: 6px; }
.hw-bar i { display: block; height: 100%; border-radius: 6px; background: var(--ok); transition: width .3s; }
.hw-bar.warn i { background: var(--warn); }
.hw-bar.bad i { background: var(--bad); }
.hw-bar s { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--text); opacity: .55; border-radius: 1px; }
.hw-m small { display: block; margin-top: 3px; }

/* Важное действие — код из MAX (inc/confirm.php): маленький красный треугольник у кнопки, без пояснений */
.mcode-tri { display: inline-flex; vertical-align: middle; margin-left: 4px; color: var(--bad); line-height: 0; }
.mcode-dlg h2 .mcode-tri { margin: 0 4px 0 0; }
