/* Screens of the panel. Shared elements are in theme/; this file holds only layout of the panel's own screens. */

/* ---------------------------------------------------------------- Э-1.1 «Вход» (s_core2.screen_login) */
.login { display: flex; align-items: stretch; min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.login__panel {
  width: 604px; flex-shrink: 0; padding: 52px 56px 48px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #111111; color: #F8F6F2;
}
.login__logo { display: flex; justify-content: center; }
.login__title { display: flex; flex-direction: column; gap: 10px; font-weight: 400; }
.login__big { font-family: var(--font-display); font-size: 92px; line-height: 0.95; letter-spacing: 0.005em; }
.login__small { font-family: var(--font-display); font-size: 34px; line-height: 1.1; letter-spacing: 0.02em; color: #BBBDC1; white-space: nowrap; }
.login__brands { display: flex; align-items: center; gap: 40px; }
.login__side { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--bg); }
.login__form { width: 400px; max-width: 100%; }
.login__h { margin: 0 0 30px 0; font-family: var(--font-display); font-size: 46px; line-height: 1; font-weight: 400; color: var(--ink); }
.login__fields { display: flex; flex-direction: column; gap: 16px; }
.login__row { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 24px 0; }
.login__row a { font-size: 13px; }
.login__row--end { justify-content: flex-end; margin-bottom: 0; }
.login__gap { height: 24px; }
.login__h--wrap { line-height: 1.05; }
.login__submit { margin-top: 24px; }
.login__back { display: flex; justify-content: flex-end; margin-top: 16px; }
.login__back a { font-size: 13px; }
.login__note { margin-top: 24px; }

/* Э-1.6: tablet — 1024: panel 451, «Аналитика» 60, «чатов поддержки» 22, logo 84, brands 26 in one row;
   820: panel 361, 50 / 20, logo 80, brands in two rows. Between them the sizes change linearly. */
@media (max-width: 1099px) {
  .login__panel { width: 44%; padding: 40px 32px; }
  .login__side { padding: 0; }
  .login__logo .logo { height: calc(1.96vw + 64px); width: auto; }
  .login__big { font-size: clamp(46px, calc(4.9vw + 9.8px), 64px); }
  .login__small { font-size: calc(0.98vw + 12px); }
  .login__brands { gap: 18px 26px; flex-wrap: wrap; }
  .login__brands .logo { height: 26px; width: auto; }
  .login__brands .logo[aria-label="Dr.Sorbie"] { height: 32.8px; }
  .login__h { line-height: 1.05; }
  /* Э-1.6 v83 (п.121, ПЭ-p-aud-01): on the tablet and the phone «Аналитика», the brands and «Вход» are centred */
  .login__title { align-items: center; text-align: center; }
  .login__brands { justify-content: center; }
  .login__h { text-align: center; }
}
/* Э-1.6: phone 390 — dark block on top, the form full width */
@media (max-width: 767px) {
  .login { flex-direction: column; }
  .login__panel { width: 100%; padding: 24px 16px 22px 16px; gap: 14px; justify-content: flex-start; }
  .login__logo .logo { height: 74px; }
  .login__title { gap: 6px; }
  .login__big { font-size: 46px; }
  .login__small { font-size: 20px; }
  .login__brands { gap: 20px; flex-wrap: nowrap; }
  .login__brands .logo { height: 20px; }
  .login__brands .logo[aria-label="Dr.Sorbie"] { height: 25.2px; }
  .login__side { display: block; padding: 24px 16px; }
  .login__form { width: 100%; }
  .login__h { font-size: 36px; margin-bottom: 30px; }
}

/* ---------------------------------------------------------------- sections */
.section-mobile { display: none; }
.section-desktop { display: flex; flex-direction: column; gap: 20px; }
.boot { display: flex; align-items: center; justify-content: center; min-height: 100vh; color: var(--ink-3); }
@media (max-width: 767px) {
  .section-mobile { display: flex; flex-direction: column; gap: 12px; }
  .section-desktop { display: none; }
}

/* ---------------------------------------------------------------- «Запросы» (Э-3) */
.section-stack { display: flex; flex-direction: column; gap: 20px; }
/* E0-07: the load error over the last figures of the screen keeps the gap of the stack */
.state-error + * { margin-top: 20px; }
.sheet__stepday { font-size: 13px; color: var(--ink-2); }
.sheet__today { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.sheet__stepday[hidden], [data-sheet-step][hidden], .sheet__today[hidden] { display: none; }
.theme-tags { display: inline-flex; gap: 6px; margin-top: 4px; }
.grades-card { width: 486px; flex-shrink: 0; }
.grade-rows { display: flex; flex-direction: column; gap: 10px; }
.grade-row { display: flex; align-items: center; gap: 14px; }
.grade-row__name { width: 218px; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.grade-row__bar { flex-grow: 1; display: block; height: 14px; background: var(--line); }
.grade-row__bar > span { display: block; height: 100%; }
.grade-row__num { width: 92px; flex-shrink: 0; text-align: right; font-size: 13px; font-weight: 500; color: var(--ink); }
.grade-row__num .muted { font-weight: 400; }
.chart-box { min-height: 210px; overflow: hidden; }
/* Tables (замечания заказчицы 29.09, пп. 2–3): the header stays on top while the rows scroll inside the table box,
   the scrollbars are always drawn (not the overlay ones of macOS), the table is dragged with the left button held
   and scrolled sideways with Shift + wheel (bindTables in ui.js) */
.tbl-scroll { overflow: auto; max-height: max(360px, calc(100vh - 200px)); }
.tbl-scroll > .tbl > thead th { position: sticky; top: 0; z-index: 2; }
.tbl-scroll::-webkit-scrollbar { width: 12px; height: 12px; }
.tbl-scroll::-webkit-scrollbar-track { background: var(--beige); }
.tbl-scroll::-webkit-scrollbar-thumb { background: var(--ink-3); border: 3px solid var(--beige); }
.tbl-scroll::-webkit-scrollbar-corner { background: var(--beige); }
@supports (-moz-appearance: none) { .tbl-scroll { scrollbar-width: auto; scrollbar-color: var(--ink-3) var(--beige); } }
.tbl-scroll.is-dragging { cursor: grabbing; user-select: none; }
@media (max-width: 1279px) {
  .row { flex-wrap: wrap; }
  .grades-card { width: 100%; }
}
@media (max-width: 767px) {
  .section-stack { gap: 12px; }
  .state-error + * { margin-top: 12px; }
}

/* ---------------------------------------------------------------- «Запросы — обращения» (Э-3.1, М-2) */
.block-title__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.block-title__right--nowrap { flex-wrap: nowrap; flex-shrink: 0; }   /* поиск и «Экспорт» в одну строку (Э-9, ПК-ui1-07) */
.cols-chooser { display: flex; gap: 18px; }
.cols-chooser__col { flex: 1 1 0; min-width: 0; }
.cols-chooser__item { margin-bottom: 8px; }
.list-filter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.list-filter__note { font-size: 12px; color: var(--ink-3); }
.chat-wrap { display: flex; align-items: flex-start; gap: 6px; }
.chat-wrap .sq { margin-top: 3px; }
.await { font-size: 12px; color: var(--g-ok); }
.nowrap { white-space: nowrap; }
.tbl--rows tbody tr { cursor: pointer; }
.tbl--rows tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tsel { position: relative; display: inline-flex; width: 112px; }
.tsel select {
  width: 100%; height: 30px; padding: 0 22px 0 8px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 0; font-size: 12px; appearance: none; -webkit-appearance: none;
}
.tsel--empty select { color: var(--ink-3); }
/* «целевой» — the green of the row stripe (п.136, map 1.22 rule 22) */
.tsel--yes select { color: var(--ok-mark); }
.tsel .ico { position: absolute; right: 4px; top: 7px; color: var(--ink-2); pointer-events: none; }
.mcards { display: flex; flex-direction: column; gap: 8px; }
.mcard { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mcard:hover { color: var(--ink); }
.mcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-2); }
.mcard__title { font-size: 14px; line-height: 1.4; }
.mcard__pairs { display: flex; gap: 10px; }
.mcard__pairs > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mcard__pairs > div > span:first-child { font-size: 11px; color: var(--ink-3); }
.mcard__pairs > div > span:last-child { font-size: 14px; font-weight: 500; }
.mcard__foot { font-size: 12px; color: var(--ink-2); padding-top: 8px; border-top: 1px solid var(--line); }
@media (max-width: 767px) {
  .section-stack .segmented { flex-wrap: wrap; }
  .section-stack .segmented__box { height: 44px; }
  .section-stack .segmented__btn { height: 42px; }
}

/* ---------------------------------------------------------------- «Карточка обращения» (Э-3.3, М-2) */
.rc { display: flex; flex-direction: column; gap: 20px; }
.rc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.rc-head__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rc-head__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rc-head__title h1 { font-family: var(--font-display); font-size: 25px; font-weight: 400; color: var(--ink); }
.rc-head__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.rc-head__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-hint { display: inline-flex; align-items: center; gap: 4px; }
.rc-target-row { display: flex; align-items: flex-end; gap: 16px; }
.rc-target { width: 230px; flex-shrink: 0; }
.rc-target-note { padding-bottom: 11px; font-size: 12px; color: var(--ink-3); line-height: 1.45; max-width: 640px; }
.rc-target-value { height: 40px; display: flex; align-items: center; font-size: 14px; }
.rc-text { font-size: 15px; line-height: 1.55; color: var(--ink); }
.rc-line { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rc-line__time { width: 86px; flex-shrink: 0; font-size: 12px; color: var(--ink-3); }
.rc-line__text { flex-grow: 1; font-size: 14px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; }
.rc-msg { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rc-msg__time { width: 64px; flex-shrink: 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); }   /* 52 → 64 for «изменено» (З-12 п. 8, Э-3.3 v96.9) */
.rc-msg__edited { font-size: 11px; }
.rc-msg__who { width: 168px; flex-shrink: 0; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.rc-msg__who--staff { color: var(--accent); }
.rc-msg__text { flex-grow: 1; font-size: 13px; line-height: 1.45; color: var(--ink); }
.rc-msg__tg { flex-shrink: 0; color: var(--ink-3); }
.content--card { padding: 26px 30px 30px 30px; }
/* the phone card screens (#/…/<id>) keep the 16 px of every phone screen, as М-2, М-3, М-11, М-12 (решение пользователя 29.10) */
@media (max-width: 767px) { .content--card { padding: 16px; } }
.rc-phone__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-phone__meta { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.rc-phone__hint { font-size: 12px; color: var(--ink-3); margin-top: -6px; }
.rc-target--phone { width: 100%; }
.rc-target--phone select { height: 44px; }
.mbox { padding: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; line-height: 1.55; }
@media (max-width: 1279px) { .rc-head { flex-direction: column; } .rc-target-row { flex-direction: column; align-items: stretch; } .rc-target-note { padding-bottom: 0; } }
@media (max-width: 767px) { .rc-phone__kpi .kpi { flex: 1 1 0; } }

.kpi__value--dash { color: var(--g-dash); }

/* «Показать ещё» under a long list (user 26.09; element per A, Q-39) */
.list-more { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.list-more__count { font-size: 12px; color: var(--ink-3); }

/* ---------------------------------------------------------------- «Динамика аудитории» (Э-2, Э-8.2, М-1) */
.chart-box--aud { min-height: 240px; }
.daily-card { flex: 0 1 700px; min-width: 0; }
.aud-side { min-width: 360px; }
.aud-side { display: flex; flex-direction: column; gap: 20px; }
.dist-rows { display: flex; flex-direction: column; gap: 10px; }
.dist-row { display: flex; align-items: center; gap: 12px; }
.dist-row__name { width: 232px; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.dist-row__num { width: 34px; text-align: right; font-size: 13px; font-weight: 500; }
.split { flex-grow: 1; height: 12px; background: var(--line); }
.split__fill { display: flex; height: 100%; }
.dist-foot { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dist-note { margin-top: 8px; font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.mchart { background: var(--surface); border: 1px solid var(--line); padding: 10px 6px; }
.chart-box--m { min-height: 150px; }
@media (max-width: 1279px) {
  .daily-card { flex-basis: 100%; }
  .aud-side { min-width: 0; }
  .dist-row__name { width: 180px; }
}

/* ---------------------------------------------------------------- «Мастера и категории» (Э-2.1) */
.mtabs { display: flex; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.mtab {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 2px; margin-right: 24px; flex-shrink: 0;
  background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  color: var(--ink-2); font-size: 14px; font-weight: 400;
}
.mtab[aria-pressed="true"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--accent); }
.mtab__count { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; font-size: 12px; font-weight: 500; background: var(--line); color: var(--ink-2); }
.mtab__count--warn { background: var(--warn-bg); color: var(--warn-ink); }
.m-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
/* second row of the list filters: «Только без категории», «Отображать только вступивших» and its counts (Э-2.1, 28.09) */
.m-toolbar--2 { gap: 20px; }
.m-joined { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.m-joined__n { color: var(--ink); font-weight: 500; }
/* «Новый мастер» (Э-2.1 v73): fields by two, 236 px, the comment across both; the plaques under them */
.ma-grid { display: grid; grid-template-columns: repeat(2, 236px); gap: 14px 16px; }
.ma-grid .ma-wide { grid-column: span 2; }
.field__input--area { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.ma-card .note { margin-top: 14px; max-width: 488px; }
@media (max-width: 767px) { .ma-grid { grid-template-columns: 1fr; } .ma-grid .ma-wide { grid-column: auto; } }
.m-unnamed { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.sheet__own { display: flex; flex-direction: column; gap: 12px; }
.m-bulk { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 10px 14px; background: var(--beige); border: 1px solid var(--line-2); flex-wrap: wrap; }
.msel { position: relative; display: inline-flex; }
.msel select {
  height: 32px; padding: 0 28px 0 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2);
  border-radius: 0; font-size: 13px; appearance: none; -webkit-appearance: none;
}
.msel .ico { position: absolute; right: 7px; top: 8px; color: var(--ink-2); pointer-events: none; }
/* in a table cell the list is never wider than its column: a long value ends with «…» and does not cover the next
   column (находка пользователя 28.09, «Категория и тип» над «Первый контакт») */
.tbl td .msel { display: flex; max-width: 100%; }
.tbl td .msel select { width: 100%; min-width: 0; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.msel--sm { margin-top: 6px; }
.msel--sm select { height: 28px; font-size: 12px; }
.msel--sm .ico { top: 6px; }
.msel--empty select { color: var(--ink-3); }
.msel--locked { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 13px; color: var(--ink-3); }
.msel--locked .ico { position: static; flex-shrink: 0; }   /* the lock stands after «Сотрудник», not over it (ПС-ui-aud-07) */
.msel--locked { white-space: nowrap; }
.plain { color: var(--ink); text-decoration: none; }
.plain:hover { color: var(--accent); }
.small { font-size: 12px; }
.ink2, .tbl td.ink2 { color: var(--ink-2); }
.warn-ink, .tbl td.warn-ink { color: var(--warn-ink); }
.cand { margin-bottom: 6px; }
.cand-ignore { margin-top: 8px; }
.select--sm select { height: 36px; }
.select--sm .ico { top: 8px; }
.block-title--inner { margin-top: 4px; }
.m-note { margin-top: 14px; }

/* ---------------------------------------------------------------- «Карточка мастера» (Э-2.2) */
.mc-head { display: flex; flex-direction: column; gap: 10px; }
.mc-head__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mc-head h1 { font-family: var(--font-display); font-size: 25px; font-weight: 400; }
.mc-head__meta { gap: 14px; font-size: 13px; color: var(--ink-2); }
.mc-ico { display: inline-flex; align-items: center; gap: 6px; }
.tgid { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line-2); }
.tgid__label { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-3); }
.tgid__num { font-family: var(--font-display); font-size: 20px; color: var(--ink); letter-spacing: 0.02em; }
.mc-origin { display: flex; gap: 28px; align-items: flex-start; }
.mc-nicks { width: 250px; flex-shrink: 0; }
.mc-nicks__title { display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 500; color: var(--ink-2); margin-bottom: 4px; }
.nick-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.mc-grid { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; }
.mc-grid--4 > .field:nth-child(1) { width: 300px; } .mc-grid--4 > .field:nth-child(2) { width: 220px; }
.mc-grid--4 > .field:nth-child(3) { width: 260px; } .mc-grid--4 > .field:nth-child(4) { width: 200px; }
.mc-grid--3 > .field:nth-child(1) { width: 220px; } .mc-grid--3 > .field:nth-child(2) { width: 260px; } .mc-grid--3 > .field:nth-child(3) { width: 300px; }
.mc-life { height: 40px; display: inline-flex; align-items: center; font-size: 14px; color: var(--ink); }
.mc-comment { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.field__input:disabled, .select select:disabled { color: var(--ink-2); }
.select select:disabled { opacity: 1; }   /* Chrome dims a disabled select to 0.7 — a colour outside A9 */
.mc-cats { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.mc-cats__col { display: flex; flex-direction: column; gap: 10px; }
.mc-label { display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.mc-catrow { display: flex; align-items: center; gap: 16px; }
.mc-catrow__chat { width: 250px; flex-shrink: 0; }
.mc-catrow__sel { width: 320px; }
.mc-brandall { margin-top: 4px; }
.mc-typebox { width: max-content; }
.mc-typebox .segmented__btn { padding: 0 18px; }
@media (max-width: 767px) {
  .mc-origin { flex-direction: column; align-items: stretch; }
  .mc-nicks, .mc-grid > .field, .mc-catrow__sel { width: 100% !important; }
  .mc-catrow { flex-direction: column; align-items: stretch; gap: 6px; }
}
/* total taken from the nearest earlier snapshot (A3 §4, W aud.total_nearest): second line 11 px like reach_cell */
.snap-near { font-size: 11px; line-height: 14px; color: var(--warn-ink); white-space: nowrap; }

/* ---------------------------------------------------------------- «Отзывы» (Э-4, Э-4.1, М-3) */
.kinds-card { flex: 0 1 560px; min-width: 360px; }
.kinds-card .grade-row__name { width: 156px; }
.kinds-card .grade-row__num { width: 76px; }
.kinds-card .dist-foot { margin-top: 18px; }
.split--row { height: 12px; }
.works-tbl { min-width: 2340px; }   /* 20 columns of Э-4 v83 (п.142), the table scrolls sideways */
.works-tbl .brand-chip { white-space: normal; align-items: flex-start; }
.works-tbl .brand-chip .sq { margin-top: 4px; }
.works-tbl td { vertical-align: top; word-break: normal; }
.works-tbl td:first-child { text-align: left; }   /* ПЗ8-02: the check box and the plane at the left padding 12, as on Э-4 */
.row-acts { display: inline-flex; align-items: center; gap: 4px; }
.units-acts { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.icon-act {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 26px; padding: 0;
  background: transparent; border: 0; color: var(--ink-2); cursor: pointer; text-decoration: none;
}
.icon-act:hover { color: var(--ink); }
.praise-line { display: inline-flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 18px; }
.praise-line .ico { flex-shrink: 0; margin-top: 2px; }
.wfiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.wfile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 150px; padding: 8px;
  background: var(--line); color: var(--ink-2); text-decoration: none; text-align: center;
}
.wfile:hover { color: var(--ink); }
.wfile__cap { font-size: 12px; }
.wfile__link { font-size: 11px; color: var(--ink-3); }
.wsplit-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.wc .row > .card { min-width: 0; flex: 1 1 0; }
@media (max-width: 1279px) { .kinds-card { flex-basis: 100%; } }
@media (max-width: 767px) {
  .kpi-row--thirds .kpi { flex: 1 1 calc(33.333% - 7px); }
  .wfiles { grid-template-columns: repeat(2, 1fr); }
  .wfile { height: 110px; }
  .wc .row { flex-direction: column; }
  .wc .rc-head__right { flex-wrap: wrap; }
  /* the phone header already carries «Работа №…»; separators «·» would hang at line ends */
  .wc .rc-head h1 { display: none; }
  .wc .rc-head__meta { column-gap: 14px; }
  .wc .rc-head__meta > span:nth-child(even) { display: none; }
}

/* ---------------------------------------------------------------- Э-1.8 «Поиск по панели» */
.hdr__search { position: relative; }
.search-pop {
  position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; width: 520px; max-height: calc(100vh - 90px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2); padding-bottom: 6px;
}
.search-group__head {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px 8px; border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.search-row { display: flex; flex-direction: column; gap: 3px; padding: 10px 16px; color: var(--ink); text-decoration: none; }
.search-row:hover, .search-row:focus-visible { background: var(--beige); color: var(--ink); }
.search-row__title { font-size: 14px; line-height: 20px; color: var(--ink); }
.search-row__snip { font-size: 12px; line-height: 17px; color: var(--ink-2); }
.hl { font-weight: 500; color: inherit; }
.search-pop .ico { position: static; flex-shrink: 0; }
.search-empty { padding: 16px; }
.search-empty__title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.search-empty__body { font-size: 12.5px; line-height: 19px; color: var(--ink-2); }
.search-list { display: flex; flex-direction: column; gap: 8px; }
.search-row--m { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); }
.search-page .search-empty { padding: 4px 0; }
@media (max-width: 767px) {
  .mhdr--search { gap: 8px; }
  .mhdr__search { flex: 1 1 auto; min-width: 0; }
  .mhdr__search input { height: 44px; }
  .search-page { display: flex; flex-direction: column; gap: 12px; }
}
@media (max-width: 1279px) { .search-pop { width: min(520px, calc(100vw - 48px)); } }

/* ---------------------------------------------------------------- date field (element-map §2.1 `field`, Э-1.4, Э-1.7) */
.date-input { position: relative; }
.date-input .field__input { width: 100%; padding-right: 38px; }
.date-input__btn {
  position: absolute; top: 0; right: 0; width: 38px; height: 100%; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; background: transparent; border: 0; color: var(--ink-2); cursor: pointer;
}
.date-input__native { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.dcal { position: fixed; z-index: 70; width: 300px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 12px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-size: 14px; }
.dcal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dcal__title { font-weight: 500; }
.dcal__nav { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer; }
.dcal__nav--prev .ico { transform: rotate(90deg); }
.dcal__nav--next .ico { transform: rotate(-90deg); }
.dcal__wd, .dcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.dcal__wd span { padding: 4px 0; text-align: center; font-size: 12px; color: var(--ink-3); }
.dcal__day { height: 38px; padding: 0; background: none; border: 1px solid transparent; color: var(--ink); font: inherit; cursor: pointer; }
.dcal__day:hover { border-color: var(--line-2); }
.dcal__day.is-today { border-color: var(--accent); }
.dcal__day.is-sel { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 767px) { .dcal__nav, .dcal__day { height: 44px; } .dcal__nav { width: 44px; } }
/* «Дней без данных: N» under the chart of Э-2 (A2 §16б, v62 правка 26.09 · 58); no such days — no line */
.aud-uncovered { display: flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.list-more--block { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 4px; }
.list-more--block .list-more__count { text-align: center; }

/* ---------------------------------------------------------------- М-11: masters and the master card on the phone */
@media (max-width: 767px) {
  .mtabs--phone { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .mtabs--phone::-webkit-scrollbar { display: none; }
  /* М-11: the three tabs fit 390 px — 12 px captions, 16 px apart */
  .mtabs--phone .mtab { flex-shrink: 0; gap: 3px; margin-right: 4px; font-size: 12px; height: 36px; }
  .mtabs--phone .mtab__count { padding: 0 4px; }
  .mtabs--phone .mtab:last-child { margin-right: 0; }
  .mtabs--phone .mtab:last-child { margin-right: 0; }
  .mtabs--phone .mtab__count { height: 18px; padding: 0 5px; font-size: 11px; }
  .mcard--static { gap: 6px; }
  .mcard--static .select select { height: 40px; }
  .mc-cand { font-size: 13px; line-height: 18px; }
  .mc-m { display: flex; flex-direction: column; gap: 12px; }
  .mc-m__name { font-family: var(--font-display); font-size: 26px; line-height: 30px; font-weight: 400; margin: 0; }
  .mc-m .tgid { align-self: flex-start; }
  .mc-m__meta { font-size: 13px; line-height: 18px; color: var(--ink-2); }
  .mc-m__acts { display: flex; flex-wrap: wrap; gap: 8px; }
  .kpi-row--one .kpi { flex-basis: 100%; }
  .mc-m__form { display: flex; flex-direction: column; gap: 12px; }
  .mc-m__form .field { width: 100%; }
  .mc-m__type { display: flex; align-items: center; gap: 10px; }
  .mc-m__type .mc-label { display: inline-flex; align-items: center; gap: 2px; }
}
/* «переслано: …» under the author (element-map §2.3, v63 правка 69) */
.w-fwd { display: flex; align-items: center; gap: 2px; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--ink-2); }
/* М-12: the work card on the phone */
@media (max-width: 767px) {
  .wc-m { display: flex; flex-direction: column; gap: 12px; }
  .wc-m__badges { display: flex; flex-wrap: wrap; gap: 6px; }
  .wc-m__meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-2); }
  .wc-m .msection { display: flex; align-items: center; gap: 2px; }
  .wfile--m { height: 96px; }
  .wc-m__acts { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
}
.ink3 { color: var(--ink-3); }   /* «топик #N» without a title (element-map §2.3) */

/* ---------------------------------------------------------------- «Сотрудники» (Э-9, М-1 phone 3) */
.best-row { display: flex; gap: 16px; align-items: stretch; margin-bottom: 20px; }
.best { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.best--team { flex: 1.6 1 0; background: var(--beige); border-color: var(--beige); }
.best__scope { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.best__logo { height: 26px; display: flex; align-items: center; color: var(--ink); }
.best__name { font-size: 15px; font-weight: 500; color: var(--ink); }
.best__name--big { font-family: var(--font-display); font-size: 26px; line-height: 30px; font-weight: 400; }
.best__line { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink); }
.best__sum { font-size: 12px; color: var(--ink-2); }   /* З14-06: ink-2 in both themes, as Э-9 (#53565E) and Э-8.1 (#BBBDC1) */
.best__why { font-size: 13px; line-height: 19px; color: var(--ink); }
.best__places { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--ink-2); }
.best__place { display: inline-flex; align-items: center; gap: 8px; }
.best__next { font-size: 12px; color: var(--ink-3); }
.place { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 6px; font-size: 12px; font-weight: 500; color: var(--ink); border: 1px solid var(--line-2); }
.place--first { background: var(--ink); color: var(--surface); border-color: var(--ink); }
@media (max-width: 1279px) { .best-row { flex-wrap: wrap; } .best--team { flex-basis: 100%; } .best { flex-basis: calc(33.333% - 11px); } }
@media (max-width: 767px) { .kpi-row--thirds .kpi { flex: 1 1 calc(33.333% - 7px); } }

/* ---------------------------------------------------------------- «Контент» (Э-5, М-3 phone 2) */
.plan-bar { display: block; width: 100%; height: 10px; background: var(--line); }
.plan-bar > span { display: block; height: 100%; }
.tbl tr.tbl__grand td { background: var(--beige); font-weight: 500; font-size: 14px; }
.tbl tr.tbl__grand td:first-child { font-family: var(--font-display); font-size: 17px; font-weight: 400; }
.posts-tbl td { vertical-align: top; }
.plan-card .block-title__right { flex-wrap: nowrap; flex-shrink: 0; }
/* Э-5.1 */
.cplan { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.cplan__ok { display: inline-flex; width: 14px; color: var(--g-high); }
.cplan-tbl th, .cplan-tbl td { white-space: nowrap; }
/* ПЗ10-pz-04 (Э-5.1 v95): the weeks do not narrow (190), «Чат поддержки» 210 and pinned at the left, the table scrolls sideways
   inside the block, «За период» last */
.cplan-tbl { min-width: 100%; }
.cplan-tbl th:first-child, .cplan-tbl td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line-2); }
.cplan-tbl tr.tbl__grand td:first-child { background: var(--beige); }
/* ПЗ10-r-01: the pinned «Чат поддержки» above the weeks that scroll under it — its head over the heads of the weeks (2) */
.tbl-scroll > .cplan-tbl > thead th:first-child { z-index: 3; }
/* Э-5.2 */
.unit-g { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 22px; }
.unit-g__r { display: inline-flex; align-items: center; gap: 6px; }
.units-tbl td { vertical-align: top; }
.picker { border: 1px solid var(--ink); background: var(--surface); padding: 18px 20px; margin-bottom: 18px; }
.picker__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.picker__head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 400; }
.picker__head h3 .ink2 { font-family: var(--font-body); font-size: 13px; }
.picker__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.picker__foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; }
.picker--small { max-width: 560px; } .picker--small p { margin: 0; font-size: 13px; line-height: 1.5; }

/* ---------------------------------------------------------------- «Просмотры и охваты» (Э-6, Э-6.1, М-4) */
.reach-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.reach-bar--m { gap: 8px; }
.reach-tabs { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.reach-tabs .mtab { margin-right: 14px; }
a.mtab { text-decoration: none; }
.due-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; font-size: 13px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 0; cursor: pointer; text-decoration: none;
}
.due-chip:hover { color: var(--ink); }
.due-chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--on-soft); border-color: var(--accent-soft); }
.reach-why { font-size: 11px; line-height: 14px; color: var(--ink-3); margin-top: 2px; }
.reach-man { font-size: 11px; line-height: 14px; color: var(--ink-2); }
.reach-tbl td { vertical-align: top; }
.rp-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.rp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rp-unit { margin-top: 18px; padding: 16px; border: 1px solid var(--line-2); }
.rp-unit__head { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; font-size: 13px; }
.rp-new { margin-top: 18px; padding: 18px; border: 1px solid var(--line-2); }
.rp-new h3 { margin: 0 0 12px; font-size: 15px; font-weight: 500; }
.rp-new__foot { display: flex; gap: 10px; margin-top: 16px; }
.rp .kpi-row { margin-top: 4px; }
@media (max-width: 1279px) { .rp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .rp-grid, .rp-grid--4 { grid-template-columns: 1fr 1fr; }
  .rp-grid > .field:first-child, .rp-grid > .field:nth-child(2) { grid-column: span 2; }
  /* М-4 v83 (ПЭ-p-stub-05): «Дата» and «Reach» side by side; «Сохранить» / «Внести замер» at the bottom over the menu */
  .rp-grid--m > .field:first-child, .rp-grid--m > .field:nth-child(2) { grid-column: auto; }
  .rp-m, .rp-due { min-height: calc(100dvh - 56px - 64px - 40px); display: flex; flex-direction: column; }
  .rp-m [data-rp-measures] { flex-grow: 1; display: flex; flex-direction: column; gap: 10px; }
  .rp-m [data-rp-measures] > .btn--block, .rp-m [data-rp-measures] > .help-pair:last-child, .rp-due > .btn--block { margin-top: auto; }
  .rp-new { padding: 0; border: 0; margin-top: 0; }
  .rp-m__post { font-size: 13px; line-height: 19px; }
}

/* ---------------------------------------------------------------- tour of the first login (element-map §2.1 tour_step, М-13) */
.tour { display: flex; align-items: center; gap: 24px; padding: 16px 20px; background: var(--accent-soft); color: var(--on-soft); border-left: 3px solid var(--accent); }
.tour__caption { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 13px; font-weight: 500; }
.tour__text { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 19px; }
.tour__title { font-weight: 500; margin-bottom: 2px; }
.tour__acts { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn--tour { background: transparent; color: var(--on-soft); border: 1px solid var(--on-soft); }
.btn--tour:hover { color: var(--on-soft); }
.tour__skip { padding: 0; background: transparent; border: 0; color: var(--on-soft); font-size: 13px; text-decoration: underline; cursor: pointer; }
@media (max-width: 1279px) { .tour { flex-wrap: wrap; gap: 10px 20px; } .tour__text { flex-basis: 100%; order: 2; } .tour__acts { order: 3; } }
@media (max-width: 767px) {
  .tour--m { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 25; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; padding: 14px 16px; }
  .tour--m .tour__text { order: 0; }
  .tour--m .tour__acts { order: 0; }
  .sheet .tour--m { position: static; flex-shrink: 0; margin: 0 -16px 12px; }
  .has-tour .content { padding-bottom: 260px; }
}

/* «Ждут появления» by nick (Э-2.1, М-11 v74, правка 29.09 · 100): the plaques of all sources in a row,
   the count «N мастеров · M записей» with its «?» */
.badges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.m-count { display: flex; align-items: center; gap: 2px; }
.m-count--phone { font-size: 13px; color: var(--ink-2); }

/* Э-1.3 «День принят и заморожен» with its buttons, «Подтверждение пересчёта», «Итог пересчёта» (ФП-p1-17) */
.rc-frozen { display: flex; flex-direction: column; gap: 12px; }
.rc-frozen__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.rc-confirm { padding: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.rc-confirm__title { font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.rc-confirm__body { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.rc-confirm__acts { display: flex; justify-content: flex-end; gap: 10px; }
[data-recalc-slot]:empty { display: none; }
.cf-confirm { margin-bottom: 12px; }

/* Э-9 «Только свои показатели» (v76): «ещё N технологов скрыто» under the own row */
.own-hidden { margin-top: 12px; font-size: 13px; color: var(--ink-2); }

/* ФП-p2-25 (Т.4, 900–1600): a plaque or a chat chip in a table cell never leaves the cell — it wraps inside it
   («автор рецепта из текста поста», «Marjinal МСК + СПб», «уже в единице «…»») */
.tbl td .badge { white-space: normal; height: auto; min-height: 22px; padding-top: 4px; padding-bottom: 4px; line-height: 1.25; max-width: 100%; }
.tbl td .brand-chip { white-space: normal; align-items: flex-start; max-width: 100%; }
.tbl td .brand-chip .sq { margin-top: 4px; }
/* the form of a publication on a phone: the long «Рецепты · Erayba МСК + СПб» of the topic list must not widen the grid (ФП-p2-31) */
.rp-grid > * { min-width: 0; }
.rp-form select { max-width: 100%; }
/* several copies of a channel post (B copies[], 30.09): the one to track is chosen under the link */
.rp-copies { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.rp-copies__list { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-copies__list .segmented__btn { border: 1px solid var(--line-2); }

/* «Ждут появления» (v82): search, «Ничего не нашлось», the actions of a manual row, the locked nick, the delete box */
.pd-search { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pd-search .search-box { width: 290px; max-width: 100%; }
.pd-search--phone .search-box { width: 100%; }
.pd-search--phone .search-box input { height: 44px; }
.pd-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px; border: 1px dashed var(--line); color: var(--ink-3); }
.pd-empty span { font-size: 15px; color: var(--ink); }
.pd-locked { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.pd-locked .ico { color: var(--ink-3); }
.pd-mcard-acts { display: flex; justify-content: flex-end; }
.pd-mcard-acts .row-acts { gap: 20px; }
.pd-confirm { width: 460px; max-width: 100%; padding: 24px; gap: 14px; margin-bottom: 12px; }
.pd-confirm .rc-confirm__title { font-size: 20px; }
.pd-confirm--phone { width: auto; padding: 16px; }
.pd-confirm--phone .rc-confirm__title { font-size: 19px; }
.pd-form--phone { display: flex; flex-direction: column; gap: 12px; }
.pd-form--phone .ma-grid { grid-template-columns: 1fr; }

/* Э-2.1 v83 (п.127, 128): 21 columns scroll sideways; the tick and the pencil of the profile share the first cell */
.members-tbl { min-width: 2898px; }
.m-rowacts { display: inline-flex; align-items: center; gap: 12px; }
/* Э-2.2 v83 (п.132): «Профиль мастера» in rows of four 215 px fields; grey ones are counted by the panel */
.mc-grid--215 > .field { width: 215px; }
.field__input--ro { display: flex; align-items: center; height: 40px; background: var(--surface-2); border-color: var(--line); color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* a read-only value that wraps instead of being cut: «Цикл жизни», «Комментарий правки» (ПС-ui-aud-06, ПС-ui-req-01) */
.field__input--ro.field__input--wrap { height: auto; min-height: 40px; white-space: normal; line-height: 1.4; padding-top: 9px; padding-bottom: 9px; }
.mc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mc-pair > .field { width: auto !important; min-width: 0; }
/* Э-5.2 v83 (п.149): the name of the unit over the filters; a chosen post — beige */
.pk-name { width: 420px; margin-bottom: 14px; }
.picker tr[aria-selected="true"] > td { background: var(--beige); }
/* Э-9 v83 (п.151): the row of groups over the rating — «Запросы», «Отзывы», «Кружки» */
.staff-tbl { min-width: 2256px; }
.staff-tbl .staff-groups th { position: static; font-size: 13px; font-weight: 500; text-align: center; color: var(--ink); border-bottom: 2px solid var(--ink); border-left: 1px solid var(--line-2); }
.staff-tbl .staff-groups th.staff-group--none { border: 0; }
/* Э-6.1 v83 (п.150): the week and the month measure under the publication */
.rp-measure__title { margin: 18px 0 10px; font-size: 15px; font-weight: 500; }
.rp-grid--m { grid-template-columns: 1fr 1fr; }
/* Э-9 v85 (п.151, Г-7): the scale of the feedback kind — 64 px in the brand colour, the number on the right */
.kscale { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.kscale__bar { display: block; width: 64px; height: 10px; background: var(--line); border: 1px solid var(--line-2); box-sizing: border-box; }
.kscale__bar > span { display: block; height: 100%; }
.kscale__n { min-width: 14px; }
/* ПЭ-p-req-02, -06 (приёмка этапа 1): the «Мастер» block of the request card, the green «целевой» as text */
.ok-ink { color: var(--ok-mark); }
.rc-who { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.rc-who + .rc-who { margin-top: 14px; }
/* М-11 v83 (п.128, ПЭ-p-aud-12): the pencil of the profile in the corner of the master's card-row */
.mcard-box { position: relative; }
.mcard-box--edit .mcard__top { padding-right: 40px; }
.mcard-edit { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
/* Э-6 v83 (ПЭ-p-stub-03): a closed unit — «›», an open one — «⌄» */
.unit-row [data-r-open][aria-expanded="false"] .ico { transform: rotate(-90deg); }
/* Э-9 (п.159, пакет 09.10): «Ответственный технолог» stays on the left while the rating scrolls sideways */
.staff-tbl > tbody > tr > td:first-child,
.staff-tbl > thead > tr > th:first-child { position: sticky; left: 0; background: var(--surface); box-shadow: 1px 0 0 var(--line-2); }
.staff-tbl > thead > tr.staff-groups > th:first-child { z-index: 3; }
.staff-tbl > tbody > tr > td:first-child { z-index: 1; }
.staff-tbl > thead > tr:not(.staff-groups) > th:first-child { z-index: 3; }
/* ---------------------------------------------------------------- «Доп. предложение» (п.171): Э-10, Э-11 demo pages */
.nav__group { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding: 12px 16px 6px 19px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.offer-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.offer-bar__break { flex-basis: 100%; height: 0; }
/* the filters of a demo page look inactive, as the disabled «Скачать архивом» (приёмка 09.10, п.17) */
.fchip--off { display: flex; align-items: center; gap: 6px; flex-shrink: 0; height: 38px; padding: 0 10px 0 12px; border: 1px solid var(--disabled); background: var(--disabled); color: var(--on-btn); max-width: 100%; cursor: default; }
.fchip--off .fchip__label { color: var(--on-btn); }
.fchip--off .fchip__value { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--on-btn); }
.offer .segmented[aria-disabled] .segmented__box { background: var(--disabled); border-color: var(--disabled); }
.offer .segmented[aria-disabled] .segmented__btn { color: var(--on-btn); border-right-color: var(--disabled); cursor: default; }
.offer .segmented[aria-disabled] .segmented__btn[aria-pressed="true"] { background: var(--disabled); }
.offer-kpis { flex-wrap: wrap; }
.arch-sel { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: var(--beige); margin-bottom: 16px; }
.arch-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.arch-tile { width: 168px; box-sizing: border-box; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.arch-tile--on { border: 2px solid var(--accent); }
.arch-tile__top { position: relative; }
.arch-tile__prev { height: 132px; display: flex; align-items: center; justify-content: center; background: var(--beige); color: var(--ink-3); position: relative; }
.arch-tile__prev--circle { background: var(--surface-2); }
.arch-tile__round { width: 104px; height: 104px; border-radius: 50%; background: var(--beige); display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.arch-tile__dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; background: var(--ink); color: var(--surface); font-size: 11px; }
.arch-tile__check { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: var(--surface); border: 1px solid var(--line-2); color: var(--on-btn); }
.arch-tile--on .arch-tile__check { background: var(--accent); border-color: var(--accent); }
.arch-tile__kind { position: absolute; right: 8px; top: 8px; padding: 2px 6px; background: var(--surface); color: var(--ink-2); font-size: 11px; font-weight: 500; }
.arch-tile__body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.arch-tile__cap { font-size: 13px; line-height: 1.35; height: 36px; overflow: hidden; }
.arch-tile__meta { font-size: 11px; color: var(--ink-3); }
@media (max-width: 767px) {
  .offer-bar { padding: 12px 16px; }
  .fchip--off { width: 100% !important; }
  .offer .segmented { flex-wrap: wrap; }
  .offer .segmented__box { flex-wrap: wrap; }
  .arch-tile { width: calc(50% - 8px); }
}
/* the 64 px tablet menu: the group heading turns into a thin line */
@media (max-width: 1279px) and (min-width: 768px) { .nav__group { padding: 0; height: 0; overflow: hidden; } }
.nav__badge { margin-left: auto; display: inline-flex; }
@media (max-width: 1279px) and (min-width: 768px) { .nav__badge { display: none; } }
/* п.166 (09.10): «Новый мастер» and «Правка мастера» — all the fields of the card in rows of four; «Тип и Статус» — two lists */
.ma-grid--4 { grid-template-columns: repeat(4, 258px); }
.ma-grid--4 .ma-wide { grid-column: 1 / -1; }
.ma-pair { display: flex; gap: 6px; }
.ma-pair > .select { flex: 1 1 0; min-width: 0; }
.ma-computed { color: var(--ink-3); }
.ma-foot { margin-top: 14px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 1279px) { .ma-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .ma-grid--4 { grid-template-columns: 1fr; } .ma-grid--4.ma-grid--m2 { grid-template-columns: 1fr 1fr; } .ma-grid--m2 .ma-pair .select select { padding: 0 22px 0 10px; } .ma-grid--m2 .ma-pair .select .ico { right: 4px; }
  /* «Без типа · Без статуса» do not fit half of 375 (ПК2-ui-03): «Тип и Статус» takes the whole row, the order stays */
  .ma-grid--m2 .field:has(> .ma-pair--ts) { grid-column: 1 / -1; } }
/* п.171а: the map of Russia as the user's reference — beige ground, white borders, the legend in one line */
.ru-map-card { padding: 0; overflow: hidden; }
.ru-map__box { background: var(--beige); padding: 28px 32px 22px; }
.ru-map { display: block; width: 100%; height: auto; }
.ru-map path { stroke: var(--surface); stroke-width: 0.8; stroke-linejoin: round; }
.ru-map path:hover { stroke: var(--ink); stroke-width: 1.5; }
.ru-map__legend { display: flex; align-items: center; gap: 24px; margin-top: 18px; flex-wrap: nowrap; }
.ru-map__key { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.ru-map__sq { width: 22px; height: 22px; flex-shrink: 0; }
@media (max-width: 767px) { .ru-map__box { padding: 14px 12px 14px; } .ru-map__legend { gap: 16px; } .ru-map__key { font-size: 13px; } .ru-map__sq { width: 18px; height: 18px; } }
/* a menu item with the «на согласовании» badge: the name keeps its width, the badge takes the rest */
.nav__item:has(.nav__badge) { gap: 8px; padding-right: 10px; }
.nav__item:has(.nav__badge) .nav__label { flex-shrink: 0; }
/* ---------------------------------------------------------------- З-4 (22.10): a planned publication, a link without a forward yet */
.rp-planned { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; white-space: nowrap; }
.mcard__top .rp-planned { margin-top: 0; }
.rp-planned-row { margin-top: 6px; }
.rp-notfound { margin-top: 8px; }
/* ---------------------------------------------------------------- З-2 (22.10): the manual status of a request */
.ssel { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; width: 136px; height: 30px; padding: 0 6px 0 10px; background: var(--surface); border: 1px solid var(--line-2); font-size: 12px; text-align: left; cursor: pointer; }
.ssel .ico { color: var(--ink-2); flex-shrink: 0; }
.ssel--wide { width: 200px; height: 40px; font-size: 14px; }
.dlg-layer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dlg { width: 520px; max-width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; box-sizing: border-box; padding: 24px; background: var(--surface); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 14px; }
.dlg--confirm { width: 460px; }
.dlg-layer--anchored { display: block; }
.dlg-layer--anchored .dlg { position: fixed; }
.dlg__title { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 400; color: var(--ink); }
.dlg__sub { margin-top: -8px; font-size: 13px; color: var(--ink-2); }
.dlg__body { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.dlg__err:empty { display: none; }
.dlg__acts { display: flex; align-items: center; gap: 10px; }
.dlg__main { display: flex; gap: 10px; }
.sradios { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sradio { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.sradio__dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); flex-shrink: 0; box-sizing: border-box; }
.sradio input:checked + .sradio__dot { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 4px, var(--surface) 4.5px); }
.sradio input:focus-visible + .sradio__dot { outline: 2px solid var(--accent); outline-offset: 2px; }
.rc-status { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.rc-status__by { padding-bottom: 11px; font-size: 13px; color: var(--ink-2); }   /* right after the list (ПС-ui-req-01) */
.rc-status__comment { margin-top: 14px; }
.rc-status--phone { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.rc-status--phone .ssel--wide { width: 100%; height: 44px; }   /* a finger's zone (taps, E0-08) */
.rc-status--phone .rc-status__comment { margin-top: 8px; }
@media (max-width: 767px) { .dlg-layer { align-items: flex-end; padding: 0; } .dlg { width: 100%; max-height: 90vh; } .dlg__acts { flex-wrap: wrap; } .dlg .btn { height: 44px; } .sradio { min-height: 44px; } .dlg__acts .grow { display: none; } .dlg__main { width: 100%; } .dlg__main .btn { flex: 1 1 0; justify-content: center; } }
/* З-3: the plane «Открыть в Telegram» beside a name */
.tg-act { vertical-align: middle; }
/* ---------------------------------------------------------------- З-5 (22.10): «Сводка» of seven blocks, Э-3 v92.1 */
.sblocks { display: flex; flex-direction: column; gap: 16px; }
.sblocks__row { display: flex; gap: 16px; align-items: stretch; }
.sblocks__row > .sblock { flex: 1 1 0; }
.sblock { min-width: 0; box-sizing: border-box; padding: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.sblock__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
/* ПЗ10-mn-01 (A v95): the line of the title is 22 px — line-height normal at 18 px, as on Э-3 and Э-8.1 */
.sblock__title { margin: 0; display: inline-flex; align-items: center; gap: 2px; font-size: 18px; font-weight: 500; line-height: normal; color: var(--ink); }
.sblock__total { font-size: 13px; color: var(--ink-2); }
.sblock__total b { font-weight: 500; color: var(--ink); }
.sblock__stack { display: flex; flex-direction: column; gap: 14px; }
.sblock__line { display: flex; align-items: flex-end; gap: 24px; }
.stiles { display: flex; flex-wrap: wrap; gap: 10px; }
.stile { width: 156px; box-sizing: border-box; min-width: 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.stile__label { display: flex; align-items: flex-start; gap: 2px; font-size: 11px; font-weight: 500; line-height: 1.3; color: var(--ink-2); }
.stile__value { font-family: var(--font-display); font-size: 24px; line-height: 1; white-space: nowrap; color: var(--ink); }
.stile__value.green { color: var(--g-high); }
.stile__value.red { color: var(--g-low); }
.stile__sub { font-size: 11px; line-height: 1.3; color: var(--ink-3); }
.stile--sl { width: 256px; gap: 6px; }
.stile--sl > .stile__label { align-items: center; font-size: 12px; }
.sgroup { display: flex; flex-direction: column; gap: 8px; }
.sgroup__head { display: flex; align-items: center; gap: 8px; }
.sgroup__title { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; line-height: normal; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.sl-rows { display: flex; flex-direction: column; gap: 6px; }
/* ПУ-05: rows of the board height (12 px, line-height normal — 14 px), «SL-общее» 256 × 140 */
.sl-row { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: normal; }
.sl-row__name { flex-grow: 1; min-width: 0; }
.sl-row__num { font-weight: 500; }
.bychat-tbl .bychat-groups th { position: static; font-size: 13px; font-weight: 500; text-align: center; color: var(--ink); border-bottom: 2px solid var(--ink); border-left: 1px solid var(--line-2); }
.bychat-tbl .bychat-groups th.bychat-group--first { border: 0; }
.bychat-tbl > thead > tr > th:first-child, .bychat-tbl > tbody > tr > td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line-2); }
/* the pinned «Чат поддержки» of the head over the heads of the columns scrolled under it (2) — both rows of the head */
.tbl-scroll > .bychat-tbl > thead th:first-child { z-index: 3; }
.bychat-tbl > tbody > tr.tbl__total > td { background: var(--beige); }
@media (max-width: 1279px) { .sblocks__row { flex-wrap: wrap; } .sblocks__row > .sblock { flex-basis: 40%; } .sblock__line { flex-wrap: wrap; } }
@media (max-width: 767px) {
  .sblocks, .sblocks__row { flex-direction: column; align-items: stretch; gap: 8px; }
  .sblocks__row > .sblock { flex-basis: auto; }
  .sblock { padding: 12px; gap: 10px; }
  .sblock__title { font-size: 16px; }
  .sblock__stack { gap: 10px; }
  .sblock__line { flex-direction: column; align-items: stretch; gap: 10px; }
  .stiles { gap: 8px; }
  .stile { width: auto; flex: 0 0 calc(50% - 4px); }
  .stile--sl { flex: 1 0 100%; }
  .stile--sl > .stile__label { font-size: 11px; }
}
/* ПС-ui-aud-08: the closed measure of a future date — a field with «откроется …», grey text, no input */
.rp-closed { display: flex; align-items: center; height: 40px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-3); font-size: 14px; }

/* З-10, ПЗ-6 (Э-3.1 «Выбор строк», v96): row selection — the check box first in the row, the selected row beige, the bar */
.rsel { gap: 0; }
.rsel--m { position: absolute; left: 0; top: 0; width: 44px; height: 44px; justify-content: center; z-index: 1; }
.rsel--m .checkbox__mark { width: 20px; height: 20px; }
/* the box, 12 px, then the icons 18 px through 8 — the columns 72 / 96 / 148 of the boards hold them */
.row-acts--sel { display: inline-flex; align-items: center; gap: 8px; }
.row-acts--sel > .rsel { margin-right: 4px; }
.row-acts--sel .icon-act { width: 18px; }
.row-acts--sel > .checkbox { margin-right: 4px; }   /* «Лента работ»: the check box of the merge, 12 to the plane (ПЗ-8) */
.row-acts__none { display: inline-block; flex-shrink: 0; width: 18px; height: 18px; }   /* a unit with no link: the place of its plane */
.mcard__lead { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }   /* ПЗ-8: the plane before the date of a card */
.mcard__lead .icon-act { width: 18px; height: 18px; }
.tbl tr.is-sel > td { background: var(--beige); border-bottom-color: var(--beige); }
/* the links of the accent colour (t.me/…) go accent-strong; the name in «Мастера» (a.plain) stays the colour of the text (ПЗ6-04) */
.tbl tr.is-sel a:not(.icon-act):not(.btn):not(.plain) { color: var(--accent-strong); }
/* dark: red on #343539 is 3,6:1 — the word light, its colour in an 8 px square (A9, as in badge()) */
:root[data-theme="dark"] :is(.tbl tr.is-sel, .mcard-box.is-sel) .red { color: var(--ink); }
:root[data-theme="dark"] :is(.tbl tr.is-sel, .mcard-box.is-sel) .red::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--g-low-f); vertical-align: 1px; }
.mcard-box--sel > .mcard .mcard__top { padding-left: 32px; }
.mcard-box--sel.is-sel > .mcard { background: var(--beige); }
/* A v96.1, ПЗ6-05 — only inside a selected row or card: a badge takes the surface (its own fill equals the beige), both
   themes; in the dark theme (#343539) the grey goes ink-2 (ink-3 is 4,4), grades and the red word the ink with their square */
:is(.tbl tr.is-sel, .mcard-box.is-sel) .badge { background: var(--surface); }
:root[data-theme="dark"] :is(.tbl tr.is-sel, .mcard-box.is-sel) { --ink-3: var(--ink-2); --g-dash: var(--ink-2); --g-dash-grade: var(--ink-2); }
:root[data-theme="dark"] :is(.tbl tr.is-sel, .mcard-box.is-sel) [class*="grade-chip--"] { color: var(--ink); }
/* «SL точечно» draws its grades as bare coloured words: on the dark selected row the word goes ink, its colour into a square —
   the square and its word keep together, lines break only between the grades (ПЗ6-07) */
:root[data-theme="dark"] :is(.tbl tr.is-sel, .mcard-box.is-sel) [class*="grade-chip--"]:not(.grade-chip) { white-space: nowrap; }
:root[data-theme="dark"] :is(.tbl tr.is-sel, .mcard-box.is-sel) [class*="grade-chip--"]:not(.grade-chip)::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: 1px; background: var(--g-dash-grade); }
:root[data-theme="dark"] :is(.tbl tr.is-sel, .mcard-box.is-sel) .grade-chip--g-high:not(.grade-chip)::before { background: var(--g-high-f); }
:root[data-theme="dark"] :is(.tbl tr.is-sel, .mcard-box.is-sel) .grade-chip--g-mid:not(.grade-chip)::before { background: var(--g-mid-f); }
:root[data-theme="dark"] :is(.tbl tr.is-sel, .mcard-box.is-sel) .grade-chip--g-ok:not(.grade-chip)::before { background: var(--g-ok-f); }
:root[data-theme="dark"] :is(.tbl tr.is-sel, .mcard-box.is-sel) .grade-chip--g-low:not(.grade-chip)::before { background: var(--g-low-f); }
:root[data-theme="dark"] :is(.tbl tr.is-sel, .mcard-box.is-sel) .grade-chip--g-out:not(.grade-chip)::before { background: repeating-linear-gradient(135deg, var(--g-high-f) 0 3px, var(--surface) 3px 5px); }
/* the bar (A v96.1, ПЗ6-02): 840 wide and more — one row of 56, the message at the right shrinks and wraps inside itself;
   narrower — the message in a second row over the whole width; the threshold is the width of the bar, not of the screen */
[data-sel-bar] { container: selbar / inline-size; }
.sel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; box-sizing: border-box; margin-bottom: 14px; padding: 10px 14px; background: var(--beige); border: 1px solid var(--line-2); }
.sel-bar > :not(.sel-bar__msg):not(.grow) { flex-shrink: 0; }
.sel-bar__n { font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.sel-bar__msg { display: flex; min-width: 0; }
.sel-bar:not(.sel-bar--m) > .sel-bar__msg { flex: 1 0 100%; }
.sel-bar__msg .note { flex: 1 1 auto; min-width: 0; min-height: 28px; box-sizing: border-box; align-items: center; gap: 8px; padding: 4px 12px 4px 9px; font-size: 12px; line-height: 15px; }
.sel-bar__msg .note__ico { display: inline-flex; }
.sel-bar__msg .note__ico .ico { width: 14px; height: 14px; }
.sel-bar__msg .note--ok { white-space: nowrap; }
@container selbar (min-width: 840px) {
  .sel-bar:not(.sel-bar--m) { flex-wrap: nowrap; height: 56px; padding: 0 14px; }
  .sel-bar:not(.sel-bar--m) > .sel-bar__msg { flex: 0 1 auto; }
}
/* the phone: «Выбрано» and «успех» in the first row, the buttons in the second, «ошибка» in a third */
.sel-bar--m { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; padding: 10px 12px; margin-bottom: 8px; }
.sel-bar__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.sel-bar__acts { display: flex; gap: 8px; }
.sel-bar__acts > * { flex: 1 1 0; min-width: 0; }
.sel-bar--m .btn { height: 40px; }
.sel-offscreen { position: fixed; left: -100000px; top: 0; width: 2000px; }

/* З-12 п. 2: plaques of big exports (Э-1.3, Э-8.1, М-1/М-6 screen 5) — over the screen of the section, under the title
   and tabs; on the phone under the header, before the filter button. Newest on top. */
.xjobs { display: flex; flex-direction: column; gap: 10px; }
.xjobs:empty { display: none; }
.section-desktop { order: -1; }
.xjob { align-items: center; padding-top: 10px; padding-bottom: 10px; }
.xjob .note__ico { display: inline-flex; margin-top: 0; }
.xjob__text { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
.xjob__text > span:first-child { flex: 1 1 auto; min-width: 0; }
.xjob__x {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: -4px -6px 0 0; padding: 0;
  background: transparent; border: 0; color: var(--ink-2); flex-shrink: 0; cursor: pointer;
}
.xjob__x > span { display: inline-flex; transform: rotate(45deg); }
@media (max-width: 767px) {
  .xjobs { gap: 8px; }
  .xjob { align-items: flex-start; }
  .xjob__text { display: block; }
  .xjob__act { display: flex; margin-top: 10px; }
}

/* З-12 п. 15: «Градации скорости» on the phone (М-1/М-6 screen 2г) — a card after the seventh block, before «Детализация ›» */
.grades-m { background: var(--surface); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.grades-m__title { margin: 0; display: flex; align-items: center; gap: 2px; font-family: var(--font-display); font-size: 17px; font-weight: 400; line-height: normal; color: var(--ink); }
.grades-m__sub { font-size: 12px; line-height: normal; color: var(--ink-3); }
.grade-m { display: flex; flex-direction: column; gap: 5px; }
.grade-m__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; line-height: normal; color: var(--ink); }
.grade-m__name { display: inline-flex; align-items: center; gap: 8px; }
.grade-m__num { font-weight: 500; white-space: nowrap; }
.grade-m__num .muted { font-weight: 400; }
.grade-m__bar { display: block; height: 8px; background: var(--line); }
.grade-m__bar > span { display: block; height: 100%; }

/* З-12 п. 8: «текст изменён после обработки» — over «AI запрос» (Э-3.1), in the phone card of the list (М-2 screen 1),
   at «Запрос» of the card (Э-3.3; phone М-2 screen 2в — on the right of the heading) */
.edited-tag { margin-bottom: 6px; }
.edited-tag--card { margin: -4px 0 10px 0; }
.tbl td .edited-tag .badge { white-space: nowrap; height: 22px; padding-top: 0; padding-bottom: 0; line-height: normal; }
.msection-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; }
.msection-row .msection { margin-top: 0; }

/* З-12 п. 9: «Новая единица» on the phone (М-3/М-8 screen 5) — the fields over the cards, «Создать · N» fixed at the bottom
   over the menu */
.unew { display: flex; flex-direction: column; gap: 8px; padding-bottom: 24px; }
.unew__chips { display: flex; gap: 10px; }
.unew__chips > * { flex: 0 0 calc((100% - 10px) / 2); min-width: 0; }   /* two equal chips, as М-3 screen 5 (172 each) */
.unew__q { width: 100%; }
.unew .mcards { display: flex; flex-direction: column; gap: 8px; }
.unew__lock { position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); }
.unew__when { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.unew__when .icon-act { width: 16px; height: 16px; }
.unew__taken { margin-top: 6px; }
.unew__taken .badge { height: auto; padding: 3px 8px; line-height: 1.35; white-space: normal; }
.unew__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.unew__bar .btn { height: 48px; font-size: 15px; }
.unew .popover--dates { left: auto; right: 0; }   /* «Даты» is the right chip: the calendar opens leftwards, inside the screen */
/* narrower than the board (375): «Даты» keeps its value whole, «Чат поддержки» takes the rest */
@media (max-width: 389px) { .unew__chips > .fchip--dates { flex: 0 0 auto; } .unew__chips > .fchip:first-child { flex: 1 1 0; } }
/* З12-ui-04: a window brought into view on the phone (the confirmation of «Открепить», the picker) stops below the sticky header */
@media (max-width: 767px) { [data-slot="picker"] { scroll-margin-top: 68px; scroll-margin-bottom: 76px; } }

/* З-14 баг 5 (Э-9 v97): «Тоже первое место» / «Второе место» under the best — in a brand card under a line, in a chat row in the cell */
.best__ext { display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.4; color: var(--ink-2); font-weight: 400; }
.best__ext--card { padding-top: 8px; border-top: 1px solid var(--line); }
.best__ext--cell { margin-top: 4px; }

/* З-15: «По направлениям» (Э-5: a card 620 under the tiles, the line about both directions under the table; М-3 screen 2) */
.dir-card { width: 620px; max-width: 100%; box-sizing: border-box; }
.dir-card__both { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.dir-card .tbl tr.tbl__total > td { background: var(--beige); }
.msection-sub { font-size: 12px; color: var(--ink-3); margin-top: -4px; }
.mrow__muted { font-weight: 400; color: var(--ink-3); }
.dir-card .tbl td:first-child, .dir-tbl td:first-child { text-align: center; }   /* the names centred, as on Э-5 and Э-6 */
/* З-15 (Э-5.2, М-3 screen 4): the directions of a unit under its title; a copy from the channel of the other circuit — at its group */
.unit-dirs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.unit-auto { margin-top: 6px; }
.unit-auto .badge { height: auto; padding: 3px 8px; line-height: 1.35; white-space: normal; }
.unit-g__l { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
/* З14-03: the lines under the best of «Вся команда» in the dark theme — ink-2, the ink-3 on the dark beige gave 4,40 < 4,5 (A9) */
:root[data-theme="dark"] .best--team .best__next { color: var(--ink-2); }
