/* Панель парсера Авито — по прототипу «Панель парсера EDIT» (Claude Design,
 * 22.09.2026). Каждое значение здесь взято из inline-стилей прототипа: цвета,
 * размеры, отступы, тени, анимации. Расхождение с прототипом — ошибка этого
 * файла, а не повод для трактовки.
 */

:root {
  --bg: #101315; --surface: #1B2023; --sunken: #14191B; --row: #242B2E; --row-off: #1D2427;
  --ctl: #30383B; --ctl-hi: #3C464A; --pop: #293135; --glyph: #FFFFFF; --cut: #14191B;
  --ink: #F1F1EA; --ink2: #D4D8D4; --ink3: #A8B0AD; --ink4: #87918D; --ink-off: #67716D; --ink-dim: #95A09A;
  --blue-bg: rgba(233, 154, 32, .14); --blue-bg-hi: rgba(233, 154, 32, .22); --blue-ink: #F2C678;
  --red-bg: rgba(255, 107, 114, .12); --red-bg-hi: rgba(255, 107, 114, .2); --red-ink: #FFC3C6;
  --green-bg: rgba(70, 211, 154, .14); --green-ink: #8FE7C4;
  --amber-bg: rgba(242, 169, 59, .12); --amber-ink: #F7CE8C;
  --ok: #46D39A; --warn: #F2A93B; --bad: #FF6B72;
  --glow: #3B2A13; --veil: rgba(4, 6, 7, .78); --link: #E99A20; --link-hi: #F2B85A;
}

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

* { box-sizing: border-box; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hi); }
button { font-family: inherit; }
input, textarea { color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--ink4); opacity: 1; }
h2 { margin: 0; font-size: 16px; font-weight: 700; white-space: nowrap; flex: none; color: var(--ink); }

/* Атрибут hidden слабее display в классе — закрепляем. */
[hidden] { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ctl-hi); border-radius: 999px; }

@keyframes hnxpulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes hnxin { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes hnxup { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------------ Каркас */
.app {
  width: 100%;
  min-width: 1360px;
  height: calc(100vh - 62px);
  min-height: 880px;
  background: radial-gradient(1100px 620px at 12% -8%, var(--glow) 0%, rgba(59, 42, 19, 0) 62%), var(--bg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Две колонки; ширина левой тянется разделителем и задаётся переменной. */
/* Зазор у разделителя шире обычного: он тут не пустое место, а элемент, за
   который тянут мышью, и ему нужен воздух. Берём отступ панели от края экрана
   (16px) плюс половину обычного зазора — полторы обычных щели. Сам разделитель
   живёт в колонке нулевой ширины и накрывает зазор собой: со своей колонкой в
   6px промежуток складывался из двух зазоров и был вдвое шире остальных. */
.cols {
  --split-gap: 21px;
  flex: 1;
  min-height: 0;
  display: grid;
  column-gap: calc(var(--split-gap) / 2);
  grid-template-columns: var(--col-w, 22.5%) 0 minmax(0, 1fr);
}

/* Зона захвата шире самой ячейки (6px), чтобы в разделитель было легко
   попасть мышью. Расширяем через justify-self: center, а не отрицательными
   полями: с ними элемент прижимался к левому краю ячейки и полоска стояла на
   4px левее середины промежутка между колонками. */
.splitter {
  align-self: stretch;
  justify-self: center;
  width: var(--split-gap, 21px);
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splitter span { width: 2px; height: 44px; border-radius: 999px; background: var(--ctl); }

.right { min-height: 0; display: flex; flex-direction: column; gap: 14px; }

.pair {
  flex: none;
  height: 392px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tiles {
  flex: 152 1 0;
  min-height: 176px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* ---------------------------------------------------------------- Карточка */
.card {
  min-height: 0;
  background: var(--surface);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.card.run { position: relative; z-index: 60; flex: none; overflow: visible; }
.card.proxy { position: relative; }
.card.feed-card { flex: 280 1 0; min-height: 150px; }

.head {
  height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.head-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; overflow: hidden; }
.head-title > h2 { flex: none; }
.card.articles > .head { container-type: inline-size; }
.card.proxy > .foot { container-type: inline-size; }
@container (max-width: 560px) {
  #proxy-check, #proxy-drop-all { width: 32px; padding: 0; }
  #proxy-check .btn-t, #proxy-drop-all .btn-t { display: none; }
}
@container (max-width: 340px) {
  #btn-clear { width: 32px; padding: 0; justify-content: center; }
  #btn-clear .btn-t { display: none; }
}
.sub { font-size: 14px; color: var(--ink4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-line { flex: none; display: flex; align-items: center; min-height: 22px; }
.note-line span { font-size: 14px; color: var(--ink4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Списки строк: скроллятся внутри карточки. */
.scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding-right: 2px;
  align-content: flex-start;
}

.scroll.g6 { gap: 6px; }
.scroll.g8 { gap: 8px; }

/* Списки с шапкой колонок: место под полосу прокрутки резервируется всегда.
   Иначе появление полосы сужает строки, и заголовки перестают стоять над
   своими значениями — «состояние» уезжает правее, чем «готово». */
.scroll.with-head { scrollbar-gutter: stable; }

.empty-box {
  flex: 1;
  min-height: 64px;
  border-radius: 10px;
  /* Пусто — значит утопленный фон (#08111F), как у зоны загрузки файла.
     Фоном строки (--row) такой блок читался как ещё одна строка списка,
     хотя строк как раз и нет. Правило общее: артикулы, прокси, аккаунты,
     лента, окно «Все артикулы». */
  background: var(--sunken);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  text-align: center;
}

.empty-box span { font-size: 14px; color: var(--ink4); text-wrap: pretty; }
.empty-box .strong { font-weight: 600; color: var(--ink); }


/* ------------------------------------------------------------------ Кнопки */
.btn {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--ctl);
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 160ms ease, color 160ms ease;
}

/* Цвет говорит о последствии — четыре роли, других нет. В покое все кнопки
   нейтральные, серые; роль проявляется цветом под курсором (23.09). Сразу
   цветная только алая в окне подтверждения.

   Нейтральная: служебное действие без потерь. Открыть папку, Войти, Пауза. */
.btn:hover { background: var(--ctl-hi); color: var(--ink); }
.btn.bright { color: var(--ink); }
.btn.bright:hover { color: var(--ink); }
/* Единое правило: подпись белая, иконка тусклее; под курсором иконка берёт цвет подписи. */
.btn:not(.red) > svg { color: var(--ink3); transition: color 160ms ease; }
.btn:not(.red):hover > svg { color: inherit; }
.speed-l { color: var(--ink3); }
#speed-word { color: var(--ink); }

/* Акцент: рабочее действие, ведёт вперёд. Одно на блок, стоит последним.
           В покое серая, синеет под курсором.
           Запустить, Продолжить, Сохранить, Добавить аккаунт. */
.btn.accent { color: var(--ink); background: var(--ctl); }
.btn.accent:hover { background: var(--blue-bg-hi); color: var(--blue-ink); }

/* Снимающая: в покое серая, алеет под курсором. Стоит слева от рабочей.
   Убрать, Выйти, Очистить, Остановить. */
.btn.strip { color: var(--ink); background: var(--ctl); }
.btn.strip:hover { background: var(--red-bg); color: var(--red-ink); }

/* Подтверждение: алая сразу. Живёт только в окне подтверждения и там, где
   человека уже спросили. */
.btn.red { color: var(--red-ink); background: var(--red-bg); }
.btn.red:hover { background: var(--red-bg-hi); color: var(--red-ink); }

.btn.quiet { color: var(--ink3); background: transparent; }
.btn.quiet:hover { background: var(--ctl); color: var(--ink); }

/* Выключенная кнопка не меняет цвет роли — просто гаснет. */
.btn:disabled, .btn:disabled:hover, .btn.off, .btn.off:hover {
  opacity: .45;
  cursor: default;
  background: var(--ctl);
  color: var(--ink2);
}
.btn.icon { width: 32px; padding: 0; color: var(--glyph); }
.btn.icon:hover { color: var(--glyph); }
/* Кнопка без подписи: иконка и есть подпись — белая. */
.btn.icon > svg, .btn.icon:hover > svg { color: var(--glyph); }
.btn.w132 { width: 132px; }
.btn.wide { width: 100%; }
.btn .chev { color: var(--glyph); flex: none; }
.btn.folder { padding: 0 14px 0 11px; }
.btn svg { flex: none; }

/* ------------------------------------------------------------------- Шапка */
/* Шапка выше карточек (у «Прогона» 60): меню «Скачать результат» выпадает
   поверх них. Ниже окон (80+) и подсказки. */
.bar {
  position: relative;
  z-index: 70;
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.logo {
  width: 60px;
  height: 32px;
  border-radius: 12px;
  background: #E99A20;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.logo span { font-weight: 900; font-size: 21px; color: #101315; line-height: 1; display: inline-flex; align-items: center; }
.logo .hn { letter-spacing: -0.285em; }
.logo .x { margin-left: .2em; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); font-weight: 700; white-space: nowrap; }
.brand-sub { font-size: 14px; color: var(--ink4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bar-right { display: flex; align-items: center; gap: 6px; min-width: 0; }

.ind {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--surface);
  min-width: 0;
  overflow: hidden;
  cursor: default;
}

.ind .word { font-size: 14px; font-weight: 600; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ind .val { font-size: 14px; font-weight: 700; white-space: nowrap; flex: none; color: var(--ink); }
.ind svg { flex: none; }

/* Квадратик с play/pause в индикаторе прогона и в заголовке карточки. */
.runmark {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 6px;
  background: var(--ctl);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* В карточке «Прогон» — размером с кнопку и с поведением кнопки: пока прогон
   не идёт, нажатие запускает его. */
.runmark.big {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.runmark.big:hover { background: var(--ctl-hi); }
/* Иконка тусклая, как play/пауза на кнопках рядом; под курсором белеет. */
.runmark.big { --glyph: var(--ink3); }
.runmark.big:not(:disabled):hover { --glyph: #FFFFFF; }
.runmark.big svg * { transition: fill 160ms ease, stroke 160ms ease; }
.runmark.big:disabled { cursor: default; }
.runmark.big:disabled:hover { background: var(--ctl); }

/* ---------------------------------------------------------------- Артикулы */
/* Число артикулов — плашкой перед «Очистить». */
.total-chip {
  height: 32px;
  padding: 0 14px;
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  background: var(--ctl);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.drop {
  flex: none;
  min-width: 0;
  border-radius: 10px;
  background: var(--sunken);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.drop.over { background: var(--ctl); }
/* Список не загружен: вся карточка — зона для файла. Поиск, фильтр, таблица
   и страницы появятся вместе со списком. */
.card.articles.empty .tools,
.card.articles.empty .cols-head,
.card.articles.empty #articles,
.card.articles.empty .pager { display: none; }
.card.articles.empty .drop { flex: 1; justify-content: center; }
.drop .t { font-size: 14px; font-weight: 700; color: var(--ink); text-wrap: pretty; }
.drop .d { font-size: 14px; color: var(--ink4); line-height: 1.45; text-wrap: pretty; }
.drop .btn { margin-top: 2px; padding: 0 18px; }

.tools { height: 32px; flex: none; display: flex; align-items: center; gap: 8px; }

.search {
  flex: 1;
  min-width: 0;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--row);
}

.search svg { flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-family: inherit; font-size: 14px; }

.picker { position: relative; flex: none; }

.menu {
  position: absolute;
  top: 42px;
  right: 0;
  z-index: 40;
  min-width: 186px;
  padding: 6px;
  border-radius: 12px;
  background: var(--pop);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .9);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu.speed { min-width: 206px; }
.set-speed { position: relative; }
.set-speed .menu { left: 0; right: 0; min-width: 0; }
.picker:has(> .menu:not([hidden])) > .combo .chev { transform: rotate(180deg); }

.menu button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  color: #C6D6EC;
}

.menu button:hover { background: var(--ctl-hi); }
.menu button.active { background: #1D3050; color: #8FE0FB; }

/* Правый отступ шапки = отступ строки (12) + отступ списка (2) + ширина
   полосы прокрутки: её замеряет app.js и кладёт в --sb. */
.cols-head {
  flex: none;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 78px 58px;
  gap: 10px;
  padding: 0 calc(14px + var(--sb, 0px)) 0 12px;
}

.cols-head span { font-size: 14px; color: var(--ink4); white-space: nowrap; }
.cols-head .r { text-align: right; }

.row-art {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 78px 58px;
  gap: 10px;
  align-items: center;
  height: 32px;
  flex: none;
  background: var(--row);
  border-radius: 10px;
  padding: 0 12px;
}

.row-art .n { font-size: 14px; color: var(--ink4); }
.row-art .code { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-art .st { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink3); }
.row-art .st.in_flight { color: var(--amber-ink); }
.row-art .st.pending, .row-art .st.skipped { color: var(--ink4); }
.row-art .st.failed { color: var(--red-ink); }
.row-art .found { font-size: 14px; white-space: nowrap; text-align: right; font-weight: 400; color: var(--ink4); }
.row-art .found.has { font-weight: 600; color: var(--ink); }

.pager { height: 32px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pager .where { font-size: 14px; color: var(--ink4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager .btns { display: flex; align-items: center; gap: 6px; flex: none; }

/* ------------------------------------------------------------------ Прогон
   Заголовок и пояснение в одной строке, как в прототипе, и ровняются по
   базовой линии текста: 17px и 14px по центру строки стоят вразнобой.
   Шапка 32px — иконка, скорость и кнопки на одной линии с «Очистить». */
.run-head { height: 32px; align-items: center; }
.run-left { display: flex; align-items: center; gap: 12px; min-width: 0; overflow: hidden; }
.run-text { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.run-title { font-size: 17px; font-weight: 600; white-space: nowrap; flex: none; }
.run-meta { font-size: 14px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-right { display: flex; align-items: center; gap: 8px; flex: none; }

.bar-wrap { flex: none; display: flex; flex-direction: column; gap: 6px; }
.track { height: 9px; flex: none; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.track > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2450C9, #48C8F5);
  transition: width 900ms linear;
  width: 0;
}

.bar-nums { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--ink3); }

/* ------------------------------------------------------------ Переключатель */
.toggle {
  width: 48px;
  height: 28px;
  flex: none;
  border: 0;
  padding: 3px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 220ms ease;
  background: #1B2A45;
}

.toggle.on { background: #3B7BFF; }
.toggle span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: block;
  transition: transform 220ms ease, background 220ms ease;
  transform: translateX(0);
  background: #7A8DAC;
}

.toggle.on span { transform: translateX(20px); background: #fff; }

/* «Скорость ограничена»: аккаунтов в работе больше, чем адресов под ними, и
   общая цель не умножается на их число (владелец 23.09). Просто текст:
   шрифт как у «использовать» в прокси, цвет алый, как у «Очистить» под
   курсором. */
.limit { flex: none; font-size: 14px; white-space: nowrap; color: var(--red-ink); }
.limit[hidden] { display: none; }

.use { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.use .word { font-size: 14px; color: var(--ink3); white-space: nowrap; }

/* -------------------------------------------------------- Строка 56px (пара) */
.line {
  height: 56px;
  flex: none;
  border-radius: 10px;
  padding: 0 12px;
  display: grid;
  align-items: center;
  transition: background 220ms ease;
  background: #101C30;
}

.line.proxy-line { grid-template-columns: 20px minmax(0, 1fr) auto auto auto; gap: 10px; }
.line.proxy-line.dark { background: #0C1526; }

.line.acc-line {
  gap: 8px;
  grid-template-columns: 20px minmax(5em, 8em) 84px minmax(56px, 1fr) 48px 84px;
  background: var(--row);
}

.dotbox { width: 20px; height: 20px; flex: none; display: flex; align-items: center; justify-content: center; }
.dotbox svg { flex: none; }

.line .info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.line .info .top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.line .title { flex: 0 1 auto; min-width: 4.5em; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #E8F0FA; }
.line .meta { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #6B7F9E; }
.line.dark .title, .line.dark .meta { color: #7A8DAC; }

/* Аккаунт: гаснущие части при выключении. */
.acc-line .fade { display: flex; align-items: center; gap: 10px; min-width: 0; transition: opacity 220ms ease; opacity: 1; }
.acc-line.off .fade { opacity: .45; }
.acc-line .info { gap: 2px; }
.acc-line .state { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink4); }
.acc-line .state.ok { color: var(--ok); }
.acc-line .state.warn { color: var(--warn); }
.acc-line .state.bad { color: var(--bad); }
.acc-line .login { grid-column: 3; }
.acc-line .done { grid-column: 4; font-size: 14px; text-align: right; white-space: nowrap; transition: opacity 220ms ease; opacity: 1; color: var(--ink3); }
.acc-line .done.none { color: var(--ink4); }
.acc-line.off .done { opacity: .45; }
.acc-line .toggle { grid-column: 5; }
.acc-line .drop-btn { grid-column: 6; }

/* Подвал карточек пары. */
.foot { flex: none; display: flex; align-items: center; gap: 8px; }
.foot .push { margin-left: auto; }
.foot .step { font-size: 14px; color: var(--ink3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Ссылка на экран сервера, где открыто окно входа (серверный режим). */
.foot .step a { color: var(--blue-ink); text-decoration: none; }
.foot .step a:hover { color: var(--link-hi); }
.foot .chev { transition: transform 220ms ease; }
.foot .chev.up { transform: rotate(180deg); }

/* Уведомления в потоке карточки. */
.notes { flex: none; display: flex; flex-direction: column; gap: 6px; }
.note {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: hnxin 220ms ease-out;
}

.note.ok { background: var(--green-bg); color: var(--green-ink); }
.note.warn { background: var(--amber-bg); color: var(--amber-ink); }
.note.bad { background: var(--red-bg); color: var(--red-ink); }
/* Уведомление встаёт и гаснет заметно: повтор того же текста видно как
   свежий ответ, а не как ничего не случилось (владелец 24.09). Время — то же,
   что NOTE_FADE в app.js. */
.note.enter { animation: note-in .22s ease-out; }
.note.leave { opacity: 0; transform: translateY(-4px); transition: opacity .22s, transform .22s; }
@keyframes note-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Оверлей «Прокси и смена IP» поверх карточки. */
.ip-sheet {
  position: absolute;
  inset: 0;
  z-index: 20;
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: hnxup 220ms ease-out;
}

.ip-sheet .hint { flex: none; font-size: 14px; color: var(--ink4); text-wrap: pretty; }
.ip-sheet textarea {
  flex: 1;
  min-height: 0;
  width: 100%;
  resize: none;
  border: 0;
  outline: none;
  border-radius: 10px;
  background: var(--row);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 12px;
}

.ip-sheet input {
  flex: none;
  width: 100%;
  height: 32px;
  border: 0;
  outline: none;
  border-radius: 10px;
  background: var(--row);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  padding: 0 12px;
}

/* ------------------------------------------------------------------ Плитки */
.tile .head { height: auto; align-items: baseline; }
.tile .body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.tile .big { font-size: 30px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.tile .bigline { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.tile .bigline .big { flex: none; }
.tile .bigline .sub { color: var(--ink4); }
.tile .text { font-size: 14px; color: var(--ink3); text-wrap: pretty; }
.tile .text.dim { color: var(--ink4); }
.tile .bottom { margin-top: auto; }
.tile .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile .three div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tile .three b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.tile .three span { font-size: 14px; color: var(--ink4); white-space: nowrap; }
.tile .pairline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tile .pairline b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.tile .pairline span { font-size: 14px; color: var(--ink4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .last { margin-top: auto; font-size: 14px; color: var(--ink4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Оборона: строка «что сейчас» и пять итогов прогона (владелец 23.09).
   Подписи итогов короткие и в одну строку: высоты плитки хватает только на
   две строки пояснения. Что значит каждая — в подсказке. */
.def-now { display: flex; align-items: center; gap: 8px; min-width: 0; }
.def-now .dotbox { flex: none; display: inline-flex; }
.def-title { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.def-now.warn .def-title { color: var(--amber-ink); }
.def-now.bad .def-title { color: var(--red-ink); }
.def-now.idle .def-title { color: var(--ink3); }
.def-timer { flex: none; font-size: 17px; font-weight: 700; color: var(--ink2); }
.def-note { font-size: 14px; color: var(--ink4); line-height: 1.4; text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .five { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 6px; }
.tile .five div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tile .five b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.tile .five span { font-size: 14px; color: var(--ink4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes hnxbusy { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.busy-dot { animation: hnxbusy 1.2s ease-in-out infinite; }

/* ------------------------------------------------------------------- Лента */
.feed-head, .feed-row {
  display: grid;
  grid-template-columns: 62px 190px 86px 86px minmax(0, 1fr);
  gap: 12px;
  padding: 0 12px;
}

/* Тот же запас под полосу прокрутки, что у шапки списка артикулов. */
.feed-head { flex: none; padding-right: calc(14px + var(--sb, 0px)); }
.feed-head span { font-size: 14px; color: var(--ink4); white-space: nowrap; }

.feed-row {
  align-items: center;
  height: 32px;
  flex: none;
  border-radius: 10px;
  transition: background 700ms ease;
  background: #101C30;
}

.feed-row.fresh { background: #16253D; animation: hnxin 260ms ease-out; }
.feed-row .at { font-size: 14px; color: var(--ink4); white-space: nowrap; }
.feed-row .code { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-row .found { font-size: 14px; color: var(--ink3); white-space: nowrap; }
.feed-row .taken { font-size: 14px; font-weight: 600; white-space: nowrap; color: #E8F0FA; }
.feed-row .taken.none { color: #6B7F9E; }
.feed-row .marks { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }

.chip {
  flex: 0 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #16253D;
  color: #93A8C6;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------- Подсказка */
.tip {
  position: fixed;
  z-index: 90;
  width: 300px;
  background: #13223A;
  border-radius: 12px;
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .9);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.tip.show { display: flex; animation: tip-in 160ms ease-out; }
.tip.show.up { animation-name: tip-in-up; }
@keyframes tip-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes tip-in-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tip .t { font-size: 14px; font-weight: 700; color: var(--ink); }
.tip .rows { display: flex; flex-direction: column; gap: 5px; }
.tip .r { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.tip .r .l { font-size: 14px; color: var(--ink4); white-space: nowrap; flex: none; }
.tip .r .v { font-size: 14px; color: var(--ink); text-align: right; min-width: 0; }
.tip .n { font-size: 14px; color: var(--ink3); line-height: 1.45; text-wrap: pretty; }
.tip .n .p { display: block; }
.tip .n .p + .p { margin-top: 6px; }

/* -------------------------------------------------------------------- Окна */
.veil {
  position: fixed;
  inset: 0;
  background: var(--veil);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.veil.all { z-index: 80; }
.veil.screen { z-index: 81; }
.veil.problem { z-index: 82; }
.veil.confirm { z-index: 84; }

.dialog {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dialog.sheet { width: min(720px, 100%); max-height: calc(100vh - 56px); gap: 12px; overflow: hidden; }
.dialog.ask { width: min(420px, 100%); }
.dialog.alert { width: min(460px, 100%); }
/* Экран сервера 1920x1080: окно настолько большое, насколько позволяет
   экран, в пропорции 16:9 и без прокрутки. */
.dialog.screen { width: min(1952px, 100%, calc((100vh - 136px) * 16 / 9 + 32px)); gap: 12px; }
.screen-box { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--sunken); }
.screen-box iframe { display: block; width: 100%; height: 100%; border: 0; }
.dialog .dh { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.dialog .dtitle { font-size: 16px; font-weight: 700; color: var(--ink); text-wrap: pretty; }
.dialog .dtext { font-size: 14px; color: var(--ink3); line-height: 1.45; text-wrap: pretty; }
.dialog .dbtns { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.dialog .titled { display: flex; align-items: center; gap: 9px; }
.dialog .facts { display: flex; flex-direction: column; gap: 5px; border-radius: 10px; background: var(--sunken); padding: 10px 12px; }
.dialog .facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dialog .facts .l { font-size: 14px; color: var(--ink4); white-space: nowrap; }
.dialog .facts .v { font-size: 14px; }
.dialog .search { flex: none; }

.row-all {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: var(--row);
  padding: 0 12px;
}

.row-all .n { font-size: 14px; color: var(--ink4); }
.row-all .code { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-all .st { font-size: 14px; color: var(--ink3); white-space: nowrap; }

/* -------------------------------------------------------------------- Вход */
/* Страница входа на сервере (login.html): карточка панели посреди того же
   фона, поля — как поиск по артикулу. Обводок нет и у поля в фокусе: оно
   только светлеет, как кнопка под курсором. */
.signin-page {
  min-height: 100vh;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1100px 620px at 12% -8%, var(--glow) 0%, rgba(59, 42, 19, 0) 62%), var(--bg);
}

/* Класс не «login»: так уже зовётся кнопка «Войти» у аккаунта. */
.signin {
  width: min(360px, 100%);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: hnxup 220ms ease;
}

.signin .brand { margin-bottom: 4px; }
.signin-field { display: flex; flex-direction: column; gap: 6px; }
.signin-field span { font-size: 14px; color: var(--ink3); }
.signin-field input {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  outline: none;
  background: var(--row);
  font-family: inherit;
  font-size: 14px;
  transition: background 160ms ease;
}
.signin-field input:focus { background: var(--ctl); }
/* Сохранённый пароль браузер подставляет с жёлтым или голубым фоном. */
.signin-field input:autofill { filter: none; }
.signin-field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px var(--row) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}
.signin-error { font-size: 14px; color: var(--red-ink); line-height: 1.45; text-wrap: pretty; }
.signin .btn { height: 36px; margin-top: 2px; }

/* -------------------------------------------------------- Настройки поиска
   Выезжающая справа панель поверх затемнения: полей много, в выпадающий
   список они не помещаются, а прогон и шапка остаются видны за ней. */
.chev { transition: transform 220ms ease; }
.chev.up { transform: rotate(180deg); }
.picker:has(> .menu:not([hidden])) > .btn .chev { transform: rotate(180deg); }

.run-foot { height: 32px; flex: none; display: flex; align-items: center; gap: 8px; min-width: 0; }
.set-sum {
  flex: 1;
  min-width: 0;
  height: 32px;
  margin: 0;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 10px;
  background: var(--sunken);
  font: inherit;
  font-size: 14px;
  color: var(--ink3);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.set-sum svg { flex: none; color: var(--ink4); transition: color 160ms ease; }
.set-sum-l { flex: none; color: var(--ink2); font-weight: 600; }
.set-sum-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink3); font-size: 14px; padding: 0; border: 0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; transition: color 160ms ease; }
.set-sum-t:hover { color: var(--ink); }
.set-sum:hover .set-sum-t { color: var(--ink2); }
.set-sum:hover { background: var(--row); color: var(--ink); }
.set-sum:hover svg { color: var(--ink2); }
.run-foot .notes { flex: 0 1 auto; max-width: 55%; min-width: 0; flex-direction: row; }
.run-foot .note { min-height: 32px; height: 32px; padding: 0 12px; border-radius: 10px; }
.run-foot .note:not(:last-child) { display: none; }

.veil.side { z-index: 83; justify-content: flex-end; align-items: stretch; padding: 16px; background: rgba(3, 7, 15, .5); }

.drawer {
  width: 480px;
  max-width: 100%;
  min-height: 0;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  display: flex;
  flex-direction: column;
  animation: set-in 240ms ease-out;
}
@keyframes set-in { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }

.drawer-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 4px; }

.set-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding: 12px 10px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.set-lock {
  flex: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--amber-bg);
  color: var(--amber-ink);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}

.set-form { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.set-group { display: flex; flex-direction: column; gap: 16px; }
.set-gtitle { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }

.set-ghead {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.set-ghead .sub { flex: 1; }
.set-ghead .chev { color: var(--ink3); }
.set-ghead:hover .chev { color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > .lbl, .sw .lbl { font-size: 14px; font-weight: 600; color: var(--ink2); }
.set-body .hint { font-size: 14px; color: var(--ink4); line-height: 1.45; text-wrap: pretty; }
.set-body .hint.bad { color: var(--red-ink); }
/* Описание под полем: что будет при выбранном значении, пример ярче текста. */
.set-body .desc { font-size: 14px; color: var(--ink4); line-height: 1.45; text-wrap: pretty; }
.set-body .desc b { font-weight: 600; color: var(--ink2); white-space: nowrap; }
.set-sep { flex: none; height: 1px; background: var(--ctl); }

.pop .sep { height: 1px; flex: none; background: var(--ctl); margin: 4px 6px; }

.inp {
  height: 32px;
  min-width: 0;
  border: 0;
  outline: none;
  border-radius: 10px;
  background: var(--row);
  font-family: inherit;
  font-size: 14px;
  padding: 0 12px;
  transition: background 160ms ease, color 160ms ease;
}
.inp:focus { background: var(--ctl); }
.inp.bad, .inp.bad:focus { background: var(--red-bg); color: var(--red-ink); }

.seg { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--sunken); }
.seg button {
  flex: 1 1 auto;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink3);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.seg button:hover { color: var(--ink); }
.seg button.active { background: var(--ctl-hi); color: var(--ink); }

.combo-wrap { position: relative; }
.combo {
  width: 100%;
  height: 32px;
  padding: 0 8px 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--row);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: background 160ms ease;
}
.combo:hover, .combo.open { background: var(--ctl); }
.combo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo svg { flex: none; color: var(--ink3); transition: color 160ms ease; }
.combo:hover svg, .combo.open svg { color: var(--ink); }

.pop {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 6px;
  border-radius: 12px;
  background: var(--pop);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .9);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: hnxin 160ms ease-out;
}
.pop .search { flex: none; }
.pop .list { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.pop .opt {
  flex: none;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.pop .opt:hover { background: var(--ctl-hi); }
.pop .opt.active { background: var(--ctl-hi); color: var(--link-hi); }
.pop .none { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; text-align: center; font-size: 14px; color: var(--ink4); text-wrap: pretty; }
.pop .none .strong { font-weight: 600; color: var(--ink); }

.stepper { display: flex; align-items: center; gap: 6px; }
.stepper .inp { width: 64px; text-align: center; font-weight: 600; }
.stepper .range { margin-left: 6px; font-size: 14px; color: var(--ink4); }
.stepper.per-seller .inp { width: 96px; }

.price { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.money { position: relative; display: flex; min-width: 0; }
.money .inp { flex: 1; padding-right: 30px; }
.money span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--ink4); pointer-events: none; }
.price .dash { color: var(--ink4); }

.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px;
  border-radius: 10px;
  background: var(--row);
  cursor: text;
  transition: background 160ms ease;
}
.tags:focus-within { background: var(--ctl); }
.tags .tag-list { display: contents; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  max-width: 100%;
  min-width: 0;
  padding: 0 2px 0 10px;
  border-radius: 999px;
  background: var(--ctl-hi);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.tag > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tag button {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tag button:hover { background: var(--red-bg-hi); color: var(--red-ink); }
.tags input { flex: 1; min-width: 140px; height: 24px; padding: 0 6px; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 14px; }

.sw { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; align-items: start; }
.sw .toggle { grid-column: 2; grid-row: 1 / span 3; }
.sw .lbl { padding-top: 4px; }

.set-form:disabled :is(.seg, .inp, .combo, .tags, .toggle) { opacity: .5; cursor: default; }
.set-form:disabled .seg button { cursor: default; }
.set-form:disabled .seg button:not(.active):hover { color: var(--ink3); }
.set-form:disabled .combo:hover { background: var(--row); }
.set-form:disabled .tag button, .set-form:disabled .tags input { display: none; }
.set-form:disabled .tags .tag-list:empty::before { content: 'нет'; padding: 0 6px; font-size: 14px; color: var(--ink4); }
.set-form:disabled .stepper .range { opacity: .5; }

.set-foot { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 16px; }
.set-error { padding: 8px 10px; border-radius: 8px; background: var(--red-bg); color: var(--red-ink); font-size: 14px; line-height: 1.45; text-wrap: pretty; animation: hnxin 220ms ease-out; }
.set-btns { display: flex; align-items: center; gap: 8px; }
.set-btns .push { margin-left: auto; }
.set-titlebar { display: flex; align-items: center; gap: 6px; min-width: 0; }
.set-titlebar h2 { margin-right: 4px; }
.pop .opt.hi { background: var(--ctl-hi); }

/* Настройки поиска (25.09): контролы по своему содержимому, ничего не
   растянуто. Строка поля — название слева, контрол у правого края: у всех
   контролов одна правая линия. Поля, которым нужна ширина (какие брать,
   слова), — под названием, контрол от левого края по своей ширине.
   Описание поля — в подсказке на названии. Прокрутка — только с раскрытыми
   дополнительными фильтрами. */
.set-body { gap: 12px; padding: 8px 12px 16px 20px; }
.set-form { gap: 4px; }
.set-group { gap: 8px; }
.field { gap: 8px; }
.field.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 6px; align-items: center; min-height: 44px; }
.field.row > .hint { grid-column: 1 / -1; }
.field:not(.row) { padding: 6px 0; }
.set-body .desc { display: none; }
.set-body .field > .lbl, .set-body .sw .lbl { justify-self: start; align-self: center; }
.set-body .field:not(.row) > .lbl { align-self: flex-start; }
.sw { align-items: center; min-height: 44px; }
.sw .lbl { padding-top: 0; }
.sw .toggle { grid-row: 1; }
.set-body .combo { width: auto; max-width: 260px; justify-content: flex-start; gap: 6px; }
.set-body .combo-wrap, .set-body .set-speed { justify-self: end; min-width: 0; }
.set-body .pop { left: auto; right: 0; width: 320px; }
.set-speed .menu { left: auto; right: 0; min-width: 100%; width: max-content; }
.set-body .seg { align-self: flex-start; justify-self: end; gap: 2px; padding: 3px; }
.set-body .seg button { flex: none; height: 28px; padding: 0 12px; }
.set-body .stepper { justify-self: end; }
.set-body .stepper .range { order: -1; margin: 0 6px 0 0; }
.set-body .price { grid-template-columns: 96px auto 96px; justify-self: end; }
.set-ghead { min-height: 44px; }
.set-body > .set-sep { margin: 4px 0; }
.tip .n b { font-weight: 600; color: var(--ink); }

/* Подсказки: срабатывают только на самой надписи, а не на блоке вокруг.
   Под курсором надпись меняет цвет — видно, что тут есть пояснение. */
.tip-t { cursor: default; transition: color 160ms ease; }
/* Цвет в покое у каждой надписи свой, как был. Под курсором — --ink.
   Отладка правил: «Подсказки — отладка.dc.html». */
.ip-sheet .hint .tip-t { color: var(--ink3); }
/* Плитки и карточки: подсказка про весь блок живёт на его заголовке —
   одинаково у «Времени», «Собрано», «Обороны», «Последних артикулов».
   Строки внутри блока (значения, состояния) подсказок не несут. */
.tip-t:hover, .ip-sheet .hint .tip-t:hover, .limit.tip-t:hover, .line.dark .title.tip-t:hover,
.set-body .field > .lbl.tip-t:hover, .set-body .sw .lbl.tip-t:hover,
.tip-t.is-hover, .ip-sheet .hint .tip-t.is-hover, .limit.tip-t.is-hover, .line.dark .title.tip-t.is-hover,
.set-body .field > .lbl.tip-t.is-hover, .set-body .sw .lbl.tip-t.is-hover { color: var(--ink); }
/* Белые надписи (заголовки блоков, названия строк, значения шапки) в покое
   --ink, как все заголовки; под курсором, если есть подсказка, тускнеют до
   --ink2. Тусклые надписи — наоборот, светлеют до --ink. */
h2.tip-t:hover, .ind .val.tip-t:hover, .line:not(.dark) .title.tip-t:hover,
h2.tip-t.is-hover, .ind .val.tip-t.is-hover, .line:not(.dark) .title.tip-t.is-hover { color: var(--ink2); }
/* .is-hover — то же, что :hover; ставит лист «Подсказки — состояния». */
.set-sum-t { flex: 0 1 auto; max-width: 100%; }
.run-foot .notes { margin-left: auto; }
.acc-line .info .title { align-self: flex-start; max-width: 100%; }
.def-title { flex: 0 1 auto; }
.def-timer { margin-left: auto; }

/* Настройки: вкладки «Поиск» и «Уведомления» (25.09). */
.set-tabs { flex: none; padding: 8px 16px 0; }
.set-tabs .seg button { flex: 1 1 0; }
.pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.toggle:disabled { opacity: .5; cursor: default; }
.tg-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 6px 0; }
.tg-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tg-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tg-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; color: var(--ink4); text-decoration: none; }
.tg-qr:hover { color: var(--ink2); }
.tg-qr svg { display: block; border-radius: 10px; }
.tg-on { display: flex; flex-direction: column; gap: 4px; }
.tg-who { font-size: 14px; color: var(--ink2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-who b { font-weight: 600; color: var(--ink); }

/* Область «магазин»: поля поиска по артикулу ей не нужны, а свои (предел
   на продавца, 12.10) есть только у неё. */
body.area-shop [data-not-shop] { display: none !important; }
body:not(.area-shop) [data-only-shop] { display: none !important; }

/* Область «основной» (вкладка Avito parser в ERP): список задаёт ERP, ни
   загрузки, ни «Очистить» (владелец 06.10). */
body.area-erp [data-not-erp] { display: none !important; }

/* Automolot navigation: the parser and Bazon share one dark workspace. */
.am-nav {
  height: 62px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 44px;
  background: #171B1D;
  border-bottom: 1px solid #32383A;
  color: #EDEEEA;
}
.am-nav-brand { display: flex; align-items: center; gap: 10px; color: #EDEEEA; font-size: 12px; font-weight: 900; letter-spacing: .15em; }
.am-nav-brand:hover { color: #EDEEEA; }
.am-nav-brand small { display: block; color: #8F9793; font-size: 8px; letter-spacing: .18em; margin-top: 3px; }
.am-mark { width: 31px; height: 31px; display: grid; place-items: center; background: #E99A20; color: #101315; font: 900 21px Impact, sans-serif; clip-path: polygon(50% 0,100% 100%,0 100%); padding-top: 8px; }
.am-nav-links { display: flex; height: 100%; align-items: stretch; gap: 8px; }
.am-nav-links a { display: grid; place-items: center; padding: 0 18px; color: #A6AFAB; border-bottom: 2px solid transparent; font-size: 12px; font-weight: 700; }
.am-nav-links a:hover, .am-nav-links a.selected { color: #F2F0E9; background: #242A2D; }
.am-nav-links a.selected { border-bottom-color: #E99A20; }
.am-nav-note { margin-left: auto; color: #7D8782; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; }
.am-inner-mark { font-family: Impact, sans-serif; letter-spacing: -.04em; }
