/* neuroege-dashboard на списке HF-тренажёров (/ege-1/, /ege-3/, …) */

body.neuroege-hf-dashboard-page.libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"] .task-solve__right {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  overflow-x: hidden;
}

body.neuroege-hf-dashboard-page.libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"] .hf-variants-shell {
  flex-shrink: 0;
}

body.neuroege-hf-dashboard-page.libreoffice-page-hf-task-list.hf-variant-list-expanded:not(.hf-game-hub-split-active) .hf-variants-nav {
  height: auto !important;
  max-height: 40vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable;
}

body.neuroege-hf-dashboard-page.libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0.55rem 0.5rem 0.65rem;
  overflow: hidden;
}

body.neuroege-hf-dashboard-page.libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__inner {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body.neuroege-hf-dashboard-page.libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-mode)
  .neuroege-dashboard__inner {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

/* Десктоп «Мой прогресс»: премиальный вертикальный скроллбар */
body:is(.neuroege-hf-dashboard-page, .neuroege-python-task-hf-enhanced-page).libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-mode) {
  --neuroege-dashboard-scrollbar-size: 8px;
  --neuroege-dashboard-scrollbar-track: rgba(15, 23, 42, 0.42);
  --neuroege-dashboard-scrollbar-thumb: rgba(167, 139, 250, 0.36);
  --neuroege-dashboard-scrollbar-thumb-hover: rgba(192, 132, 252, 0.56);
  --neuroege-dashboard-scrollbar-thumb-active: rgba(216, 180, 254, 0.74);
  --neuroege-dashboard-scrollbar-glow: rgba(124, 58, 237, 0.22);
}

[data-theme="light"]
  body:is(.neuroege-hf-dashboard-page, .neuroege-python-task-hf-enhanced-page).libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-mode) {
  --neuroege-dashboard-scrollbar-track: rgba(226, 232, 240, 0.92);
  --neuroege-dashboard-scrollbar-thumb: rgba(124, 58, 237, 0.24);
  --neuroege-dashboard-scrollbar-thumb-hover: rgba(109, 40, 217, 0.42);
  --neuroege-dashboard-scrollbar-thumb-active: rgba(91, 33, 182, 0.58);
  --neuroege-dashboard-scrollbar-glow: rgba(124, 58, 237, 0.14);
}

html[data-palette="pink"]
  body:is(.neuroege-hf-dashboard-page, .neuroege-python-task-hf-enhanced-page).libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-mode) {
  --neuroege-dashboard-scrollbar-thumb: rgba(244, 114, 182, 0.38);
  --neuroege-dashboard-scrollbar-thumb-hover: rgba(236, 72, 153, 0.58);
  --neuroege-dashboard-scrollbar-thumb-active: rgba(219, 39, 119, 0.76);
  --neuroege-dashboard-scrollbar-glow: rgba(236, 72, 153, 0.2);
}

html[data-palette="pink"][data-theme="light"]
  body:is(.neuroege-hf-dashboard-page, .neuroege-python-task-hf-enhanced-page).libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-mode) {
  --neuroege-dashboard-scrollbar-thumb: rgba(219, 39, 119, 0.22);
  --neuroege-dashboard-scrollbar-thumb-hover: rgba(190, 24, 93, 0.4);
  --neuroege-dashboard-scrollbar-thumb-active: rgba(157, 23, 77, 0.56);
  --neuroege-dashboard-scrollbar-glow: rgba(236, 72, 153, 0.12);
}

body:is(.neuroege-hf-dashboard-page, .neuroege-python-task-hf-enhanced-page).libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-mode)
  .neuroege-dashboard__inner {
  scrollbar-width: thin;
  scrollbar-color: var(--neuroege-dashboard-scrollbar-thumb) var(--neuroege-dashboard-scrollbar-track);
}

body:is(.neuroege-hf-dashboard-page, .neuroege-python-task-hf-enhanced-page).libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-mode)
  .neuroege-dashboard__inner::-webkit-scrollbar {
  width: var(--neuroege-dashboard-scrollbar-size);
}

body:is(.neuroege-hf-dashboard-page, .neuroege-python-task-hf-enhanced-page).libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-mode)
  .neuroege-dashboard__inner::-webkit-scrollbar-track {
  background: var(--neuroege-dashboard-scrollbar-track);
  border-radius: 999px;
  margin: 4px 2px;
}

body:is(.neuroege-hf-dashboard-page, .neuroege-python-task-hf-enhanced-page).libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-mode)
  .neuroege-dashboard__inner::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  background-color: var(--neuroege-dashboard-scrollbar-thumb);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(124, 58, 237, 0.06);
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

body:is(.neuroege-hf-dashboard-page, .neuroege-python-task-hf-enhanced-page).libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-mode)
  .neuroege-dashboard__inner::-webkit-scrollbar-thumb:hover {
  background-color: var(--neuroege-dashboard-scrollbar-thumb-hover);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 10px var(--neuroege-dashboard-scrollbar-glow);
}

body:is(.neuroege-hf-dashboard-page, .neuroege-python-task-hf-enhanced-page).libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-mode)
  .neuroege-dashboard__inner::-webkit-scrollbar-thumb:active {
  background-color: var(--neuroege-dashboard-scrollbar-thumb-active);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 12px var(--neuroege-dashboard-scrollbar-glow);
}

body:is(.neuroege-hf-dashboard-page, .neuroege-python-task-hf-enhanced-page).libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-mode)
  .neuroege-dashboard__inner::-webkit-scrollbar-corner {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  body:is(.neuroege-hf-dashboard-page, .neuroege-python-task-hf-enhanced-page).libreoffice-page-hf-task-list[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-mode)
    .neuroege-dashboard__inner::-webkit-scrollbar-thumb {
    transition: none;
  }
}

/* Мобильный дашборд на списке: полная карточка, заполняет колонку до dock */
body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .task-solve__right {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .task-solve__right > #neuroege-dashboard {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  margin: 0.35rem 0.45rem 0;
  border-radius: 11px;
  font-size: 0.76rem;
  overflow: hidden;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .task-solve__right
  > #neuroege-dashboard {
  flex: 1 1 0 !important;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"].task-mobile-pane-video
  .task-solve__right
  > #neuroege-dashboard {
  display: none !important;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__glow,
body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__shine {
  opacity: 0.55;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.55rem 0.65rem 0.52rem;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__inner {
  flex: 1 1 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__header {
  gap: 0.5rem;
  margin-bottom: 7px;
  align-items: flex-start;
  flex-shrink: 0;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__title {
  font-size: 11px;
  letter-spacing: 0.09em;
  gap: 0.4rem;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__title-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 9px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__title-icon svg {
  width: 0.82rem;
  height: 0.82rem;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__header-difficulty {
  font-size: 10px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"].task-mobile-pane-trainer
  .neuroege-dashboard__header-stat-label {
  display: none;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__header-stat-value {
  font-size: 11px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__header-stat-value[data-hf-game-difficulty] {
  font-size: 12px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__chip {
  gap: 3px;
  padding: 4px 9px;
  font-size: 10px;
  border-radius: 13px;
  line-height: 1.2;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__chip-value {
  font-size: 11px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__skills {
  gap: 6px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dash-skill {
  gap: 7px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dash-skill__label {
  font-size: 10px;
  min-width: 50px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dash-skill__track {
  height: 7px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dash-skill__pct {
  font-size: 10px;
  min-width: 28px;
}

/* График, рейтинг, достижения — на всех вкладках кроме «Разбор» */
body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__chart-section,
body.hf-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dashboard__chart-section,
body.ege-task1-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dashboard__chart-section {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 10px;
  overflow: visible;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__chart-title,
body.hf-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dashboard__chart-title,
body.ege-task1-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dashboard__chart-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 7px;
  gap: 0.4rem;
  flex-shrink: 0;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__chart-title-icon,
body.hf-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dashboard__chart-title-icon,
body.ege-task1-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dashboard__chart-title-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 9px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__chart-title-icon svg,
body.hf-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dashboard__chart-title-icon svg,
body.ege-task1-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dashboard__chart-title-icon svg {
  width: 0.82rem;
  height: 0.82rem;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__chart,
body.hf-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dashboard__chart,
body.ege-task1-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dashboard__chart {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  align-items: flex-end;
  gap: 5px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dash-bar,
body.hf-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dash-bar,
body.ege-task1-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dash-bar {
  height: auto;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dash-bar__track,
body.hf-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dash-bar__track,
body.ege-task1-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dash-bar__track {
  flex: 0 0 2.35rem;
  min-height: 2.35rem;
  max-width: 24px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dash-bar__label,
body.hf-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dash-bar__label,
body.ege-task1-mobile-list-hub:not(.task-mobile-pane-video) .neuroege-dash-bar__label {
  font-size: 11px;
  line-height: 1.15;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__leaderboard {
  flex-shrink: 0;
  margin-bottom: 10px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__leaderboard-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 7px;
  gap: 0.4rem;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__leaderboard-title-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 9px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__leaderboard-title-icon svg {
  width: 0.82rem;
  height: 0.82rem;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__lb-list {
  gap: 5px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__badges-section {
  flex-shrink: 0;
  margin-bottom: 10px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__badges-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 7px;
  gap: 0.4rem;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__badges-title-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 9px;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__badges-title-icon svg {
  width: 0.82rem;
  height: 0.82rem;
}

body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]:not(.task-mobile-pane-video)
  .neuroege-dashboard__tip {
  flex-shrink: 0;
  margin-top: auto;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.4;
}

/* На списке вариантов условие пустое — не резервируем место под «Решение» */
body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]
  #libreoffice-task9-statement-wrap,
body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]
  #task-answer-section {
  display: none !important;
}

/* ——— Мобильный hub /ege-N/ без dock: премиум-карточки на весь экран ——— */
body.ege-task1-mobile-list-hub,
body.hf-mobile-list-hub,
body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] {
  --hf-list-hub-inset: 0.62rem;
  --hf-list-hub-radius: 16px;
  --hf-list-hub-accent: rgba(16, 185, 129, 0.34);
  --hf-list-hub-accent-soft: rgba(16, 185, 129, 0.12);
}

body.ege-task1-mobile-list-hub .task-solve__right,
body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .task-solve__right {
  overflow: hidden;
  overflow-y: hidden;
}

body.ege-task1-mobile-list-hub.hf-variant-list-expanded:not(.hf-game-hub-split-active) .hf-variants-nav,
body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"].hf-variant-list-expanded:not(.hf-game-hub-split-active)
  .hf-variants-nav {
  max-height: min(38vh, 22rem) !important;
}

body.ege-task1-mobile-list-hub #ege-task1-mobile-dock,
body.hf-mobile-list-hub [id$="-mobile-dock"],
body.task-mobile-mode[data-neuroege-hf-variant-list-only="1"] [id$="-mobile-dock"] {
  display: none !important;
}

body.libreoffice-page-task1.ege-task1-mobile-list-hub .neuroege-hf-task-root,
body.hf-mobile-list-hub .neuroege-hf-task-root,
body.libreoffice-page-task1.task-mobile-mode[data-neuroege-hf-variant-list-only="1"] .neuroege-hf-task-root,
body.task-mobile-mode[data-neuroege-hf-variant-list-only="1"] .neuroege-hf-task-root {
  padding-bottom: 0 !important;
}

body.ege-task1-mobile-list-hub .task-solve__right > .hf-variants-shell,
body.task-mobile-mode[data-neuroege-hf-variant-list-only="1"] .task-solve__right > .hf-variants-shell {
  margin: 0 var(--hf-list-hub-inset);
  border-radius: var(--hf-list-hub-radius);
  border: 1px solid var(--hf-list-hub-accent);
  background:
    radial-gradient(120% 80% at 100% -20%, rgba(16, 185, 129, 0.14) 0%, transparent 55%),
    linear-gradient(168deg, rgba(16, 24, 22, 0.96) 0%, rgba(8, 12, 11, 0.98) 100%);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

[data-theme="light"] body.ege-task1-mobile-list-hub .task-solve__right > .hf-variants-shell,
[data-theme="light"]
  body.task-mobile-mode[data-neuroege-hf-variant-list-only="1"]
  .task-solve__right
  > .hf-variants-shell {
  border-color: rgba(5, 150, 105, 0.22);
  background:
    radial-gradient(120% 80% at 100% -20%, rgba(16, 185, 129, 0.1) 0%, transparent 55%),
    linear-gradient(168deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 253, 245, 0.94) 100%);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.ege-task1-mobile-list-hub .hf-variants-shell__head,
body.task-mobile-mode[data-neuroege-hf-variant-list-only="1"] .hf-variants-shell__head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
}

body.ege-task1-mobile-list-hub .task-solve__right > #neuroege-dashboard,
body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .task-solve__right > #neuroege-dashboard {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  margin:
    0.5rem
    var(--hf-list-hub-inset)
    max(0.62rem, env(safe-area-inset-bottom, 0px));
  border-radius: var(--hf-list-hub-radius);
  border-color: rgba(124, 58, 237, 0.32);
  background:
    radial-gradient(130% 90% at 100% -10%, rgba(124, 58, 237, 0.2) 0%, transparent 52%),
    radial-gradient(90% 70% at 0% 105%, rgba(16, 185, 129, 0.1) 0%, transparent 48%),
    linear-gradient(168deg, rgba(18, 26, 24, 0.98) 0%, rgba(8, 12, 11, 0.99) 100%);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(16, 185, 129, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="light"] body.ege-task1-mobile-list-hub .task-solve__right > #neuroege-dashboard,
[data-theme="light"]
  body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]
  .task-solve__right
  > #neuroege-dashboard {
  border-color: rgba(124, 58, 237, 0.2);
  background:
    radial-gradient(130% 90% at 100% -10%, rgba(124, 58, 237, 0.1) 0%, transparent 52%),
    radial-gradient(90% 70% at 0% 105%, rgba(16, 185, 129, 0.08) 0%, transparent 48%),
    linear-gradient(168deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 245, 249, 0.97) 100%);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(5, 150, 105, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.ege-task1-mobile-list-hub .neuroege-dashboard__glow,
body.task-mobile-mode[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__glow {
  opacity: 0.72;
}

body.ege-task1-mobile-list-hub .neuroege-dashboard__shine,
body.task-mobile-mode[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__shine {
  opacity: 0.9;
}

body.ege-task1-mobile-list-hub .neuroege-dashboard__inner,
body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__inner {
  padding: 0.72rem 0.78rem 0.68rem;
}

body.ege-task1-mobile-list-hub .neuroege-dashboard__chip,
body.task-mobile-mode[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__chip {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-width: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.ege-task1-mobile-list-hub .neuroege-dash-skill__track,
body.task-mobile-mode[data-neuroege-hf-variant-list-only="1"] .neuroege-dash-skill__track {
  background: rgba(15, 23, 42, 0.55);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

body.ege-task1-mobile-list-hub .neuroege-dashboard__chart-section,
body.ege-task1-mobile-list-hub .neuroege-dashboard__leaderboard,
body.ege-task1-mobile-list-hub .neuroege-dashboard__badges-section,
body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]
  .neuroege-dashboard__chart-section,
body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]
  .neuroege-dashboard__leaderboard,
body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]
  .neuroege-dashboard__badges-section {
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.12) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] body.ege-task1-mobile-list-hub .neuroege-dashboard__chart-section,
[data-theme="light"] body.ege-task1-mobile-list-hub .neuroege-dashboard__leaderboard,
[data-theme="light"] body.ege-task1-mobile-list-hub .neuroege-dashboard__badges-section,
[data-theme="light"]
  body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]
  .neuroege-dashboard__chart-section,
[data-theme="light"]
  body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]
  .neuroege-dashboard__leaderboard,
[data-theme="light"]
  body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]
  .neuroege-dashboard__badges-section {
  border-color: rgba(15, 23, 42, 0.07);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 250, 252, 0.55) 100%);
}

body.ege-task1-mobile-list-hub .neuroege-dashboard__tip,
body.task-mobile-mode[data-neuroege-hf-variant-list-only="1"] .neuroege-dashboard__tip {
  border-radius: 11px;
  border: 1px solid var(--hf-list-hub-accent);
  background: linear-gradient(165deg, var(--hf-list-hub-accent-soft) 0%, rgba(0, 0, 0, 0.08) 100%);
}

/* /ege-{N}/ mobile list-hub: дашборд заполняет колонку до низа экрана */
@media (max-width: 768px) {
  body.hf-mobile-list-hub.task-mobile-pane-statement .task-solve__right,
  body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"].task-mobile-pane-statement
    .task-solve__right,
  body.ege-python-task-mobile.task-mobile-mode[data-neuroege-hf-variant-list-only="1"].task-mobile-pane-statement
    .task-solve__right {
    padding-bottom: 0 !important;
  }

  body.hf-mobile-list-hub .neuroege-hf-task-root > .page.task-solve-page,
  body.hf-mobile-list-hub .neuroege-hf-task-root > .task-solve-page,
  body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]
    .neuroege-hf-task-root
    > .page.task-solve-page,
  body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]
    .neuroege-hf-task-root
    > .task-solve-page {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  body.hf-mobile-list-hub .calc-trainer-page.task-solve-page,
  body.hf-mobile-list-hub .libreoffice-task9-page.task-solve-page,
  body.hf-mobile-list-hub .libreoffice-task3-page.task-solve-page,
  body.task-mobile-mode[data-neuroege-hf-variant-list-only="1"] .calc-trainer-page.task-solve-page,
  body.task-mobile-mode[data-neuroege-hf-variant-list-only="1"] .libreoffice-task9-page.task-solve-page,
  body.task-mobile-mode[data-neuroege-hf-variant-list-only="1"] .libreoffice-task3-page.task-solve-page {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }

  body.hf-mobile-list-hub .task-solve__right,
  body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"] .task-solve__right {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  body.hf-mobile-list-hub .task-solve__right > .neuroege-progress-panel,
  body.hf-mobile-list-hub .task-solve__right > .hf-variants-shell,
  body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]
    .task-solve__right
    > .neuroege-progress-panel,
  body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]
    .task-solve__right
    > .hf-variants-shell {
    flex: 0 0 auto;
  }

  body.hf-mobile-list-hub .task-solve__right > #neuroege-dashboard,
  body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]
    .task-solve__right
    > #neuroege-dashboard {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    align-self: stretch;
    overflow: hidden;
    margin-bottom: max(0.62rem, env(safe-area-inset-bottom, 0px)) !important;
  }

  body.hf-mobile-list-hub .task-solve__right > #neuroege-dashboard .neuroege-dashboard__inner,
  body.task-mobile-mode.neuroege-hf-dashboard-page[data-neuroege-hf-variant-list-only="1"]
    .task-solve__right
    > #neuroege-dashboard
    .neuroege-dashboard__inner {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ИИ-виджет не участвует в flex-колонке (task26 calc и др.) */
  body.hf-mobile-list-hub .task-solve__right > #neuroege-ai-chat,
  body.task-mobile-mode[data-neuroege-hf-variant-list-only="1"] .task-solve__right > #neuroege-ai-chat {
    position: fixed !important;
    flex: none !important;
    width: auto !important;
    height: auto !important;
    max-width: min(100vw - 2rem, calc(22rem * 1.3)) !important;
    right: max(0.62rem, env(safe-area-inset-right, 0px)) !important;
    bottom: max(0.62rem, env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 10060;
  }
}
