/* Визуальная чистка (аудит 28.09.2026): мелкие несоответствия по всем разделам.
   Подключается последним, поэтому перекрывает общие стили кнопок, полей и чипов
   там, где они протекали в элементы, которым не предназначались. */

/* ---------- Боковое меню: «Закреплено» и «Недавнее» ---------- */
.today-side .pusk-side-marks a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.today-side .pusk-side-marks b {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* метка «дело / клиент / договор» — тихая подпись, не бейдж-счётчик */
.today-side .pusk-side-marks em.kind {
  flex: none;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--text-tertiary, #8a8580) !important;
  font-size: 11px !important;
  font-style: normal;
  font-weight: 400 !important;
}
.today-side .pusk-side-clear {
  margin: 2px 0 0;
  padding: 0 10px;
  text-align: right;
}
.today-side .pusk-side-clear button {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--text-tertiary, #8a8580) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}
.today-side .pusk-side-clear button:hover {
  color: var(--text-accent, #1f7a70) !important;
  text-decoration: underline;
}

/* ---------- Телефон: список .ios ровно по ширине экрана ---------- */
@media (max-width: 760px) {
  /* ios.css рассчитан на поле 16px, а у main.with-side оно 14px, у pusk-main — 0:
     блок уезжал влево и оставлял пустую полосу справа */
  main.with-side > .ios {
    width: auto !important;
    max-width: none !important;
    margin: 0 -14px !important;
    align-self: stretch !important;
  }
  main.pusk-main .ios,
  .pusk-main-pane .ios {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

/* ---------- Телефон, «Сегодня»: нижняя панель разделов ---------- */
@media (max-width: 860px) {
  body.pusk-mobile-today.pusk-today-page > nav.tabbar { display: flex !important; }
  body.pusk-mobile-today main.pusk-main { padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- Узкое окно (≤768px) без мобильной вёрстки: меню выезжает ---------- */
/* pusk-shell.css держит меню в сетке (sticky !important), и оно отнимало ширину у
   контента — колонка сжималась до 130px, слова рвались по буквам */
@media (max-width: 768px) {
  body.pusk-today-shell .today-side {
    position: fixed !important;
    left: 0 !important;
    width: min(280px, 88vw) !important;
    max-width: 280px !important;
    height: 100vh;
  }
  body.pusk-today-shell .today-desktop {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ---------- Кнопка и поле в одной строке — одной высоты ---------- */
/* В разделах на pusk-system поле 36px (min-height, height:auto), а кнопка
   оставалась 38px из style.css — торчала над полями на 2px */
body.pusk-system.pusk-generic .pusk-generic-pane
  :is(button, a.button, input[type=submit], input[type=button]):not(.mini):not(.del):not(.link-btn):not(.row-plus):not(.calm-add):not(.tickbox) {
  height: auto;
}

/* ---------- Фильтр в шапке колонки: подсказка «фильтр» не обрезается ---------- */
input.tfilter-box {
  height: 26px !important;
  min-height: 0 !important;
  padding: 2px 6px !important;
  font-size: 12px !important;
  line-height: 20px !important;
}

/* ---------- Свёрнутый <details>: заголовок по центру, без лишнего отступа снизу ---------- */
details:not([open]) > summary {
  margin-bottom: 0 !important;
}

/* ---------- Чип-ссылка со своим значком («↓ Выгрузить») без второй точки ---------- */
a.tag::before {
  display: none !important;
}

/* ---------- Кнопка сворачивания разделов нужна только на телефоне ---------- */
@media (min-width: 951px) {
  .sec-toggle { display: none !important; }
}

/* ---------- Значки-кнопки в сетках и строках: без плашки кнопки ---------- */
/* «+» в дне календаря и в строках таблиц получали height 38 / тень из общего стиля */
button.calm-add {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 3px !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}
button.row-plus {
  display: inline-grid !important;
  place-items: center;
  width: 22px !important;
  height: 22px !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  vertical-align: middle;
}

/* ---------- Чекбоксы — фирменного цвета, а не системного синего ---------- */
input[type=checkbox], input[type=radio] {
  accent-color: var(--bg-accent, #1f7a70);
}

/* ---------- «Сегодня»: строка задачи ---------- */
/* дата стояла на 4px выше названия и значков ★ ⋯ ✕: у неё свой line-height 15px,
   у названия — 18px с отступом 2px */
.feed.tasks li.trow .thead > .due {
  margin-top: 2px;
  line-height: 18.2px;
}
/* ★ ⋯ ✕ — одинаковые квадраты 22px, значок по центру; дата отделена от них
   тем же шагом, что и значки между собой */
.feed.tasks li.trow .trow-acts {
  gap: 4px;
  margin-left: 4px;
}
.feed.tasks li.trow .trow-acts form {
  display: flex;
  margin: 0;
}
.feed.tasks li.trow .trow-acts :is(button.favorite, button.more, button.del, button.read) {
  display: inline-grid !important;
  place-items: center;
  width: 22px !important;
  height: 22px !important;
  min-height: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.feed.tasks li.trow .trow-acts button.favorite { font-size: 15px !important; }
.feed.tasks li.trow .trow-acts button.more { font-size: 20px !important; font-weight: 700 !important; letter-spacing: -1px; }
.feed.tasks li.trow .trow-acts button.del { font-size: 13px !important; }
/* галочка «выполнено» — квадрат и у закреплённых задач (там растягивалась до 20×38) */
.feed.tasks li.trow form.tick {
  align-self: start;
}
.feed.tasks li.trow .tickbox {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  margin-top: 0 !important;
}
/* подпись у «Закреплённых» не обрезается многоточием */
.today-pinned-head small {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 12px !important;
}

/* ---------- «Сегодня»: расписание дня ---------- */
/* подпись часа — на одной линии с «Свободно» */
.pusk-slot time { padding-top: 3px !important; }
/* метка текущего времени — ровно по красной линии и с обводкой, когда ложится на подпись часа */
.pusk-now-line em {
  top: -9px !important;
  line-height: 14px !important;
  box-shadow: 0 0 0 3px var(--bg-surface, #fff);
}

/* ---------- Значки участия (идём / отслеживаем / в архив) — компактнее ---------- */
.pusk-attend { gap: 2px !important; }
.pusk-attend .pusk-attend-btn {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  padding: 0 !important;
  border-radius: 5px !important;
}
.pusk-attend .pusk-attend-btn svg {
  width: 12px !important;
  height: 12px !important;
}

/* ---------- «Не идём» — название заседания зачёркнуто во всех календарях ---------- */
.pusk-ws-event.is-skipped .pusk-ws-event-title,
.pusk-schedule-card.is-skipped .pusk-schedule-title,
.pusk-ahead-event.is-skipped .pusk-ahead-event-title,
.pusk-mob-event.is-skipped :is(b, strong, .pusk-mob-event-title),
.calm-ev.skipped .calm-ttl,
.cals-ev.skipped .cals-ttl {
  text-decoration: line-through !important;
  text-decoration-thickness: 1.5px !important;
  text-decoration-color: currentColor !important;
}

/* ---------- Телефон: карточка дела в одну колонку ---------- */
@media (max-width: 760px) {
  body.pusk-today-shell .pusk-case-hearing-hero,
  body.pusk-today-shell .pusk-case-overview-layout,
  body.pusk-today-shell .pusk-case-top-row,
  body.pusk-today-shell .pusk-case-overview-mini {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.pusk-today-shell .pusk-case-tab {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  body.pusk-today-shell .pusk-case-dossier-actions {
    flex-wrap: wrap;
  }
}

/* ---------- Боковое меню: полоса прокрутки не отнимает ширину у пунктов ---------- */
/* с блоком «Недавнее» меню выше экрана, системная полоса 16px обрезала
   «Суды, дела и банкротство» до многоточия; прокрутка колёсиком остаётся */
.today-side {
  scrollbar-width: none;
}
.today-side::-webkit-scrollbar {
  display: none;
}

/* ---------- Строка формы ---------- */
/* «ОК» рядом с полем в строке формы — той же высоты, что поле */
form.inline > button.ghost:not(.mini),
td form > button.ghost:not(.mini) {
  min-height: 36px !important;
}

/* ---------- «Документы» на ноутбуке: строка в две колонки ---------- */
/* style.css переключает строку при окне ≤1000px, не учитывая меню и левую
   колонку фильтров — на 1024–1280 название сжималось до 45px, по слову в строке */
@media (max-width: 1280px) {
  .doc-row { grid-template-columns: 80px minmax(0, 1fr) !important; }
  .doc-amount, .doc-state { text-align: left !important; grid-column: 2; }
}

/* ---------- Узкое окно: подсказка в поиске обрезается многоточием, а не по букве ---------- */
.today-global-search input { text-overflow: ellipsis; }

/* ---------- «Распечатать» и «Создать задачу» в шапке задач — одной высоты ---------- */
.pusk-planner-head-actions { align-items: center; }
.pusk-planner-head-actions > :is(a, button) { height: 36px !important; min-height: 36px !important; }

/* ---------- «Сегодня», список задач: дата не прилипает к ★ ⋯ ✕ ---------- */
/* здесь значки стоят поверх строки (absolute, right 8px), а строка оставляла под
   них 70px — меньше, чем сами значки: дата упиралась в звезду. Значки — ровные
   квадраты 22px с шагом 4px (74px), место под них + 12px воздуха до даты */
body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row {
  padding-right: calc(8px + 74px + 12px) !important;
}
body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row .trow-acts {
  gap: 4px !important;
}
body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row .trow-acts :is(button.favorite, button.more, button.del, button.read) {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
}

/* ---------- Карточка дела: меню «Действие» раскрывается влево ---------- */
/* кнопка стоит у правого края, а меню открывалось от её левого края — уходило
   за экран, страница получала горизонтальную прокрутку и съезжала влево */
body.pusk-today-shell .pusk-case-actions-drop {
  left: auto !important;
  right: 0 !important;
  max-width: calc(100vw - 32px);
  box-shadow: 0 12px 32px rgba(20, 24, 28, .14);
}

/* ---------- «Заявки ЛОГИКА»: таблица читается, строки не в пол-экрана ---------- */
/* Текст и данные те же — меняется только подача */
body .pusk-logic-center .pusk-logic-table { table-layout: fixed; }
body .pusk-logic-center .pusk-logic-table th:nth-child(1) { width: 8% !important; }
body .pusk-logic-center .pusk-logic-table th:nth-child(2) { width: 17% !important; }
body .pusk-logic-center .pusk-logic-table th:nth-child(3) { width: 10% !important; }
body .pusk-logic-center .pusk-logic-table th:nth-child(4) { width: 12% !important; }
body .pusk-logic-center .pusk-logic-table th:nth-child(5) { width: 19% !important; }
body .pusk-logic-center .pusk-logic-table th:nth-child(6) { width: 31% !important; }
body .pusk-logic-center .pusk-logic-table th:nth-child(7) { width: 3% !important; }
/* заголовок остаётся на месте при прокрутке; строка подсвечивается под курсором */
body .pusk-logic-center .pusk-logic-table-wrap { overflow: visible !important; }
body .pusk-logic-center .pusk-logic-table th {
  position: sticky; top: 0; z-index: 2;
  text-transform: none; letter-spacing: 0; font-size: 12px !important;
}
body .pusk-logic-center .pusk-logic-table td { padding: 14px 12px !important; border-bottom: 1px solid var(--border-default, #e6e1d8) !important; }
body .pusk-logic-center .pusk-logic-table tr:hover > td { background: #fbfaf7; }
body .pusk-logic-center .pusk-logic-table .lead-when .when-day { font-weight: 700; }
/* сумма — в одну строку и не прилипает к соседнему столбцу */
body .pusk-logic-center .pusk-logic-table td.right { text-align: right; padding-right: 18px !important; }
body .pusk-logic-center .pusk-logic-table .lead-sum { font-size: 16px !important; white-space: nowrap; }
body .pusk-logic-center .logic-said > .muted { font-size: 12px; }
/* статус / кто ведёт / стадия — подпись слева, поле справа: колонка вдвое ниже */
body .pusk-logic-center .pusk-logic-status-form { display: grid; gap: 6px; }
body .pusk-logic-center .pusk-logic-field {
  display: grid !important; grid-template-columns: 62px minmax(0, 1fr) !important; align-items: center; gap: 6px; margin: 0 !important;
}
body .pusk-logic-center .pusk-logic-field label { margin: 0 !important; font-size: 11.5px; }
body .pusk-logic-center .pusk-logic-select {
  min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important;   /* было 130px — вылезало на комментарии */
  width: 100% !important; height: 30px !important; min-height: 30px !important;
  padding: 0 24px 0 8px !important; font-size: 13px !important;
}
body .pusk-logic-center .pusk-logic-status-actions { display: grid; gap: 6px; margin-top: 8px; }
body .pusk-logic-center .pusk-logic-table button.pusk-logic-action-btn {
  width: 100%; height: 30px !important; min-height: 30px !important; padding: 0 10px !important;
  justify-content: center; font-size: 12.5px !important; line-height: 1.2 !important; white-space: nowrap;
  border: 1px solid var(--border-accent, #bfe0dc) !important; border-radius: 8px !important;
  background: var(--bg-surface, #fff) !important; box-shadow: none !important;
}
body .pusk-logic-center .pusk-logic-contract summary { font-size: 12px; }
/* контакт — телефон крупно, способы связи компактнее */
body .pusk-logic-center .lead-contact .phone { display: block; font-weight: 700; font-size: 14px; white-space: nowrap; }
body .pusk-logic-center .lead-contact .ways { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
body .pusk-logic-center .lead-contact .ways .tag { font-size: 11.5px; padding: 2px 8px; }

/* ---------- «Заявки ЛОГИКА»: переписка — окно чата, пузыри с хвостиком ---------- */
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-thread {
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 12px 12px; border: 1px solid var(--border-default, #e6e1d8); border-radius: 14px;
  background: #f6f4ef;
}
/* пузыри */
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-thread-item {
  position: relative; max-width: 88%; padding: 8px 12px 9px; border-radius: 14px;
  font-size: 13px; line-height: 1.5; box-shadow: 0 1px 1px rgba(20, 24, 28, .06);
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-thread-item.from-logic {
  align-self: flex-start; margin-left: 6px; background: #fff; border: 1px solid #e3dff5; border-top-left-radius: 4px;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-thread-item.from-or {
  align-self: flex-end; margin-right: 6px; background: #dcf1ee; border: 1px solid #bfe0dc; border-top-right-radius: 4px;
}
/* хвостик у верхнего угла */
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-thread-item::before {
  content: ""; position: absolute; top: -1px; width: 10px; height: 12px;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-thread-item.from-logic::before {
  left: -7px; background: #fff; border-top: 1px solid #e3dff5; clip-path: polygon(0 0, 100% 0, 100% 100%);
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-thread-item.from-or::before {
  right: -7px; background: #dcf1ee; border-top: 1px solid #bfe0dc; clip-path: polygon(0 0, 100% 0, 0 100%);
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-thread-item :is(.thread-text, .note-text) {
  display: block !important; max-height: none !important; overflow: visible !important;
  -webkit-line-clamp: unset !important; white-space: pre-line !important; text-overflow: clip !important;
  -webkit-mask-image: none !important; mask-image: none !important;
}
.pusk-logic-thread-item .thread-who {
  display: flex; justify-content: space-between; gap: 10px; margin-bottom: 3px;
  font-size: 11.5px; font-weight: 700; color: #6b5fb5;
}
.pusk-logic-thread-item.from-or .thread-who { color: var(--text-accent, #1f7a70); }
.pusk-logic-thread-item .thread-who span { font-weight: 400; color: var(--text-secondary, #6f6a63); white-space: nowrap; }

/* ---------- «Заявки ЛОГИКА»: новая заявка — жёлтая, трижды «вспыхивает» ---------- */
/* Подсветка держится, пока у заявки статус «Новая»; вспышка — только при открытии
   страницы, чтобы не отвлекать постоянным миганием */
@keyframes lead-new-flash {
  0%, 100% { background-color: #fff8dc; }
  50%      { background-color: #ffe98a; }
}
html body .pusk-logic-center .pusk-logic-table tr.lead-is-new > td {
  background-color: #fff8dc;
  animation: lead-new-flash 1.4s ease-in-out 3;
}
html body .pusk-logic-center .pusk-logic-table tr.lead-is-new > td:first-child {
  box-shadow: inset 4px 0 0 #f2b705;
}
html body .pusk-logic-center .pusk-logic-table tr.lead-is-new:hover > td { background-color: #fff3c4; }
.lead-new-badge {
  display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px;
  background: #f2b705; color: #3d2e00; font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
@media (prefers-reduced-motion: reduce) {
  html body .pusk-logic-center .pusk-logic-table tr.lead-is-new > td { animation: none; }
}

/* ---------- «Заявки ЛОГИКА»: поле ввода как в мессенджере, правка и удаление ---------- */
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-thread > .chat-send {
  display: flex; align-items: flex-end; gap: 6px; margin: 0 0 2px;
  padding: 4px 4px 4px 12px; border: 1px solid var(--border-default, #e6e1d8); border-radius: 20px; background: #fff;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-thread > .chat-send:focus-within {
  border-color: var(--text-accent, #1f7a70); box-shadow: 0 0 0 3px rgba(31, 122, 112, .12);
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .chat-send textarea {
  flex: 1 1 auto; min-width: 0; height: 30px; min-height: 30px !important; max-height: 160px;
  padding: 6px 0 !important; border: 0 !important; background: none !important; box-shadow: none !important;
  outline: none !important; resize: none; font: inherit; font-size: 13px !important; line-height: 18px;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .chat-send .chat-send-btn {
  flex: none; display: inline-grid !important; place-items: center; width: 30px !important; height: 30px !important;
  min-height: 30px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important;
  background: var(--bg-accent, #1f7a70) !important; color: #fff !important; font-size: 13px !important; box-shadow: none !important;
}
/* правка / удаление — появляются при наведении на своё сообщение */
.pusk-logic-thread-item.note { padding-right: 12px; }
.pusk-logic-thread-item .chat-tools {
  position: absolute; top: -10px; right: 8px; display: flex; gap: 2px; opacity: 0; transition: opacity .12s;
}
.pusk-logic-thread-item:hover .chat-tools,
.pusk-logic-thread-item:focus-within .chat-tools { opacity: 1; }
.pusk-logic-thread-item .chat-tools form { margin: 0; display: flex; }
html body .pusk-logic-thread-item .chat-tools button {
  display: inline-grid !important; place-items: center; width: 24px !important; height: 24px !important;
  min-height: 24px !important; padding: 0 !important; border: 1px solid var(--border-default, #e6e1d8) !important;
  border-radius: 50% !important; background: #fff !important; box-shadow: 0 1px 3px rgba(20, 24, 28, .12) !important;
  color: var(--text-secondary, #6f6a63) !important; font-size: 12px !important; line-height: 1 !important;
}
html body .pusk-logic-thread-item .chat-tools .chat-del:hover { color: #b42318 !important; border-color: #efa79f !important; }
.pusk-logic-thread-item .note-edit textarea { width: 100%; min-height: 70px; font: inherit; font-size: 13px; }
.pusk-logic-thread-item .thread-meta { margin-top: 4px; font-size: 11px; color: var(--text-secondary, #6f6a63); }

/* Счётчик новых заявок «Логики» в меню — жёлтый, как подсветка новой заявки */
.today-side nav a em.is-new-leads { background: #f2b705 !important; color: #3d2e00 !important; }

/* ---------- «Заявки ЛОГИКА»: статус — цветная пилюля, остальные поля тихие ---------- */
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-field label {
  font-size: 11px !important; color: var(--text-tertiary, #8a8580) !important; letter-spacing: .01em;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center select.pusk-logic-select.lg-status-pill {
  height: 30px !important; min-height: 30px !important; padding: 0 26px 0 12px !important;
  border-radius: 999px !important; font-weight: 700 !important; font-size: 12.5px !important;
  border: 1px solid transparent !important; box-shadow: none !important; cursor: pointer;
  background-position: right 10px center !important;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center select.lg-status-pill.st-new       { background-color: #fde68a !important; color: #5c4400 !important; }
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center select.lg-status-pill.st-called    { background-color: #d5eeea !important; color: #145e56 !important; }
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center select.lg-status-pill.st-waiting   { background-color: #ece9e3 !important; color: #5c5953 !important; }
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center select.lg-status-pill.st-contract  { background-color: #d7f0dc !important; color: #1f6b33 !important; }
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center select.lg-status-pill:is(.st-refused, .st-closed, .st-no_answer) { background-color: #f8e1de !important; color: #9b2c1f !important; }
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center select.lg-status-pill option { background: #fff; color: #1c1b19; font-weight: 400; }
/* «Кто ведёт», «Стадия» — без рамки, пока не наведёшь; пустое — серым */
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center select.pusk-logic-select.lg-quiet {
  height: 28px !important; min-height: 28px !important; padding: 0 24px 0 8px !important;
  border: 1px solid transparent !important; background-color: transparent !important; box-shadow: none !important;
  border-radius: 8px !important; font-size: 13px !important; color: var(--text-primary, #1c1b19) !important; cursor: pointer;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center select.lg-quiet:hover,
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center select.lg-quiet:focus {
  border-color: var(--border-default, #e6e1d8) !important; background-color: #fff !important;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center select.lg-quiet.is-empty { color: var(--text-tertiary, #8a8580) !important; font-style: italic; }
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center select.lg-quiet option { font-style: normal; color: #1c1b19; }
/* действия — поменьше и потише */
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-table button.pusk-logic-action-btn {
  height: 28px !important; min-height: 28px !important; font-size: 12px !important; font-weight: 600 !important;
  border: 1px dashed var(--border-accent, #9fd0ca) !important; background: transparent !important;
  color: var(--text-accent, #1f7a70) !important;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-table button.pusk-logic-action-btn:hover {
  border-style: solid !important; background: #fff !important;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-contract > summary {
  list-style: none; font-size: 12px !important; font-weight: 400 !important; color: var(--text-secondary, #6f6a63) !important; cursor: pointer;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-contract > summary::-webkit-details-marker { display: none; }
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-contract > summary::before { content: none !important; }
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-contract > summary:hover { color: var(--text-accent, #1f7a70) !important; }

/* ---------- «Заявки ЛОГИКА»: имя в «Кто ведёт» не переносится; договор — аккуратная карточка ---------- */
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center select.pusk-logic-select {
  white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
  line-height: normal !important;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-field {
  grid-template-columns: 54px minmax(0, 1fr) !important;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center select.lg-quiet { font-size: 12.5px !important; }
/* «＋ Клиент и дело» и «＋ Договор заключён» — две одинаковые кнопки-действия */
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-contract > summary {
  display: flex !important; align-items: center; justify-content: center; height: 28px;
  border: 1px dashed var(--border-accent, #9fd0ca); border-radius: 8px;
  font-size: 12px !important; font-weight: 600 !important; color: var(--text-accent, #1f7a70) !important;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-contract > summary:hover,
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-contract[open] > summary {
  border-style: solid; background: #fff;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .lg-contract-form {
  display: grid; gap: 6px; margin-top: 6px; padding: 10px;
  border: 1px solid var(--border-default, #e6e1d8); border-radius: 10px; background: #fff;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .lg-contract-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .lg-contract-form :is(input[name=number], input[type=date]) {
  width: 100% !important; min-width: 0 !important; height: 30px !important; min-height: 30px !important;
  padding: 0 8px !important; font-size: 12.5px !important; box-sizing: border-box;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .lg-file {
  display: flex; align-items: center; min-height: 30px; padding: 0 10px; cursor: pointer;
  border: 1px dashed var(--border-default, #d8d3ca); border-radius: 8px;
  font-size: 12px; color: var(--text-secondary, #6f6a63); overflow: hidden;
}
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .lg-file span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .lg-file:hover { border-color: var(--text-accent, #1f7a70); color: var(--text-accent, #1f7a70); }
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .lg-file.has-file { border-style: solid; color: var(--text-primary, #1c1b19); background: #f3faf8; }
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .lg-file input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .lg-contract-save {
  width: 100%; height: 30px !important; min-height: 30px !important; justify-content: center;
  font-size: 12.5px !important; border-radius: 8px !important;
}
/* подписи «Статус / Кто ведёт / Стадия» не нужны: статус — цветная пилюля, у пустых
   полей подпись в самом поле; так имя ответственного помещается целиком */
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-field { grid-template-columns: minmax(0, 1fr) !important; }
html body.pusk-today-shell .pusk-main-pane.pusk-logic-center .pusk-logic-field > label { display: none !important; }

/* ---------- «Корреспонденция»: колонки не прыгают между вкладками ---------- */
/* Автоширина пересчитывала колонки по содержимому: на каждой вкладке и при каждом
   наборе писем таблица вставала по-разному. Общие колонки — одинаковые везде */
body.pusk-today-shell .pusk-mail-table { table-layout: fixed !important; width: 100% !important; }
body.pusk-today-shell .pusk-mail-table th.pusk-mail-check { width: 40px !important; }
body.pusk-today-shell .pusk-mail-table th:nth-child(2) { width: 96px !important; }
body.pusk-today-shell .pusk-mail-table th:last-child { width: 84px !important; }
/* письма: дата · от кого · тема · клиент/дело · статус */
body.pusk-today-shell .pusk-mail-table.is-letters th:nth-child(3) { width: 20% !important; }
body.pusk-today-shell .pusk-mail-table.is-letters th:nth-child(5) { width: 170px !important; }
body.pusk-today-shell .pusk-mail-table.is-letters th:nth-child(6) { width: 124px !important; }
body.pusk-today-shell .pusk-mail-table td { overflow-wrap: anywhere; }
body.pusk-today-shell .pusk-mail-table td.pusk-mail-menu { white-space: nowrap; }
/* фильтры — одна ровная строка: поиск шире, «Клиент» и «Дело» без подписи снизу */
body.pusk-today-shell .pusk-mail-filters { display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: nowrap !important; }
body.pusk-today-shell .pusk-mail-filters > input[type=search] { flex: 2 1 280px !important; min-width: 0 !important; }
body.pusk-today-shell .pusk-mail-filters > .pick-box { flex: 1 1 180px !important; min-width: 0 !important; display: block !important; }
body.pusk-today-shell .pusk-mail-filters .field__label { display: none !important; }
body.pusk-today-shell .pusk-mail-filters > .field { flex: 1 1 180px !important; min-width: 0 !important; display: block !important; margin: 0 !important; }
body.pusk-today-shell .pusk-mail-filters > .field select { width: 100% !important; }
body.pusk-today-shell .pusk-mail-filters .pick-box .pick-input { width: 100% !important; box-sizing: border-box; }
body.pusk-today-shell .pusk-mail-filters :is(input, select, .pick-input, button) { height: 36px !important; min-height: 36px !important; }
body.pusk-today-shell .pusk-mail-filters > button { flex: none; }

/* ---------- Левое меню: единые линейные иконки, плотнее, числа по смыслу ---------- */
/* Значки были разнородными символами (⌂ ☷ ≋ ▤ ➜ ⌁…) — разной толщины и размера,
   у «Корреспонденции» и «Документов» одинаковый ▤. Теперь один набор тонких
   линейных иконок; сам символ в разметке остаётся (для экранных дикторов) */
.today-side nav a .today-side-ico {
  display: inline-block !important; width: 18px !important; height: 18px !important;
  font-size: 0 !important; color: inherit; background-color: currentColor;
  -webkit-mask: var(--nav-ico) center / 18px 18px no-repeat; mask: var(--nav-ico) center / 18px 18px no-repeat;
  opacity: .75; justify-self: center;
}
.today-side nav a.on .today-side-ico, .today-side nav a:hover .today-side-ico { opacity: 1; }
.today-side nav a[data-nav-item="today"] { --nav-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2011l9-7%209%207v9a1%201%200%200%201-1%201h-5v-6H9v6H4a1%201%200%200%201-1-1z%22/%3E%3C/svg%3E"); }
.today-side nav a[data-nav-item="tasks"] { --nav-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%206h10M10%2012h10M10%2018h10M3.5%206l1.5%201.5L7.5%205M3.5%2012l1.5%201.5%202.5-2.5M3.5%2018l1.5%201.5%202.5-2.5%22/%3E%3C/svg%3E"); }
.today-side nav a[data-nav-item="contractwork"] { --nav-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%203H6a1%201%200%200%200-1%201v16a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V8z%22/%3E%3Cpath%20d%3D%22M14%203v5h5M9%2013h6M9%2017h4%22/%3E%3C/svg%3E"); }
.today-side nav a[data-nav-item="feed"] { --nav-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2012h4l3-7%204%2014%203-7h4%22/%3E%3C/svg%3E"); }
.today-side nav a[data-nav-item="calendar"] { --nav-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M3%2010h18M8%203v4M16%203v4%22/%3E%3C/svg%3E"); }
.today-side nav a[data-nav-item="cases"] { --nav-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v18M6%2021h12M5%207h14%22/%3E%3Cpath%20d%3D%22M5%207l-3%206a3%203%200%200%200%206%200zM19%207l-3%206a3%203%200%200%200%206%200z%22/%3E%3C/svg%3E"); }
.today-side nav a[data-nav-item="mail"] { --nav-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M3%207l9%206%209-6%22/%3E%3C/svg%3E"); }
.today-side nav a[data-nav-item="logic"] { --nav-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M2%2021a7%207%200%200%201%2014%200M19%208v6M16%2011h6%22/%3E%3C/svg%3E"); }
.today-side nav a[data-nav-item="enforcements"] { --nav-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%203h8v5l2%204H6l2-4zM5%2015h14v3H5zM4%2021h16%22/%3E%3C/svg%3E"); }
.today-side nav a[data-nav-item="clients"] { --nav-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M3%2021a6%206%200%200%201%2012%200M16%204.5a4%204%200%200%201%200%207M21%2021a6%206%200%200%200-3.5-5.4%22/%3E%3C/svg%3E"); }
.today-side nav a[data-nav-item="contracts"] { --nav-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%203H6a1%201%200%200%200-1%201v16a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V8z%22/%3E%3Cpath%20d%3D%22M14%203v5h5M8%2017c2-3%203%201%205-1%201-1%202%201%203%201%22/%3E%3C/svg%3E"); }
.today-side nav a[data-nav-item="docs"] { --nav-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207a2%202%200%200%201%202-2h4l2%202h8a2%202%200%200%201%202%202v9a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2z%22/%3E%3C/svg%3E"); }
.today-side nav a[data-nav-item="money"] { --nav-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%2021V4h6a4%204%200%200%201%200%208H6M6%2016h9%22/%3E%3C/svg%3E"); }
.today-side nav a[data-nav-item="economy"] { --nav-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2020h18M6%2016v-4M11%2016V7M16%2016v-6M20%2016V9%22/%3E%3C/svg%3E"); }
.today-side nav a[data-nav-item="time"] { --nav-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22/%3E%3Cpath%20d%3D%22M12%207v5l3%202%22/%3E%3C/svg%3E"); }
/* плотнее: все разделы помещаются без прокрутки */
body.pusk-today-shell .today-side nav a { min-height: 32px !important; padding: 4px 10px !important; }
body.pusk-today-shell .today-side .pusk-nav-group + .pusk-nav-group { margin-top: 6px !important; padding-top: 6px !important; }
body.pusk-today-shell .today-side .pusk-nav-group-head { font-size: 10.5px !important; letter-spacing: .08em; color: var(--text-tertiary, #8a8580) !important; }
/* числа: бирюзовое — «моё на сегодня», жёлтое — новое, ждёт разбора */
.today-side nav a em { min-width: 20px; height: 20px !important; padding: 0 6px !important; border-radius: 999px !important;
  font-size: 11px !important; font-weight: 700 !important; font-style: normal; display: inline-grid !important; place-items: center; }
.today-side nav a[data-nav-item="contractwork"] em,
.today-side nav a[data-nav-item="logic"] em { background: #f2b705 !important; color: #3d2e00 !important; }
/* режим «Настроить меню»: числа не наезжают на ⋮⋮, подсказка сверху */
body.pusk-today-shell .pusk-nav-groups.is-editing nav a em { display: none !important; }
body.pusk-today-shell .pusk-nav-groups.is-editing::before {
  content: "Перетаскивайте пункты и разделы мышью. Нажмите на название раздела, чтобы свернуть его.";
  display: block; margin: 0 4px 10px; padding: 8px 10px; border-radius: 8px;
  background: #f3faf8; color: var(--text-accent, #1f7a70); font-size: 11.5px; line-height: 1.4;
}
body.pusk-today-shell .pusk-nav-groups.is-editing nav a { background: #fff; }
body.pusk-today-shell .pusk-nav-groups.is-editing nav a + a { margin-top: 2px; }

/* ==================================================================
   Расписание недели: у дней нет своих бегунков — вся лента
   прокручивается вниз целиком, заголовки дней остаются сверху.
   Плавность только из скрипта (кнопки/клавиши), иначе перетаскивание
   и подгрузка соседней недели «догоняют» ленту и она дёргается
   ================================================================== */
html body.pusk-today-shell .pusk-ws-row .pusk-ws-resizable .pusk-ws-track {
  overflow-x: auto;
  overflow-y: auto;
  scroll-behavior: auto;
  overscroll-behavior-y: auto;
  touch-action: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-default, #d5d9de) transparent;
}
html body.pusk-today-shell .pusk-ws-row .pusk-ws-resizable .pusk-ws-track::-webkit-scrollbar {
  display: block;
  height: 6px;
  width: 6px;
}
html body.pusk-today-shell .pusk-ws-row .pusk-ws-resizable .pusk-ws-track::-webkit-scrollbar-thumb {
  background: var(--border-default, #d5d9de);
  border-radius: 3px;
}
html body.pusk-today-shell .pusk-ws-resizable .pusk-ws-columns.pusk-ws-columns--week {
  height: auto;
  min-height: 100%;
}
html body.pusk-today-shell .pusk-ws-resizable .pusk-ws-col {
  height: auto;
  min-height: 100%;
}
html body.pusk-today-shell .pusk-ws-resizable .pusk-ws-col-body {
  flex: 1 0 auto;
  max-height: none;
  overflow: visible;
}
html body.pusk-today-shell .pusk-ws-resizable .pusk-ws-col-head {
  position: sticky;
  top: 0;
  z-index: 2;
}
html body.pusk-today-shell .pusk-ws-resizable .pusk-ws-event {
  flex: none;
}
html body.pusk-today-shell .pusk-ws-row .pusk-ws-resizable .pusk-ws-track.is-dragging,
html body.pusk-today-shell .pusk-ws-row .pusk-ws-resizable .pusk-ws-track.is-jumping {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

/* Корреспонденция: форма «Добавить отправление» — сеткой, а не столбиком
   с пустой правой половиной; карточка — правка и удаление отправления */
html body.pusk-today-shell .pusk-mail-add-form {
  width: min(760px, 92vw);
  padding: 16px 18px !important;
  box-shadow: 0 12px 32px rgba(24, 28, 33, .16);
}
html body.pusk-today-shell .pusk-mail-add-form .pusk-mail-add-hint { margin: 0 0 10px; }
html body.pusk-today-shell .pusk-mail-add-form > .inline {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: end;
}
html body.pusk-today-shell .pusk-mail-add-form > .inline > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
html body.pusk-today-shell .pusk-mail-add-form > .inline > .wide { grid-column: span 2; }
html body.pusk-today-shell .pusk-mail-add-form > .inline label { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin: 0; }
html body.pusk-today-shell .pusk-mail-add-form > .inline :is(input:not([type=file]), select, .pick-box, .pick-input) {
  width: 100% !important; min-width: 0 !important; max-width: none !important; box-sizing: border-box; height: 36px;
}
html body.pusk-today-shell .pusk-mail-add-form > .inline input[type=file] { width: 100%; font-size: 12px; }
html body.pusk-today-shell .pusk-mail-add-form > .inline > div:has(input[type=file]) { grid-column: span 2; }
html body.pusk-today-shell .pusk-mail-add-form .pusk-mail-add-go { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
html body.pusk-today-shell .pusk-mail-add-form .pusk-mail-add-go button { height: 38px; padding: 0 20px; }

.mail-card-edit-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 10px;
}
.mail-card-edit-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.mail-card-edit-form label.wide, .mail-card-edit-form .mail-card-edit-go { grid-column: 1 / -1; }
.mail-card-edit-form :is(input, select) { width: 100%; box-sizing: border-box; height: 34px; font-weight: 400; }
.mail-card-del { margin-top: 10px; }
html body .mail-card-del .mail-card-del-btn {
  height: auto !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
  box-shadow: none !important; color: var(--text-danger, #b42318) !important; font-size: 12px !important; font-weight: 400 !important;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ==================================================================
   Календарь (месяц, неделя, день) и расписания «Сегодня»: одна подача
   события — время и кружки участников, стороны, суд · зал · дело.
   Текст не режем: карточки легче за счёт шрифта и отступов, будни шире
   выходных, пустые недели ниже
   ================================================================== */
/* Шапка: виды, фильтры и «＋ Мероприятие» — одной полосой */
html body.pusk-today-shell .pusk-cal-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 12px;
}
html body.pusk-today-shell .pusk-cal-toolbar .pusk-cal-view-links {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px;
  background: var(--bg-muted, #f1eee8); border: 1px solid var(--border-default, #e5e1da);
}
html body.pusk-today-shell .pusk-cal-toolbar .pusk-cal-view-links > * {
  padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; text-decoration: none !important;
  color: var(--text-secondary, #5c6168); border: 0 !important;
}
html body.pusk-today-shell .pusk-cal-toolbar .pusk-cal-view-links > .on {
  background: var(--bg-surface, #fff); color: var(--text-primary, #1f2328); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
html body.pusk-today-shell .pusk-cal-toolbar .pusk-cal-filter-jump { display: none; }
html body.pusk-today-shell .pusk-cal-toolbar .pusk-cal-filter-chips {
  flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 !important; padding: 0 !important;
  border: 0 !important; background: none !important;
}
html body.pusk-today-shell .pusk-cal-toolbar .pusk-cal-filter-chip {
  height: 30px; padding: 0 10px !important; gap: 6px; font-size: 12px !important; border-radius: 999px !important;
}
html body.pusk-today-shell .pusk-cal-toolbar .pusk-cal-filter-chip input { width: 14px; height: 14px; margin: 0; }
html body.pusk-today-shell .pusk-cal-toolbar .pusk-cal-filter-more > summary { font-size: 12px; line-height: 30px; }
html body.pusk-today-shell .pusk-cal-toolbar .pusk-cal-add { margin-left: auto; height: 38px; }

/* Месяц: будни шире выходных */
html body.pusk-today-shell .pusk-cal-body .calm-week,
html body.pusk-today-shell .pusk-cal-body .calm-row {
  grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, .62fr)) !important;
}
html body.pusk-today-shell.pusk-calendar-page .pusk-cal-body .calm-row { min-height: 74px; }
html body.pusk-today-shell .pusk-cal-body .calm-wd {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--text-secondary, #5c6168);
}
html body.pusk-today-shell .pusk-cal-body .calm-day { padding: 5px 6px 6px !important; }
html body.pusk-today-shell .pusk-cal-body .calm-day.weekend:not(.today) { background: var(--bg-muted, #f8f6f2); }
html body.pusk-today-shell .pusk-cal-body .calm-day.today {
  background: var(--bg-accent-subtle, #eef7f6) !important; box-shadow: inset 0 2px 0 var(--teal, #137f79);
}
html body.pusk-today-shell .pusk-cal-body .calm-top { margin-bottom: 4px; }
html body.pusk-today-shell .pusk-cal-body .calm-add { opacity: 0; transition: opacity .12s; }
html body.pusk-today-shell .pusk-cal-body .calm-day:hover .calm-add { opacity: 1; }
html body.pusk-today-shell .pusk-cal-body .calm-evs { gap: 5px; }

/* Карточка события — месяц */
html body.pusk-today-shell .pusk-cal-body .calm-ev {
  gap: 3px; padding: 5px 7px 6px !important; border-radius: 7px; font-size: 12px;
  transition: box-shadow .12s, transform .12s;
}
html body.pusk-today-shell .pusk-cal-body .calm-ev:hover { box-shadow: 0 2px 8px rgba(24,28,33,.12); transform: translateY(-1px); }
html body.pusk-today-shell .pusk-cal-body .calm-line { gap: 6px; flex-wrap: nowrap; }
html body.pusk-today-shell .pusk-cal-body .calm-time {
  font-size: 11.5px; font-weight: 700; color: var(--text-primary, #1f2328); letter-spacing: .01em;
}
html body.pusk-today-shell .pusk-cal-body .calm-ttl {
  font-size: 12px; font-weight: 600; line-height: 1.32; color: var(--text-primary, #1f2328);
}
html body.pusk-today-shell .pusk-cal-body .calm-place {
  font-size: 11px; line-height: 1.32; color: var(--text-secondary, #5c6168);
}
html body.pusk-today-shell .pusk-cal-body .calm-ev.skipped { opacity: .62; }

/* Кружки участников — везде одни */
.who-dots { display: inline-flex; gap: 2px; flex: none; vertical-align: middle; }
html body .who-dots .who-dot {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 20px; width: auto; height: 17px; padding: 0 4px; border-radius: 9px;
  font-size: 9px; font-weight: 700; letter-spacing: .02em; line-height: 1; color: #fff;
}
html body .who-dots .who-dot:not(.who-2):not(.who-3) { background: #8f4a52; }

/* Неделя и день */
html body.pusk-today-shell .pusk-cal-body .cals-ev { border-radius: 7px; }
html body.pusk-today-shell .pusk-cal-body .cals-ev-main { gap: 3px; padding: 5px 7px; font-size: 12px; }
html body.pusk-today-shell .pusk-cal-body .cals-time { font-weight: 700; font-size: 11.5px; }
html body.pusk-today-shell .pusk-cal-body .cals-ttl { font-weight: 600; font-size: 12px; line-height: 1.32; }
html body.pusk-today-shell .pusk-cal-body .cals-where { font-size: 11px; line-height: 1.32; color: var(--text-secondary, #5c6168); }

/* Расписание недели («Сегодня»): время и кружки одной строкой, текст ровнее */
html body.pusk-today-shell .pusk-ws-event { padding: 7px 8px 6px; border-radius: 8px; transition: box-shadow .12s; }
html body.pusk-today-shell .pusk-ws-event:hover { box-shadow: 0 2px 8px rgba(24,28,33,.10); }
html body.pusk-today-shell .pusk-ws-event .pusk-ws-event-time {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--text-primary, #1f2328);
}
html body.pusk-today-shell .pusk-ws-event button.pusk-ws-event-title,
html body.pusk-today-shell .pusk-ws-event .pusk-ws-event-title {
  font-size: 12px !important; font-weight: 600 !important; line-height: 1.32 !important;
}
html body.pusk-today-shell .pusk-ws-event .pusk-ws-event-court { font-size: 11px; line-height: 1.32; color: var(--text-secondary, #5c6168); }
html body.pusk-today-shell .pusk-ws-col-head { display: flex; align-items: center; justify-content: space-between; }
html body.pusk-today-shell .pusk-ws-col.is-today .pusk-ws-col-head { box-shadow: inset 0 2px 0 var(--teal, #137f79); }

/* Расписание дня: карточка спокойнее, суд и дело — второй строкой */
html body.pusk-today-shell .pusk-schedule-card { border-radius: 8px; transition: box-shadow .12s; }
html body.pusk-today-shell .pusk-schedule-card:hover { box-shadow: 0 2px 10px rgba(24,28,33,.10); }
html body.pusk-today-shell .pusk-schedule-card .pusk-schedule-title { font-size: 13px; font-weight: 600; line-height: 1.32; }
html body.pusk-today-shell .pusk-schedule-card .pusk-schedule-meta { font-size: 11.5px; line-height: 1.35; color: var(--text-secondary, #5c6168); }
html body.pusk-today-shell .pusk-cal-toolbar .pusk-cal-view-links { order: 1; }
html body.pusk-today-shell .pusk-cal-toolbar .pusk-cal-add { order: 2; }
html body.pusk-today-shell .pusk-cal-toolbar .pusk-cal-close-plain { order: 3; }
html body.pusk-today-shell .pusk-cal-toolbar .pusk-cal-filter-chips { order: 4; flex-basis: 100%; }
html body.pusk-today-shell .pusk-cal-toolbar { flex-wrap: wrap !important; }
html body.pusk-today-shell .pusk-cal-toolbar .pusk-cal-filter-chips { flex: 1 1 100% !important; }
html body.pusk-today-shell #pusk-cal-filters.pusk-cal-toolbar { flex-wrap: wrap !important; overflow: visible; }
html body.pusk-today-shell .pusk-ws-event .pusk-ws-event-time { justify-content: flex-start; }
html body.pusk-today-shell .pusk-schedule-card button.pusk-schedule-title,
html body.pusk-today-shell .pusk-schedule-card .pusk-schedule-title-open {
  background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important;
  text-align: left; cursor: pointer; color: var(--text-primary, #1f2328);
}
html body.pusk-today-shell .pusk-schedule-card .pusk-schedule-title-open:hover { color: var(--teal, #137f79); }

/* Месяц в листе «Календарь» с «Сегодня»: недели растут по содержимому, как
   на странице календаря. Раньше высота недели была поделена поровну и
   заседания загруженной недели наезжали на следующую */
html body.pusk-today-shell .pusk-cal-body .calm { height: auto !important; min-height: 100%; }
html body.pusk-today-shell .pusk-cal-body .calm-row {
  flex: none !important; height: auto !important; min-height: 74px; align-items: stretch;
}
html body.pusk-today-shell .pusk-cal-body .calm-day {
  height: auto !important; min-height: 74px; overflow: visible !important;
}

/* Лист «Календарь» с «Сегодня»: всё по одним полям — заголовок, панель и
   сетка; сетка не шире листа (стрелка «→» не обрезается). «Распечатать»
   и «＋ Мероприятие» — одной правой кромкой, «×» — в углу листа */
html body.pusk-today-shell .today-calendar-body .pusk-cal-body {
  width: auto !important; max-width: none !important; margin-left: 20px !important; margin-right: 20px !important;
}
html body.pusk-today-shell .today-calendar-body .pusk-cal-head { padding-left: 20px !important; padding-right: 20px !important; }
html body.pusk-today-shell .today-calendar-body #pusk-cal-filters.pusk-cal-toolbar {
  margin-left: 20px !important; margin-right: 20px !important;
}
html body.pusk-today-shell .today-calendar-panel #today-calendar-close.pusk-cal-close-plain {
  position: absolute; top: 12px; right: 12px; z-index: 5; width: 32px; height: 32px; margin: 0;
}
html body.pusk-today-shell .today-calendar-body .pusk-cal-toolbar .pusk-cal-add { margin-right: 0 !important; }

/* ==================================================================
   Подключения → «Электронный документооборот»: всё по верхнему краю,
   состояние — ровными строками «название … метка», кнопки одной ширины
   ================================================================== */
html body .panel:has(> table.pc-edo) { padding: 0 !important; overflow: hidden; }
html body table.pc-edo { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0; }
html body table.pc-edo th:nth-child(1) { width: 17%; }
html body table.pc-edo th:nth-child(2) { width: 37%; }
html body table.pc-edo th:nth-child(3) { width: 29%; }
html body table.pc-edo th:nth-child(4) { width: 17%; }
html body table.pc-edo th {
  padding: 12px 18px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--text-secondary, #5c6168); background: var(--bg-muted, #f7f5f1);
  border-bottom: 1px solid var(--border-default, #e5e1da);
}
html body table.pc-edo td {
  vertical-align: top !important; padding: 18px 18px 20px; background: none !important;
  border-bottom: 1px solid var(--border-default, #e5e1da);
}
html body table.pc-edo tr:last-child td { border-bottom: 0; }
html body table.pc-edo tr:hover td { background: var(--bg-muted, #faf8f5) !important; }
/* Система */
html body table.pc-edo td:nth-child(1) { font-size: 14px; line-height: 1.4; color: var(--text-secondary, #5c6168); }
html body table.pc-edo td:nth-child(1) strong { display: block; font-size: 15px; color: var(--text-primary, #1f2328); }
html body table.pc-edo td:nth-child(1) .small { margin-top: 4px; font-size: 12px; line-height: 1.4; }
/* Что нужно */
html body table.pc-edo td:nth-child(2) { font-size: 13px !important; line-height: 1.55; color: var(--text-secondary, #5c6168); overflow-wrap: anywhere; }
/* Состояние: «название … метка» ровным столбцом */
html body table.pc-edo td:nth-child(3) { font-size: 13px !important; }
html body table.pc-edo td:nth-child(3) > div {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 30px; padding: 2px 0; border-bottom: 1px dashed var(--border-default, #ece8e1);
}
html body table.pc-edo td:nth-child(3) > div:last-child { border-bottom: 0; }
html body table.pc-edo td:nth-child(3) > div.muted {
  display: block; min-height: 0; padding-top: 8px; font-size: 12px; line-height: 1.45; border-bottom: 0;
}
html body table.pc-edo td:nth-child(3) > div strong { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
html body table.pc-edo td:nth-child(3) .tag {
  flex: none; min-width: 78px; justify-content: center; text-align: center; margin: 0; font-size: 12px;
}
/* Кнопки: одной ширины, одна под другой, по верхнему краю */
html body table.pc-edo td:nth-child(4) { text-align: right; }
html body table.pc-edo td:nth-child(4) form { display: block; margin: 0 0 8px !important; }
html body table.pc-edo td:nth-child(4) form:last-child { margin-bottom: 0 !important; }
html body table.pc-edo td:nth-child(4) button {
  width: 100%; max-width: 200px; height: 34px !important; min-height: 34px !important; padding: 0 12px !important;
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  font-size: 13px !important; font-weight: 600 !important; border-radius: 8px !important;
  background: var(--bg-surface, #fff) !important; color: var(--teal, #137f79) !important;
  border: 1px solid var(--border-accent, #9fd0cc) !important; box-shadow: none !important; opacity: 1 !important;
}
html body table.pc-edo td:nth-child(4) button.ghost {
  color: var(--text-primary, #1f2328) !important; border-color: var(--border-default, #e0dbd3) !important;
}
html body table.pc-edo td:nth-child(4) button:hover { background: var(--bg-accent-subtle, #eef7f6) !important; }
/* ЭДО: колонка кнопок — фиксированной ширины, длинные надписи переносятся,
   пояснение в «Состоянии» не заходит под кнопки */
html body table.pc-edo th:nth-child(1) { width: 17%; }
html body table.pc-edo th:nth-child(2) { width: auto; }
html body table.pc-edo th:nth-child(3) { width: 30%; }
html body table.pc-edo th:nth-child(4) { width: 200px; }
html body table.pc-edo tr, html body table.pc-edo tr:nth-child(even), html body table.pc-edo tr:nth-child(odd) { background: none !important; }
html body table.pc-edo td { overflow: hidden; }
html body table.pc-edo td:nth-child(3) > div,
html body table.pc-edo td:nth-child(3) > div.muted { white-space: normal !important; overflow-wrap: anywhere; min-width: 0; }
html body table.pc-edo td:nth-child(3) > div > :not(.tag) { min-width: 0; }
html body table.pc-edo td:nth-child(4) button {
  max-width: 100% !important; height: auto !important; min-height: 34px !important;
  padding: 6px 10px !important; white-space: normal !important; line-height: 1.25 !important; text-align: center;
}

/* ==================================================================
   Подключения (/me/connections): ровные отступы разделов, шаги
   «Диадок на этом Mac» — нумерованной лестницей, код — крупно,
   правила отбора писем — плотнее
   ================================================================== */
html body main:has(#add-connection) h2 { margin: 28px 0 10px !important; font-size: 20px; }
html body main:has(#add-connection) .panel > p:first-child { margin-top: 0; }
html body main:has(#add-connection) .panel { padding: 18px 20px; }
/* Шаги подключения Mac */
html body #diadoc-local-bridge { margin-top: 16px !important; padding: 20px 22px !important; }
html body #diadoc-local-bridge h3 { font-size: 17px; margin: 0 0 4px !important; }
html body #diadoc-local-bridge > p.small.muted { margin: 0 0 14px; }
html body #diadoc-local-bridge ol {
  list-style: none; counter-reset: step; margin: 0 0 16px; padding: 0 !important;
  display: grid; gap: 10px; line-height: 1.5 !important; font-size: 13.5px;
}
html body #diadoc-local-bridge ol > li {
  counter-increment: step; position: relative; padding: 2px 0 0 38px; min-height: 26px;
}
html body #diadoc-local-bridge ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700;
  background: var(--bg-accent-subtle, #e6f4f3); color: var(--teal, #137f79);
}
html body #diadoc-local-bridge ol > li a[download] {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; margin-right: 4px; border-radius: 7px;
  border: 1px solid var(--border-accent, #9fd0cc); background: var(--bg-surface, #fff);
  font-weight: 600; text-decoration: none !important;
}
html body #diadoc-local-bridge ol > li a[download]::before { content: "↓"; }
html body #diadoc-local-bridge .panel {
  margin: 4px 0 0 38px !important; padding: 14px 16px !important; border: 1px dashed var(--border-accent, #9fd0cc) !important;
  background: var(--bg-accent-subtle, #f1f8f7) !important; border-radius: 10px;
}
html body #diadoc-local-bridge .panel strong { font-size: 13px; }
html body #diadoc-local-bridge .panel input[readonly] {
  height: 48px; font-size: 22px !important; font-weight: 700; letter-spacing: .14em; text-align: center;
  background: var(--bg-surface, #fff); cursor: copy;
}
html body #diadoc-local-bridge .panel p { margin: 8px 0 0 !important; }
html body #diadoc-local-bridge > form { margin-left: 38px; }
html body #diadoc-local-bridge > form button {
  height: 38px !important; padding: 0 18px !important; font-size: 13.5px !important; font-weight: 600 !important;
}
/* Отбор писем: формы ровной полосой, таблица правил плотнее */
html body main:has(#add-connection) #pisma + .panel form.pc-align { align-items: flex-end; gap: 10px; }
html body main:has(#add-connection) #pisma + .panel form.pc-align :is(select, input, button) { height: 38px; }
html body main:has(#add-connection) #pisma + .panel table { margin-top: 14px !important; }
html body main:has(#add-connection) #pisma + .panel table td { padding-top: 9px !important; padding-bottom: 9px !important; }
html body main:has(#add-connection) #pisma + .panel table th { padding-top: 10px !important; padding-bottom: 10px !important; }

/* Задачи: дата срока меняется двойным щелчком; меню «⋯» — поверх страницы */
html body.pusk-today-shell [data-task-due] { cursor: pointer; border-radius: 4px; }
html body.pusk-today-shell [data-task-due]:hover { background: var(--bg-muted, #f3f0ea); }
html body.pusk-today-shell .pusk-tasks-due-input { height: 30px; font-size: 13px; padding: 0 6px; }
html body.pusk-today-shell .pusk-tasks-menu-drop { box-shadow: 0 12px 32px rgba(20,24,28,.16) !important; }
html body.pusk-today-shell .pusk-tasks-menu-drop :is(button, a) { display: block; width: 100%; text-align: left; white-space: nowrap; }

/* Диадок → карточки (/me/connections/diadoc-documents): заголовок один,
   вкладки — переключателем, «Подключение Диадока» — ссылкой справа */
html body :is(main, .pusk-main-pane):has(a[href^="/me/connections/diadoc-documents"]) h1 ~ h1 { display: none !important; }
html body :is(main, .pusk-main-pane):has(a[href^="/me/connections/diadoc-documents"]) .page-sub { margin: 4px 0 14px; }
html body .fm-toolbar:has(a[href^="/me/connections/diadoc-documents"]) {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
}
html body .fm-toolbar:has(a[href^="/me/connections/diadoc-documents"]) a[href^="/me/connections/diadoc-documents"] {
  padding: 6px 14px !important; border-radius: 8px !important; border: 1px solid transparent !important;
  font-size: 13px !important; font-weight: 600; color: var(--text-secondary, #5c6168) !important;
  background: none !important; text-decoration: none !important; height: auto !important; min-height: 0 !important;
}
html body .fm-toolbar:has(a[href^="/me/connections/diadoc-documents"]) a[href^="/me/connections/diadoc-documents"]:hover {
  background: var(--bg-muted, #f1eee8) !important;
}
html body .fm-toolbar:has(a[href^="/me/connections/diadoc-documents"]) a[href^="/me/connections/diadoc-documents"].active {
  background: var(--bg-surface, #fff) !important; color: var(--text-primary, #1f2328) !important;
  border-color: var(--border-default, #e0dbd3) !important; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
html body .fm-toolbar:has(a[href^="/me/connections/diadoc-documents"]) a[href="/me/connections"] {
  margin-left: auto; border: 0 !important; background: none !important; padding: 6px 4px !important;
  color: var(--teal, #137f79) !important; font-size: 13px !important; font-weight: 600; text-decoration: none !important;
}
html body .fm-toolbar:has(a[href^="/me/connections/diadoc-documents"]) a[href="/me/connections"]::before { content: "⚙ "; }
html body :is(main, .pusk-main-pane):has(a[href^="/me/connections/diadoc-documents"]) table.zebra td.muted {
  padding: 28px 18px !important; text-align: center; color: var(--text-secondary, #5c6168);
}
/* Пункты меню «⋯» — кнопки тоже строками во всю ширину: общее правило
   строки делает все кнопки значками 20×20, и надписи вылезали из меню */
html body.pusk-today-shell .pusk-tasks-page .pusk-tasks-row-actions .pusk-tasks-menu-drop button,
html body.approved-desktop-page.pusk-today-shell .pusk-tasks-page .pusk-tasks-row-actions .pusk-tasks-menu-drop button,
html body.pusk-today-shell .pusk-tasks-menu-drop :is(button, a) {
  display: block !important; width: 100% !important; max-width: none !important; min-width: 0 !important;
  height: auto !important; max-height: none !important; min-height: 0 !important;
  padding: 8px 10px !important; margin: 0 !important; border-radius: 6px !important;
  text-align: left !important; white-space: nowrap; line-height: 1.3 !important;
  font-size: 14px !important; font-weight: 400 !important; color: var(--text-primary, #1f2328) !important;
  background: none !important; border: 0 !important; box-shadow: none !important; text-decoration: none !important;
}
html body.pusk-today-shell .pusk-tasks-menu-drop :is(button, a):hover { background: var(--bg-muted, #f3f0ea) !important; }
html body.pusk-today-shell .pusk-tasks-menu-drop form { display: block; margin: 0; }
html body.pusk-today-shell .pusk-tasks-menu-drop { display: grid; gap: 2px; padding: 6px !important; }
html body.pusk-today-shell [data-task-who] { cursor: pointer; }
html body.pusk-today-shell [data-task-who]:hover .pusk-tasks-who { background: var(--bg-muted, #f3f0ea); border-radius: 6px; }
html body.pusk-today-shell .pusk-tasks-who-select { height: 32px; max-width: 100%; font-size: 13px; }
html body.pusk-today-shell .trow .due, html body.pusk-today-shell .trow .trow-resp { cursor: pointer; border-radius: 4px; }
html body.pusk-today-shell .trow .due:hover, html body.pusk-today-shell .trow .trow-resp:hover { background: var(--bg-muted, #f3f0ea); }

/* Подключения: строка подключения — три компактные кнопки; форма правки
   раскрывается под строкой по «Изменить» и видна только открытой */
html body table.conn-table td.conn-acts { white-space: nowrap; text-align: right; }
html body table.conn-table td.conn-acts > * { display: inline-block; margin: 0 0 0 6px !important; vertical-align: middle; }
html body table.conn-table td.conn-acts button {
  height: 30px !important; min-height: 30px !important; padding: 0 12px !important; font-size: 12.5px !important;
}
html body table.conn-table td.conn-acts .conn-del:hover { color: var(--text-danger, #b42318) !important; }
html body table.conn-table tr.conn-edit-row:not(:has(details[open])) { display: none; }
html body table.conn-table details.conn-edit > summary { display: none !important; }
html body table.conn-table tr.conn-edit-row td { background: var(--bg-muted, #faf8f5) !important; padding: 12px 16px 16px !important; }
html body main:has(#add-connection) h2.conn-h2 { margin-top: 6px !important; }
/* ЭДО: ссылка «Обновить помощник» — как кнопка в колонке */
html body table.pc-edo td:nth-child(4) a.edo-dl {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; max-width: 100%;
  min-height: 34px; margin: 0 0 8px; padding: 6px 10px; box-sizing: border-box; border-radius: 8px;
  border: 1px solid var(--border-default, #e0dbd3); background: var(--bg-surface, #fff);
  font-size: 13px; font-weight: 600; color: var(--text-primary, #1f2328); text-decoration: none;
}
html body table.pc-edo td:nth-child(4) a.edo-dl:hover { background: var(--bg-muted, #f3f0ea); }

/* ==================================================================
   «Сегодня» → «Задачи»: строки колонками, как таблица во вкладке
   «Задачи»: ✓ | задача (клиент · дело под ней) | исполнитель | срок | ★ ⋯ ✕.
   Группы «Просрочено / Надо сделать сегодня / На неделе / Позже»
   ================================================================== */
html body.pusk-today-shell #today-tasks .today-task-cols,
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row {
  display: grid !important;
  grid-template-columns: 26px minmax(0, 1fr) 132px 56px 82px;
  column-gap: 12px; align-items: start;
}
html body.pusk-today-shell #today-tasks .today-task-cols {
  padding: 8px 12px; border-bottom: 1px solid var(--border-default, #e5e1da);
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: var(--text-secondary, #5c6168);
  background: var(--bg-muted, #f7f5f1);
}
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row {
  padding: 10px 12px !important; margin: 0 !important; min-height: 0 !important; height: auto !important;
  border: 0 !important; border-bottom: 1px solid var(--border-default, #ece8e1) !important; border-radius: 0 !important;
  box-shadow: none !important; background: var(--bg-surface, #fff);
}
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row:hover { background: var(--bg-muted, #faf8f5); }
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row > .tick { grid-column: 1; margin: 0 !important; }
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row > .tbody { grid-column: 2; min-width: 0; }
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row > .trow-who { grid-column: 3; }
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row > .trow-due { grid-column: 4; }
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row > .trow-acts {
  grid-column: 5; position: static !important; display: flex !important; justify-content: flex-end; gap: 4px; opacity: 1 !important;
}
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row > :not(.tick):not(.tbody):not(.trow-who):not(.trow-due):not(.trow-acts) { grid-column: 1 / -1; }
/* Задача: название и под ним контекст */
html body.pusk-today-shell #today-tasks .is-pusk-today-row .thead { display: block !important; margin: 0; }
html body.pusk-today-shell #today-tasks .is-pusk-today-row .thead .what {
  display: block; font-size: 14px !important; font-weight: 600 !important; line-height: 1.35 !important;
  color: var(--text-primary, #1f2328); white-space: normal !important; overflow-wrap: anywhere; cursor: pointer;
}
html body.pusk-today-shell #today-tasks .is-pusk-today-row .thead .due { display: none !important; }
html body.pusk-today-shell #today-tasks .is-pusk-today-row .ctx {
  margin-top: 3px; font-size: 12px !important; line-height: 1.4; color: var(--text-secondary, #5c6168);
  white-space: normal !important; overflow: visible !important;
}
html body.pusk-today-shell #today-tasks .is-pusk-today-row .ctx :is(.trow-resp, .trow-resp-sep) { display: none; }
/* Исполнитель и срок — свои колонки */
html body.pusk-today-shell #today-tasks .trow-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; cursor: pointer; border-radius: 6px; padding: 1px 2px; }
html body.pusk-today-shell #today-tasks .trow-who .pusk-tasks-avatar { flex: none; width: 24px; height: 24px; font-size: 10px; }
html body.pusk-today-shell #today-tasks .trow-who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body.pusk-today-shell #today-tasks .trow-due { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; border-radius: 4px; padding: 1px 2px; white-space: nowrap; }
html body.pusk-today-shell #today-tasks .trow-due .is-late { color: var(--text-danger, #b42318); }
html body.pusk-today-shell #today-tasks .trow-due .is-today { color: #9a6a00; }
html body.pusk-today-shell #today-tasks :is(.trow-who, .trow-due):hover { background: var(--bg-muted, #f1eee8); }
/* Группы */
html body.pusk-today-shell #today-tasks li.today-task-group-heading {
  display: flex !important; align-items: center; gap: 8px; list-style: none;
  padding: 12px 12px 6px !important; margin: 0 !important; border: 0 !important;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary, #5c6168);
  background: none !important;
}
html body.pusk-today-shell #today-tasks li.today-task-group-heading em {
  font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 11.5px; background: var(--bg-muted, #efece6); color: var(--text-primary, #1f2328);
}
/* На телефоне новые колонки не нужны — там своя подача */
.pusk-mob-tasks :is(.trow-who, .trow-due), body:not(.pusk-today-shell) .today-task-cols { display: none !important; }
/* «Сегодня» → задачи: своя сетка сильнее прежней (с областями tick/body) */
html body.pusk-today-shell #today-tasks .today-task-cols,
html body.pusk-today-shell #today-tasks ul li.trow.is-pusk-today-row.trow-host {
  grid-template-columns: 22px minmax(0, 1fr) 104px 42px 58px !important;
  grid-template-areas: none !important; grid-template-rows: auto !important; column-gap: 10px !important;
}
html body.pusk-today-shell #today-tasks ul li.trow.is-pusk-today-row.trow-host > * { grid-row: 1 !important; grid-area: auto !important; }
html body.pusk-today-shell #today-tasks ul li.trow.is-pusk-today-row.trow-host > .tick { grid-column: 1 !important; }
html body.pusk-today-shell #today-tasks ul li.trow.is-pusk-today-row.trow-host > .tbody { grid-column: 2 !important; }
html body.pusk-today-shell #today-tasks ul li.trow.is-pusk-today-row.trow-host > .trow-who { grid-column: 3 !important; }
html body.pusk-today-shell #today-tasks ul li.trow.is-pusk-today-row.trow-host > .trow-due { grid-column: 4 !important; }
html body.pusk-today-shell #today-tasks ul li.trow.is-pusk-today-row.trow-host > .trow-acts { grid-column: 5 !important; }
html body.pusk-today-shell #today-tasks ul li.trow.is-pusk-today-row.trow-host > :is(.trow-more, .trow-host, form:not(.tick), div:not(.tbody):not(.trow-acts)) { grid-row: 2 !important; grid-column: 1 / -1 !important; }
html body.pusk-today-shell #today-tasks .trow-acts :is(button, .favorite, .more, .del) {
  width: 18px !important; height: 18px !important; min-width: 18px !important; padding: 0 !important; font-size: 13px !important;
  display: inline-flex !important; align-items: center; justify-content: center; opacity: 1 !important; visibility: visible !important;
}
html body.pusk-today-shell #today-tasks .trow-acts form { display: inline-flex !important; margin: 0 !important; }
html body.pusk-today-shell #today-tasks .trow-acts { gap: 2px !important; padding-top: 1px; }
/* Кружок инициалов — как во вкладке «Задачи» */
html body.pusk-today-shell #today-tasks .pusk-tasks-avatar {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: 9.5px; font-weight: 700; color: #fff; background: #1a6b68;
}
html body.pusk-today-shell #today-tasks .pusk-tasks-avatar.tone-1 { background: #6b4a2a; }
html body.pusk-today-shell #today-tasks .pusk-tasks-avatar.tone-2 { background: #2d4a7a; }
html body.pusk-today-shell #today-tasks .pusk-tasks-avatar.tone-3 { background: #5c4d8a; }
html body.pusk-today-shell #today-tasks .pusk-tasks-avatar.tone-4 { background: #8a4a62; }
html body.pusk-today-shell #today-tasks .trow-who-name { font-size: 12px; }
html body.pusk-today-shell #today-tasks .today-task-cols > span:nth-child(3),
html body.pusk-today-shell #today-tasks .today-task-cols > span:nth-child(4) { white-space: nowrap; }

/* ==================================================================
   Окно задачи (боковая панель): плотнее и ровнее — меньше пустот между
   полями, поля 36 px, описание не на полэкрана, блок «контроль» без
   серой подложки, быстрые кнопки и панель действий компактнее
   ================================================================== */
html body .trow-more.tw .tw-head { padding: 14px 20px 12px !important; }
html body .trow-more.tw .tw-title { font-size: 16px !important; line-height: 1.3 !important; }
html body .trow-more.tw .tw-sub { font-size: 12.5px !important; margin-top: 3px; }
html body .trow-more.tw .tw-body { padding: 12px 20px 8px !important; }
html body .trow-more.tw .tw-f { margin-bottom: 10px !important; }
html body .trow-more.tw .tw-f > label {
  display: block; margin: 0 0 4px !important; font-size: 11.5px !important; font-weight: 600 !important;
  color: var(--text-secondary, #5c6168) !important; letter-spacing: .01em;
}
html body .trow-more.tw .tw-f :is(input:not([type=checkbox]):not([type=file]), select, .pick-input) {
  height: 36px !important; min-height: 36px !important; font-size: 13.5px !important; padding: 0 10px !important;
  border-radius: 8px !important; box-sizing: border-box;
}
html body .trow-more.tw .tw-f input[name=title] {
  font-size: 14.5px !important; font-weight: 600 !important; border: 1px solid var(--border-default, #dcd6cd) !important;
  background: var(--bg-surface, #fff) !important;
}
html body .trow-more.tw .tw-f textarea {
  min-height: 64px !important; height: 72px; padding: 8px 10px !important; font-size: 13.5px !important; line-height: 1.45 !important;
  border-radius: 8px !important; resize: vertical;
}
html body .trow-more.tw .tw-2 { gap: 0 12px !important; }
html body .trow-more.tw .tw-2.control-fields { padding: 0 !important; background: none !important; border: 0 !important; }
html body .trow-more.tw .tw-quick { display: flex; gap: 6px; margin-top: 6px; }
html body .trow-more.tw .tw-quick button {
  height: 26px !important; min-height: 26px !important; padding: 0 10px !important; font-size: 12px !important;
  border-radius: 13px !important; border: 1px solid var(--border-default, #e0dbd3) !important;
  background: var(--bg-surface, #fff) !important; color: var(--text-secondary, #5c6168) !important; box-shadow: none !important;
}
html body .trow-more.tw .tw-seg button { height: 30px !important; min-height: 30px !important; font-size: 12.5px !important; padding: 0 12px !important; }
html body .trow-more.tw .tw-drop { padding: 10px 12px !important; font-size: 12px !important; line-height: 1.45; }
html body .trow-more.tw .tw-contract { padding: 10px 12px; border-radius: 8px; background: var(--bg-muted, #f7f5f1); }
html body .trow-more.tw .tw-foot { padding: 10px 20px 12px !important; }
html body .trow-more.tw .tw-actionbar { display: flex; flex-wrap: wrap; gap: 6px !important; margin-bottom: 10px; }
html body .trow-more.tw .tw-actionbar .tw-action {
  height: 30px !important; min-height: 30px !important; padding: 0 12px !important; font-size: 12.5px !important;
  border-radius: 8px !important;
}
html body .trow-more.tw .tw-savebar { display: flex; align-items: center; gap: 8px; }
html body .trow-more.tw .tw-savebar .tw-meta { margin-right: auto; font-size: 11.5px; color: var(--text-secondary, #5c6168); }
html body .trow-more.tw .tw-savebar .b { height: 36px !important; min-height: 36px !important; padding: 0 16px !important; }
html body .trow-more.tw .tw-2.control-fields { margin: 0 !important; width: auto !important; }
html body .trow-more.tw .tw-quick { flex-wrap: wrap; }
html body .trow-more.tw .tw-quick button { padding: 0 8px !important; }

/* ==================================================================
   «Сегодня»: единый ровный шрифт, задачи — как во вкладке «Задачи».
   Шкала экрана: 12 (подписи) · 13 (кнопки) · 14 (текст задачи) ·
   17 (заголовки блоков); начертания только 400 и 600, без капса.
   ================================================================== */
/* Задачи: название обычным начертанием, клиент и дело — ссылками */
html body.pusk-today-shell #today-tasks .is-pusk-today-row .thead .what {
  font-size: 14px !important; font-weight: 400 !important; line-height: 20px !important;
}
html body.pusk-today-shell #today-tasks .is-pusk-today-row .ctx,
html body.pusk-today-shell #today-tasks .is-pusk-today-row .ctx :is(a, span) {
  font-size: 12px !important; line-height: 17px !important;
}
html body.pusk-today-shell #today-tasks .is-pusk-today-row .ctx a { color: var(--teal, #137f79) !important; }
html body.pusk-today-shell #today-tasks .is-pusk-today-row .ctx .late { font-weight: 600 !important; }
/* Шапка колонок — как заголовки таблицы задач */
html body.pusk-today-shell #today-tasks .today-task-cols,
html body.pusk-today-shell #today-tasks .today-task-cols span {
  font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0 !important; line-height: 16px !important;
}
/* Группы — строчными, без разрядки */
html body.pusk-today-shell #today-tasks li.today-task-group-heading,
html body.pusk-today-shell #today-tasks li.today-task-group-heading span {
  font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important;
}
html body.pusk-today-shell #today-tasks li.today-task-group-heading em { font-size: 12px !important; font-weight: 600 !important; }
/* Исполнитель и срок — 13 px, срок не наезжает на ★ */
html body.pusk-today-shell #today-tasks .trow-who-name { font-size: 13px !important; }
html body.pusk-today-shell #today-tasks .pusk-tasks-avatar { font-weight: 600 !important; }
html body.pusk-today-shell #today-tasks .today-task-cols,
html body.pusk-today-shell #today-tasks ul li.trow.is-pusk-today-row.trow-host {
  grid-template-columns: 22px minmax(0, 1fr) 112px 42px 60px !important; column-gap: 10px !important;
}
html body.pusk-today-shell #today-tasks .trow-due,
html body.pusk-today-shell #today-tasks .trow-due .d {
  font-size: 13px !important; font-weight: 400 !important; line-height: 20px !important; white-space: nowrap;
}
html body.pusk-today-shell #today-tasks .trow-due { text-align: left !important; justify-self: start; }
html body.pusk-today-shell #today-tasks .trow-due .d.is-late { font-weight: 600 !important; }
html body.pusk-today-shell #today-tasks .is-pusk-today-row .ctx .sep { color: var(--text-muted, #a39d93) !important; margin: 0 4px; }
/* Кнопки и счётчики блока — одно начертание */
html body.pusk-today-shell #today-tasks :is(button, button b, button span, a.today-all) { font-weight: 600 !important; }
html body.pusk-today-shell #today-tasks .trow-acts :is(button, .favorite, .more, .del) { font-weight: 400 !important; }

/* Остальной экран «Сегодня»: те же 400/600 и не мельче 12 px */
html body.pusk-today-shell :is(.pusk-ws-col-label, .pusk-ws-col-count, .pusk-ws-event-time,
  .pusk-ws-title-line .tag, .pusk-now-line em, .pusk-team-card .avatar) { font-weight: 600 !important; }
html body.pusk-today-shell :is(.pusk-ws-event-court, .pusk-schedule-meta, .pusk-schedule-assignee) {
  font-size: 12px !important; line-height: 16px !important;
}
html body.pusk-today-shell .pusk-schedule-chip { font-size: 11px !important; }

/* «Сегодня» → задачи: сверху выделено «надо сделать сегодня» (как баннер
   во вкладке «Задачи»), просроченные горят красным */
html body.pusk-today-shell #today-tasks li.today-task-group-heading.plan-today {
  margin: 8px 8px 0 !important; padding: 10px 12px 6px !important;
  /* цвета — от темы: в тёмной блок тёмный, текст читается */
  border: 1px solid color-mix(in srgb, var(--bg-accent, #137f79) 28%, transparent) !important; border-bottom: 0 !important; border-radius: 12px 12px 0 0 !important;
  background: var(--bg-accent-subtle, #eef8f7) !important; color: var(--text-accent, #0f5f5a) !important; font-size: 15px !important;
}
html body.pusk-today-shell #today-tasks li.today-task-group-heading.plan-today em { background: var(--bg-accent, #137f79) !important; color: var(--text-on-accent, #fff) !important; }
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row.plan-row-today {
  margin: 0 8px !important; background: color-mix(in srgb, var(--bg-accent-subtle, #eef8f7) 55%, var(--bg-surface, #fff)) !important;
  border-left: 1px solid color-mix(in srgb, var(--bg-accent, #137f79) 28%, transparent) !important; border-right: 1px solid color-mix(in srgb, var(--bg-accent, #137f79) 28%, transparent) !important; border-bottom-color: var(--border-default, #dcefed) !important;
}
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row.plan-row-today:has(+ :not(.plan-row-today)),
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row.plan-row-today:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--bg-accent, #137f79) 28%, transparent) !important; border-radius: 0 0 12px 12px !important; margin-bottom: 8px !important;
}
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row.plan-row-today:hover { background: var(--bg-accent-subtle, #e9f6f4) !important; }
html body.pusk-today-shell #today-tasks li.today-task-group-heading.plan-late { color: var(--text-danger, #b42318) !important; }
html body.pusk-today-shell #today-tasks li.today-task-group-heading.plan-late em { background: #b42318 !important; color: #fff !important; }
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row.plan-row-late {
  background: var(--bg-danger-subtle, #fdf1f0) !important; box-shadow: inset 3px 0 0 #d92d20 !important;
}
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row.plan-row-late:hover { background: color-mix(in srgb, var(--bg-danger-subtle, #fdf1f0) 80%, #d92d20) !important; }
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row.plan-row-late .what { color: var(--text-danger, #912018) !important; }
html body.pusk-today-shell #today-tasks li.trow.is-pusk-today-row.plan-row-late .trow-due .d { color: var(--text-danger, #d92d20) !important; font-weight: 600 !important; }

/* «Сегодня»: задачам — основная ширина, расписанию дня — узкая колонка
   часов (перетаскивание задачи на час остаётся) */
@media (min-width: 1101px) {
  html body.pusk-today-shell .pusk-main-grid {
    grid-template-columns: minmax(280px, var(--pusk-split, 31%)) minmax(460px, 1fr) !important;
    position: relative;
  }
}
/* Ручка между блоками (pusk-resizable.js, data-pusk-split): тянешь —
   один блок сужается, второй занимает место; размер запоминается */
html body .pusk-split-handle {
  position: absolute; z-index: 5; width: 14px; cursor: col-resize; touch-action: none;
  display: flex; justify-content: center; border-radius: 7px;
}
html body .pusk-split-handle[hidden] { display: none; }
html body .pusk-split-handle::before {
  content: ""; width: 2px; height: 100%; border-radius: 2px; background: transparent; transition: background .12s;
}
html body .pusk-split-handle::after {
  content: ""; position: absolute; top: 120px; left: 3px; width: 8px; height: 36px; border-radius: 4px;
  background: var(--border-default, #d9d4ca); transition: background .12s;
}
html body .pusk-split-handle:is(:hover, :focus-visible, .is-dragging)::before { background: var(--border-accent, #7ecbc6); }
html body .pusk-split-handle:is(:hover, :focus-visible, .is-dragging)::after { background: var(--teal, #137f79); }
html body .pusk-split-handle:focus-visible { outline: none; }
html body.pusk-splitting, html body.pusk-splitting * { cursor: col-resize !important; user-select: none !important; }

/* ==================================================================
   Расписание недели и дня на «Сегодня» — спокойнее, в стиль экрана:
   цвета те же по смыслу, но разбавлены фоном карточки (под любую тему)
   ================================================================== */
/* Сегодняшний день — лёгкий оттенок и тонкая линия вместо заливки */
html body.pusk-today-shell .pusk-ws-col.is-today .pusk-ws-col-head {
  background: color-mix(in srgb, var(--bg-accent-subtle, #e4f2f1) 45%, var(--bg-surface, #fff)) !important;
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--border-accent, #7ecbc6) 75%, var(--bg-surface, #fff)) !important;
}
html body.pusk-today-shell .pusk-ws-col.is-today .pusk-ws-col-head :is(.pusk-ws-col-label, .pusk-ws-col-count) {
  color: var(--text-accent, #137f79) !important;
}
/* Заседание — полоса слева приглушённая */
html body.pusk-today-shell :is(.pusk-ws-event, .pusk-schedule-card).is-court {
  border-left-color: color-mix(in srgb, var(--text-court, #4a3ca6) 40%, var(--bg-surface, #fff)) !important;
}
html body.pusk-today-shell #today-schedule .pusk-schedule-chip {
  color: color-mix(in srgb, var(--text-court, #4a3ca6) 75%, var(--text-secondary, #5c5953)) !important;
  background: color-mix(in srgb, var(--text-court, #4a3ca6) 7%, var(--bg-surface, #fff)) !important;
}
/* Кружки участников (СМ, КА) — не заливкой, а мягкой плашкой */
html body.pusk-today-shell :is(.pusk-ws, #today-schedule, [class*="pusk-ws-"]) .who-dots .who-dot { color: #8f4a52 !important; }
html body.pusk-today-shell :is(.pusk-ws, #today-schedule, [class*="pusk-ws-"]) .who-dots .who-dot.who-2 { color: var(--accent-ink, #137f79) !important; }
html body.pusk-today-shell :is(.pusk-ws, #today-schedule, [class*="pusk-ws-"]) .who-dots .who-dot.who-3 { color: var(--ev-task, #5c4d8a) !important; }
html body.pusk-today-shell :is(.pusk-ws, #today-schedule, [class*="pusk-ws-"]) .who-dots .who-dot {
  background: color-mix(in srgb, currentColor 12%, var(--bg-surface, #fff)) !important;
  font-weight: 600 !important;
}
/* «Иду» / «Слежу» — без рамки, лёгкий фон и цветной значок */
html body.pusk-today-shell :is([class*="pusk-ws-"], #today-schedule) .pusk-attend .pusk-attend-btn.is-on {
  border-color: transparent !important;
  background: color-mix(in srgb, currentColor 9%, var(--bg-surface, #fff)) !important;
}
html body.pusk-today-shell :is([class*="pusk-ws-"], #today-schedule) .pusk-attend .pusk-attend-btn:not(.is-on) { opacity: .7; }
html body.pusk-today-shell :is([class*="pusk-ws-"], #today-schedule) .pusk-attend .pusk-attend-btn:hover { opacity: 1; }
/* Время события — цвет текста, а не акцент */
html body.pusk-today-shell .pusk-ws-event-time { color: var(--text-primary, #191a1c) !important; }
/* «Сегодня» над неделей — спокойная кнопка */
html body.pusk-today-shell .pusk-ws-today-btn {
  border-color: var(--border-default, #eae6de) !important;
  background: var(--bg-surface, #fff) !important;
}

/* ==================================================================
   «Суды и дела» — список спокойнее и плотнее:
   фильтры в одну строку, «Показано…» на строке кнопок; в таблице
   начертания 400/600, ссылки без подчёркивания, длинное — в 2 строки
   ================================================================== */
html body .pusk-cases-list-figma .pusk-cases-filter-row-figma {
  display: grid !important; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px !important; width: 100%;
}
html body .pusk-cases-list-figma .pusk-cases-filter-row-figma > .pusk-cases-filter-pill { width: auto !important; min-width: 0 !important; }
/* Под фильтрами одна строка: слева «Показано… · страницы», справа кнопки */
html body .pusk-cases-list-figma .pusk-cases-bar {
  flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; margin: 10px 0 12px;
}
html body .pusk-cases-list-figma .pusk-cases-bar > .pusk-cases-meta-row {
  flex: 1 1 auto; display: flex !important; flex-wrap: wrap; align-items: center; justify-content: flex-start !important;
  gap: 6px 18px; margin: 0 !important; min-height: 0 !important;
}
html body .pusk-cases-list-figma .pusk-cases-bar .pusk-cases-meta { margin: 0 !important; white-space: nowrap; }
html body .pusk-cases-list-figma .pusk-cases-bar .pusk-cases-pagination { margin: 0 !important; }
html body .pusk-cases-list-figma .pusk-cases-bar > .pusk-cases-actions-row-figma {
  flex: 0 0 auto !important; margin: 0 0 0 auto !important; justify-content: flex-end !important; width: auto !important;
}
html body .pusk-cases-list-figma .pusk-cases-meta { font-size: 13px !important; }

/* Таблица */
html body .pusk-cases-list-figma .pusk-cases-table td { vertical-align: top !important; padding: 12px 10px !important; }
html body .pusk-cases-list-figma .pusk-cases-table td.pusk-cases-pick { padding-right: 4px !important; }
html body .pusk-cases-list-figma .pusk-cases-table tbody tr:hover > td { background: color-mix(in srgb, var(--bg-muted, #f3f0ea) 55%, transparent); }
html body .pusk-cases-list-figma .pusk-cases-table thead th { font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0 !important; }
html body .pusk-cases-list-figma .pusk-cases-table td a { text-decoration: none !important; }
html body .pusk-cases-list-figma .pusk-cases-table td a:hover { text-decoration: underline !important; text-underline-offset: 2px; }
/* Наименование */
html body .pusk-cases-list-figma .pusk-cases-title {
  font-size: 14px !important; font-weight: 600 !important; line-height: 20px !important;
}
html body .pusk-cases-list-figma .pusk-cases-sub,
html body .pusk-cases-list-figma .pusk-cases-sub a { font-size: 12px !important; line-height: 17px !important; color: var(--text-secondary, #6e6a62) !important; }
html body .pusk-cases-list-figma .pusk-cases-sub { margin-top: 2px; }
/* Ближайшее событие: дата, под ней суть — серым, не больше двух строк */
html body .pusk-cases-list-figma .pusk-cases-event strong {
  display: block; font-size: 13px !important; font-weight: 600 !important; line-height: 20px !important; font-variant-numeric: tabular-nums;
}
html body .pusk-cases-list-figma .pusk-cases-event .muted {
  display: block; font-size: 12px !important; line-height: 17px !important; color: var(--text-secondary, #6e6a62) !important;
  white-space: normal !important; overflow: visible !important; text-overflow: clip !important; margin-top: 1px;
}
/* Все будущие события по делу — списком; ближайшее — первым */
html body .pusk-cases-list-figma .pusk-cases-event-btn {
  display: block !important; width: 100%; text-align: left; padding: 0 !important; background: none !important; border: 0 !important;
}
html body .pusk-cases-list-figma .pusk-cases-event-btn + .pusk-cases-event-btn {
  margin-top: 8px !important; padding-top: 8px !important; border-top: 1px dashed var(--border-default, #e5e1da) !important;
}
html body .pusk-cases-list-figma .pusk-cases-event-btn:not(.is-next) strong { font-weight: 400 !important; }
/* Задачи: название обычным, «+ задача» — ярче при наведении на строку */
html body .pusk-cases-list-figma .pusk-cases-todo-t { font-size: 13px !important; font-weight: 400 !important; line-height: 18px !important; }
html body .pusk-cases-list-figma :is(.pusk-cases-todo-n, .pusk-cases-todo-late) { font-size: 12px !important; font-weight: 600 !important; }
html body .pusk-cases-list-figma .pusk-cases-todo-due { font-size: 12px !important; font-weight: 400 !important; }
html body .pusk-cases-list-figma .pusk-cases-todo-due:is(.is-overdue, .is-late) { font-weight: 600 !important; }
html body .pusk-cases-list-figma .pusk-cases-tasks button:not([data-task-open]) { opacity: .6; transition: opacity .12s; font-weight: 600 !important; }
html body .pusk-cases-list-figma .pusk-cases-table tr:hover .pusk-cases-tasks button:not([data-task-open]) { opacity: 1; }
html body .pusk-cases-list-figma .pusk-cases-tasks button[data-task-open] { min-width: 0; text-align: left; }
html body .pusk-cases-list-figma .pusk-cases-todo-t {
  white-space: normal !important; display: block !important; overflow: visible !important; text-overflow: clip !important;
}
html body .pusk-cases-list-figma .pusk-cases-todo li {
  display: block !important; padding: 0 !important; margin: 0 0 6px !important; min-width: 0;
}
html body .pusk-cases-list-figma .pusk-cases-todo li > button[data-task-open] { display: block !important; width: 100%; padding: 0 !important; }
html body .pusk-cases-list-figma .pusk-cases-todo li > .pusk-cases-todo-due { display: block !important; margin-top: 1px; white-space: nowrap; }
html body .pusk-cases-list-figma .pusk-cases-todo li.is-overdue > .pusk-cases-todo-due { color: var(--text-danger, #b42318) !important; font-weight: 600 !important; }
/* Клиент, суд, стадия, ответственный — одним текстом 13 px */
html body .pusk-cases-list-figma .pusk-cases-table td.small:not(.pusk-cases-event):not(.pusk-cases-contract),
html body .pusk-cases-list-figma .pusk-cases-table td.small:not(.pusk-cases-event):not(.pusk-cases-contract) :is(a, span:not(.pusk-cases-avatar)) {
  font-size: 13px !important; font-weight: 400 !important; line-height: 18px !important; color: var(--text-primary, #191a1c);
}
html body .pusk-cases-list-figma .pusk-cases-table td.small :is(a, span) { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
html body .pusk-cases-list-figma .pusk-case-stage { display: inline-block; padding-top: 1px; }
html body .pusk-cases-list-figma .pusk-cases-contract a { font-size: 12px !important; line-height: 17px !important; }

/* Неделя: кнопки «Иду/Слежу/✕» стоят в углу карточки — время и
   инициалы не заходят под них (в узкой колонке инициалы — строкой ниже) */
html body .pusk-ws-event:has(> .pusk-attend) > .pusk-ws-event-time { padding-right: 70px !important; flex-wrap: wrap !important; row-gap: 3px; }
/* «Суды и дела»: событиям и задачам — достаточная ширина колонок */
html body .pusk-cases-list-figma .pusk-cases-table :is(th, td)[data-col="event"] { min-width: 190px; }
html body .pusk-cases-list-figma .pusk-cases-table :is(th, td)[data-col="tasks"] { min-width: 230px; }

/* Заголовки колонок в узких таблицах не вылезают за край — переносятся */
html body :is(.pusk-mail-table, .mc-table) th {
  white-space: normal !important; overflow-wrap: anywhere; hyphens: auto; line-height: 1.25;
}
/* Лента: «Сбросить» в шапке фильтров не сжимается */
html body .pusk-feed-rail-head .link-btn { flex: none !important; white-space: nowrap; }

/* «Сегодня» → задачи: исполнитель, срок и ★ ⋯ ✕ плотнее и прижаты вправо —
   тексту задачи больше места */
html body.pusk-today-shell #today-tasks ul li.trow.is-pusk-today-row.trow-host { padding-right: 8px !important; }
html body.pusk-today-shell #today-tasks .today-task-cols { padding-left: 28px !important; padding-right: 24px !important; }
html body.pusk-today-shell #today-tasks .trow-acts { gap: 1px !important; justify-content: flex-end !important; }
html body.pusk-today-shell #today-tasks .trow-acts > :is(form, button) { width: 19px !important; min-width: 19px !important; flex: none; }
html body.pusk-today-shell #today-tasks .trow-who { gap: 5px !important; padding: 1px 0 !important; }
html body.pusk-today-shell #today-tasks .trow-due { padding: 1px 0 !important; }
/* Строки блока «Надо сделать сегодня» стоят в рамке с отступом 8 px —
   поля внутри меньше, чтобы столбцы шли ровно под шапкой */
html body.pusk-today-shell #today-tasks ul li.trow.is-pusk-today-row.trow-host.plan-row-today {
  padding-left: 3px !important; padding-right: 0 !important;
}

/* Печать: лист уже экрана телефона, и браузер включал телефонный список
   дней (.ios) — печатался он, а не выбранный месяц/неделя/день.
   На странице календаря печатаем только настольный (выбранный) вид */
@media print {
  html body:has(.pusk-calendar-page) .ios { display: none !important; }
  html body .today-desktop.pusk-calendar-page { display: grid !important; }
}

/* «Суды и дела»: перед каждым заседанием/событием и каждой задачей —
   бирюзовая точка, как в перечислении */
html body .pusk-cases-list-figma .pusk-cases-table td.pusk-cases-event .pusk-cases-event-btn,
html body .pusk-cases-list-figma .pusk-cases-table td.pusk-cases-tasks .pusk-cases-todo li {
  position: relative !important; padding-left: 13px !important;
}
html body .pusk-cases-list-figma .pusk-cases-table :is(td.pusk-cases-event .pusk-cases-event-btn, td.pusk-cases-tasks .pusk-cases-todo li)::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-accent, #137f79);
}
html body .pusk-cases-list-figma .pusk-cases-table td.pusk-cases-tasks .pusk-cases-todo li.is-overdue::before { background: var(--text-danger, #b42318); }

/* ==================================================================
   Карточка договора: «Картина по договору», «Нужно сделать»,
   «Акты и оплаты» (закрытые свёрнуты), «Платежи» (с вопросами сверху)
   ================================================================== */
html body .eng-pic { padding: 16px 18px !important; }
html body .eng-pic-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
html body .eng-pic-head h2 { margin: 0 !important; font-size: 17px !important; }
html body .eng-pic-links { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; }
html body .eng-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--bg-muted, #efece6); gap: 2px; }
html body .eng-bar > span { display: block; min-width: 4px; }
html body :is(.eng-bar > span, .eng-pic-line .dot).is-paid { background: #2f8f6b; }
html body :is(.eng-bar > span, .eng-pic-line .dot).is-debt { background: #c0392b; }
html body :is(.eng-bar > span, .eng-pic-line .dot).is-unsigned { background: #b9b2a6; }
html body .eng-pic-line { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 0 !important; font-size: 13px; align-items: center; }
html body .eng-pic-line .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
html body .eng-pic-line b.bad { color: var(--text-danger, #b42318); }
html body .eng-pic-line .muted { margin-left: auto; }
html body .eng-todo { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, #d9a441 9%, var(--bg-surface, #fff)); border: 1px solid color-mix(in srgb, #d9a441 30%, var(--bg-surface, #fff)); }
html body .eng-todo h3 { margin: 0 0 6px !important; font-size: 14px !important; font-weight: 600 !important; }
html body .eng-todo ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
html body .eng-todo li.bad { color: var(--text-danger, #b42318); }
html body .eng-todo li a { margin-left: 6px; font-size: 12px; white-space: nowrap; }
html body .eng-ok { margin: 12px 0 0 !important; color: #2f8f6b; font-size: 13px; }
/* Акты */
html body table.eng-acts td { vertical-align: top; }
html body table.eng-acts tr.is-late > td:first-child { box-shadow: inset 3px 0 0 var(--text-danger, #b42318); }
html body table.eng-acts .eng-pay-cell { min-width: 190px; font-size: 13px; }
html body table.eng-acts .eng-pay-cell .cmn-bar { max-width: 180px; }
html body table.eng-acts td.eng-menu { width: 34px; text-align: right; position: relative; }
html body .eng-row-menu > summary { list-style: none; cursor: pointer; padding: 2px 8px; border-radius: 6px; font-size: 16px; color: var(--text-secondary, #5c5953); }
html body .eng-row-menu > summary::-webkit-details-marker { display: none; }
html body .eng-row-menu > summary:hover { background: var(--bg-muted, #f1eee8); }
html body .eng-row-menu-pop {
  position: absolute; right: 0; top: 100%; z-index: 20; width: 320px; text-align: left;
  display: grid; gap: 10px; padding: 12px; border-radius: 10px; background: var(--bg-surface, #fff);
  box-shadow: 0 10px 30px rgba(24,28,33,.16); border: 1px solid var(--border-default, #e5e1da);
}
html body .eng-row-menu-pop form { display: grid !important; gap: 6px; margin: 0 !important; }
html body .eng-row-menu-pop p { margin: 0 !important; }
html body details.eng-more { margin: 8px 0 18px; }
html body details.eng-more > summary {
  cursor: pointer; padding: 10px 14px; border-radius: 10px; background: var(--bg-surface, #fff);
  border: 1px solid var(--border-default, #e5e1da); font-size: 13px; font-weight: 600; color: var(--text-secondary, #5c5953);
}
html body details.eng-more[open] > summary { margin-bottom: 8px; }
/* Платежи */
html body .eng-pay-issue { margin-bottom: 8px; }
html body details.eng-pay-row { border-bottom: 1px solid var(--border-default, #eae6de); }
html body details.eng-pay-row > summary {
  display: grid; grid-template-columns: 96px 110px 120px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 8px 6px; cursor: pointer; font-size: 13px; list-style: none;
}
html body details.eng-pay-row > summary::-webkit-details-marker { display: none; }
html body details.eng-pay-row > summary:hover { background: var(--bg-muted, #f7f5f1); }
html body details.eng-pay-row > summary .right { text-align: right; }
html body details.eng-pay-row[open] > .cmn-pay { margin: 4px 0 10px; }
html body .eng-note { margin: 0 0 12px !important; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--teal, #137f79) 9%, var(--bg-surface, #fff)); border: 1px solid color-mix(in srgb, var(--teal, #137f79) 25%, var(--bg-surface, #fff)); font-size: 13px; }
html body .eng-inline-form { display: inline; margin: 0 0 0 8px; }
html body .eng-inline-form .link-btn { font-size: 12px; }
html body table.eng-acts td.eng-act-name { white-space: nowrap; }
html body table.eng-acts tr.is-draft > td { background: color-mix(in srgb, var(--bg-muted, #f3f0ea) 60%, transparent); }
html body table.eng-acts tr.is-draft > td:first-child { box-shadow: inset 3px 0 0 #b9b2a6; }
/* Карточка договора на телефоне */
html body .eng-pic-head { flex-wrap: wrap; }
html body .eng-pic-head h2 { flex: 1 1 auto; }
@media (max-width: 760px) {
  html body .eng-pic { padding: 14px !important; }
  html body .eng-pic-line { gap: 4px 14px; }
  html body .eng-pic-line .muted { margin-left: 0; flex-basis: 100%; }
  html body details.eng-pay-row > summary { grid-template-columns: auto auto minmax(0, 1fr); gap: 4px 10px; }
  html body details.eng-pay-row > summary > :nth-child(2) { display: none; }
  html body details.eng-pay-row > summary > .small { grid-column: 1 / -1; }
  html body .eng-row-menu-pop { width: min(320px, calc(100vw - 32px)); }
}
/* Карточка договора на телефоне: таблица актов становится карточками (table.stack) */
@media (max-width: 760px) {
  html body table.eng-acts.stack tr { position: relative; }
  html body table.eng-acts.stack tr.is-late { box-shadow: inset 3px 0 0 var(--text-danger, #b42318); }
  html body table.eng-acts.stack tr.is-draft { box-shadow: inset 3px 0 0 #b9b2a6; }
  html body table.eng-acts.stack tr > td:first-child { box-shadow: none !important; }
  html body table.eng-acts.stack td {
    display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding-left: 12px !important; text-align: left !important;
  }
  html body table.eng-acts.stack td::before { flex: 0 0 34% !important; max-width: 34% !important; }
  html body table.eng-acts.stack td.eng-act-name { display: block !important; padding-right: 44px !important; }
  html body table.eng-acts.stack td.eng-act-name::before { display: none !important; }
  html body table.eng-acts.stack td.eng-pay-cell > .cmn-bar { flex: 1 1 100%; order: 2; max-width: none; }
  html body table.eng-acts.stack td.eng-pay-cell::before { order: 0; }
  html body table.eng-acts.stack td.eng-menu { position: absolute !important; top: 8px; right: 6px; width: auto; padding: 0 !important; border: 0 !important; }
  html body table.eng-acts.stack td.eng-menu::before { display: none !important; }
  html body .eng-row-menu > summary::after { content: none !important; }
  html body .eng-row-menu > summary { display: inline-block !important; background: none !important; }
}
@media (max-width: 760px) {
  html body table.eng-acts.stack td.eng-pay-cell > .eng-pay-text { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 760px) {
  /* Меню ⋯ у акта — нижняя панель во всю ширину, над нижним меню */
  html body table.eng-acts.stack .eng-row-menu-pop {
    position: fixed !important; left: 12px !important; right: 12px !important; top: auto !important; bottom: 84px !important;
    width: auto !important; max-width: none !important; z-index: 60;
  }
  html body table.eng-acts.stack .eng-row-menu-pop * { max-width: none; }
  html body table.eng-acts.stack .eng-row-menu-pop select { width: 100%; }
}
@media (max-width: 760px) {
  html body details.eng-pay-row > summary::after { content: none !important; display: none !important; }
  html body details.eng-pay-row > summary { padding: 10px 4px !important; }
}
/* Галочка «это второй акт…» — подпись переносится, не уезжает за край */
html body form[action="/money/act/new"] label.check { display: inline-flex !important; align-items: flex-start; gap: 8px; max-width: 100%; white-space: normal !important; }
html body form[action="/money/act/new"] label.check > input { flex: none !important; width: 18px !important; min-width: 18px !important; height: 18px !important; margin: 1px 0 0 !important; }
html body form[action="/money/act/new"] label.check { flex: 1 1 100%; justify-content: flex-start; text-align: left; align-self: flex-start; margin-left: 0 !important; margin-right: auto !important; }

/* «Сегодня» → задачи: правка исполнителя и срока прямо в строке не налезает на соседей.
   Выбор исполнителя — в ширину своей колонки; поле даты занимает срок и кнопки,
   кнопки на время правки скрыты */
html body.pusk-today-shell #today-tasks .trow-who select { width: 100% !important; min-width: 0 !important; max-width: 100% !important; font-size: 12.5px !important; padding-right: 18px !important; text-overflow: ellipsis; }
html body.pusk-today-shell #today-tasks ul li.trow.is-pusk-today-row.trow-host > .trow-due:has(input) { grid-column: 4 / 6 !important; }
html body.pusk-today-shell #today-tasks ul li.trow.is-pusk-today-row.trow-host:has(> .trow-due input) > .trow-acts { display: none !important; }
html body.pusk-today-shell #today-tasks .trow-due input { width: 100% !important; min-width: 0 !important; font-size: 12.5px !important; padding: 2px 4px !important; }
/* «Суды и дела»: панель «Колонки» не уходит ниже края экрана — прокручивается внутри */
html body .pusk-cases-list-figma .pusk-cases-col-panel { max-height: min(640px, calc(100vh - 300px)) !important; min-height: 220px; }
/* «Суды и дела»: форма «+ Добавить дело» всплывает под кнопкой, как «Колонки»,
   а не раздвигает строку кнопок за край экрана */
html body .pusk-cases-list-figma .pusk-cases-actions-row-figma > .pusk-cases-add-case { position: relative !important; }
html body .pusk-cases-list-figma .pusk-cases-add-case[open] > form {
  position: absolute !important; right: 0; top: calc(100% + 8px); z-index: 40;
  width: min(760px, calc(100vw - 300px)) !important; max-width: none !important; margin: 0 !important;
  display: flex !important; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end;
  padding: 14px 16px !important; border-radius: 12px; background: var(--bg-surface, #fff) !important;
  border: 1px solid var(--border-default, #e5e1da); box-shadow: 0 12px 32px rgba(24,28,33,.16) !important;
}
html body .pusk-cases-list-figma .pusk-cases-add-case[open] > form > div { flex: 1 1 200px; min-width: 0; }
html body .pusk-cases-list-figma .pusk-cases-add-case[open] > form :is(input, select) { width: 100% !important; min-width: 0 !important; }
/* Между заседаниями в ячейке нет «ничьей» полосы: отступ — часть кнопки,
   иначе щелчок в зазор открывал дело вместо заседания */
html body .pusk-cases-list-figma .pusk-cases-table td.pusk-cases-event .pusk-cases-event-btn { display: block !important; width: 100% !important; margin: 0 !important; cursor: pointer; }
html body .pusk-cases-list-figma .pusk-cases-table td.pusk-cases-event .pusk-cases-event-btn + .pusk-cases-event-btn { padding-top: 10px !important; margin-top: 0 !important; }
html body .pusk-cases-list-figma .pusk-cases-table td.pusk-cases-event .pusk-cases-event-btn + .pusk-cases-event-btn::before { top: 17px !important; }
html body .pusk-cases-list-figma .pusk-cases-table td.pusk-cases-event .pusk-cases-event-btn:hover strong { color: var(--text-accent, #137f79); }

/* Телефон, карточка дела: подпись «Кабинет» не рвётся посередине слова,
   а задачи в «Надо сделать» читаются целиком (сводка по делу) */
html body .m-case .m-hero-room dt { flex: none; white-space: nowrap; overflow-wrap: normal !important; word-break: keep-all !important; }
html body .m-case .m-hero-room dd { min-width: 0; }
html body .m-case .ios-row.is-task .ios-name {
  white-space: normal !important; overflow: visible !important; text-overflow: clip !important;
  display: block !important; -webkit-line-clamp: unset !important;
}
/* Телефон, карточка дела: кабинет — заметно, но не во весь блок */
html body .m-case .m-hero-room dd { font-size: 20px !important; line-height: 1.2 !important; }
/* Карточка договора: «разнести по актам этого договора» — скромная ссылка */
html body .eng-todo .eng-inline-form .link-btn {
  font-size: 12px !important; font-weight: 400 !important; color: var(--text-accent, #137f79) !important;
  text-decoration: underline; text-underline-offset: 2px; background: none !important; border: 0 !important;
  padding: 0 !important; min-height: 0 !important; width: auto !important; display: inline !important;
}
/* Карточка договора: настоящие файлы договора и приложений, виды услуг по прайсу */
html body .eng-docs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-default, #e5e1da); }
html body .eng-docs > label { flex: 0 0 100%; margin: 0; font-size: 12px; font-weight: 600; color: var(--text-secondary, #5c5953); }
html body .eng-doc { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 8px; border: 1px solid var(--border-default, #e5e1da); background: var(--bg-surface, #fff); font-size: 13px; color: var(--text-primary, #191a1c) !important; text-decoration: none !important; max-width: 100%; }
html body .eng-doc:hover { border-color: var(--border-accent, #7ecbc6); background: color-mix(in srgb, var(--teal, #137f79) 5%, var(--bg-surface, #fff)); }
html body .eng-doc-ext { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .03em; padding: 3px 5px; border-radius: 5px; background: var(--bg-muted, #efece6); color: var(--text-secondary, #5c5953); }
html body ul.eng-services { margin: 2px 0 0; padding-left: 16px; font-size: 13px; line-height: 1.45; }
html body .eng-docs-more { margin-left: 6px; }
html body .eng-doc.is-other { font-size: 12px; padding: 4px 10px 4px 5px; color: var(--text-secondary, #5c5953) !important; background: transparent; }
/* Окно задачи: поля «Клиент» и «Дело» с поиском — во всю ширину поля */
html body .tw .tw-f .pick-box { display: block; width: 100%; }
html body .tw .tw-f .pick-input { width: 100% !important; min-width: 0; box-sizing: border-box; }

/* Форма пути исполнительного листа (портфель, «Исполнительные листы») */
.cp-writ-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;margin-top:8px;padding:10px 12px;
  border:1px solid var(--border-default,#e0dbd3);border-radius:8px;background:var(--bg-surface,#fff);cursor:default;min-width:300px}
.cp-writ-form[hidden]{display:none}
.cp-writ-form .cp-step{grid-column:1/-1;margin:4px 0 0;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--accent-ink,#137f79)}
.cp-writ-form label{display:flex;flex-direction:column;gap:2px;margin:0;font-size:11.5px;font-weight:600;color:var(--text-secondary,#5c5953)}
.cp-writ-form label.wide{grid-column:1/-1}
html body .cp-writ-form :is(input,select){height:32px!important;min-height:32px!important;font-size:13px!important;font-weight:400;padding:0 8px!important;box-sizing:border-box;width:100%!important;min-width:0!important}
.cp-writ-go{grid-column:1/-1;display:flex;gap:8px;justify-content:flex-end;margin-top:4px}
html body .cp-writ-go button{height:32px!important;min-height:32px!important;padding:0 14px!important;font-size:13px!important}

/* ==================================================================
   Взыскание: переписка по должнику (как у заявок ЛОГИКИ) и карточка
   должника в панели справа
   ================================================================== */
.dc{display:flex;flex-direction:column;gap:6px}
.dc-send{display:flex;flex-direction:column;gap:4px;margin:0 0 2px}
.dc-side{display:flex;gap:4px}
.dc-side label{position:relative;margin:0;cursor:pointer}
.dc-side input{position:absolute;left:0;top:0;width:1px;height:1px;opacity:0;pointer-events:none}
.dc-side span{display:inline-block;padding:2px 9px;border-radius:999px;border:1px solid #e0dbd3;font-size:11.5px;font-weight:600;color:#6d6a63;background:#fff}
.dc-side input:checked+span{border-color:var(--accent-ink,#137f79);background:#e6f4f3;color:var(--accent-ink,#137f79)}
.dc-side label:nth-child(2) input:checked+span{border-color:#c9a45a;background:#fdf6e6;color:#7a5400}
.dc-row{display:flex;align-items:flex-end;gap:6px}
html body .dc-row textarea{flex:1;min-height:34px;height:34px;max-height:160px;resize:none;padding:7px 10px;font-size:13px;line-height:1.4;border-radius:10px;box-sizing:border-box}
html body .dc-btn{flex:none;width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border-radius:50%!important;
  display:inline-flex;align-items:center;justify-content:center;font-size:14px!important;background:var(--accent-ink,#137f79)!important;color:#fff!important;border:0!important}
.dc-msg{max-width:88%;padding:6px 10px 7px;border-radius:12px;font-size:12.5px;line-height:1.45}
.dc-msg.is-us{align-self:flex-end;background:#e6f4f3;border-bottom-right-radius:4px}
.dc-msg.is-client{align-self:flex-start;background:#fdf6e6;border-bottom-left-radius:4px}
.dc-msg.is-more{display:none}
.dc-who{font-size:11px;font-weight:700;color:#5c5953;margin-bottom:2px}
.dc-who span{font-weight:400;color:#8a857c;margin-left:6px}
.dc-text{white-space:pre-line;overflow-wrap:anywhere;color:#1c1b19}
html body .dc-more{all:unset;cursor:pointer;align-self:center;font-size:12px;font-weight:600;color:var(--accent-ink,#137f79)}
.dc-tag{display:inline-block;margin-left:6px;padding:0 6px;border-radius:5px;background:rgba(0,0,0,.05);font-size:10.5px;font-weight:600;color:#6d6a63}

.dp-back{position:fixed;inset:0;background:rgba(20,24,28,.18);z-index:60}
.dp-drawer{position:fixed;top:0;right:0;bottom:0;width:min(760px,96vw);z-index:61;background:var(--bg-surface,#fff);box-shadow:-12px 0 40px rgba(20,24,28,.18);overflow-y:auto}
.dp-loading{padding:40px;color:#8a857c}
.dp-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;gap:12px;padding:16px 20px 12px;background:var(--bg-surface,#fff);border-bottom:1px solid #efebe4}
.dp-title{flex:1;min-width:0}.dp-title h2{margin:0;font-size:19px;line-height:1.25}.dp-title p{margin:3px 0 0}
html body .dp-x{flex:none;width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border-radius:8px!important;font-size:15px!important;background:#f3f0ea!important;border:0!important;color:#5c5953!important}
.dp-body{padding:14px 20px 28px}
.dp-nums{display:flex;flex-wrap:wrap;gap:6px 26px;margin:0 0 6px}
.dp-nums div{margin:0}.dp-nums dt{font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#8a857c}
.dp-nums dd{margin:1px 0 0;font-size:16px;font-variant-numeric:tabular-nums}.dp-nums dd.ok{color:#1f6b33}
.dp-sec{margin-top:18px;padding-top:14px;border-top:1px solid #efebe4}
.dp-sec h3{margin:0 0 10px;font-size:14px;display:flex;align-items:center;gap:8px}
.dp-tbl{width:100%;border-collapse:collapse;font-size:12.5px}
html body .dp-tbl th,html body .dp-tbl td{border:0!important;border-bottom:1px solid #efebe4!important;padding:6px 7px!important;text-align:left;vertical-align:top;background:none;line-height:1.4}
html body .dp-tbl th{font-size:10.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#8a857c;background:#f7f5f1!important}
html body .dp-tbl .n{text-align:right!important;white-space:nowrap;font-variant-numeric:tabular-nums}
.dp-tbl .nw{white-space:nowrap}.dp-tbl .ok{color:#1f6b33;font-weight:700}
.dp-tbl tr.is-loose td{background:#fcfbf9}
html body .dp-link{all:unset;cursor:pointer;display:inline-block;margin-top:8px;font-size:12.5px;font-weight:600;color:var(--accent-ink,#137f79)}
html body .dp-link:hover{text-decoration:underline}
.dp-inline{display:block}
.dp-path{padding:8px 0;border-bottom:1px dashed #efebe4}
.dp-path:last-child{border-bottom:0}
.dp-path-head{display:flex;align-items:baseline;gap:12px;margin-bottom:4px}
.dp-path-head .dp-link{margin-top:0}
.dp-feed-who{font-size:11.5px;font-weight:700;color:#5c5953}
.dp-talk{padding:7px 10px;margin-bottom:6px;border-radius:8px;background:#f7f5f1;font-size:12.5px;line-height:1.45}
.dp-comment{display:flex;gap:8px;align-items:flex-start;margin-top:8px}
html body .dp-comment :is(input,textarea){flex:1;box-sizing:border-box;font-size:13px}
html body .dp-comment input{height:34px}
html body .dp-comment button{height:34px!important;min-height:34px!important;padding:0 14px!important;font-size:12.5px!important;white-space:nowrap}
.dp-src{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.dp-src a,.dp-src>span{display:block;padding:7px 10px;border:1px solid #efebe4;border-radius:8px;text-decoration:none;color:#1c1b19;font-size:12.5px}
.dp-src a:hover{border-color:var(--accent-ink,#137f79)}
.dp-src small{display:block;font-size:11.5px;color:#8a857c}
.dp-foot{margin-top:20px}
/* путь листа в карточке — те же точки, что во вкладке листов */
.dp .wp-path{list-style:none;margin:0;padding:0;display:grid;gap:3px;font-size:12.5px}
.dp .wp-path li{position:relative;padding-left:16px;line-height:1.4;color:#8a857c}
.dp .wp-path li::before{content:"";position:absolute;left:3px;top:6px;width:7px;height:7px;border-radius:50%;border:1.5px solid #c9c3b8;background:#fff}
.dp .wp-path li:not(:last-child)::after{content:"";position:absolute;left:6.5px;top:14px;bottom:-5px;width:1px;background:#e0dbd3}
.dp .wp-path li.is-done{color:#1c1b19}
.dp .wp-path li.is-done::before{background:var(--accent-ink,#137f79);border-color:var(--accent-ink,#137f79)}
.dp .wp-path b{font-weight:600;margin-right:4px}
.dp .wp-track{margin-left:4px;font-size:11.5px}
.dp .cp-st{display:inline-flex;align-items:baseline;gap:6px;line-height:1.35}
.dp .cp-st::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:#c9c3b8;transform:translateY(-1px)}
.dp .cp-st.st-у-приставов,.dp .cp-st.is-live{color:#1f6b33}.dp .cp-st.st-у-приставов::before,.dp .cp-st.is-live::before{background:#2e9e6a}
.dp .cp-st.st-направлен{color:#8a5a00}.dp .cp-st.st-направлен::before{background:#e0a24a}
.dp .cp-st.st-возвращён,.dp .cp-st.st-утрачен{color:#b42318}.dp .cp-st.st-возвращён::before{background:#d9534f}
.dp .cp-st.is-done{color:#1f6b33;font-weight:600}
.dp .cp-st.is-none,.dp .cp-st.is-wait,.dp .cp-st.is-closed{color:#8a857c}
html body .dp button.dp-link,html body .dp .dp-inline button.dp-link{all:unset;cursor:pointer;display:inline-block;margin-top:4px;height:auto!important;min-height:0!important;
  padding:0!important;border:0!important;background:none!important;box-shadow:none!important;font-size:12.5px!important;font-weight:600!important;color:var(--accent-ink,#137f79)!important}
/* переписка: переключатель стороны, поле и кнопка — одной строкой, без полосы прокрутки */
.dc-row{align-items:center!important}
.dc-row .dc-side{flex:none;display:inline-flex;gap:0;border:1px solid #e0dbd3;border-radius:999px;overflow:hidden;background:#fff}
.dc-row .dc-side span{border:0!important;border-radius:0!important;padding:4px 10px!important}
html body .dc-row textarea{overflow:hidden!important;scrollbar-width:none}
html body .dc-row textarea::-webkit-scrollbar{display:none}
.dc-msg{box-shadow:0 1px 0 rgba(0,0,0,.04)}
.dc-msg.is-us{background:#e3f2f0;border:1px solid #cfe7e3}
.dc-msg.is-client{background:#fdf3de;border:1px solid #f1dfb8}
.dc-msg.is-us .dc-who{color:#137f79}.dc-msg.is-client .dc-who{color:#8a5a00}
/* «Написать…» расширяется: при вводе растёт, на фокусе — три строки, угол тянется */
html body .dc-row textarea{resize:vertical!important;max-height:360px!important;transition:min-height .12s}
html body .dc-row textarea:focus{min-height:76px!important}
.dc-row{align-items:flex-end!important}
/* в таблице длинная запись — 4 строки; «ещё» и карточка показывают целиком */
.pj-chat .dc:not(.is-open) .dc-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
/* карточка должника: одна полоса прокрутки, анализ, дела, листы с путём */
.dp-drawer{scrollbar-width:thin;scrollbar-color:#d5d0c7 transparent;overscroll-behavior:contain}
.dp-drawer::-webkit-scrollbar{width:8px}.dp-drawer::-webkit-scrollbar-thumb{background:#d5d0c7;border-radius:4px}
html.dp-lock,html.dp-lock body{overflow:hidden!important}
.dp-full{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:#f3f0ea;color:#5c5953;text-decoration:none;font-size:15px}
.dp-full:hover{color:var(--accent-ink,#137f79)}
.dp-an{display:flex;gap:16px;align-items:flex-start}
.dp-score{flex:none;width:74px;height:74px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:4px solid #c9c3b8}
.dp-score b{font-size:22px;line-height:1}.dp-score span{font-size:10px;color:#8a857c}
.dp-score.is-ok{border-color:#2e9e6a;color:#1f6b33}.dp-score.is-mid{border-color:#e0a24a;color:#8a5a00}.dp-score.is-bad{border-color:#d9534f;color:#b42318}
.dp-an-body{flex:1;min-width:0}
.dp-verdict{display:inline-block;margin-bottom:8px;padding:3px 10px;border-radius:7px;font-weight:700;font-size:13px}
.dp-verdict.is-ok{background:#e7f4ec;color:#1f6b33}.dp-verdict.is-mid{background:#fdf1dc;color:#8a5a00}.dp-verdict.is-bad{background:#fdecea;color:#b42318}
.dp-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px;margin:0}
.dp-facts div{margin:0;min-width:0}.dp-facts .wide{grid-column:1/-1}
.dp-facts dt{font-size:10.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#8a857c}
.dp-facts dd{margin:1px 0 0;font-size:12.5px;overflow-wrap:anywhere}
.dp .bad{color:#b42318;font-weight:600}
.dp-flags,.dp-recs{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:4px;font-size:12.5px}
.dp-flags li{padding:4px 10px;border-radius:6px;background:#fdf1ef;color:#8a1f14}
.dp-flags li::before{content:"⚑ ";}
.dp-recs li{padding:4px 10px;border-radius:6px;background:#eef7f6;color:#1d5c58}
.dp-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:10px}
html body .dp .dp-btn{height:32px!important;min-height:32px!important;padding:0 14px!important;font-size:12.5px!important;border-radius:8px!important}
.dp-src-more>summary{list-style:none}.dp-src-more>summary::-webkit-details-marker{display:none}
.dp-src-more[open]{flex-basis:100%}
.dp-src-more .dp-src{margin-top:8px}
.dp-writ{padding:10px 12px;margin-bottom:8px;border:1px solid #efebe4;border-radius:10px;background:#fcfbf9}
.dp-writ.is-loose{border-style:dashed;background:#fff}
.dp-writ-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.dp-writ-num{font-size:13.5px}
.dp-writ-sum{margin-left:auto;font-weight:700;font-variant-numeric:tabular-nums}
.dp-writ-meta{margin:2px 0 6px;font-size:12px;color:#8a857c}
.dp-steps{margin:0 0 6px!important}
.dp-ip{display:flex;flex-wrap:wrap;gap:3px 14px;align-items:baseline;padding-top:6px;border-top:1px dashed #efebe4;font-size:12.5px}
.dp-ip a{font-weight:600}
.dp-ip-sums{color:#5c5953;font-variant-numeric:tabular-nums}
/* переписка: записи — одним столбцом от левого края переключателя, стороны — цветом */
html body .dc-msg{max-width:none!important;width:100%;box-sizing:border-box;align-self:stretch!important;border-radius:10px!important;
  border:1px solid transparent;border-left-width:4px!important;padding:7px 12px 8px!important}
html body .dc-msg.is-us{background:#eef7f6!important;border-color:#d3eae7!important;border-left-color:#1f8f88!important}
html body .dc-msg.is-client{background:#fdf6e6!important;border-color:#f1e1bd!important;border-left-color:#d9a13a!important}
/* переключатель стороны — выбранная половина полукруглой плашкой */
.dc-row .dc-side{padding:2px!important;gap:2px!important;border-radius:999px!important;background:#f5f3ef!important;border-color:#e6e1d8!important}
.dc-row .dc-side label{display:flex}
html body .dc-row .dc-side span{border-radius:999px!important;padding:4px 11px!important;background:transparent!important;border:0!important;color:#6d6a63!important}
html body .dc-row .dc-side input:checked+span{background:#fff!important;color:#137f79!important;box-shadow:0 1px 3px rgba(0,0,0,.12)}
html body .dc-row .dc-side label:nth-child(2) input:checked+span{color:#8a5a00!important}
html body .dc-more{align-self:flex-start!important;margin-left:2px}
.dp-tbl{table-layout:auto}
html body .dp-tbl td,html body .dp-tbl th{overflow-wrap:anywhere}
@media (max-width:760px){.dp-body{padding:12px 14px 24px}.dp-head{padding:12px 14px 10px}.dp-an{gap:10px}.dp-score{width:60px;height:60px}.dp-facts{grid-template-columns:1fr}
  html body table.dp-tbl{display:table!important}html body table.dp-tbl thead{display:table-header-group!important}html body table.dp-tbl tbody{display:table-row-group!important}
  html body table.dp-tbl tr{display:table-row!important}html body table.dp-tbl :is(td,th){display:table-cell!important;padding:5px 5px!important}
  html body .dp-tbl .nw{white-space:normal}}

/* Исполнитель в списке задач — «Стекачева М.» одной строкой, без переноса по слогам */
.pusk-tasks-who-name,.trow-who-name,.pusk-hearing-task-who{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;hyphens:none!important}
.pusk-tasks-who,.trow-who{display:inline-flex!important;align-items:center;gap:6px;flex-wrap:nowrap;white-space:nowrap}
td.pusk-tasks-col-who{min-width:140px;white-space:nowrap}

/* Плашка формата участия в заседании — одинаково везде: онлайн / очно / не выбран */
.fmt-badge{display:inline-flex;align-items:center;gap:4px;vertical-align:1px;padding:1px 8px 1px 6px;border-radius:999px;
  font:600 11.5px/1.5 inherit;font-family:inherit;white-space:nowrap;border:1px solid transparent;letter-spacing:0}
.fmt-badge svg{width:12px;height:12px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fmt-badge.is-live{background:#fbeee6;color:#9a4a1c}
.fmt-badge.is-online{background:#e6f0fb;color:#1f5fa8}
.fmt-badge.is-wait{background:#fdf3dc;color:#8a6310}
.fmt-badge.is-refused{background:#fbe7e6;color:#a8322a}
.fmt-badge.is-unknown{background:transparent;color:#8a8f96;border:1px dashed #c9ccd1}
.ios .fmt-badge{font-size:12px}

/* Две кнопки выбора формата: «Очно» · «Онлайн» — выбранная закрашена */
.fmt-pick{display:flex;gap:8px;margin:8px 0 4px}
.fmt-pick form{flex:1;margin:0}
.fmt-pick-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 10px;border-radius:10px;
  border:1px solid #d9d6cf;background:var(--bg-surface,#fff);color:#3b3f45;font:600 14px/1.2 inherit;font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.fmt-pick-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fmt-pick-btn.is-live.on{background:#fbeee6;border-color:#e9b99a;color:#9a4a1c}
.fmt-pick-btn.is-online.on{background:#e6f0fb;border-color:#a9c6ea;color:#1f5fa8}
.m-ev-li:has(>.fmt-pick){flex-wrap:wrap}
.m-ev-li>.fmt-pick{flex:0 0 100%;width:100%;box-sizing:border-box;order:9;margin:0;padding:0 14px 12px 72px}
.ios-head+.fmt-pick{margin:0 16px 14px}

/* ===== Календарь: неделя и день — как «Расписание» на телефоне ===== */
.ph-cald{display:flex;flex-direction:column;gap:14px;border:0!important;background:none!important}
.ph-cald .cald-row{display:block!important;border:0!important;background:none!important;padding:0!important;min-height:0!important}
.ph-cald .cald-day{display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:baseline;height:auto!important;min-height:0!important;gap:6px;width:auto!important;padding:0 4px 6px!important;border:0!important;background:none!important;
  font-size:12.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--text-secondary,#8a8f96)}
.ph-cald .cald-day>div{font-size:inherit!important;font-weight:inherit!important;line-height:1.3!important;color:inherit!important;margin:0!important}
.ph-cald .cald-row.today .cald-day{color:#c4271c}
.ph-cald .cald-n{margin-left:auto!important;font-weight:500!important}
.ph-cald .cald-day .calm-add{order:9;display:inline!important;width:auto!important;height:auto!important;padding:0!important;border:0!important;background:none!important;color:#137f79!important;margin-left:10px!important;font-size:12px;text-transform:none;letter-spacing:0;opacity:.0;transition:opacity .15s}
.ph-cald .cald-row:hover .calm-add{opacity:1}
.ph-cald .cald-items{display:block!important;padding:0!important;border-radius:12px;background:var(--bg-surface,#fff);box-shadow:0 1px 3px rgba(24,28,33,.07);overflow:hidden}
.ph-cald .cald-empty{padding:10px 16px!important;font-size:13px}
.ph-cald .cald-row:not(.today):has(.cald-empty) .cald-items{background:transparent;box-shadow:none;border:1px dashed #e3e0da}
.ph-ev{display:flex!important;align-items:stretch;gap:0;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
.ph-ev+.ph-ev{border-top:1px solid #efece6!important}
.ph-row{flex:1 1 auto;display:flex!important;align-items:stretch;gap:12px;padding:12px 14px 12px 16px!important;color:inherit!important;text-decoration:none!important;min-width:0}
.ph-row:hover{background:var(--bg-muted,#f8f6f2)}
.ph-time{flex:0 0 50px;display:flex;flex-direction:column;font-variant-numeric:tabular-nums}
.ph-time b{font-size:16px;font-weight:600;color:var(--text-primary,#1b1d20)}
.ph-time em{font-style:normal;font-size:13px;color:var(--text-secondary,#8a8f96)}
.ph-bar{flex:0 0 4px;border-radius:2px;background:#2f6fd6}
.ev-hearing .ph-bar{background:#d9463b}.ev-call .ph-bar{background:#34a853}.ev-deadline .ph-bar{background:#e2a33b}.ev-task .ph-bar{background:#9aa0a6}
.ph-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px}
.ph-kind{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;font-weight:600;letter-spacing:.02em;color:#2f6fd6}
.ev-hearing .ph-kind{color:#c4271c}.ev-call .ph-kind{color:#248a3d}.ev-deadline .ph-kind{color:#a86b10}.ev-task .ph-kind{color:#6b7076}
.ph-name{font-size:15.5px;font-weight:600;line-height:1.3;color:var(--text-primary,#1b1d20)}
.ph-place{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;font-size:14px;line-height:1.3;color:#3a3a3c}
.ph-room{padding:1px 7px;border-radius:6px;background:#fdecea;color:#c4271c;font-size:14px;font-weight:700}
.ph-note{font-size:13px;color:var(--text-secondary,#8a8f96)}
.ph-ev.is-past .ph-row{opacity:.5}
.ph-ev.skipped .ph-name{text-decoration:line-through;color:#8a8f96}
.ph-ev .cals-ev-acts{flex:none;display:flex;align-items:flex-start;gap:2px;padding:10px 10px 0 0!important;opacity:.35;transition:opacity .15s;position:static!important}
.ph-ev:hover .cals-ev-acts{opacity:1}
.ph-cald.is-day .ph-row{padding:16px 18px 16px 20px!important}
.ph-cald.is-day .ph-name{font-size:17px}

/* ===== Календарь: месяц — компактные строки с цветной полоской ===== */
.calm .calm-ev{display:block!important;margin:0 0 3px!important;padding:3px 6px 3px 7px!important;border:0!important;border-left:3px solid #2f6fd6!important;
  border-radius:4px!important;background:#f3f6fc!important;box-shadow:none!important;color:inherit!important;text-decoration:none!important;line-height:1.25}
.calm .calm-ev.ev-hearing{border-left-color:#d9463b!important;background:#fdf1ef!important}
.calm .calm-ev.ev-call{border-left-color:#34a853!important;background:#eef8f0!important}
.calm .calm-ev.ev-deadline{border-left-color:#e2a33b!important;background:#fdf6e7!important}
.calm .calm-ev.ev-task{border-left-color:#9aa0a6!important;background:#f3f3f2!important}
.calm .calm-ev .calm-line{display:inline!important}
.calm .calm-ev .calm-dot,.calm .calm-ev .who-dots{display:none!important}
.calm .calm-ev .calm-time{font-weight:700;font-size:12px;margin-right:4px;font-variant-numeric:tabular-nums}
.calm .calm-ev .calm-ttl{display:inline!important;font-size:12.5px;font-weight:500;-webkit-line-clamp:2}
.calm .calm-ev .calm-place{display:block!important;font-size:11.5px;color:#6b7076;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calm .calm-ev .calm-place .fmt-badge{font-size:10.5px;padding:0 6px 0 4px}
.calm .calm-ev.skipped{opacity:.5}.calm .calm-ev.skipped .calm-ttl{text-decoration:line-through}
.calm .calm-day.today .calm-num{background:#d9463b;color:#fff;border-radius:999px;padding:0 7px}

/* Галочка «выполнено» — знак ровно по центру квадрата, без кольца после щелчка */
.tickbox{display:inline-flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;
  padding:0!important;line-height:1!important;text-align:center!important;vertical-align:top}
.tickbox.on{font-size:14px!important;font-weight:700!important;color:#137f79!important;background:#e6f3f2!important;border-color:#137f79!important}
.tickbox:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}

/* Месяц — как «Расписание» на телефоне: белая карточка, цветная полоска вида
   (суд — красная), тонкая рамка; цвет не заливает фон (просьба Анны 30.09.2026) */
.calm .calm-ev,.calm .calm-ev.ev-hearing,.calm .calm-ev.ev-call,.calm .calm-ev.ev-deadline,.calm .calm-ev.ev-task,
body.pusk-today-shell .pusk-cal-body .calm-ev,body.pusk-today-shell .pusk-cal-body .calm-ev.ev-hearing,
body.pusk-today-shell .pusk-cal-body .calm-ev.ev-task,body.pusk-today-shell .pusk-cal-body .calm-ev.ev-deadline,
body.pusk-today-shell .pusk-cal-body .calm-ev.ev-meeting,body.pusk-today-shell .pusk-cal-body .calm-ev.ev-call{
  background:#fff!important;box-shadow:0 0 0 1px #ebe7e0!important;border-left-width:3px!important;border-radius:5px!important}
.calm .calm-ev:hover,body.pusk-today-shell .pusk-cal-body .calm-ev:hover{box-shadow:0 0 0 1px #d9d3c8,0 2px 6px rgba(24,28,33,.06)!important}
.calm .calm-ev .calm-ttl{color:#1c1b19!important;font-weight:600}
.calm .calm-ev .calm-time{color:#1c1b19}
/* Задача отмечена выполненной на месте — строка приглушается, название зачёркнуто */
tr.is-done .pusk-tasks-title,li.is-done .pusk-tasks-title{text-decoration:line-through;opacity:.55}
tr.is-done td{opacity:.75}
/* Узкое окно: кнопки в строке действий «Судов и дел» и «Отметить все прочитанными»
   в ленте переносятся, а не уходят за край */
@media (max-width:760px){
  html body .pusk-cases-actions-row-figma{flex-wrap:wrap!important;row-gap:8px;flex:1 1 100%!important;max-width:100%!important;min-width:0!important}
  html body .pusk-feed-day-head{flex-wrap:wrap!important;row-gap:4px}
  html body .pusk-feed-day-head .pusk-feed-textbtn{white-space:normal;text-align:left}
}

/* ===== «Сегодня»: расписание дня и недели — как в «Календаре» ===== */
button.ph-row{width:100%;border:0!important;background:none!important;box-shadow:none!important;text-align:left;font:inherit;cursor:pointer;border-radius:0!important;min-height:0!important;height:auto!important}
.pusk-schedule-card.ph-ev{position:relative;border-radius:12px!important;background:var(--bg-surface,#fff)!important;box-shadow:0 1px 3px rgba(24,28,33,.07)!important;margin:0 0 8px!important;border:0!important}
.pusk-schedule-card.ph-ev .ph-row{padding:10px 12px 10px 14px!important}
.pusk-schedule-card.ph-ev .pusk-schedule-card-actions{flex:none;display:flex;align-items:flex-start;gap:2px;padding:8px 8px 0 0;opacity:.35;transition:opacity .15s;position:static!important}
.pusk-schedule-card.ph-ev:hover .pusk-schedule-card-actions{opacity:1}
/* неделя: узкие колонки — то же, но мельче; кнопки участия — при наведении в углу */
.pusk-ws-event.ph-mini{position:relative;display:block!important;margin:0 0 6px!important;padding:0!important;border:0!important;border-radius:10px!important;
  background:var(--bg-surface,#fff)!important;box-shadow:0 1px 2px rgba(24,28,33,.08)!important;overflow:hidden}
.ph-mini .ph-row{gap:7px!important;padding:8px 9px 8px 8px!important}
.ph-mini .ph-time{flex:0 0 38px}.ph-mini .ph-time b{font-size:13.5px}.ph-mini .ph-time em{font-size:11.5px}
.ph-mini .ph-bar{flex-basis:3px}
.ph-mini .ph-kind{font-size:11px;gap:4px}.ph-mini .ph-kind .fmt-badge{font-size:10.5px;padding:0 6px 0 4px}
.ph-mini .ph-name{font-size:13px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ph-mini .ph-place{font-size:12px;gap:2px 6px}.ph-mini .ph-room{font-size:12px;padding:0 5px}
.ph-mini .ph-note{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ph-mini .pusk-attend{position:absolute;top:4px;right:4px;opacity:0;transition:opacity .15s;background:var(--bg-surface,#fff);border-radius:8px}
.ph-mini:hover .pusk-attend{opacity:1}
/* в узкой колонке недели время — строкой сверху, полоска — левым краем карточки */
.ph-mini .ph-row{flex-direction:column!important;gap:2px!important;padding:7px 8px 8px 9px!important}
.ph-mini .ph-time{flex:none!important;flex-direction:row!important;gap:4px;align-items:baseline}
.ph-mini .ph-time em::before{content:"–";margin-right:3px}
.ph-mini .ph-bar{display:none}
.pusk-ws-event.ph-mini{border-left:3px solid #2f6fd6!important}
.pusk-ws-event.ph-mini.ev-hearing{border-left-color:#d9463b!important}.pusk-ws-event.ph-mini.ev-call{border-left-color:#34a853!important}
.pusk-ws-event.ph-mini.ev-deadline{border-left-color:#e2a33b!important}.pusk-ws-event.ph-mini.ev-task{border-left-color:#9aa0a6!important}

/* ===== Лента: действия — своей колонкой справа, не поверх текста; видны всегда ===== */
body.pusk-today-shell .pusk-feed-day-list .pusk-feed-stream-row{grid-template-columns:20px 50px minmax(0,1fr) 170px!important}
body.pusk-today-shell .pusk-feed-day-list .pusk-feed-stream-row>.pusk-feed-stream-main{grid-column:3!important;grid-row:1!important}
body.pusk-today-shell .pusk-feed-day-list .pusk-feed-stream-row>:is(.pusk-feed-dot-form,.pusk-feed-stream-dot,.pusk-feed-stream-time){grid-row:1!important}
body.pusk-today-shell .pusk-feed-day-list .pusk-feed-row-actions{position:static!important;grid-column:4!important;grid-row:1!important;
  display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:4px!important;margin:0!important;opacity:.55!important;transform:none!important}
body.pusk-today-shell .pusk-feed-day-list .pusk-feed-stream-row:hover .pusk-feed-row-actions,
body.pusk-today-shell .pusk-feed-day-list .pusk-feed-stream-row.is-open .pusk-feed-row-actions{opacity:1!important}
body.pusk-today-shell .pusk-feed-row-actions :is(.pusk-feed-textbtn,a,button){min-height:0!important;height:auto!important;padding:2px 0!important;border:0!important;
  background:none!important;box-shadow:none!important;color:#137f79!important;font-size:13px!important;font-weight:500!important;text-align:right;white-space:nowrap}
body.pusk-today-shell .pusk-feed-row-actions .is-spam{color:#a8322a!important}
body.pusk-today-shell .pusk-feed-row-actions form{margin:0!important}
/* текст строки — полностью, переносом, без обрезки */
body.pusk-today-shell .pusk-feed-day-list .pusk-feed-stream-sub{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
/* плашки — одной высоты и ровным рядом */
body.pusk-today-shell .pusk-feed-stream-badges{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px!important;margin-top:6px!important}
body.pusk-today-shell .pusk-feed-stream-badges .pusk-feed-badge,body.pusk-today-shell .pusk-feed-stream-badges .pusk-feed-badge-form>.pusk-feed-badge{
  height:22px!important;min-height:22px!important;padding:0 9px!important;border-radius:6px!important;font-size:12px!important;font-weight:600!important;line-height:22px!important;margin:0!important}
body.pusk-today-shell .pusk-feed-stream-type{display:flex!important;align-items:center;gap:8px;flex-wrap:wrap}
body.pusk-today-shell .pusk-feed-case-chip{display:inline-flex!important;align-items:center;height:22px!important;padding:0 8px!important;border-radius:6px!important;font-size:12px!important;line-height:22px!important}
@media (max-width:1100px){body.pusk-today-shell .pusk-feed-day-list .pusk-feed-stream-row{grid-template-columns:20px 50px minmax(0,1fr)!important}body.pusk-today-shell .pusk-feed-day-list .pusk-feed-stream-row>.pusk-feed-stream-main{grid-column:3!important}
  body.pusk-today-shell .pusk-feed-day-list .pusk-feed-row-actions{grid-column:3!important;grid-row:2!important;flex-direction:row!important;justify-content:flex-start!important;gap:14px!important;opacity:1!important}}

/* Настройки без бокового меню: «← Настройки» над заголовком внутренних страниц */
.set-crumb{display:inline-block;margin:0 0 6px;font-size:14px;color:#1f5fa8!important;text-decoration:none!important}
.set-crumb:hover{text-decoration:underline!important}
.pusk-appearance-layout{display:block!important}
.pusk-appearance-layout>.pusk-settings-nav,.pusk-appearance-layout>nav.pusk-cabinet-nav{display:none!important}
html.pusk-settings .pusk-ws-tabs{display:none!important}
/* Профиль: подпись над полем, поля во всю ширину колонки */
.pusk-cabinet-fields{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px 18px}
.pusk-cabinet-fields label{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px;font-size:13px;font-weight:600}
.pusk-cabinet-fields label input{width:100%!important;max-width:none!important;box-sizing:border-box}
.is-closed-link{color:inherit!important;text-decoration:none!important;cursor:default!important;opacity:.75}
/* плашка тестировщика — внизу слева, не закрывает поиск в шапке */
.sandbox-bar{top:auto!important;bottom:14px!important;left:50%!important;transform:translateX(-50%)!important;border-radius:10px!important;max-width:calc(100vw - 28px)}

/* Тёмные темы: крупные блоки, где светлый фон задан жёстко, — сразу в цветах темы,
   без белой вспышки при переходе между вкладками (мелочь дочищает скрипт) */
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-suggest,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .crm-notification-panel,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .today-all,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .today-card,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .today-scroll,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .today-event,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .today-calendar-panel,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .approved-day-panel,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .approved-day-footer,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .approved-day-preview,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .today-day-preview,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .today-day-panel,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .today-day-head,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .today-day-list,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .today-day-footer,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-main-pane,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-planner-sheet,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-planner-toolbar,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-planner-search,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-planner-filter,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-planner-table-card,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-tasks-col-done,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-tasks-col-title,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-tasks-col-ctx,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-tasks-col-who,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-tasks-col-due,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-tasks-col-pri,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-tasks-col-status,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-tasks-col-menu,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-planner-table-foot,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-planner-detail,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-cases-head-search,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-cases-tool-btn,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-cases-col-panel,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-cases-table-wrap,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-hearing-hero,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-top-tasks,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .board-filters,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-feed-day-head,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .enf-seg,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .rail-item,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-logic-table-wrap,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .lg-contract-form,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-logic-thread,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-logic-thread-item,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-hearing-task-list,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .mc-bar{background-color:var(--bg-surface)!important;border-color:var(--border-default)!important}
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-tasks-title,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-tasks-ctx-link,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-tasks-due,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-tasks-pri,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-tasks-status-text,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-cases-page-title,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-cases-tool-btn,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-cases-title,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-tab,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-hearing-hero-label,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-textbtn,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-kv-val,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-link-all,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-finance-val,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .cald-wd,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .cald-num,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .cald-mon,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .cald-n,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .calm-ttl,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .thread-who,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-logic-select,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .mc-path-lbl{color:var(--text-primary)!important}
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-hearing-hero-note,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-top-task-meta,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-hl-room,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-hl-note,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-hl-when,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-kv-label,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-act-date,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-act-sum,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-act-judge,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-finance-label,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-part-role,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-case-feed-when,
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .crm-notification-total{color:var(--text-secondary)!important}
html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body thead th,html:is([data-pusk-theme="grafit"],[data-pusk-theme="noch"],[data-pusk-theme="sumerki"],[data-pusk-theme="vulkan"]) body .pusk-tasks-table thead th{background-color:var(--bg-muted)!important;color:var(--text-secondary)!important}

/* ===== Реестры «Клиенты» и «Договоры» — в едином виде ===== */
.reg-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:2px 0 12px}
.reg-title{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.reg-title h1{margin:0!important}
.reg-sub{font-size:14px;color:var(--text-secondary,#8a8f96)}
.reg-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.reg-actions .year-switch{margin:0 6px 0 0!important;font-size:13px}
.reg-actions .year-switch a{margin-left:6px}
.reg-more{position:relative}
.reg-more>summary{list-style:none;cursor:pointer}
.reg-more>summary::-webkit-details-marker{display:none}
.reg-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:40;min-width:300px;display:flex;flex-direction:column;gap:2px;padding:8px;
  background:var(--bg-surface,#fff);border:1px solid var(--border-default,#e5e2dc);border-radius:12px;box-shadow:0 12px 32px rgba(24,28,33,.16)}
.reg-menu a,.reg-menu .reg-link{display:block;padding:8px 10px;border-radius:8px;color:var(--text-primary,#1b1d20)!important;text-decoration:none!important;
  font-size:14px;text-align:left;background:none!important;border:0!important;box-shadow:none!important;width:100%;cursor:pointer;min-height:0!important;font-weight:400!important}
.reg-menu a:hover,.reg-menu .reg-link:hover{background:var(--bg-muted,#f5f3ef)!important}
.reg-upload{display:flex;flex-direction:column;gap:6px;margin:4px 0;padding:8px 10px;border-top:1px solid var(--border-default,#eee);border-bottom:1px solid var(--border-default,#eee);font-size:13px}
.reg-upload input[type=file]{display:block;margin-top:4px;font-size:12px}
.reg-check{display:flex;align-items:center;gap:6px}
.reg-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.reg-bar input[type=search]{flex:1 1 240px;min-width:200px;max-width:380px}
.reg-bar select{max-width:220px}
.reg-bar .pick-box{min-width:200px;max-width:240px}
.reg-reset{font-size:13px}
.reg-hint{margin-left:auto;font-size:12.5px;color:var(--text-secondary,#8a8f96)}
.reg-chips{display:flex;gap:6px;flex-wrap:wrap}
.reg-chips a{display:inline-flex;align-items:center;gap:5px;padding:5px 11px;border-radius:999px;border:1px solid var(--border-default,#e3e0da);
  font-size:13px;color:var(--text-primary,#1b1d20)!important;text-decoration:none!important;background:var(--bg-surface,#fff)}
.reg-chips a b{font-weight:600;font-size:12px;color:var(--text-secondary,#8a8f96)}
.reg-chips a.on{background:#137f79;border-color:#137f79;color:#fff!important}.reg-chips a.on b{color:rgba(255,255,255,.8)}
.reg-table-wrap{border-radius:12px;overflow:hidden;background:var(--bg-surface,#fff);box-shadow:0 1px 3px rgba(24,28,33,.07)}
.reg-table{width:100%;border-collapse:collapse;margin:0!important}
.reg-table th{padding:9px 14px!important;font-size:12px!important;font-weight:600!important;text-transform:uppercase;letter-spacing:.04em;
  color:var(--text-secondary,#8a8f96)!important;text-align:left;background:var(--bg-muted,#f6f4f0)!important;border:0!important}
.reg-table td{padding:10px 14px!important;border:0!important;border-top:1px solid var(--border-default,#efece6)!important;vertical-align:top;font-size:14px}
.reg-table tr[data-href]{cursor:pointer}
.reg-table tbody tr:hover td{background:var(--bg-muted,#f8f6f2)}
.reg-table .right{text-align:right}
.cl-name a{display:block;font-weight:600;font-size:15px;color:var(--text-primary,#1b1d20)!important;text-decoration:none!important}
.cl-name a:hover{color:#137f79!important}
.cl-name span,.cl-eng em,.cl-money em{display:block;font-style:normal;font-size:12.5px;color:var(--text-secondary,#8a8f96)}
.cl-eng a{display:block;font-size:13.5px}
.cl-eng em{display:inline}
.cl-money span{display:block;font-variant-numeric:tabular-nums}
.cl-risk{display:inline-block;margin-top:3px;padding:1px 8px;border-radius:6px;background:#fdecea;color:#b42318;font-size:12.5px}
.cl-gaps{font-size:12.5px;color:#a86b10}
.cl-gaps .cl-ok{color:var(--text-secondary,#8a8f96)}
.cl-table th:nth-child(1){width:34%}.cl-table th:nth-child(2){width:22%}.cl-table th:nth-child(3){width:11%}.cl-table th:nth-child(4){width:15%}
@media (max-width:1100px){.reg-hint{display:none}}
.reg-bar .field__label{display:none!important}
.reg-bar .field{display:contents!important}
.reg-num{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;margin:-4px 0 12px;font-size:14px}
.reg-num b{font-size:15px}
.reg-num-warn{padding:2px 9px;border-radius:7px;background:#fdf3dc;color:#8a6310;font-size:13px}
.reg-num-warn a{color:inherit!important}

/* ===== Реестр договоров: строка в одну линию, карточка сбоку, чипы, вид по клиентам ===== */
.ct-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 8px}
.ct-view{display:flex;padding:2px;border-radius:9px;background:var(--bg-muted,#efece6)}
.ct-view button{border:0!important;background:none!important;box-shadow:none!important;padding:5px 12px!important;border-radius:7px!important;font-size:13px!important;font-weight:600;color:var(--text-secondary,#6b7076)!important;min-height:0!important;cursor:pointer}
.ct-view button.on{background:var(--bg-surface,#fff)!important;color:var(--text-primary,#1b1d20)!important;box-shadow:0 1px 2px rgba(0,0,0,.12)!important}
.ct-total{margin:0 0 8px;font-size:13px;color:var(--text-secondary,#6b7076)}
.ct-wrap table.contracts-reg{margin:0!important;border-collapse:collapse}
.ct-wrap table.contracts-reg th{padding:9px 12px!important;font-size:12px!important;text-transform:uppercase;letter-spacing:.04em;background:var(--bg-muted,#f6f4f0)!important;border:0!important}
tr.ct-row td{padding:9px 12px!important;vertical-align:top;border:0!important;border-top:1px solid var(--border-default,#efece6)!important;font-size:13.5px;line-height:1.35}
tr.ct-row{cursor:pointer}
tr.ct-row:hover td,tr.ct-row.is-picked td{background:var(--bg-muted,#f7f5f1)!important}
tr.ct-row.is-picked td:first-child{box-shadow:inset 3px 0 0 #137f79}
.ct-num{display:block;font-weight:700;font-size:14.5px}
.ct-date,.ct-sub{display:block;font-size:12px;color:var(--text-secondary,#8a8f96)}
.ct-ico{display:flex;align-items:center;gap:6px;margin-top:3px}
.ct-i{font-size:13px;opacity:.28;filter:grayscale(1);text-decoration:none!important}
.ct-i.on{opacity:1;filter:none}
.ct-ds{font-size:11.5px;padding:0 6px;border-radius:6px;background:var(--bg-muted,#efece6);color:var(--text-secondary,#6b7076)}
.ct-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ct-model .ct-clamp{-webkit-line-clamp:2;color:var(--text-secondary,#6b7076)}
.ct-money{white-space:nowrap}
.ct-money b{display:block;font-variant-numeric:tabular-nums}
.ct-noamt{display:block;color:#a86b10;font-size:12.5px}
.ct-bar i{display:block}
i.ct-bar{display:block;height:4px;margin:4px 0 2px auto;width:90px;border-radius:3px;background:var(--bg-muted,#ebe8e2);overflow:hidden}
i.ct-bar>i{height:100%;background:#2e9d6a;border-radius:3px}
.ct-debt{display:inline-block;margin-top:2px;padding:0 7px;border-radius:6px;background:#fdecea;color:#b42318;font-size:12px;font-weight:600}
.ct-pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;background:var(--bg-muted,#efece6);color:var(--text-secondary,#5b6068)}
.ct-pill.st-on{background:#e3f4ec;color:#1e7a4f}.ct-pill.st-draft{background:#fdf3dc;color:#8a6310}.ct-pill.st-off{background:#fbe7e6;color:#a8322a}
.ct-tools .row-tools{opacity:0;transition:opacity .15s}
tr.ct-row:hover .ct-tools .row-tools{opacity:1}
tr.ct-grp td{padding:10px 12px!important;background:var(--bg-muted,#f3f0ea)!important;font-weight:700;font-size:14px;border-top:1px solid var(--border-default,#e5e2dc)!important}
tr.ct-grp span{margin-left:8px;font-weight:400;font-size:13px;color:var(--text-secondary,#6b7076)}
.ct-grp-t{border:0!important;background:none!important;box-shadow:none!important;padding:0 4px!important;min-height:0!important;cursor:pointer;font-size:13px!important}
.ct-drawer{position:fixed;top:0;right:0;bottom:0;z-index:60;width:min(520px,94vw);overflow:auto;padding:22px 24px 30px;
  background:var(--bg-surface,#fff);box-shadow:-12px 0 32px rgba(24,28,33,.18);border-left:1px solid var(--border-default,#e5e2dc)}
.ct-drawer-x{position:absolute;top:14px;right:14px;border:0!important;background:none!important;box-shadow:none!important;font-size:18px!important;cursor:pointer;min-height:0!important}
.ct-drawer h3{margin:2px 0 4px!important;font-size:22px!important}
.ct-drawer h4{margin:16px 0 4px!important;font-size:12px!important;text-transform:uppercase;letter-spacing:.04em;color:var(--text-secondary,#8a8f96)}
.ct-drawer p{margin:0 0 4px;font-size:14px;line-height:1.45}
.ct-d-kind{font-size:12.5px!important;color:var(--text-secondary,#8a8f96)}
.ct-d-money{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}
.ct-d-money div{padding:8px 10px;border-radius:10px;background:var(--bg-muted,#f5f3ef)}
.ct-d-money span{display:block;font-size:11.5px;color:var(--text-secondary,#8a8f96)}
.ct-d-money b{font-size:14px;font-variant-numeric:tabular-nums}
.ct-d-money .is-debt{background:#fdecea}.ct-d-money .is-debt b{color:#b42318}
.ct-d-actions{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.ct-d-actions a,.ct-d-actions button{font-size:13px!important;padding:6px 12px!important;min-height:0!important}
.ct-d-status label{display:flex;align-items:center;gap:8px;font-size:13px}
.ct-d-ds{margin:0;padding-left:18px;font-size:13.5px}
.ct-drawer .money-body{font-size:13px}

/* ===== Документооборот: очередь по шагам ===== */
.dq-empty{padding:18px 20px;border-radius:12px;background:#e3f4ec;color:#1e7a4f;font-size:15px;margin:0 0 14px}
.dq-steps{display:flex;flex-direction:column;gap:12px}
.dq-step{border-radius:14px;background:var(--bg-surface,#fff);box-shadow:0 1px 3px rgba(24,28,33,.07);overflow:hidden}
.dq-step>header{display:flex;align-items:center;gap:12px;padding:12px 16px}
.dq-step h2{margin:0!important;font-size:16px!important}
.dq-step header p{margin:1px 0 0;font-size:12.5px;color:var(--text-secondary,#8a8f96)}
.dq-n{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--bg-muted,#efece6);font-weight:700;font-size:13px}
.dq-count{margin-left:auto;min-width:28px;padding:2px 10px;border-radius:999px;background:#fdf3dc;color:#8a6310;text-align:center;font-size:13px}
.dq-count.is-zero{background:#e3f4ec;color:#1e7a4f}
.dq-step.is-empty>header{opacity:.6}
.dq-step ul{list-style:none;margin:0;padding:0}
.dq-step li{border-top:1px solid var(--border-default,#efece6)}
.dq-row{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1.6fr) 120px 110px 140px;gap:12px;align-items:center;padding:9px 16px;
  color:inherit!important;text-decoration:none!important;font-size:13.5px}
.dq-row:hover{background:var(--bg-muted,#f7f5f1)}
.dq-who b{display:block;font-weight:600}
.dq-who em{display:block;font-style:normal;font-size:12.5px;color:var(--text-secondary,#8a8f96)}
.dq-sub{font-size:12.5px;color:var(--text-secondary,#6b7076);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dq-sum{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
.dq-age{text-align:right;font-size:13px}
.dq-age small{display:block;font-size:11px;color:var(--text-secondary,#8a8f96)}
.dq-act{text-align:right;color:#137f79;font-weight:600;font-size:13px}
.dq-step li.is-late .dq-age{color:#b42318;font-weight:600}
@media (max-width:900px){.dq-row{grid-template-columns:1fr auto}.dq-sub,.dq-age,.dq-act{display:none}}
.pusk-ws-subtabs{display:flex;flex-wrap:wrap;gap:4px;margin:-6px 0 14px}
.pusk-ws-subtabs a{padding:4px 11px;border-radius:999px;font-size:13px;color:var(--text-secondary,#6b7076)!important;text-decoration:none!important}
.pusk-ws-subtabs a:hover{background:var(--bg-muted,#f1efea)}
.pusk-ws-subtabs a.on{background:var(--bg-muted,#ebe8e2);color:var(--text-primary,#1b1d20)!important;font-weight:600}
.dq-step li{position:relative}
.dq-remind{position:absolute;right:16px;top:50%;transform:translateY(-50%);margin:0}
.dq-remind button{border:1px solid #9ccfcb!important;background:#e6f3f2!important;color:#0f6661!important;border-radius:8px!important;padding:4px 12px!important;font-size:13px!important;font-weight:600;min-height:0!important;cursor:pointer;box-shadow:none!important}
/* ЛОГИКА: значки ✎ 🗑 комментария — справа от даты, не поверх неё */
.pusk-logic-thread-item .thread-who{padding-right:54px}
/* Акты: «Отправлен» — дата и канал в строку, кнопка под ними; ничего не сжимается и не уходит за край */
td.fm-todo form.fm-sent{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:6px 8px!important;align-items:end}
td.fm-todo form.fm-sent>div{min-width:0}
td.fm-todo form.fm-sent input,td.fm-todo form.fm-sent select{width:100%!important;min-width:0!important;box-sizing:border-box}
td.fm-todo form.fm-sent>button{grid-column:1 / -1;justify-self:start}
td.fm-todo{min-width:260px}
@media (max-width:760px){.sandbox-bar{bottom:calc(84px + env(safe-area-inset-bottom,0px))!important;font-size:12px!important;max-width:calc(100vw - 24px)}}
/* Подсказка обновления: невидимый мостик над ней — мышь не «проваливается» в зазор */
body.pusk-today-shell .pusk-sync-pop::before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px}

/* Расписание дня в узкой колонке: время строкой сверху, кнопки в углу,
   полоска — левым краем; текст получает всю ширину карточки */
.pusk-schedule-card.ph-ev{container-type:inline-size}
@container (max-width:480px){
  .pusk-schedule-card.ph-ev .ph-row{flex-direction:column!important;gap:3px!important;padding:10px 12px 12px 14px!important}
  .pusk-schedule-card.ph-ev .ph-time{flex:none!important;flex-direction:row!important;gap:6px;align-items:baseline;padding-right:96px}
  .pusk-schedule-card.ph-ev .ph-time em::before{content:"–";margin-right:3px}
  .pusk-schedule-card.ph-ev .ph-bar{position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:0}
  .pusk-schedule-card.ph-ev .ph-name{font-size:15px;overflow-wrap:normal;word-break:normal;hyphens:auto}
  .pusk-schedule-card.ph-ev .pusk-schedule-card-actions{position:absolute!important;top:6px;right:6px;padding:0!important}
}
.pusk-schedule-card.ph-ev{overflow:hidden}

/* ===== Окно «Добавить»: помещается на экране, виды в одну строку, кнопка всегда видна ===== */
.add-sheet{width:min(620px,100vw - 12px)!important;max-width:100vw!important;left:auto!important;right:0!important;box-sizing:border-box}
.add-sheet #add-any{gap:10px 14px!important;padding-bottom:0!important}
.add-sheet #add-any label{margin-bottom:3px!important}
.add-sheet #add-any input:not([type=checkbox]),.add-sheet #add-any select{min-height:38px!important;height:38px!important;padding-top:6px!important;padding-bottom:6px!important}
.add-sheet .m-kind-seg{grid-column:1 / -1!important;display:flex!important;flex-wrap:nowrap!important;gap:6px!important;width:100%!important}
.add-sheet .m-kind-seg button{flex:1 1 0;min-width:0;padding:8px 6px!important;min-height:0!important;font-size:14px!important;white-space:nowrap}
.add-sheet .m-kind-row{display:none!important}        /* список «Вид» повторял кнопки выше */
.add-sheet #add-any>div:has(> input[name=all_day]){display:flex!important;flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:8px;align-self:end;min-height:38px}
.add-sheet #add-any>div:has(> input[name=all_day]) label{margin:0!important}
.add-sheet #add-any>div:has(> input[name=all_day]) input{width:18px!important;height:18px!important;margin:0!important}
.add-sheet #add-any textarea{min-height:70px!important;height:70px}
.add-sheet #add-any>button:last-child{position:sticky;bottom:0;grid-column:1 / -1;z-index:2;width:100%;margin:6px 0 0!important;min-height:44px!important;
  box-shadow:0 -10px 14px var(--bg-surface,#fff)!important;cursor:pointer}

/* Расписание дня: время — в столбце часов слева; в карточке точное время мелко
   в строке вида, текст на всю ширину, кнопки в углу */
.ph-tinline{display:none}
.pusk-schedule-card.ph-ev .ph-tinline{display:inline;margin-right:6px;color:var(--text-primary,#1b1d20);font-weight:700}
.pusk-schedule-card.ph-ev .ph-time{display:none!important}
.pusk-schedule-card.ph-ev{position:relative}
.pusk-schedule-card.ph-ev .ph-row{flex-direction:row!important;gap:10px!important;padding:10px 12px 12px 14px!important;width:100%}
.pusk-schedule-card.ph-ev .ph-bar{position:absolute!important;left:0;top:0;bottom:0;width:4px;border-radius:0}
.pusk-schedule-card.ph-ev .ph-kind{padding-right:100px}
.pusk-schedule-card.ph-ev .ph-name{font-size:15px;line-height:1.3}
.pusk-schedule-card.ph-ev .pusk-schedule-card-actions{position:absolute!important;top:6px;right:6px;padding:0!important}

/* ===== Карточка дела: перенесённые блоки в общем виде, «Банкротство», настройка вкладок ===== */
.pusk-case-x{margin:0 0 14px;padding:16px 18px!important;border-radius:14px;background:var(--bg-surface,#fff);box-shadow:0 1px 3px rgba(24,28,33,.07)}
.pusk-case-x>.panel,.pusk-case-x .panel{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:none!important}
.pusk-case-x>details>summary,.pusk-case-x>.panel>summary,.pusk-case-x>.panel>label:first-child{display:block;margin:0 0 8px;font-size:15px!important;font-weight:700!important;
  color:var(--text-primary,#1b1d20)!important;text-transform:none!important;letter-spacing:0!important;cursor:pointer}
.pusk-case-x details:not([open])>summary{margin:0}
.pusk-case-x table{width:100%;border-collapse:collapse;margin:6px 0 8px!important}
.pusk-case-x th{padding:7px 10px!important;font-size:12px!important;text-transform:uppercase;letter-spacing:.04em;color:var(--text-secondary,#8a8f96)!important;background:var(--bg-muted,#f6f4f0)!important;border:0!important;text-align:left}
.pusk-case-x td{padding:8px 10px!important;border:0!important;border-top:1px solid var(--border-default,#efece6)!important;font-size:13.5px;vertical-align:top}
.pusk-case-x form.inline{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:flex-end;margin:8px 0}
.pusk-case-x form.inline>div{display:flex;flex-direction:column;gap:3px}
.pusk-case-x form.inline label{font-size:12px;color:var(--text-secondary,#8a8f96);margin:0}
.pusk-case-x form.inline h3{width:100%;margin:12px 0 2px!important;font-size:14px!important}
.pusk-case-x .when-big{font-size:22px;font-weight:700;margin:2px 0}
.pusk-case-x-side{padding:14px 16px!important}
.pusk-case-x-bk>details>summary{display:none!important}            /* заголовок уже есть в шапке вкладки */
.pusk-case-bk-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:14px 18px;border-radius:14px;
  background:var(--bg-surface,#fff);box-shadow:0 1px 3px rgba(24,28,33,.07)}
.pusk-case-bk-head b{display:block;font-size:17px}
.pusk-case-bk-head span{display:block;font-size:13px;color:var(--text-secondary,#8a8f96)}
.pusk-case-bk-empty{margin:0 0 12px;padding:12px 16px;border-radius:12px;background:#fdf3dc;color:#8a6310;font-size:14px}
.pusk-case-tab-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#d9463b;vertical-align:2px;margin-left:3px}
nav.pusk-case-tabs{display:flex!important;flex-wrap:wrap;align-items:center}
.pusk-case-tabset{order:99;margin-left:auto;position:relative}
.pusk-case-tabset>summary{list-style:none;cursor:pointer;padding:6px 10px;font-size:13px;color:var(--text-secondary,#6b7076);border-radius:8px}
.pusk-case-tabset>summary::-webkit-details-marker{display:none}
.pusk-case-tabset>summary:hover{background:var(--bg-muted,#f1efea)}
.pusk-case-tabset-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:40;width:290px;padding:12px 14px;border-radius:12px;
  background:var(--bg-surface,#fff);border:1px solid var(--border-default,#e5e2dc);box-shadow:0 12px 32px rgba(24,28,33,.16)}
.pusk-case-tabset-menu p{margin:0 0 6px;font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary,#8a8f96)}
.pusk-case-tabset-presets{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.pusk-case-tabset-presets button{padding:5px 10px!important;border-radius:999px!important;border:1px solid var(--border-default,#e3e0da)!important;background:var(--bg-surface,#fff)!important;
  font-size:12.5px!important;min-height:0!important;box-shadow:none!important;cursor:pointer;color:var(--text-primary,#1b1d20)!important}
.pusk-case-tabset-list{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px}
.pusk-case-tabset-list label{display:flex;align-items:center;gap:6px;font-size:13.5px;margin:0;cursor:pointer}

/* «Суды и дела»: три действия в шапке — одного вида и на одной линии */
.pusk-cases-topbar-figma{display:flex!important;align-items:center!important;flex-wrap:wrap;gap:6px 10px!important}
.pusk-cases-topbar-figma .pusk-cases-refresh-inline{display:inline-flex!important;margin:0!important}
html body .pusk-cases-topbar-figma .pusk-cases-refresh-btn,
html body .pusk-cases-topbar-figma .ps-compact button{display:inline-flex!important;align-items:center!important;gap:6px;height:34px!important;min-height:34px!important;
  padding:0 12px!important;border:1px solid var(--border-default,#e3e0da)!important;border-radius:9px!important;background:var(--bg-surface,#fff)!important;
  color:var(--accent-ink,#137f79)!important;font-weight:600!important;font-size:14px!important;line-height:1!important;box-shadow:none!important;text-decoration:none!important;vertical-align:middle}
html body .pusk-cases-topbar-figma .pusk-cases-refresh-btn:hover,
html body .pusk-cases-topbar-figma .ps-compact button:hover{background:var(--bg-muted,#f3f1ec)!important;text-decoration:none!important}
.pusk-cases-topbar-figma .ps-compact small{font-size:12px!important}
.pusk-cases-topbar-figma .pusk-cases-head-search{flex:1 1 280px;margin-left:auto}
/* Банкротство в карточке дела: кнопка — текст по центру, без подчёркивания; без пустой полосы над формой */
html body .pusk-case-bk-head a.today-primary{display:inline-flex!important;align-items:center!important;justify-content:center;height:38px!important;min-height:38px!important;
  padding:0 16px!important;text-decoration:none!important;line-height:1!important;white-space:nowrap;border-radius:9px!important}
.pusk-case-x-bk>details.panel{padding-top:0!important;margin-top:0!important}
.pusk-case-x-bk>details.panel>form>h3:first-child,.pusk-case-x-bk h3:first-of-type{margin-top:0!important}
/* «Суды и дела»: таблица помещается в рамку — последняя колонка не уезжает за край */
.pusk-cases-table-wrap table th,.pusk-cases-table-wrap table td{padding-left:9px!important;padding-right:9px!important}
.pusk-cases-table-wrap table{width:100%!important;min-width:0!important}

/* Карточка дела: компактная шапка */
.pusk-case-dossier-head{align-items:flex-start!important;margin-bottom:6px!important;padding-bottom:0!important}
.pusk-case-dossier-title>.pusk-case-breadcrumb{margin:0 0 2px!important;font-size:12.5px!important}
.pusk-case-dossier-num{gap:10px!important;align-items:center!important}
.pusk-case-dossier-num h1{font-size:26px!important;line-height:1.15!important;margin:0!important}
.pusk-case-dossier-num .pusk-case-badge{font-size:12px!important;padding:2px 9px!important}
.pusk-case-dossier-title>.pusk-case-meta-line{margin:4px 0 4px!important;font-size:13.5px!important}
.pusk-case-dossier-title>p:empty{display:none!important}
.pusk-case-dossier-title>.pusk-case-link-line,
.pusk-case-dossier-title>form.inline-form,
.pusk-case-dossier-title>a.pusk-case-textbtn,
.pusk-case-dossier-title>span.muted{display:inline-flex!important;align-items:center;vertical-align:middle;margin:0 8px 0 0!important;font-size:12.5px!important;line-height:1.3!important}
.pusk-case-dossier-title>a.pusk-case-textbtn{font-weight:600}
.pusk-case-dossier-title .pusk-case-chip{height:22px!important;min-height:22px!important;padding:0 9px!important;font-size:12px!important}
.pusk-case-dossier-actions .today-outline{height:32px!important;min-height:32px!important;font-size:13.5px!important;padding:0 12px!important}
nav.pusk-case-tabs{margin-top:10px!important;margin-bottom:12px!important}
/* «Суды и дела»: колонки поуже, чтобы таблица целиком помещалась */
.pusk-cases-table [data-col="event"]{min-width:150px!important;width:auto!important}
.pusk-cases-table [data-col="tasks"]{min-width:170px!important;width:auto!important}
.pusk-cases-table [data-col="court"]{min-width:110px!important;width:auto!important}
.pusk-cases-table [data-col="name"]{min-width:120px!important}
.pusk-cases-table [data-col="client"],.pusk-cases-table [data-col="contract"]{min-width:90px!important}

/* Карточка дела → «Документы»: по видам, формат файла значком, строка открывает файл */
.cdocs-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px;font-size:13.5px;color:var(--text-secondary,#6b7076)}
.cdocs-head .today-primary{height:34px;display:inline-flex;align-items:center;padding:0 14px;text-decoration:none!important}
.cdocs-group{margin:0 0 12px;border-radius:14px;background:var(--bg-surface,#fff);box-shadow:0 1px 3px rgba(24,28,33,.07);overflow:hidden}
.cdocs-group h4{margin:0!important;padding:11px 16px;font-size:14px!important;font-weight:700!important;border-bottom:1px solid var(--border-default,#efece6)}
.cdocs-group h4 span{margin-left:6px;font-weight:500;font-size:12px;color:var(--text-secondary,#8a8f96)}
.cdocs-group ul{list-style:none;margin:0;padding:0}
.cdocs-group li+li{border-top:1px solid var(--border-default,#f1eee8)}
.cdocs-row{display:grid;grid-template-columns:52px minmax(0,1fr) 100px 90px;align-items:center;gap:12px;padding:9px 16px;color:inherit!important;text-decoration:none!important;font-size:14px}
a.cdocs-row[href]:hover{background:var(--bg-muted,#f7f5f1)}
.cdocs-ext{justify-self:start;padding:2px 7px;border-radius:6px;font-size:11px;font-weight:700;letter-spacing:.03em;background:var(--bg-muted,#efece6);color:var(--text-secondary,#6b7076)}
.cdocs-ext.is-pdf{background:#fdecea;color:#b42318}.cdocs-ext.is-docx,.cdocs-ext.is-doc{background:#e6f0fb;color:#1f5fa8}
.cdocs-ext.is-xlsx,.cdocs-ext.is-xls{background:#e3f4ec;color:#1e7a4f}.cdocs-ext.is-jpg,.cdocs-ext.is-png{background:#f3ecfb;color:#6a4fc4}
.cdocs-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cdocs-date{font-size:12.5px;color:var(--text-secondary,#8a8f96);text-align:right}
.cdocs-open{font-size:12.5px;color:#137f79;text-align:right}
.cdocs-empty{padding:14px 16px;border-radius:12px;background:var(--bg-surface,#fff)}
/* Карточка дела → «Задачи»: строками, как в общих «Задачах» */
.ctasks-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.ctasks-head span{margin-right:auto;font-size:13.5px;color:var(--text-secondary,#6b7076)}
.ctasks-head a,.ctasks-head button{height:34px;display:inline-flex;align-items:center;padding:0 14px!important;text-decoration:none!important}
.ctasks{list-style:none;margin:0;padding:0;border-radius:14px;background:var(--bg-surface,#fff);box-shadow:0 1px 3px rgba(24,28,33,.07);overflow:hidden}
.ctasks li+li{border-top:1px solid var(--border-default,#f1eee8)}
.ctasks-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 150px 100px 110px;gap:12px;align-items:center;padding:11px 16px!important;
  border:0!important;background:none!important;box-shadow:none!important;text-align:left;font:inherit;font-size:14px;cursor:pointer;min-height:0!important;border-radius:0!important;color:inherit!important}
.ctasks-row:hover{background:var(--bg-muted,#f7f5f1)!important}
.ctasks-title{font-weight:600}
.ctasks-who,.ctasks-st{font-size:13px;color:var(--text-secondary,#6b7076)}
.ctasks-due{font-size:13px}.ctasks-due.is-late{color:#b42318;font-weight:600}
.ctasks-empty{padding:14px 16px;color:var(--text-secondary,#8a8f96)}
/* Карточка дела → «Судебные акты»: вид акта жирно, результат — ниже */
.cacts{list-style:none;margin:0;padding:0;border-radius:14px;background:var(--bg-surface,#fff);box-shadow:0 1px 3px rgba(24,28,33,.07);overflow:hidden}
.cacts-row{display:grid;grid-template-columns:90px minmax(0,1fr) 120px 150px;gap:14px;align-items:start;padding:12px 16px}
.cacts-row+.cacts-row{border-top:1px solid var(--border-default,#f1eee8)}
.cacts-date{font-size:13.5px;font-weight:600;font-variant-numeric:tabular-nums;padding-top:1px}
.cacts-body b{display:block;font-size:14.5px;line-height:1.35}
.cacts-body em{display:block;margin-top:3px;font-style:normal;font-size:13.5px;line-height:1.4;color:var(--text-secondary,#5b6068)}
.cacts-body small{display:block;margin-top:4px;font-size:12.5px;color:var(--text-secondary,#8a8f96)}
.cacts-judge{font-size:13px;color:var(--text-secondary,#6b7076)}
.cacts-links{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.cacts-links a{font-size:13px;font-weight:600}
.cacts-links button{height:30px!important;min-height:30px!important;padding:0 12px!important;font-size:13px!important}

/* Убранная вкладка убирает и свой блок на «Обзоре» */
.pusk-case-panel [data-tab-block][hidden]{display:none!important}

/* «⚙ Блоки» — выбор блоков страницы */
html body .pusk-block-off { display: none !important; }
html body .pusk-blocks-pick { position: relative; display: inline-block; vertical-align: middle; z-index: 30; margin-left: 12px; font: 400 13px/1.3 inherit; font-family: inherit; letter-spacing: 0; }
html body .pusk-blocks-pick > summary { list-style: none; cursor: pointer; padding: 4px 10px; border-radius: 8px; color: var(--muted, #6b6b6b); }
html body .pusk-blocks-pick > summary::-webkit-details-marker { display: none; }
html body .pusk-blocks-pick > summary:hover { background: rgba(0,0,0,.05); }
html body .pusk-blocks-pick .pusk-blocks-list { position: absolute; left: 0; top: calc(100% + 4px); min-width: 230px; display: grid; gap: 6px; padding: 10px 12px; background: var(--card, #fff); border: 1px solid var(--line, #e3e1da); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
html body .pusk-blocks-pick .pusk-blocks-list label { display: flex; gap: 8px; align-items: center; white-space: nowrap; cursor: pointer; }

/* «Расписание дня»: строка «Дата» — от левого края, кнопка справа */
html body.pusk-today-shell #today-schedule .pusk-day-pager { justify-content: flex-start !important; }
html body.pusk-today-shell #today-schedule .pusk-day-pager .pusk-day-picker-label { margin-left: 0 !important; justify-content: flex-start !important; }
html body.pusk-today-shell #today-schedule .pusk-day-pager .pusk-day-add-btn { margin-left: auto !important; }
/* Блок убран — оставшиеся занимают всю ширину */
html body .pusk-blocks-solo { grid-template-columns: 1fr !important; }
html body .pusk-blocks-solo > * { grid-column: 1 / -1 !important; flex-basis: 100% !important; max-width: none !important; }
html body .pusk-blocks-solo > .pusk-split-handle { display: none !important; }

/* Печать списка задач: компактная таблица, как на экране */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  html body .today-topbar, html body .today-side, html body .pusk-planner-toolbar, html body .pusk-print-btn,
  html body .pusk-blocks-pick, html body .crm-notification-wrap, html body .pusk-sync,
  html body .pusk-tasks-col-menu { display: none !important; }
  html body .today-desktop { display: block !important; }
  html body table.pusk-tasks-table { display: table !important; width: 100% !important; table-layout: auto !important; border-collapse: collapse !important; font-size: 10.5pt !important; }
  html body table.pusk-tasks-table thead { display: table-header-group !important; }
  html body table.pusk-tasks-table tbody { display: table-row-group !important; }
  html body table.pusk-tasks-table tr { display: table-row !important; height: auto !important; min-height: 0 !important; break-inside: avoid; }
  html body table.pusk-tasks-table th, html body table.pusk-tasks-table td {
    display: table-cell !important; position: static !important; width: auto !important; height: auto !important; min-height: 0 !important;
    padding: 3px 6px !important; vertical-align: top !important; border-bottom: 1px solid #ccc !important; line-height: 1.25 !important; }
  html body table.pusk-tasks-table td * { margin-top: 0 !important; margin-bottom: 0 !important; }
  html body table.pusk-tasks-table .pusk-tasks-col-done { width: 14px !important; }
  html body table.pusk-tasks-table td button, html body table.pusk-tasks-table td form:not(:has(input[type=checkbox])) { display: none !important; }
  html body aside, html body .pusk-side, html body .pusk-nav-groups, html body [class*=toast], html body [class*=sandbox], html body .pusk-undo { display: none !important; }
  html body .pusk-main-pane { margin: 0 !important; width: 100% !important; }
  html body .today-side, html body .pusk-side-brand { display: none !important; }
  html body table.pusk-tasks-table .pusk-tasks-col-done::before { content: "☐"; }
  html body table.pusk-tasks-table .pusk-tasks-col-title { width: 45% !important; font-weight: 600; }
  html body table.pusk-tasks-table .pusk-tasks-col-who [class*=avatar], html body table.pusk-tasks-table .pusk-tasks-col-who .initials { display: none !important; }
}

/* «Сегодня» → «Задачи»: «Группировать» — в одну линию с фильтрами, не отдельной плашкой */
html body.pusk-today-shell .today-task-filters .today-group { flex: 0 0 auto !important; margin: 0 0 0 auto !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; gap: 6px !important; }
html body.pusk-today-shell .today-task-filters .today-group select {
  height: 34px !important; min-height: 34px !important; min-width: 0 !important; width: auto !important; padding: 0 28px 0 10px !important;
  border: 1px solid var(--border-default, #dcd9d0) !important; border-radius: 8px !important; box-shadow: none !important;
  background-color: transparent !important; font-size: 13px !important; color: var(--text-primary, #222) !important; }

/* «Задачи»: если рядом с открытой карточкой задачи таблице остаётся меньше
   ~700px, карточка выезжает поверх справа — таблица не сжимается в столбик букв */
@media (max-width: 1700px) {
  html body .pusk-planner-body.is-split { grid-template-columns: minmax(0, 1fr) !important; }
  html body .pusk-planner-body.is-split > .pusk-planner-detail {
    position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important;
    width: min(440px, 94vw) !important; max-width: none !important; z-index: 80 !important;
    overflow-y: auto !important; background: var(--bg-surface, #fff) !important;
    box-shadow: -12px 0 32px rgba(0,0,0,.16) !important; border-left: 1px solid var(--border-default, #e3e1da) !important;
  }
}

/* Корреспонденция: ★ и ↻ в последней колонке — друг под другом, в ячейку помещаются */
html body table.pusk-mail-table td.pusk-mail-menu { white-space: normal !important; padding-left: 4px !important; padding-right: 4px !important; }
html body table.pusk-mail-table td.pusk-mail-menu .inline-form { display: block !important; margin: 0 0 4px !important; }
html body table.pusk-mail-table td.pusk-mail-menu .pusk-mail-icon { margin: 0 auto !important; display: flex !important; align-items: center !important; justify-content: center !important; width: 30px !important; height: 30px !important; min-width: 30px !important; padding: 0 !important; line-height: 1 !important; text-align: center !important; font-size: 15px !important; }

/* Таблицы с прокруткой (Проекты и др.): плотнее, чтобы последняя колонка не обрезалась */
html body .tbl-wrap > table.zebra th, html body .tbl-wrap > table.zebra td { padding-left: 6px !important; padding-right: 6px !important; }
html body .tbl-wrap > table.zebra .tfilter-box { width: 100% !important; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; }

/* Обёртка для широких таблиц (pusk-resizable.js) */
html body .pusk-xscroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Корреспонденция: в фильтрах «Клиент»/«Дело» скрытая подпись поднимала поле над строкой */
html body .pusk-mail-filters { align-items: center !important; flex-wrap: wrap !important; }
html body .pusk-mail-filters .pick-box > .field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }
/* «Исходящее/Входящее» в колонке «Тип» — переносится, не налезает на соседнюю */
html body table.pusk-mail-table td { overflow-wrap: anywhere; }

/* Портфель ИП: на узком экране кнопки шапки не наезжают на цифры,
   плашка стадии не вылезает из ячейки, кнопка ➤ не обрезается */
@media (max-width: 1500px) {
  html body .pj-top .pj-acts { position: static !important; display: flex !important; flex-wrap: wrap !important; gap: 8px !important; margin: 0 0 12px !important; justify-content: flex-end !important; }
}
html body .pj-stage { max-width: 100% !important; white-space: normal !important; overflow-wrap: anywhere !important; display: inline-block !important; vertical-align: top !important; box-sizing: border-box !important; text-align: left !important; }
html body .dc-send .dc-row { min-width: 0 !important; flex-wrap: nowrap !important; }
html body .dc-send .dc-row input, html body .dc-send .dc-row textarea { min-width: 0 !important; flex: 1 1 auto !important; width: auto !important; }
html body .dc-send .dc-row .dc-btn { flex: 0 0 auto !important; }
/* Плашки в узких ячейках таблиц переносятся, а не вылезают за ячейку */
html body td > .tag { max-width: 100%; white-space: normal !important; box-sizing: border-box; }
html body .pusk-mail-filters .pick-box { flex: 1 1 160px !important; min-width: 140px !important; }
html body .pusk-mail-filters .pick-box > input.pick-input { width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; }
html body table.pusk-mail-table td, html body table.pusk-mail-table td * { white-space: normal !important; overflow-wrap: anywhere !important; }
html body td .pj-chip { white-space: normal !important; max-width: 100% !important; box-sizing: border-box !important; }
/* Кнопки-значки: значок строго по центру */
html body .enf-fold { display: inline-flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; text-align: center !important; }

/* Лента → Почта: время в одну строку, кнопки действий в свою ширину, ✕ внутри ячейки */
html body table.mail-table tr > td:first-child { width: 64px !important; white-space: nowrap !important; }
html body table.mail-table tr > td:nth-child(4) { width: 168px !important; }
html body table.mail-table tr > td:nth-child(4) button, html body table.mail-table tr > td:nth-child(4) a { white-space: nowrap !important; }
html body table.mail-table tr > td:last-child { width: 40px !important; text-align: center !important; padding-left: 2px !important; padding-right: 2px !important; }
html body table.mail-table tr > td:last-child .del { margin: 0 auto !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
/* Телефон: длинные плашки переносятся, не упираются в край экрана */
@media (max-width: 600px) { html body .tag { white-space: normal !important; max-width: 100% !important; box-sizing: border-box !important; } }

/* Окно задачи не выше экрана (PUSK-QA-334/347): середина прокручивается,
   «Закрыть / Сохранить» и ряд действий всегда видны внизу */
html body .pusk-planner-detail { overflow: hidden !important; }
html body .pusk-planner-detail > .trow-more.tw,
html body .task-new-host > .trow-more.tw {
  display: flex !important; flex-direction: column !important;
  max-height: calc(100vh - 16px) !important; overflow: hidden !important; box-sizing: border-box !important; }
html body .pusk-planner-detail > .trow-more.tw { height: 100% !important; max-height: 100% !important; }
html body .pusk-planner-detail > .trow-more.tw > .tw-head,
html body .task-new-host > .trow-more.tw > .tw-head { flex: none !important; }
html body .pusk-planner-detail > .trow-more.tw > form.task-desc,
html body .task-new-host > .trow-more.tw > form.task-desc {
  flex: 1 1 auto !important; min-height: 0 !important; display: flex !important; flex-direction: column !important; }
html body .trow-more.tw > form.task-desc > .tw-body { flex: 1 1 auto !important; min-height: 0 !important; overflow-y: auto !important; }
html body .trow-more.tw > form.task-desc > .tw-foot { flex: none !important; }
/* ✓ «Всё прошло» в расписании */
html body .pusk-attend-btn.is-done:hover { color: #1f7a4d !important; border-color: #1f7a4d !important; }
/* Календарь, месяц: раскрытый день не растягивает строку на весь экран (PUSK-QA-341) */
html body .calm-day.open .calm-evs { max-height: 420px; overflow-y: auto; }
/* Журнал изменений: таблица по ширине экрана, длинные значения переносятся,
   кнопка «Вернуть как было» видна без прокрутки вбок (PUSK-QA-344) */
html body table.jr-tbl { table-layout: fixed !important; width: 100% !important; min-width: 0 !important; }
html body table.jr-tbl th:nth-child(1), html body table.jr-tbl td:nth-child(1) { width: 96px !important; }
html body table.jr-tbl th:nth-child(2), html body table.jr-tbl td:nth-child(2) { width: 120px !important; }
html body table.jr-tbl th:nth-child(3), html body table.jr-tbl td:nth-child(3) { width: 24% !important; }
html body table.jr-tbl th:last-child, html body table.jr-tbl td:last-child { width: 150px !important; }
html body table.jr-tbl td { overflow-wrap: anywhere !important; word-break: break-word !important; white-space: normal !important; }
html body table.jr-tbl td .jr-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap !important; }
html body table.jr-tbl td.jr-btn button { white-space: normal !important; }
/* «Сегодня» → «Задачи»: ★ ⋯ ✕ в одну строку — ✕ не уезжает вниз */
html body li.trow .trow-acts { flex-wrap: nowrap !important; min-width: max-content !important; gap: 4px !important; }
/* Плашка «Задача создана» и другие сообщения после действия */
html body .pusk-note-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1200;
  max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 12px; background: rgba(28,28,30,.94);
  color: #fff; font: 15px/1.35 "Times New Roman", Times, serif; box-shadow: 0 8px 30px rgba(0,0,0,.25); cursor: pointer;
  transition: opacity .35s; }
html body .pusk-note-toast.is-out { opacity: 0; }
body.m-app .pusk-note-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* Единый вид страниц (PUSK-QA-345/353): меню и содержимое без лишнего зазора,
   одинаковый отступ содержимого, один бежевый фон, заголовок страницы одного вида */
html body .today-desktop { column-gap: 0 !important; }
html body .today-desktop > .pusk-main-pane { padding-left: 24px !important; padding-right: 24px !important; }
html body.today-web, html body.tasks-approved, html body.today-web main.with-side, html body.tasks-approved main.with-side { background: var(--bg-warm, #f8f6f2) !important; }
html body .pusk-main-pane h1 { font-weight: 600 !important; }
/* Кнопки с текстом — одной высоты и скругления (PUSK-QA-354): было 28–38 px и 6–10 px */
html body main .today-outline, html body main .today-primary, html body main button.mini, html body main .btn-plain,
html body main .pusk-print-btn, html body main .pusk-planner-create, html body main .pusk-cases-refresh-btn,
html body main .pusk-cases-tool-btn, html body main .pusk-logic-action-btn, html body main .today-create {
  min-height: 34px !important; border-radius: 8px !important; box-sizing: border-box !important; }
/* «Документы дела»: страница с заголовком и отступами, как остальные (PUSK-QA-346) */
html body.pusk-case-page main > h1.pusk-page-title { font-size: 28px; font-weight: 600; margin: 24px 0 8px; }

/* «К заседаниям» → «Добавить задачу к заседанию»: у блока не было своих стилей —
   поля и шаблоны стояли вразнобой. Ровная сетка и одинаковые отступы */
html body .pusk-hearing-composer { margin: 16px 0 4px; padding: 16px 20px; border: 1px solid var(--line, #e6e2da); border-radius: 12px; background: var(--card, #fff); }
html body .pusk-hearing-composer-head { margin: 0 0 12px; }
html body .pusk-hearing-composer-title { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
html body .pusk-hearing-composer-lead { margin: 0; color: var(--muted, #6b6b6b); font-size: 14px; }
html body .pusk-hearing-composer-form { display: grid; gap: 12px; }
html body .pusk-hearing-composer-label { display: block; margin: 0 0 4px; font-size: 13px; color: var(--muted, #6b6b6b); }
html body .pusk-hearing-composer-row-title .pusk-hearing-composer-input { width: 100%; max-width: 640px; box-sizing: border-box; }
html body .pusk-hearing-composer-row-meta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
html body .pusk-hearing-composer-field { display: flex; flex-direction: column; min-width: 160px; }
html body .pusk-hearing-composer-field-who { min-width: 220px; }
html body .pusk-hearing-composer-input { height: 38px; min-height: 38px; box-sizing: border-box; margin: 0; }
html body .pusk-hearing-composer-submit-wrap { display: flex; align-items: flex-end; }
html body .pusk-hearing-composer-submit { height: 38px !important; min-height: 38px !important; padding: 0 20px !important; margin: 0 !important; }
html body .pusk-hearing-composer-templates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line, #e6e2da); }
html body .pusk-hearing-composer-templates-label { font-size: 13px; color: var(--muted, #6b6b6b); margin-right: 4px; }
html body .pusk-hearing-composer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
html body .pusk-hearing-chip { height: 32px !important; min-height: 32px !important; padding: 0 12px !important; margin: 0 !important; border: 1px solid var(--line, #e6e2da) !important;
  border-radius: 8px !important; background: var(--bg-warm, #f8f6f2) !important; font-size: 14px !important; box-shadow: none !important; cursor: pointer; }
html body .pusk-hearing-chip:hover { border-color: var(--accent, #168f89) !important; }
html body .pusk-hearing-chip.is-other { background: transparent !important; border-style: dashed !important; }
/* Пустое заседание: «задач пока нет» говорилось трижды — серую плашку с кнопкой
   прячем, когда рядом уже открыта форма «Добавить задачу к заседанию» */
html body .pusk-hearing-block > .pusk-hearing-prep { margin-bottom: 4px; }

/* ===== 08.10 · Меньше шума и элегантнее (решение Анны) ===== */
/* Вкладки раздела над заголовком */
html body .pusk-section-tabs { display: flex; gap: 2px; margin: 4px 0 14px; border-bottom: 1px solid var(--line, #e6e2da); }
html body .pusk-section-tabs a { padding: 8px 14px; color: var(--muted, #6b6b6b); text-decoration: none; font-size: 15px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
html body .pusk-section-tabs a:hover { color: var(--ink, #1f2328); }
html body .pusk-section-tabs a.on { color: var(--ink, #1f2328); border-bottom-color: var(--accent, #168f89); font-weight: 600; }

/* Расписание: День / Неделя */
html body .pusk-sched-off { display: none !important; }
html body .pusk-main-grid.pusk-week-mode { grid-template-columns: minmax(0, 1fr) !important; }
html body .pusk-sched-switch { display: inline-flex; margin-left: 12px; padding: 2px; border-radius: 8px; background: var(--bg-warm, #f3f1ec); vertical-align: middle; }
html body .pusk-sched-switch button { border: 0 !important; background: transparent !important; padding: 4px 12px !important; min-height: 0 !important;
  border-radius: 6px !important; font-size: 13px !important; color: var(--muted, #6b6b6b) !important; box-shadow: none !important; cursor: pointer; }
html body .pusk-sched-switch button.on { background: var(--card, #fff) !important; color: var(--ink, #1f2328) !important; box-shadow: 0 1px 2px rgba(0,0,0,.08) !important; }

/* Задачи: «Ещё ▾» и ⚙ */
html body .pusk-more-chips, html body .pusk-group-gear, html body .pusk-create-menu { position: relative; display: inline-block; }
html body .pusk-more-chips > summary, html body .pusk-group-gear > summary { list-style: none; cursor: pointer; padding: 0 12px; height: 32px; line-height: 32px;
  border-radius: 8px; color: var(--muted, #6b6b6b); font-size: 14px; }
html body .pusk-more-chips > summary::-webkit-details-marker, html body .pusk-group-gear > summary::-webkit-details-marker,
html body .pusk-create-menu > summary::-webkit-details-marker { display: none; }
html body .pusk-group-gear { margin-left: auto; }
html body .pusk-more-chips-list { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 200px; display: grid; gap: 6px; padding: 10px;
  background: var(--card, #fff); border: 1px solid var(--line, #e6e2da); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.12); }
html body .pusk-group-gear .pusk-more-chips-list, html body .pusk-create-menu .pusk-more-chips-list { left: auto; right: 0; }
html body .pusk-more-chips-list .today-group { margin: 0 !important; flex: none !important; }
html body .pusk-create-menu > summary { list-style: none; cursor: pointer; }
html body .pusk-create-menu .pusk-more-chips-list button, html body .pusk-create-menu .pusk-more-chips-list a {
  text-align: left; padding: 8px 10px !important; border: 0 !important; background: transparent !important; border-radius: 6px !important;
  color: var(--ink, #1f2328) !important; text-decoration: none; font-size: 15px !important; min-height: 0 !important; box-shadow: none !important; }
html body .pusk-create-menu .pusk-more-chips-list button:hover, html body .pusk-create-menu .pusk-more-chips-list a:hover { background: var(--bg-warm, #f3f1ec) !important; }
html body .pusk-hidden-by-create { display: none !important; }

/* «Чьё» */
html body .pusk-who-select { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 14px; color: var(--muted, #6b6b6b); font-size: 14px; }
html body .pusk-who-select select { height: 34px; min-width: 200px; border-radius: 8px; }

/* Спокойнее: карточки, заголовки, счётчики */
html body.pusk-today-shell .today-desktop .today-card,
html body.pusk-today-shell .today-desktop .pusk-timeline-card,
html body.pusk-today-shell .today-desktop .pusk-week-schedule {
  border-color: rgba(0,0,0,.06) !important; box-shadow: 0 1px 2px rgba(0,0,0,.03) !important; border-radius: 14px !important; }
html body.pusk-today-shell .today-desktop h2 { font-size: 20px !important; font-weight: 600 !important; letter-spacing: .01em; }
html body.pusk-today-shell .today-desktop .today-task-filters a,
html body.pusk-today-shell .today-desktop .today-task-filters button { background: transparent !important; border-color: rgba(0,0,0,.08) !important; font-weight: 500 !important; }
html body.pusk-today-shell .today-desktop .today-task-filters a.on,
html body.pusk-today-shell .today-desktop .today-task-filters [aria-pressed="true"] { background: var(--accent-soft, #e7f3f2) !important; border-color: var(--accent, #168f89) !important; }
/* Счётчики в меню — спокойные; красным только просроченное */
html body .today-side nav a em { background: transparent !important; color: var(--muted, #6b6b6b) !important; border: 1px solid rgba(0,0,0,.12); font-weight: 500 !important; }
html body .today-side nav a em.is-new-leads { color: #9a6a00 !important; border-color: #e3c675; }
/* «Обновлено 06:58» — только при наведении, видна одна иконка */
html body .pusk-sync-btn .pusk-sync-label, html body .pusk-sync-btn > span:not(.pusk-sync-ico) { display: none; }
html body .pusk-sync:hover .pusk-sync-btn .pusk-sync-label, html body .pusk-sync:hover .pusk-sync-btn > span:not(.pusk-sync-ico) { display: inline; }

/* «Расписание недели» нежнее (08.10): белый фон вместо бежевой подложки,
   тонкие линии, мягкие тени карточек, приглушённые плашки */
html body .pusk-week-schedule .pusk-ws-work-panel,
html body .pusk-week-schedule .pusk-ws-track { background: #fff !important; }
html body .pusk-week-schedule .pusk-ws-col-head { background: #fff !important; border-bottom: 1px solid rgba(0,0,0,.05) !important; }
html body .pusk-week-schedule .pusk-ws-col-head.is-today, html body .pusk-week-schedule .pusk-ws-col.is-today .pusk-ws-col-head { background: #f6fbfa !important; }
html body .pusk-week-schedule .pusk-ws-col, html body .pusk-week-schedule [class*="pusk-ws-day"] { border-color: rgba(0,0,0,.05) !important; background: #fff !important; }
html body .pusk-week-schedule .pusk-ws-event { border: 1px solid rgba(0,0,0,.06) !important; box-shadow: 0 1px 3px rgba(0,0,0,.04) !important; border-radius: 10px !important; }
html body .pusk-week-schedule .fmt-badge, html body .pusk-week-schedule .ph-room { background: transparent !important; border: 1px solid rgba(0,0,0,.08) !important; }

/* «Сегодня»: шапка собраннее (08.10) — дата рядом с заголовком, «Чьё» в той же
   строке, меньше пустоты сверху и между рядами */
html body.pusk-today-shell .today-desktop > .pusk-main-pane { padding-top: 10px !important; }
html body .pusk-section-tabs { margin: 0 0 10px !important; }
html body .pusk-section-tabs a { padding: 6px 12px !important; font-size: 14px !important; }
html body.pusk-today-shell .today-head { display: flex !important; align-items: center !important; gap: 16px !important; margin: 0 0 12px !important; flex-wrap: wrap; }
html body.pusk-today-shell .today-head .today-title { display: flex !important; align-items: baseline !important; gap: 14px !important; flex-wrap: wrap; margin: 0 !important; }
html body.pusk-today-shell .today-head .today-title h1 { margin: 0 !important; line-height: 1.1 !important; }
html body.pusk-today-shell .today-head .today-title p, html body.pusk-today-shell .today-head .today-title .today-date { margin: 0 !important; }
html body.pusk-today-shell .today-head .pusk-who-select { margin: 0 0 0 auto !important; }
html body.pusk-today-shell .today-head .pusk-who-select select { height: 32px !important; min-width: 170px !important; }
html body.pusk-today-shell .pusk-today-top > .pusk-week-schedule { margin-top: 0 !important; }
/* «День / Неделя» — маленький переключатель в строке заголовка */
html body .pusk-sched-switch { margin: 0 0 0 10px !important; padding: 2px !important; }
html body .pusk-sched-switch button { padding: 2px 10px !important; font-size: 13px !important; line-height: 20px !important; height: 24px !important; }
html body .pusk-ws-title-line { display: flex !important; align-items: center !important; flex-wrap: wrap; gap: 8px; }
html body .pusk-timeline-head { align-items: center !important; }
html body.pusk-today-shell .today-head > .pusk-today-view-toggle { flex: none !important; width: auto !important; margin: 0 !important; }
html body.pusk-today-shell .today-head { flex-wrap: nowrap !important; }
html body .pusk-ws-title-line { flex-wrap: wrap !important; min-width: 0; }
html body .pusk-ws-title-line > :last-child { margin-left: auto !important; white-space: nowrap !important; }

/* Плавные переходы между страницами и вкладками (08.10): браузер мягко
   сменяет содержимое; меню слева и верхняя панель стоят на месте */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; animation-timing-function: ease-out; }
html body .today-side { view-transition-name: pusk-side; }
html body .today-topbar { view-transition-name: pusk-topbar; }
::view-transition-old(pusk-side), ::view-transition-new(pusk-side),
::view-transition-old(pusk-topbar), ::view-transition-new(pusk-topbar) { animation: none; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* Вкладки раздела: спокойное наведение без заливки, плавная подсветка */
html body .pusk-section-tabs a { background: transparent !important; border: 0 !important; border-bottom: 2px solid transparent !important;
  border-radius: 0 !important; box-shadow: none !important; transition: color .15s ease, border-color .2s ease !important; }
html body .pusk-section-tabs a:hover { background: transparent !important; color: var(--ink, #1f2328) !important; border-bottom-color: rgba(0,0,0,.15) !important; }
html body .pusk-section-tabs a.on { border-bottom-color: var(--accent, #168f89) !important; color: var(--ink, #1f2328) !important; }
html body .pusk-sched-switch button { transition: background .15s ease, color .15s ease, box-shadow .15s ease !important; }
@keyframes pusk-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
html body .pusk-fade-in { animation: pusk-fade-in .22s ease-out; }
@media (prefers-reduced-motion: reduce) { html body .pusk-fade-in { animation: none; } }
/* День / Неделя по классу на <html> (ставится до отрисовки — без мигания) */
html:not(.pusk-sched-week) .today-desktop .pusk-week-schedule { display: none !important; }
html.pusk-sched-week:not(.pusk-day-below) .today-desktop #today-schedule { display: none !important; }
html.pusk-sched-week:not(.pusk-day-below) .today-desktop .pusk-main-grid { grid-template-columns: minmax(0, 1fr) !important; }

/* «Сегодня»: всё по одной линии (08.10) — текст первой вкладки по левому краю
   заголовка, «Чьё» и «Сегодня / Календарь» одной высоты, «Список / Доска» справа */
html body .pusk-section-tabs a:first-child { padding-left: 0 !important; }
html body.pusk-today-shell .today-head { align-items: center !important; }
html body.pusk-today-shell .today-head .pusk-who-select select { height: 38px !important; min-height: 38px !important; width: 220px !important; min-width: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
html body.pusk-today-shell .today-head > .pusk-today-view-toggle a,
html body.pusk-today-shell .today-head > .pusk-today-view-toggle button { height: 38px !important; min-height: 38px !important; display: inline-flex !important; align-items: center !important; box-sizing: border-box !important; }
html body.pusk-today-shell .today-tasks-head { display: flex !important; align-items: center !important; }
html body.pusk-today-shell .today-tasks-head .today-task-head-actions { margin-left: auto !important; }
html body.pusk-today-shell .today-tasks-head .today-layout-switch { margin: 0 !important; }
html body .pusk-ws-title-line > * { align-self: center; }
html body .pusk-ws-title-line .pusk-ws-range-wrap { display: inline-flex; align-items: center; gap: 12px; }

/* «К заседаниям» (08.10): сначала просмотр, добавление — по «+ Задача»; плотнее */
html body .pusk-hearing-block { padding: 14px 18px !important; margin: 0 0 10px !important; }
html body .pusk-hearing-block-head { align-items: flex-start !important; gap: 12px !important; margin: 0 0 6px !important; }
html body .pusk-hearing-block-main { display: block; }
html body .pusk-hearing-case { display: block; margin-top: 2px; }
html body .pusk-hearing-when, html body .pusk-hearing-place { display: inline; font-size: 15px !important; }
html body .pusk-hearing-place { color: var(--muted, #6b6b6b) !important; font-weight: 400 !important; margin-left: 10px; }
html body .pusk-hearing-block-main > .pusk-hearing-when { display: inline-flex; align-items: center; gap: 6px; }
html body .pusk-hearing-case { font-size: 16px !important; font-weight: 600 !important; }
html body .pusk-hearing-block-actions { display: flex; gap: 8px; flex: none; }
html body .pusk-hearing-block-actions .today-outline, html body .pusk-hearing-block-actions button { height: 32px !important; min-height: 32px !important; padding: 0 12px !important; font-size: 14px !important; }
html body .pusk-hearing-prep { font-size: 13px !important; color: var(--muted, #6b6b6b) !important; font-weight: 400 !important; margin: 2px 0 6px !important; }
html body .pusk-hearing-empty { display: none !important; }
html body .pusk-hearing-composer { display: none !important; }
html body .pusk-hearing-composer.is-open { display: block !important; margin-top: 8px !important; }
html body .pusk-hearing-composer.is-open .pusk-hearing-composer-lead { display: none; }
html body .pusk-hearing-add-toggle.is-on { background: var(--bg-warm, #f3f1ec) !important; }

/* Без «старой страницы» при загрузке (08.10): место под вкладки раздела
   держим заранее, старые элементы «Сегодня» скрыты стилями с первой отрисовки */
html.pusk-has-sectabs:not(.pusk-sectabs-done) body:not(.m-app) .pusk-main-pane::before { content: ""; display: block; height: 46px; }
body:not(.m-app) .today-desktop .pusk-team-strip { display: none !important; }
body:not(.m-app) .today-desktop .pusk-day-add-btn,
body:not(.m-app) .today-desktop .today-tasks-head .today-primary[data-new-task] { display: none !important; }
body:not(.m-app) .today-desktop [data-today-task-filters] > :is(a, button):nth-child(n+4) { display: none !important; }
body:not(.m-app) .today-desktop [data-today-task-filters] > .today-group { display: none !important; }

/* 08.10 — лента как новостная: выжимка в 2 строки, подробности по клику */
.pusk-feed-stream-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pusk-feed-stream-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#unknown-cases > summary { font-weight: 600; cursor: pointer; }

/* 08.10 — Почта России: вкладки в одну строку, таблица спокойнее */
body.pusk-today-shell .pusk-mail-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
body.pusk-today-shell .pusk-mail-tabs::-webkit-scrollbar { display: none; }
body.pusk-today-shell .pusk-mail-tab { white-space: nowrap; flex: none; padding: 5px 11px; font-size: 13.5px; }
body.pusk-today-shell .pusk-mail-table.is-postal td { padding-top: 9px; padding-bottom: 9px; vertical-align: top; }
body.pusk-today-shell .pusk-mail-table.is-postal .pusk-mail-party strong { display: block; }
body.pusk-today-shell .pusk-mail-table .pusk-mail-status { font-weight: 600; }
body.pusk-today-shell .pusk-mail-menu { white-space: nowrap; width: 1%; }
body.pusk-today-shell .pusk-mail-menu .pusk-mail-icon { opacity: 0; transition: opacity .15s; }
body.pusk-today-shell .pusk-mail-row:hover .pusk-mail-icon,
body.pusk-today-shell .pusk-mail-icon.on,
body.pusk-today-shell .pusk-mail-icon:focus-visible { opacity: 1; }
body.pusk-today-shell .pusk-mail-table .pusk-mail-link { padding: 3px 9px; font-size: 13px; border-style: dashed; }
@media (hover: none) { body.pusk-today-shell .pusk-mail-menu .pusk-mail-icon { opacity: 1; } }
body.pusk-today-shell .pusk-mail-table.is-postal td { overflow-wrap: break-word; word-break: normal; hyphens: manual; }
body.pusk-today-shell .pusk-mail-seen-all { display: flex; justify-content: flex-end; margin: -30px 0 8px; }

/* 08.10 — календарь на белом фоне, как неделя в «Сегодня» */
body.pusk-calendar-page .calm-week, body .pusk-calendar-page .calm-week,
.pusk-calendar-page .calm-day, .pusk-calendar-page .calm-day.weekend, .pusk-calendar-page .calm-day.out,
.pusk-calendar-page .cald, .pusk-calendar-page .cald-row, .pusk-calendar-page .cald-row.weekend,
.pusk-calendar-page .calm-head, .pusk-calendar-page [class*="calm-grid"], .pusk-calendar-page .calm,
.pusk-calendar-page .calm-wd, .pusk-calendar-page .calm-top, .pusk-calendar-page .calm-row { background: #fff !important; }
.pusk-calendar-page .calm-day.out .calm-num, .pusk-calendar-page .calm-day.out > :first-child { color: #b9b4ab; }
.pusk-calendar-page .calm-day.today { background: #f2faf9 !important; }
.pusk-calendar-page .calm-ev { background: #fff !important; }
body.pusk-today-shell .pusk-mail-track a { white-space: nowrap; text-decoration: none; border-bottom: 1px dashed currentColor; }
body.pusk-today-shell .pusk-mail-track a:hover { color: var(--accent, #2a8c86); }

/* 08.10 — лента компактнее: мельче шрифт, плотнее строки */
body.pusk-today-shell .pusk-feed-stream-row { padding: 9px 14px !important; gap: 10px !important; min-height: 0 !important; }
body.pusk-today-shell .pusk-feed-stream-title { font-size: 14px !important; line-height: 1.35 !important; font-weight: 600; -webkit-line-clamp: 1 !important; }
body.pusk-today-shell .pusk-feed-stream-sub { font-size: 12.5px !important; line-height: 1.35 !important; margin-top: 2px !important; -webkit-line-clamp: 1 !important; }
body.pusk-today-shell .pusk-feed-stream-type { font-size: 11px !important; margin-bottom: 2px !important; gap: 6px; }
body.pusk-today-shell .pusk-feed-case-chip { font-size: 11.5px !important; padding: 1px 7px !important; }
body.pusk-today-shell .pusk-feed-stream-time { font-size: 12px !important; }
body.pusk-today-shell .pusk-feed-row-actions { flex-direction: row !important; gap: 10px !important; align-items: center; }
body.pusk-today-shell .pusk-feed-row-actions .pusk-feed-textbtn { font-size: 12.5px !important; padding: 2px 4px !important; }
body.pusk-today-shell .pusk-feed-day-head h3 { font-size: 15px !important; margin: 0 !important; }
body.pusk-today-shell .pusk-feed-day-head { padding: 4px 0 !important; margin: 10px 0 6px !important; }
body.pusk-today-shell .pusk-feed-day-seen button { font-size: 12.5px !important; }
body.pusk-today-shell .pusk-feed-section-title { font-size: 18px !important; margin: 6px 0 !important; }
body.pusk-today-shell #unknown-cases { padding: 8px 14px !important; margin-bottom: 10px !important; }
body.pusk-today-shell #unknown-cases > summary { font-size: 14px; }
body.pusk-today-shell .pusk-feed-rail { font-size: 13px; }
body.pusk-today-shell .pusk-feed-rail li label { padding: 3px 0 !important; }
