/* RU: Компоненты пульта. Цвета, шрифты, радиусы и плотность — только var(--…) из tokens.css (v3: light / dark / mobile). EN: Components; tokens live in tokens.css. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--fs-body)/var(--lh) var(--font); }
button, input, select { font: inherit; color: inherit; }
a { color: var(--acc); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: default; }
.wide { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--acc); cursor: pointer; font-size: 13.5px; }

/* Вход */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 6px; }
.login-card label { font-size: 13.5px; font-weight: 600; margin-top: 8px; }
.login-card input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.login-card .btn { margin-top: 12px; }
.acc-title { font-size: 22px; margin: 8px 0 0; }
.acc-modes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.notice { background: var(--info-soft); color: var(--info); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin: 8px 0; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.good { background: var(--ok-soft); color: var(--ok); }
.who-scroll { flex-wrap: nowrap; overflow-x: auto; }
.who-scroll .chip, .who-scroll .btn { flex: 0 0 auto; }
#shelfRoot .link-btn { font-size: 16px; font-weight: 700; text-align: left; }
#shelfForm label { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
#shelfForm input, #shelfForm select, #shelfQ { min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
#shelfRoot pre { white-space: pre-wrap; font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); border-radius: 10px; padding: 10px; }
#view > details.card > summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }
/* RU: ВХ0: дверь клиента на форме сотрудника — заметная строка-ссылка, не кнопка входа. EN: VH0: the client door on the staff form is a visible link line. */
.login-card .client-door { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2, transparent); font-size: 14px; }
.login-card .client-door a { font-weight: 650; white-space: nowrap; }
/* RU: Таблица с классом stack на компьютере остаётся таблицей (30.10 столбцы съезжали). EN: A stack table stays a table on desktop. */
.stack:not(table) { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
/* RU: «Мои записи» в кабинете клиента (С4). EN: "My bookings" in the client cabinet. */
.acc-sub { font-size: 17px; margin: 16px 0 2px; }
.login-card select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-height: 44px; }
.bk-list { display: flex; flex-direction: column; gap: 8px; }
.bk-item { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.bk-item b { display: block; font-size: 14px; }
.bk-item span { display: block; font-size: 13px; color: var(--muted); }
.bk-item .btn { margin: 0; flex: none; }
.bk-new > summary { list-style: none; cursor: pointer; }
.bk-new > summary::-webkit-details-marker { display: none; }
.bk-empty { border: 1px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); font-size: 13.5px; }
.err { color: var(--bad); min-height: 1.2em; margin: 4px 0 0; font-size: 13.5px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: var(--acc); color: var(--acc-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }

/* Каркас 3.0 (план v7, Р4): боковое меню из пяти разделов, шапка со строкой состояния, поиском и помощником. EN: Panel 3.0 shell. */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 4px 8px 12px; font-weight: 700; }
.brand-t small { display: block; font-weight: 500; color: var(--muted); font-size: var(--fs-xs); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); color: var(--ink-2); text-decoration: none; font-weight: 500; min-height: 40px; }
.side nav a:hover { background: var(--surface-2); }
.side nav a.on { background: var(--acc-soft); color: var(--acc-soft-ink); font-weight: 650; }
.side nav a i { font-style: normal; width: 22px; text-align: center; flex: none; font-size: 16px; }
.side nav a .lb { flex: 1; min-width: 0; }
.side nav a .lb small, .prof .lb small { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side nav a.on .lb small { color: inherit; opacity: .75; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; align-items: stretch; border-top: 1px solid var(--line-2); padding-top: 8px; }
.prof { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: var(--r); cursor: pointer; min-height: 44px; }
.prof:hover { background: var(--surface-2); }
.prof .lb { min-width: 0; font-weight: 600; }
.side-foot .themeq { margin: 0 10px; align-self: flex-start; }
.side-foot .link-btn { align-self: flex-start; margin: 0 10px 4px; }
.badge { font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 2px 9px; align-self: flex-start; margin: 0 10px; }
.main { padding: 0 var(--pad-page) 60px; min-width: 0; }
.top { position: sticky; top: 0; z-index: var(--z-top); display: flex; align-items: center; gap: 10px; min-height: var(--top-h); margin: 0 calc(-1 * var(--pad-page)) 12px; padding: 0 var(--pad-page); background: var(--glass-bg); border-bottom: 1px solid var(--line); }
.top h1 { margin: 0; font-size: var(--fs-lg); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sp, .row .sp { flex: 1; }
.top .prof-m { display: none; }
.top-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.who-scroll { flex-wrap: nowrap; overflow-x: auto; }
.chips.who-scroll .chip, .chips.who-scroll .btn { flex: 0 0 auto; }
#shelfQ { flex: 1 1 180px; min-width: 160px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 5px 11px; border-radius: 999px; font-size: 13.5px; cursor: pointer; }
.chip.on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.chip[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc-soft-ink); border-color: transparent; font-weight: 650; }
.custom { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.custom input { padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.syncbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.dotst { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--ok-fill); }
.dotst.bad { background: var(--bad-fill); }
.dotst.run { background: var(--warn-fill); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r); padding: 0 10px; height: var(--ctl-h); min-width: 220px; color: var(--muted); cursor: pointer; font-size: var(--fs-sm); }
.search i { font-style: normal; font-size: 16px; }
.search kbd { margin-left: auto; }
kbd { font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; background: var(--surface); }
.status { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-pill); padding: 4px 10px; font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; min-height: 32px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok-fill); flex: none; display: inline-block; }
.dot.warn { background: var(--warn-fill); }
.dot.bad { background: var(--bad-fill); }
.dot.run { background: var(--warn-fill); animation: pulse 1s infinite alternate; }
.btn.icon { width: var(--ctl-h); height: var(--ctl-h); padding: 0; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.help { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; vertical-align: middle; flex: none; }
.top .help { width: 32px; height: 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1100px) {
  .search { min-width: 0; width: var(--ctl-h); justify-content: center; padding: 0; }
  .search span, .search kbd { display: none; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .main { padding: 0 16px 96px; }
  .top { margin: 0 -16px 10px; padding: 0 12px; gap: 6px; }
  .top .prof-m { display: inline-flex; }
  .status .st-t { display: none; }
  .status { min-height: var(--tap); min-width: var(--tap); justify-content: center; }
  .top .btn.icon, .top .search, .top .help { width: var(--tap); height: var(--tap); }
}

/* Карточки */
.grid { display: grid; gap: 12px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.g2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.g2e { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g2 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2e { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--sh-1); min-width: 0; }
.card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.kpi .l { font-size: 13px; color: var(--muted); }
.kpi .v { font-size: 28px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12.5px; color: var(--ink-2); }
.up { color: var(--ok); }
.down { color: var(--bad); }
.alerts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.alert { border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.info { background: var(--info-soft); color: var(--info); }
.rows { display: flex; flex-direction: column; }
.rowkv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rowkv:last-child { border-bottom: 0; }
.rowkv b { font-variant-numeric: tabular-nums; }

/* График */
.chart svg { width: 100%; height: 220px; display: block; }
.chart .b { fill: var(--c1); }
.chart .b:hover { opacity: .75; }
.chart .ln { fill: none; stroke: var(--c2); stroke-width: 2; }
.chart .pt { fill: var(--c2); }
.chart .gr { stroke: var(--c-grid); stroke-width: 1; }
.chart text { fill: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.legend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 5px; }
.legend .lb { background: var(--c1); }
.legend .ll { background: var(--c2); height: 3px; vertical-align: middle; }
.tip { font-size: 12.5px; color: var(--ink-2); min-height: 1.4em; margin-top: 4px; }

/* Таблицы */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--sh-1); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.st { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.st.active { background: var(--ok-soft); color: var(--ok); }
.st.old, .st.removed, .st.gone { background: var(--surface-2); color: var(--ink-2); }
.st.blocked, .st.rejected { background: var(--bad-soft); color: var(--bad); }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.fail { background: var(--bad-soft); color: var(--bad); }
.spark { width: 90px; height: 24px; display: block; }
.spark .b { fill: var(--c1); }
.ttl a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ttl a:hover { text-decoration: underline; }
@media (max-width: 700px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.stack td { border: 0; padding: 3px 14px; text-align: left; }
  table.stack td .btn { margin: 4px 6px 0 0; }
  table.stack td::before { content: attr(data-l); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
}
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* RU: Уведомления 3.0 — стопкой внизу, с «Отменить» (см. блок Пульт 3.0). EN: Toasts are in the Panel 3.0 block. */
/* RU: Кнопка темы — в шапке/боковой панели рядом с логотипом на всех ширинах, не плавающая. EN: Theme button in header/sidebar by the logo on all widths, not floating. */
.theme-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 15px; flex: none; margin-left: auto; padding: 0; line-height: 1; }
.side .brand { gap: 8px; width: 100%; }

/* Сообщения */
.side nav a .cnt { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font-size: 12px; font-weight: 700; text-align: center; margin-left: 4px; }
.ibar { margin-bottom: 12px; }
.inbox { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 12px; align-items: start; }
.qlist { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 210px); overflow-y: auto; }
.qi { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.qi.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.qi b { font-size: 14px; }
.qt { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: space-between; }
.st.cli { background: var(--info-soft); color: var(--info); }
.st.cand { background: var(--ok-soft); color: var(--ok); }
.st.warn { background: var(--warn-soft); color: var(--warn); }
.thread { display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.th-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.th-head .back { display: none; }
.msgs { display: flex; flex-direction: column; gap: 6px; max-height: 42vh; overflow-y: auto; padding: 4px 2px; }
.bub { max-width: 85%; padding: 8px 11px; border-radius: 12px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 2px; }
.bub.in { align-self: flex-start; background: var(--surface-2); border-radius: 12px 12px 12px 4px; }
.bub.sys { align-self: center; background: transparent; border: 1px dashed var(--line); color: var(--ink-2); font-size: 13px; max-width: 95%; }
.bub.out { align-self: flex-end; background: var(--acc-soft); border-radius: 12px 12px 4px 12px; }
.draft { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.draft p { margin: 0; color: var(--ink-2); }
.draft textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; resize: vertical; }
.miss, .prob { border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.miss { background: var(--warn-soft); color: var(--warn); }
.miss ul { margin: 4px 0 0; padding-left: 18px; }
.prob { background: var(--bad-soft); color: var(--bad); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mb10 { margin-bottom: 10px; }
.mt20 { margin-top: 20px; }
/* RU: Чат 2.0 (план v5, этап 3): третья колонка — карточка собеседника; проверка черновика. EN: Chat 2.0: the peer card column; draft check. */
.inbox2 { grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 250px); }
.pcard { font-size: 13.5px; }
.pcard h4 { margin: 0 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pdl { margin: 0 0 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; }
.pdl dt { color: var(--muted); } .pdl dd { margin: 0; overflow-wrap: anywhere; }
.osent { border-left: 3px solid var(--acc); padding: 4px 8px; margin-bottom: 6px; white-space: pre-wrap; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 2px; }
.gchk.ok { color: var(--ok); } .gchk.bad { color: var(--bad); }
.bub.del { opacity: .5; text-decoration: line-through; }
@media (max-width: 1100px) { .inbox2 { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); } .inbox2 .pcard { grid-column: 2; } }
@media (max-width: 820px) {
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox .thread { display: none; }
  .inbox.open .qlist { display: none; }
  .inbox.open .thread { display: flex; }
  .inbox2 { grid-template-columns: minmax(0, 1fr); }
  .inbox2 .pcard { grid-column: auto; display: none; }
  .inbox2.open .pcard { display: block; }
  .th-head .back { display: inline; }
  .qlist { max-height: none; }
}

/* Конструктор */
.newad { display: flex; flex-direction: column; gap: 6px; padding: 12px; min-width: 0; }
.newad select, .newad textarea, .newad input, .nad-rules input, #adVer, .thread input, .thread .fgrid textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; width: 100%; max-width: 100%; }
.nad-rules { min-width: 0; }
.nad-rules label { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.nad-rules .acts, .newad .acts { flex-wrap: wrap; }
#adVer { width: auto; max-width: 100%; }
.thread textarea#adText { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; resize: vertical; line-height: 1.45; }
.brief summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.fgrid label { display: flex; flex-direction: column; gap: 3px; }
.shop-rules input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; width: 100%; max-width: 100%; }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }
.st.old { background: var(--surface-2); color: var(--ink-2); }
.chk { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.chk li.bad { color: var(--bad); }
.chk li.warn { color: var(--warn); }
.pkg { width: 100%; font-size: 13.5px; }
.pkg td { padding: 6px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pkg .pv { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 0; width: 70%; }
#maxCard { margin-bottom: 12px; }
#maxCard p { margin: 0 0 8px; }

/* Подбор */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 10px; overflow-x: auto; margin: 12px 0; padding-bottom: 4px; }
.kcol { background: var(--surface-2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kcol h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.kc { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
@media (max-width: 820px) { .kanban { grid-template-columns: minmax(0, 1fr); overflow-x: visible; } }
.btn.danger { color: var(--bad); border-color: var(--bad-soft); }
#opsCard, #maxCard { margin-bottom: 12px; }
#auditCard { margin-bottom: 12px; }
#auditCard .table-wrap { box-shadow: none; max-height: 420px; overflow-y: auto; }
.cover { width: 100%; max-width: 560px; aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid var(--line); display: block; }

/* RU: Фаза А плана v3: действия в тревогах и вопросы базы знаний. EN: Plan v3 phase A: alert actions and knowledge questions. */
.alert.act { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.alert.act span { flex: 1 1 260px; }
.alert.act .btn { flex: none; }
.kbq { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.kbq:first-of-type { border-top: 0; }
.kbq textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; resize: vertical; }
.rev .rv-text { margin: 8px 0 0; white-space: pre-wrap; }
.rev textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; resize: vertical; }
.rev .confirm { border: 1px solid var(--acc); border-radius: 10px; padding: 10px 12px; background: var(--acc-soft); }
.rev .confirm p { margin: 0 0 8px; color: var(--ink); }
.auto-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 10px 0; }
.auto-f input, .card select, #apText { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; }
.hb { display: grid; grid-template-columns: minmax(120px, 180px) 1fr 44px; gap: 8px; align-items: center; font-size: 13.5px; margin: 5px 0; }
.hb .track { height: 14px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.hb .track i { display: block; height: 100%; background: var(--acc); border-radius: 5px; }
.hb b { text-align: right; font-variant-numeric: tabular-nums; }
.lead .pick { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.lead .pick textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; }
.slots-g { display: flex; flex-wrap: wrap; gap: 6px; }
.slots-g .chip:disabled { opacity: .4; text-decoration: line-through; }
.toggle-l { display: block; padding: 4px 0; }
#fdMail { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; min-width: 220px; }
h2.mt { margin-top: 14px; }

/* RU: Плашка «Автоотправка» на Сегодня / Автопилот (адаптивно). EN: Send banner on Today / Autopilot (responsive). */
.send-summary { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.send-summary .grow { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.send-summary-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 0 0 auto; }
.send-summary-actions .btn { flex: 0 0 auto; white-space: nowrap; min-height: 40px; }
@media (max-width: 520px) {
  .send-summary { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; }
  .send-summary-actions { width: 100%; justify-content: flex-start; }
  /* RU: В колонке flex-basis 220px становился высотой — отсюда пустой промежуток (QA). EN: In a column the 220px basis became height. */
  .send-summary .grow { flex: 0 0 auto; }
}
/* RU: KPI на узком экране: длинное «на паузе после обновления» меньшим шрифтом с переносом, не упирается в край. */
/* EN: Narrow KPI: long "paused after the update" in a smaller wrapping font, not flush against the edge. */
@media (max-width: 390px) {
  .kpi .v { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
  .kpi { padding: 12px; }
}

/* RU: Переключатели автоотправки и уровень доверия (макет 3-auto, 390→1280). EN: Send switches and trust ladder (mockup 3-auto). */
.trust-card { margin-bottom: 14px; }
#switches { scroll-margin-top: 12px; }
.trust-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 10px 0 8px; }
.trust-bar i { display: block; height: 100%; width: 0; background: var(--acc); border-radius: 99px; transition: width .35s ease; }
.trust-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.trust-steps .tag { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid transparent; }
.trust-steps .tag.on { background: var(--acc-soft); color: var(--acc); border-color: var(--acc); font-weight: 600; }
.sw-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.sw-row:first-of-type { border-top: 0; padding-top: 4px; }
.sw-row .grow { flex: 1; min-width: 0; }
.sw-row .sw-why { margin-top: 4px; color: var(--warn); }
.sw { width: 42px; height: 24px; border-radius: 99px; background: var(--acc); border: 0; position: relative; flex: none; cursor: pointer; padding: 0; transition: background .2s ease; }
.sw:after { content: ""; position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--knob); transition: left .2s ease, right .2s ease; }
.sw.off { background: var(--line); }
.sw.off:after { right: auto; left: 3px; }
.sw:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 520px) {
  .sw-row { flex-wrap: wrap; }
  .trust-steps .tag { font-size: 11px; }
}
@media (min-width: 960px) {
  .sw-row { align-items: center; }
}

/* RU: Этап 4: правила и журнал автомата. EN: Stage 4: rules and the automaton log. */
.warn-t { color: var(--warn); }
.sep { border-top: 1px solid var(--line); margin: 10px 0; }
b.err { color: var(--bad); }
[data-rule] { min-width: 150px; }

/* RU: Этап 5: посещаемость — тепловая карта и мини-столбцы. EN: Stage 5: traffic — heatmap and mini bars. */
.heat { display: grid; grid-template-columns: 34px repeat(6, minmax(0, 1fr)); gap: 3px; align-items: center; }
.heat .cell { height: 22px; border-radius: 4px; background: var(--acc); }
.heat .lb { text-align: right; padding-right: 4px; }
.spk { display: flex; gap: 3px; align-items: flex-end; height: 48px; margin-top: 8px; }
.spk span { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.spk i { display: block; width: 100%; background: var(--acc); border-radius: 3px 3px 0 0; min-height: 2px; }

/* RU: Пульт 2.0 (план v5, этап 7): подразделы, нижняя панель на телефоне, дела, полоса здоровья. EN: Sub-tabs, bottom bar, tasks, health strip. */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.subtabs .chip { text-decoration: none; color: var(--ink); }
.subtabs .chip.on { color: var(--acc-ink); }
.side nav a { display: flex; align-items: center; gap: 6px; }
.h2 { font-size: 16px; margin: 14px 0 8px; }
.task { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--sh-1); }
.task .tt { display: flex; flex-direction: column; gap: 2px; }
.task .acts { margin-top: 8px; }
.task .acts .btn { min-height: 44px; min-width: 110px; }
.task.urg { border-left: 4px solid var(--bad); }
.task.mid { border-left: 4px solid var(--warn); }
.sys { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sys .hs { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.sys .hs.ok { color: var(--ok); } .sys .hs.part { color: var(--warn); } .sys .hs.down { color: var(--bad); background: var(--bad-soft); }
.launch .next { color: var(--info); }

/* RU: Экран «Сегодня» (макет 1-today): приветствие, плашки, KPI с полоской, дела-ссылки. EN: "Today" screen mockup. */
.today-screen { max-width: 1150px; min-width: 0; }
.today-sub { color: var(--muted); margin: 0 0 14px; }
.today-decide { border-color: var(--bad); background: var(--bad-soft); margin-bottom: 14px; }
.today-decide.calm { border-color: var(--line); background: var(--surface); }
.today-decide b, .today-stop b { display: block; margin-bottom: 4px; }
.today-stop { border-color: var(--bad); background: var(--bad-soft); margin-bottom: 14px; }
.today-stop .btn { margin-top: 10px; }
.today-kpis { margin-bottom: 4px; }
.today-kpi .s.up { color: var(--ok); }
.today-kpi .s.dn { color: var(--bad); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--acc); max-width: 100%; }
.today-actions { padding-top: 4px; padding-bottom: 4px; }
.today-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.today-row:first-child { border-top: 0; }
.today-row .grow { flex: 1; min-width: 0; }
.today-row .grow b { display: block; overflow-wrap: anywhere; }
.today-row .btn { flex: none; white-space: nowrap; min-height: 40px; }
.today-row .av { width: 38px; height: 38px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; font-weight: 700; flex: none; }
.today-auto { margin-bottom: 8px; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .today-kpis.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-row { flex-wrap: wrap; }
  .today-row .btn { width: 100%; }
}
@media (min-width: 1280px) {
  .today-kpis.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: none; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); z-index: var(--z-tab); padding-bottom: max(6px, env(safe-area-inset-bottom)); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 0 4px; font-size: 11px; color: var(--muted); text-decoration: none; position: relative; min-height: 54px; }
.tabs a i { font-style: normal; font-size: 20px; line-height: 1.1; }
.tabs a.on { color: var(--acc); font-weight: 700; }
[data-theme="mobile"] .tabs a.on { color: var(--ink); }
.tabs .bdg { position: absolute; top: 3px; left: calc(50% + 6px); background: var(--badge-bg); color: var(--badge-ink); font-size: 10px; border-radius: 99px; padding: 0 5px; min-width: 16px; text-align: center; }
@media (max-width: 820px) {
  .tabs { display: grid; }
  /* RU: Пока открыта форма входа (/login открыт с сайта), разделов пульта не видно. EN: No pult tabs while the login form is shown. */
  #login:not([hidden]) ~ #tabs { display: none !important; }
}
/* RU: План v6: доска заказов и мастер карточки. EN: Plan v6: order board and card wizard. */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.col { background: var(--surface-2); border-radius: 12px; padding: 8px; min-height: 120px; }
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-top: 8px; }
.card select { margin-top: 4px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 820px) { .kanban { grid-template-columns: 1fr; } }
/* RU: Пять дверей объявления (план API). EN: Five doors of a listing (API plan). */
.doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.door-next { background: var(--info-soft); color: var(--info); border-radius: 10px; padding: 8px 10px; }
.door p { margin: 8px 0 0; }
.pack { white-space: pre-wrap; font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); border-radius: 10px; padding: 10px; }
@media (max-width: 820px) { .doors { grid-template-columns: 1fr; } }

/* RU: К3 — быстрый выбор вида в шапке и раздел «Вид» (по образцу v3). EN: Theme switchers. */
.topline { display: flex; align-items: flex-start; gap: 8px; }
.topline .syncbar { flex: 1; min-width: 0; }
.themeq { display: flex; flex: none; padding: 3px; gap: 2px; border-radius: calc(var(--r) + 3px); background: var(--surface-3); margin-bottom: 16px; }
.themeq button { width: 34px; height: 30px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 0; font-size: 15px; }
.themeq button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.narrow .themeq button { width: var(--tap); height: var(--tap); }
.look h3 { margin: 0 0 4px; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 12px 0; }
.tcard { border: 2px solid var(--line); border-radius: var(--r-lg); padding: 12px; text-align: left; background: var(--surface); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.tcard[aria-pressed="true"] { border-color: var(--acc); }
.tcard small { color: var(--muted); }
.tname { display: flex; gap: 8px; align-items: center; }
.tname .st { margin-left: auto; }
.tprev { display: grid; grid-template-columns: 30% 1fr; height: 86px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.tprev > i:first-child { background: var(--surface); border-right: 1px solid var(--line); }
.tprev > i:last-child { background: var(--bg); padding: 10px; display: grid; gap: 6px; align-content: start; }
.tprev > i:last-child i:nth-child(1) { height: 12px; width: 60%; border-radius: 4px; background: var(--ink); }
.tprev > i:last-child i:nth-child(2) { height: 30px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.tprev > i:last-child i:nth-child(3) { height: 8px; width: 40%; border-radius: 4px; background: var(--acc); }

/* ===== Пульт 3.0 (план v7, Р4 и Р4б): Главная, поручения, помощь, поиск, помощник, слои. Только токены из tokens.css. =====
   EN: Panel 3.0: Home, assignments, help, search, assistant, overlays. Tokens only. */
@media (min-width: 821px) { [data-theme="mobile"] .shell { grid-template-columns: 240px minmax(0, 1fr); } }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grow1 { flex: 1; min-width: 220px; }
.center { text-align: center; }
.center-r { justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; border-radius: var(--r-pill); padding: 2px 8px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.btn.danger-f { background: var(--bad-fill); border-color: var(--bad-fill); color: var(--acc-ink); }
[data-theme="dark"] .btn.danger-f { color: var(--bg); }
.home .card, .help-p .card, #view > .card.bot, #view > .card.prow { margin-bottom: var(--gap); }
.home .h2, .help-p .h2, .card > .row > .h2 { font-size: var(--fs-base); font-weight: 700; margin: 0; color: var(--ink); text-transform: none; letter-spacing: 0; }
.home .card > .row, .help-p .card > .row { margin-bottom: 6px; }
.hello-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 4px 0 6px; }
.hello-t { flex: 1; min-width: 220px; }
.hello { font-size: var(--fs-h1); font-weight: 750; margin: 0; letter-spacing: -.01em; line-height: 1.15; }
.hello.sm-h { font-size: var(--fs-xl); }
.lead { color: var(--ink-2); margin: 4px 0 0; }
.kpis3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 14px 0 var(--gap); }
.kpis3.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi3 { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; color: var(--ink); text-decoration: none; box-shadow: var(--sh-1); min-width: 0; }
.kpi3:hover { border-color: var(--acc); }
.kpi3 .l { font-size: var(--fs-sm); color: var(--muted); }
.kpi3 .v { font-family: var(--font-num); font-size: var(--fs-kpi); font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi3 .s { font-size: var(--fs-xs); color: var(--ink-2); }
.kpi3.low .v { color: var(--bad); }
.cmp { font-size: var(--fs-xs); font-weight: 600; }
.cmp.good { color: var(--ok); }
.cmp.bad { color: var(--bad); }
.sp-line { display: block; margin: 2px 0; }
.sp-line polyline { fill: none; stroke: var(--c1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.banner { display: flex; gap: 12px; align-items: center; border-radius: var(--r-lg); padding: 12px 14px; margin: 10px 0; }
.banner > span[aria-hidden] { font-size: 20px; }
.banner .bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner.info { background: var(--info-soft); color: var(--info); }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.prog { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 4px 0; }
.prog i { display: block; height: 100%; background: var(--acc); border-radius: 99px; transition: width var(--dur) var(--ease); }
.empty .big { font-size: 30px; }
.dcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); margin-bottom: 8px; position: relative; }
.dcard::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--line); }
.dcard.red::before { background: var(--bad-fill); }
.dcard.amb::before { background: var(--warn-fill); }
.dcard.grn::before { background: var(--ok-fill); }
.dc-i { width: 38px; height: 38px; border-radius: var(--r); display: grid; place-items: center; background: var(--surface-2); font-size: 18px; }
.dc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dc-t span { color: var(--ink-2); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.dc-a { display: flex; gap: 6px; align-items: center; }
details.more { position: relative; }
details.more > summary { list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more .menu { position: absolute; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); padding: 4px; z-index: 6; min-width: 220px; }
details.more .menu button, .menu-i { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: var(--r-sm); cursor: pointer; min-height: 40px; }
details.more .menu button:hover, .menu-i:hover { background: var(--surface-2); }
@container (max-width: 560px) { .dcard { grid-template-columns: auto minmax(0, 1fr); } .dc-a { grid-column: 1 / -1; padding-left: 50px; } }
.home .card { container-type: inline-size; }
.trow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.trow:last-of-type { border-bottom: 0; }
.tr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tr-t b { font-size: var(--fs-sm); }
.tr-t span { font-size: var(--fs-xs); color: var(--muted); }
.trow.done .tr-t b { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.trow.late .tr-t span { color: var(--bad); }
.chips-p { margin-top: 10px; }
.av { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; flex: none; font-size: 13px; }
.av.a1 { background: var(--av-bg-1); color: var(--av-ink-1); }
.av.a2 { background: var(--av-bg-2); color: var(--av-ink-2); }
.av.a3 { background: var(--av-bg-3); color: var(--av-ink-3); }
.av.a4 { background: var(--av-bg-4); color: var(--av-ink-4); }
.av.a5 { background: var(--av-bg-5); color: var(--av-ink-5); }
.bars { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.barr { display: grid; grid-template-columns: 96px minmax(0, 1fr) 72px; gap: 8px; align-items: center; font-size: var(--fs-sm); }
.barr .tr { height: 18px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.barr .tr i { display: block; height: 100%; background: var(--c1); border-radius: 5px; }
.barr.hot .tr i { background: var(--warn-fill); }
.barr.rev .tr i { background: var(--c2); }
.barr b { text-align: right; font-family: var(--font-num); }
.tl { display: flex; flex-direction: column; }
.tl-i { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.tl-i:last-child { border-bottom: 0; }
.tl-i > div { display: flex; flex-direction: column; min-width: 0; }
.tl-i .tm { font-family: var(--font-num); font-weight: 700; }
.srow { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.srow:last-of-type { border-bottom: 0; }
.ttl1 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .wide { margin-top: 10px; }
/* слои */
#layer:empty { display: none; }
.ov { position: fixed; inset: 0; background: var(--overlay); z-index: var(--z-overlay); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade3 var(--dur) var(--ease); }
.sheet { background: var(--surface); color: var(--ink); border-radius: var(--r-xl); box-shadow: var(--sh-3); width: 100%; max-width: 560px; max-height: 100%; display: flex; flex-direction: column; animation: pop3 var(--dur) var(--ease); }
.sheet.wide { max-width: 760px; }
.sheet.narrow-s { max-width: 440px; }
.sh-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sh-h h2 { margin: 0; font-size: var(--fs-lg); flex: 1; color: var(--ink); text-transform: none; letter-spacing: 0; }
.sh-b { padding: 14px 16px; overflow: auto; flex: 1; }
.sh-f { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.grab { display: none; width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 8px auto 0; }
.cf-t { margin: 0; color: var(--ink-2); }
.asst-ov { animation: none; background: transparent; pointer-events: none; justify-content: flex-end; align-items: stretch; padding: 0; }
.sheet.asst { pointer-events: auto; max-width: 400px; max-height: none; height: 100%; border-radius: 0; border-left: 1px solid var(--line); animation: none; }
.ask-f { display: flex; gap: 8px; width: 100%; }
.ask-f .inp { flex: 1; }
.sheet.asst .sh-f { justify-content: stretch; }
#asstLog { display: flex; flex-direction: column; gap: 8px; }
#asstLog .bub { align-self: flex-start; max-width: 96%; background: var(--surface-2); border: 1px solid var(--line); }
#asstLog .bub.me { align-self: flex-end; background: var(--acc-soft); border-color: transparent; }
#asstLog .bub .row { margin-top: 6px; }
.bub .src { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }
#asstLog .ex { margin-top: 6px; }
.pop-bg { position: fixed; inset: 0; z-index: var(--z-overlay); }
.pop { position: fixed; top: calc(var(--top-h) + 2px); right: 12px; z-index: var(--z-sheet); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); width: min(340px, calc(100vw - 24px)); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.pop .ln { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); }
.pop .ln .dot { margin-top: 6px; }
.pop p { margin: 4px 0 0; }
.themes-m { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0; }
.pal { align-items: flex-start; padding-top: 70px; }
.pal-b { width: min(580px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: hidden; }
.pal-b input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; font-size: var(--fs-lg); background: transparent; outline: none; color: var(--ink); }
.pal-b ul { list-style: none; margin: 0; padding: 6px; max-height: 360px; overflow: auto; }
.pal-b li button { display: flex; gap: 10px; width: 100%; border: 0; background: transparent; text-align: left; padding: 9px 10px; border-radius: var(--r); cursor: pointer; align-items: center; min-height: 44px; color: var(--ink); }
.pal-b li button > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pal-b li button[aria-selected="true"], .pal-b li button:hover { background: var(--acc-soft); }
.pal-b .kd { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.pal-f { padding: 8px 14px; border-top: 1px solid var(--line); }
.pal-e { padding: 12px; }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: var(--z-toast); display: flex; flex-direction: column; gap: 6px; width: min(460px, calc(100vw - 24px)); pointer-events: none; }
.toasts .toast { pointer-events: auto; background: var(--ink); color: var(--surface); border-radius: var(--r); padding: 10px 12px; display: flex; gap: 10px; align-items: center; box-shadow: var(--sh-2); font-size: var(--fs-sm); animation: up3 var(--dur) var(--ease); }
.toasts .toast .sp { flex: 1; }
.toasts .toast button { border: 0; background: transparent; color: var(--surface); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 6px; min-height: 36px; }
/* поля */
.fld { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.fld > span { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.inp { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r); padding: 8px 12px; min-height: var(--ctl-h); }
.inp:focus { border-color: var(--acc); outline: none; box-shadow: 0 0 0 3px var(--acc-soft); }
.inp.ta { min-height: 96px; resize: vertical; line-height: 1.45; font: inherit; }
.inp.big-i { font-size: var(--fs-lg); min-height: 48px; margin: 12px 0 8px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; border-radius: calc(var(--r) - 3px); padding: 5px 12px; cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: var(--fs-sm); min-height: 34px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
/* помощь */
.help-p { max-width: 960px; }
.sec-h { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; font-weight: 700; }
.res { display: flex; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); padding: 10px 12px; margin-bottom: 6px; cursor: pointer; align-items: flex-start; min-height: 44px; }
.res > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.res:hover { border-color: var(--acc); }
.res.slim { border-color: transparent; padding: 6px 8px; margin: 0; }
.res.slim:hover { background: var(--surface-2); }
.art { max-width: 720px; }
.art h2 { font-size: var(--fs-xl); margin: 6px 0 12px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.art ol, .art-ol { padding-left: 20px; margin: 0 0 12px; }
.art li, .art-ol li { margin: 8px 0; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 8px 0 0; font-size: var(--fs-sm); }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; color: var(--ink-2); }
/* боты и люди */
.card.bot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.bot .bi { width: 40px; height: 40px; border-radius: var(--r); background: var(--surface-2); display: grid; place-items: center; font-size: 20px; }
.bot .bt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bot details summary { cursor: pointer; margin-top: 4px; }
/* RU: Дорожка 26 px, а зона нажатия 44 px — фон только по содержимому. EN: A 26 px track inside a 44 px tap area. */
.bot .sw { width: 52px; height: 44px; padding: 9px 4px; background-clip: content-box; border-radius: 99px; }
.bot .sw:after { top: 12px; right: 7px; }
.bot .sw[aria-checked="false"] { background-color: var(--track); }
.bot .sw[aria-checked="false"]:after { right: auto; left: 7px; }
.bot .sw.chk[aria-checked="true"] { background: var(--warn-fill); }
.card.prow { display: flex; gap: 12px; align-items: center; }
.copyf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.copyf .v { white-space: pre-wrap; overflow-wrap: anywhere; }
.src-p { font-weight: 700; color: var(--info); }
@keyframes fade3 { from { opacity: 0; } }
@keyframes pop3 { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes up3 { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .ov, .sheet, .toasts .toast { animation: none; } }
@media (min-width: 1240px) { .kpis3 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .kpis3.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .grid2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .kpis3, .kpis3.k3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpis3.k3 .kpi3:first-child { grid-column: 1 / -1; }
  .kpi3 { padding: 10px; }
  .kpi3 .v { font-size: 22px; }
  .hello { font-size: 26px; }
  .dcard { grid-template-columns: auto minmax(0, 1fr); padding: 12px; }
  .dc-a { grid-column: 1 / -1; padding-left: 0; }
  .dc-a .btn.primary { flex: 1; }
  .btn, .btn.sm, .chip, .seg button, .menu-i, .res, details.more .menu button { min-height: var(--tap); }
  .btn.sm { padding-top: 4px; padding-bottom: 4px; }
  .home .help, .help-p .help, .top .help, .bot .help, #view > .row .help { width: var(--tap); height: var(--tap); }
  .home .link-btn, .art .link-btn, details.more > summary { min-height: var(--tap); min-width: var(--tap); display: inline-flex; align-items: center; justify-content: center; }
  .home .center a, .home .muted a { display: inline-flex; align-items: center; min-height: var(--tap); }
  .top > * { flex: none; }
  .sh-h .btn.icon { width: var(--tap); height: var(--tap); }
  .top h1 { flex: 0 1 auto; min-width: 0; }
  .inp { min-height: var(--tap); }
  .ov { align-items: flex-end; padding: 0; }
  .sheet, .sheet.asst { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92%; height: auto; max-width: none; border-left: 0; }
  .asst-ov { background: var(--overlay); pointer-events: auto; align-items: flex-end; }
  .sheet .sh-f .btn { flex: 1; }
  .grab { display: block; }
  .pal { padding-top: 12px; align-items: flex-start; }
  .toasts { bottom: 78px; }
  .barr { grid-template-columns: 84px minmax(0, 1fr) 60px; }
  .card.bot { grid-template-columns: auto minmax(0, 1fr) auto; }
}
/* RU: Служебные счётчики старого меню (их читают старые экраны) не показываются. EN: Legacy counters stay invisible. */
#navToday, #navKb, #navRev { display: none !important; }

/* RU: Вход по приглашению, код приглашения, обещания в цифрах. EN: Invite join, invite code, SLO tiles. */
/* RU: ВХ2: кнопка «Войти через Яндекс» на /login и карточка «Мой вход». EN: VH2: the Yandex button and the "My sign-in" card. */
.ya-door { margin-top: 10px; }
.ya-door .muted { margin: 6px 0 0; }
.ya-btn { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: var(--tap, 44px); }
.ya-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yandex); color: var(--on-yandex); font-weight: 700; font-size: 13px; }
.join-l { align-self: center; margin-top: 8px; min-height: var(--tap); }
.code-box { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--ok-soft); color: var(--ink); }
.code-box .code { font-family: var(--font-mono); font-size: var(--fs-xl); letter-spacing: .08em; user-select: all; }
.kpis3.slo { margin: 8px 0; }
@media (min-width: 1240px) { .kpis3.slo { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* RU: Поле выбора файлов не шире экрана (375 px, «Витрина»). EN: File inputs never wider than the screen. */
#view input[type="file"] { max-width: 100%; min-width: 0; }

/* RU: Мастер срочного объявления и учебный прогон бота. EN: Urgent wizard and bot dry run. */
.urg-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.urg-h b { font-size: var(--fs-lg); }
.urg-text { white-space: pre-wrap; background: var(--surface-2); border-radius: var(--r); padding: 10px 12px; margin-top: 10px; font-size: var(--fs-sm); max-height: 220px; overflow: auto; }
.chk3 { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.chk3 .fx, .copyf .fx { margin-top: 6px; }
.fx .inp { flex: 1; min-width: 160px; }
.try-out ul { margin: 4px 0; padding-left: 18px; }
.cf-host .ov { z-index: calc(var(--z-overlay) + 5); }

/* RU: Пульт 3.1: отложенная отправка, быстрые ответы, метка «горячий». EN: Panel 3.1: delayed send, quick replies, the "hot" label. */
.toasts .toast.send-t { flex-wrap: wrap; }
.send-t .bar { flex: 1 1 80px; height: 4px; border-radius: 9px; background: var(--surface-3); overflow: hidden; min-width: 60px; }
.send-t .bar i { display: block; height: 100%; width: 100%; background: var(--surface); transition: width 1s linear; }
.qr { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 8px; scrollbar-width: none; }
.qr .chip { flex: none; }
.st.hot { background: var(--bad-soft); color: var(--bad); }
.items-sw { margin-bottom: 12px; }
.adgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
.adc { display: flex; flex-direction: column; gap: 10px; }
.adc-h { display: flex; gap: 12px; align-items: flex-start; }
.adc .ph { width: 56px; height: 56px; border-radius: var(--r); display: grid; place-items: center; color: var(--ph-ink); font-size: 24px; flex: none; }
.ph1 { background: var(--ph-1); } .ph2 { background: var(--ph-2); } .ph3 { background: var(--ph-3); } .ph4 { background: var(--ph-4); } .ph5 { background: var(--ph-5); } .ph6 { background: var(--ph-6); }
.adc-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.adc-t b { line-height: 1.3; overflow-wrap: anywhere; }
.adc-n { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.big-n { font-family: var(--font-num); font-size: 26px; font-weight: 750; line-height: 1; }
.adc-f { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
/* RU: Готовность — 7 шагов. EN: The 7-step readiness. */
.prog.big-p { height: 10px; margin: 10px 0 14px; }
.chk7 { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.chk7:last-child { border-bottom: 0; }
.chk7 .bx { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 800; }
.chk7.done .bx { background: var(--ok-fill); border-color: var(--ok-fill); color: var(--acc-ink); }
.chk7.done .ct { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.chk7 .grow1, .prow .grow1 { min-width: 0; }
/* RU: Пульт 3.1: старые экраны на телефоне — поля, списки, флажки, переключатели и ссылки в тексте не меньше 44 px.
   EN: Panel 3.1: legacy screens on phones — inputs, selects, checkboxes, switches and inline links at least 44 px. */
@media (max-width: 820px) {
  #view input:not([type="checkbox"]):not([type="radio"]), #view select, #view textarea { min-height: var(--tap); }
  #view input[type="checkbox"], #view input[type="radio"] { width: var(--tap); height: var(--tap); margin: 0 4px 0 0; flex: none; vertical-align: middle; accent-color: var(--acc); }
  #view .link-btn, #view p a, #view .muted a, #view .small a, #view td a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }
  #view .sw { width: 52px; height: 44px; padding: 9px 4px; background-clip: content-box; border-radius: 99px; }
  #view .sw:after { top: 12px; right: 7px; }
  #view .sw.off:after { right: auto; left: 7px; }
  .chk7 { flex-wrap: wrap; }
}
/* RU: Карточка «клиент + авто»: полоса пути и форма «Машина и ТО». EN: Client card: journey bar and the car form. */
.ccard { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.sheet .ccard { margin-top: 0; border-top: 0; padding-top: 0; }
.jr { list-style: none; display: flex; gap: 4px; padding: 0; margin: 6px 0 10px; counter-reset: jr; }
.jr li { flex: 1; text-align: center; font-size: var(--fs-xs); color: var(--muted); padding-top: 10px; position: relative; }
.jr li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 9px; background: var(--surface-3); }
.jr li.on { color: var(--ink); font-weight: 650; }
.jr li.on::before { background: var(--acc); }
.ccf { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.chk-l { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); min-height: var(--tap); cursor: pointer; }
.ccf .btn { align-self: flex-start; }
.tl-open { cursor: pointer; border-radius: var(--r-sm); min-height: var(--tap); justify-content: center; }
.tl-open:hover b { text-decoration: underline; }
.tl-open:focus-visible { outline: none; box-shadow: var(--focus); }
/* RU: Флажки и поля в окнах (слой поверх экрана) на телефоне — тоже не меньше 44 px. EN: Checkboxes and inputs in sheets on phones — 44 px too. */
@media (max-width: 820px) {
  #layer input[type="checkbox"], #layer input[type="radio"] { width: var(--tap); height: var(--tap); margin: 0; flex: none; accent-color: var(--acc); }
  #layer input:not([type="checkbox"]):not([type="radio"]), #layer select, #layer textarea { min-height: var(--tap); }
}
/* RU: План «Из Пульса» (rub.js): таблица каналов с прокруткой, расчёт моноширинным, сумма без переноса.
   EN: "From Pulse" (rub.js): a scrollable channel table, monospace calculation, unbroken amounts. */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl td:not(:first-child), .tbl th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.sum td { font-weight: 700; border-top: 2px solid var(--line); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--surface-2); border-radius: 8px; padding: 6px 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
#view textarea { width: 100%; min-height: 88px; }
.w70 { width: 70px; } .w110 { width: 110px; } .w160 { max-width: 160px; }
/* RU: План v9, Т3: флажки значений поля категории. EN: Plan v9, T3: category field value checkboxes. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chk1 { display: inline-flex; gap: 4px; align-items: center; min-height: 44px; }
.rset input { display: block; width: 100%; min-width: 0; box-sizing: border-box; }
#rsCh { max-width: 100%; }

/* RU: «Показать где» (ПМ2, static/tour.js): затемнение тенью рамки, пузырь над всем; позицию ставит скрипт. EN: Spotlight and bubble. */
.tour-spot { position: fixed; z-index: calc(var(--z-toast) + 5); border-radius: var(--r); box-shadow: 0 0 0 3px var(--acc), 0 0 0 9999px var(--overlay); pointer-events: none; transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease; }
.tour-tip { position: fixed; z-index: calc(var(--z-toast) + 6); width: min(320px, calc(100vw - 16px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; box-shadow: var(--sh-3); font-size: var(--fs-md); }
.tour-tip p { margin: 0 0 10px; }
.tour-tip .tour-k { margin: 0 0 4px; font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.tour-tip .btn { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }

/* RU: Карточка «Первые шаги» (ПМ3). EN: The "First steps" card (PM3). */
.guide .trl { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line-2); padding: 8px 0; flex-wrap: wrap; }
.guide .trl .nm { flex: 1 1 200px; min-width: 0; }
.guide .trl .ck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: var(--fs-xs); flex: none; }
.guide .gd-done { margin: 8px 0 0; }
.guide .gd-done .link-btn { font-size: inherit; }
@media (max-width: 819px) { .guide .trl > .row { margin-left: 34px; } }
.guide .trl .btn { min-height: 44px; }
.guide .prog { margin: 6px 0; }

/* RU: «Вы здесь впервые» (ПМ4). EN: First-time hint (PM4). */
#hint .hint-b { margin: 0 0 12px; flex-wrap: wrap; }
#hint .hint-b .bt { flex: 1 1 240px; }
#hint .hint-b > .row { flex: 0 1 auto; }
@media (max-width: 819px) { #hint .hint-b > .row { flex: 1 1 100%; padding-left: 32px; } }
#hint .hint-b .btn { min-height: 44px; }

/* RU: 👍/👎 под ответом помощника (ПМ5). EN: Thumbs under an assistant answer (PM5). */
.bub .rate { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.bub .rate .btn { min-height: 36px; min-width: 40px; padding: 4px 8px; }

/* RU: МУ1 — экран «Услуги»: строка фильтров, группы в таблице, поле прайса. EN: MU1 — the Services screen. */
.svc-kpis .kpi > span { display: block; }
.svc-bar { margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 701px) { .svc-bar { position: sticky; top: 0; z-index: 3; } }
.svc-bar select, .svc-q, .svc-text { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; max-width: 100%; }
.svc-bar .acts > select { flex: 0 1 190px; width: auto; min-width: 0; }
.svc-bar .acts > .svc-q { flex: 1 1 220px; width: auto; min-width: 0; }
.svc-bar input[type="checkbox"] { width: 20px; height: 20px; }
.svc-text { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 13px; resize: vertical; }
.svc-t .svc-g td { font-weight: 700; background: var(--surface-2); }
#svcImportBox summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; gap: 8px; }
@media (max-width: 700px) {
  .svc-t .svc-g td::before { content: none; }
  /* RU: На телефоне строка услуги — компактная карточка: галочка, название, цена и статус без подписей; группа — в заголовке. EN: Compact phone row. */
  .svc-t tr:not(.svc-g) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; }
  .svc-t tr:not(.svc-g) td::before { content: none; }
  .svc-t td[data-l="Выбрать"] { grid-row: span 2; padding: 0 0 0 14px; }
  .svc-t td[data-l="Группа"] { display: none; }
  .svc-t td[data-l="Услуга"] { grid-column: 2 / 4; padding: 0 14px 0 0; }
  .svc-t td[data-l="Цена от"] { grid-column: 2; padding: 0; text-align: left; }
  .svc-t td[data-l="Статус"] { grid-column: 3; padding: 0 14px 0 0; }
  .svc-t td[data-l=""] { grid-column: 1 / 4; padding: 4px 14px 0; }
  .svc-t td[data-l=""] .btn { width: 100%; }
}

/* RU: «Помощь учится» (ПМ6). EN: "Help learns" (PM6). */
.learn .lrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding: 8px 0; }
.learn .lrow .grow1 { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.learn .lrow .btn { min-height: 44px; }
