/* PUSK — единая типографика и компоненты (эталон: Сегодня Variant A) */

body.pusk-today-shell .pusk-main-pane :is(
  .today-title h1,
  .pusk-cal-head h1,
  .pusk-tasks-head h1,
  .pusk-mail-head h1,
  .pusk-feed-head h1,
  .pusk-events-head h1,
  .pusk-case-head h1,
  .pusk-case-dossier-num h1
) {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}

body.pusk-today-shell .pusk-main-pane :is(
  .today-title p,
  .pusk-cal-head .muted.small,
  .pusk-mail-head .muted.small,
  .pusk-case-head .muted.small,
  .pusk-tasks-head .muted.small,
  .pusk-cases-list-head .muted.small
) {
  margin: 6px 0 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

body.pusk-today-shell .pusk-main-pane :is(
  .pusk-timeline-section-title,
  .pusk-ws-section-head h2,
  .today-card-title h2,
  .pusk-case-card h3,
  .pusk-cal-side h2
) {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  text-align: left;
}

body.pusk-today-shell .pusk-main-pane :is(
  .pusk-case-chip,
  .pusk-mail-tab,
  .pusk-cases-views .pusk-case-chip,
  .pusk-cal-view-chip
) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

body.pusk-today-shell .pusk-main-pane :is(
  .pusk-case-chip.on,
  .pusk-mail-tab.on,
  .pusk-cal-view-chip.on
) {
  border-color: var(--border-accent);
  background: var(--bg-accent-subtle);
  color: var(--text-accent);
}

body.pusk-today-shell .pusk-main-pane :is(
  .today-primary,
  button.today-primary,
  summary.today-primary
) {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  min-height: 32px;
  padding: 0 14px;
  background: var(--bg-accent);
  border: 1px solid var(--bg-accent);
  color: var(--text-on-accent);
}

/* Dropdown / sheet actions: not solid primary pills */
body.pusk-today-shell .pusk-main-pane :is(
  .pusk-case-actions-drop,
  .pusk-tasks-menu-drop,
  .trow-menu-panel,
  .pusk-mail-add-form
) :is(button, a):not(.today-primary):not(.today-outline):not(.trow-menu-danger) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  min-height: 0;
  height: auto;
  padding: 8px 10px;
  text-align: left;
}

body.pusk-today-shell .pusk-main-pane :is(
  .pusk-case-actions-drop,
  .trow-menu-panel
) button[type="submit"]:not(.today-primary) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
}

body.pusk-today-shell .pusk-main-pane :is(
  .today-outline,
  button.today-outline,
  summary.today-outline
) {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  min-height: 32px;
  padding: 0 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}

body.pusk-today-shell .pusk-main-pane :is(
  .pusk-case-card,
  .pusk-timeline-card,
  .today-card.today-tasks,
  .pusk-cases-table,
  .pusk-mail-table-wrap,
  .pusk-tasks-table-wrap
) {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
}

body.pusk-today-shell .today-side nav a {
  min-height: 36px;
}

body.pusk-today-shell .today-side-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 18px;
  line-height: 1;
}

body.pusk-today-shell .today-side nav a em {
  min-width: 22px;
  height: 22px;
  font-size: 12px;
}

body.pusk-today-shell .pusk-pager-date,
body.pusk-today-shell .pusk-pager-range {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Full text in PUSK — titles, comments, descriptions wrap; no ellipsis/clamp */
body.pusk-today-shell .pusk-main-pane :is(
  .feed.tasks li.trow .what,
  .feed.tasks li.trow .ctx,
  .feed.tasks li.trow .tbody,
  .pusk-tasks-title,
  .pusk-kanban-card-title,
  .pusk-kanban-card-ctx,
  .pusk-feed-stream-body,
  .pusk-feed-stream-title,
  .pusk-feed-stream-snippet,
  .pusk-logic-thread-text,
  .pusk-logic-comment,
  .logic-said .said-text,
  .pusk-cal-body .calm-ttl,
  .pusk-cal-body .calm-place,
  .pusk-cal-list-title,
  .pusk-cal-list-sub,
  .tw-body,
  .tw-field textarea,
  .trow-more .what,
  .trow-more .details,
  .pusk-case-dl-text,
  .pusk-case-court-task-title,
  .pusk-case-feed .pusk-case-feed-kind + *
) {
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  -webkit-box: unset !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  min-width: 0;
}

body.approved-desktop-page.pusk-today-shell .feed.tasks li.trow .what,
body.approved-desktop-page.pusk-today-shell .feed.tasks li.trow .ctx {
  display: block !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  overflow-wrap: anywhere !important;
}

body.pusk-today-shell .feed.tasks li.trow .what,
body.pusk-today-shell .feed.tasks li.trow .ctx {
  display: block !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  overflow-wrap: anywhere !important;
}

body.pusk-today-shell .pusk-tasks-planner .pusk-planner-table td {
  overflow: visible !important;
  height: auto !important;
}
