/* Страница варианта (ЕГЭ/ОГЭ): компактная строка действий #task-answer-section */

body.variant-exam-body #task-answer-section .libreoffice-hf-answer-actions-row .libreoffice-hf-answer-actions-row__row {
  gap: 0.525rem;
  row-gap: 0.49rem;
}

body.variant-exam-body #task-answer-section .libreoffice-hf-answer-actions-row .libreoffice-hf-answer-tools-group,
body.variant-exam-body #task-answer-section .libreoffice-hf-answer-actions-row .libreoffice-task2-answer-explain-tools {
  gap: 0.34rem;
}

body.variant-exam-body.libreoffice-page-task9
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .libreoffice-hf-action-btn,
body.variant-exam-body.libreoffice-page-task9
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  a.libreoffice-hf-action-btn,
body.variant-exam-body.libreoffice-page-task9
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .task-answer-peek,
body.variant-exam-body.libreoffice-page-task9
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .python-sandbox__action,
body.variant-exam-body.libreoffice-page-task9
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .neuroege-ai-chat__fab--inline.libreoffice-hf-action-btn {
  padding: 0.36rem 0.7125rem;
  font-size: 0.6rem;
  gap: 0.3rem;
}

body.variant-exam-body:not(.libreoffice-page-task9)
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .libreoffice-hf-action-btn,
body.variant-exam-body:not(.libreoffice-page-task9)
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  a.libreoffice-hf-action-btn,
body.variant-exam-body:not(.libreoffice-page-task9)
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .task-answer-peek,
body.variant-exam-body:not(.libreoffice-page-task9)
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .python-sandbox__action,
body.variant-exam-body:not(.libreoffice-page-task9)
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .neuroege-ai-chat__fab--inline.libreoffice-hf-action-btn {
  min-height: 2.1375rem;
  padding: 0.51rem 0.975rem;
  font-size: 0.703rem;
  gap: 0.4125rem;
  border-width: 1.125px;
}

body.variant-exam-body #task-answer-section .libreoffice-hf-answer-actions-row .libreoffice-hf-action-btn__icon,
body.variant-exam-body #task-answer-section .libreoffice-hf-answer-actions-row .neuroege-ai-chat__fab-icon,
body.variant-exam-body #task-answer-section .libreoffice-hf-answer-actions-row .neuroege-ai-agent-btn__icon {
  font-size: 0.75rem;
}

body.variant-exam-body:not(.libreoffice-page-task9)
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .libreoffice-hf-action-btn__icon,
body.variant-exam-body:not(.libreoffice-page-task9)
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .neuroege-ai-chat__fab-icon {
  font-size: 0.8625rem;
}

body.variant-exam-body #task-answer-section .libreoffice-hf-answer-actions-row .libreoffice-hf-action-btn__img {
  width: 13.5px;
  height: 13.5px;
}

body.variant-exam-body
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .python-sandbox__action--video-author
  .libreoffice-hf-action-btn__img--author {
  width: 2.4rem;
  height: 2.4rem;
  max-width: none;
  max-height: none;
}

body.variant-exam-body #task-answer-section .libreoffice-hf-answer-actions-row .task-answer-peek__icon,
body.variant-exam-body
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .python-sandbox__action--show-solution
  .task-answer-peek__icon {
  width: 1.3875rem;
  height: 1.3875rem;
}

body.variant-exam-body #task-answer-section .libreoffice-hf-answer-actions-row .task-answer-peek__icon::before,
body.variant-exam-body
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .python-sandbox__action--show-solution
  .task-answer-peek__icon::before {
  font-size: 0.84rem;
}

body.variant-exam-body #task-answer-section .libreoffice-hf-answer-actions-row .libreoffice-hf-action-btn--duty-teacher {
  height: 2.1375rem;
  min-height: 2.1375rem;
  max-height: 2.1375rem;
  padding: 0.51rem 0.975rem;
}

body.variant-exam-body #task-answer-section .libreoffice-hf-answer-actions-row .libreoffice-hf-action-btn--duty-teacher .libreoffice-hf-action-btn__icon {
  width: 1.3875rem;
  height: 1.3875rem;
}

body.variant-exam-body #task-answer-section .libreoffice-hf-answer-actions-row .libreoffice-hf-action-btn--duty-teacher .duty-teacher-btn-icon--oge {
  width: 1.9125rem;
  height: 1.9125rem;
}

body.variant-exam-body #task-answer-section .libreoffice-hf-answer-actions-row .duty-teacher-btn-icon__img {
  width: 31px;
  height: 31px;
}

body.variant-exam-body.libreoffice-page-task9
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .libreoffice-hf-action-btn:hover,
body.variant-exam-body.libreoffice-page-task9
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  a.libreoffice-hf-action-btn:hover,
body.variant-exam-body.libreoffice-page-task9
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .neuroege-ai-chat__fab--inline.libreoffice-hf-action-btn:hover {
  transform: translateY(-0.75px);
}

body.variant-exam-body:not(.libreoffice-page-task9)
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .libreoffice-hf-action-btn:hover,
body.variant-exam-body:not(.libreoffice-page-task9)
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  a.libreoffice-hf-action-btn:hover {
  transform: translateY(-2.25px);
}

body.variant-exam-body:not(.libreoffice-page-task9)
  #task-answer-section
  .libreoffice-hf-answer-actions-row
  .libreoffice-hf-action-btn:active {
  transform: translateY(1.5px);
}

/* /taskN/<slug>/ — компактные кнопки (как exam-вариант) */
body.libreoffice-page-hf-task-list.libreoffice-page-task9 #task-answer-section:not([hidden]) .libreoffice-hf-answer-actions-row .libreoffice-hf-answer-actions-row__row {
  gap: 0.525rem;
  row-gap: 0.49rem;
}

body.libreoffice-page-hf-task-list.libreoffice-page-task9 #task-answer-section:not([hidden]) .libreoffice-hf-answer-actions-row .libreoffice-hf-answer-tools-group,
body.libreoffice-page-hf-task-list.libreoffice-page-task9 #task-answer-section:not([hidden]) .libreoffice-hf-answer-actions-row .libreoffice-task2-answer-explain-tools {
  gap: 0.34rem;
}

body.libreoffice-page-hf-task-list.libreoffice-page-task9 #task-answer-section:not([hidden]) .libreoffice-hf-answer-actions-row .libreoffice-hf-action-btn,
body.libreoffice-page-hf-task-list.libreoffice-page-task9 #task-answer-section:not([hidden]) .libreoffice-hf-answer-actions-row a.libreoffice-hf-action-btn,
body.libreoffice-page-hf-task-list.libreoffice-page-task9 #task-answer-section:not([hidden]) .libreoffice-hf-answer-actions-row .task-answer-peek,
body.libreoffice-page-hf-task-list.libreoffice-page-task9 #task-answer-section:not([hidden]) .libreoffice-hf-answer-actions-row .python-sandbox__action,
body.libreoffice-page-hf-task-list.libreoffice-page-task9 #task-answer-section:not([hidden]) .libreoffice-hf-answer-actions-row .neuroege-ai-chat__fab--inline.libreoffice-hf-action-btn {
  padding: 0.36rem 0.7125rem;
  font-size: 0.6rem;
  gap: 0.3rem;
}

body.libreoffice-page-hf-task-list.libreoffice-page-task9 #task-answer-section:not([hidden]) .libreoffice-hf-answer-actions-row .libreoffice-hf-action-btn__icon,
body.libreoffice-page-hf-task-list.libreoffice-page-task9 #task-answer-section:not([hidden]) .libreoffice-hf-answer-actions-row .neuroege-ai-chat__fab-icon {
  font-size: 0.75rem;
}

body.libreoffice-page-hf-task-list.libreoffice-page-task9 #task-answer-section:not([hidden]) .libreoffice-hf-answer-actions-row .libreoffice-hf-action-btn:hover,
body.libreoffice-page-hf-task-list.libreoffice-page-task9 #task-answer-section:not([hidden]) .libreoffice-hf-answer-actions-row a.libreoffice-hf-action-btn:hover {
  transform: translateY(-0.75px);
}

/* Перенос кнопок — после inline task9 layout (nowrap для premium) */
body.variant-exam-body #task-answer-section .libreoffice-hf-answer-actions-row--premium .libreoffice-hf-answer-actions-row__row,
body.variant-exam-body #task-answer-section .libreoffice-hf-answer-actions-row--task9 .libreoffice-hf-answer-actions-row__row--primary,
body.libreoffice-page-hf-task-list #task-answer-section:not([hidden]) .libreoffice-hf-answer-actions-row--premium .libreoffice-hf-answer-actions-row__row,
body.libreoffice-page-hf-task-list #task-answer-section:not([hidden]) .libreoffice-hf-answer-actions-row--task9 .libreoffice-hf-answer-actions-row__row--primary {
  flex-wrap: wrap;
  align-content: flex-start;
  overflow-x: visible;
  overflow-y: visible;
  padding-bottom: 0;
  scrollbar-width: auto;
}
