/**
 * ОГЭ: панель hf-variants-shell — подсветка чипов как на /ege-{n}/.
 * Подключать последним в oge_exam.html (после hf_premium_chrome и inline layout).
 */

html body.variant-exam-body--oge.libreoffice-page-hf-task-list #hf-variants-shell.hf-variants-shell--body {
  background: linear-gradient(
    165deg,
    rgba(28, 34, 42, 0.94) 0%,
    rgba(14, 18, 26, 0.97) 100%
  ) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="light"]
  body.variant-exam-body--oge.libreoffice-page-hf-task-list
  #hf-variants-shell.hf-variants-shell--body {
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
}

html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-nav__chips,
html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-nav__chips.libreoffice-task9-variants-scroll {
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  background: rgba(15, 23, 42, 0.35) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="light"]
  body.variant-exam-body--oge.libreoffice-page-hf-task-list
  .hf-variants-nav__chips,
html[data-theme="light"]
  body.variant-exam-body--oge.libreoffice-page-hf-task-list
  .hf-variants-nav__chips.libreoffice-task9-variants-scroll {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

/* Чипы: те же оттенки, что hf_variants_premium + chip_color из админки (!important поверх inline layout). */
html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--official:not(.hf-variants-nav__chip-slot--custom-color) a.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked),
html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--official:not(.hf-variants-nav__chip-slot--custom-color) button.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked) {
  border-color: rgba(96, 165, 250, 0.55) !important;
  background: linear-gradient(165deg, rgba(30, 58, 138, 0.72) 0%, rgba(23, 37, 84, 0.78) 100%) !important;
  color: #dbeafe !important;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--official:not(.hf-variants-nav__chip-slot--custom-color) a.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked):hover,
html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--official:not(.hf-variants-nav__chip-slot--custom-color) button.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked):hover {
  border-color: rgba(147, 197, 253, 0.75) !important;
  background: linear-gradient(165deg, rgba(37, 72, 170, 0.78) 0%, rgba(30, 48, 110, 0.82) 100%) !important;
}

html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--author:not(.hf-variants-nav__chip-slot--custom-color) a.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked),
html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--author:not(.hf-variants-nav__chip-slot--custom-color) button.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked) {
  border-color: rgba(167, 139, 250, 0.55) !important;
  background: linear-gradient(165deg, rgba(76, 29, 149, 0.65) 0%, rgba(46, 16, 101, 0.72) 100%) !important;
  color: #ede9fe !important;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--author:not(.hf-variants-nav__chip-slot--custom-color) a.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked):hover,
html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--author:not(.hf-variants-nav__chip-slot--custom-color) button.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked):hover {
  border-color: rgba(196, 181, 253, 0.75) !important;
  background: linear-gradient(165deg, rgba(91, 33, 182, 0.74) 0%, rgba(59, 21, 128, 0.78) 100%) !important;
}

html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--official:not(.hf-variants-nav__chip-slot--custom-color) a.libreoffice-task9-chip--active:not(.libreoffice-task9-chip--locked),
html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--official:not(.hf-variants-nav__chip-slot--custom-color) button.libreoffice-task9-chip--active:not(.libreoffice-task9-chip--locked) {
  border-color: #93c5fd !important;
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.35) !important;
}

html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--author:not(.hf-variants-nav__chip-slot--custom-color) a.libreoffice-task9-chip--active:not(.libreoffice-task9-chip--locked),
html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--author:not(.hf-variants-nav__chip-slot--custom-color) button.libreoffice-task9-chip--active:not(.libreoffice-task9-chip--locked) {
  border-color: #c4b5fd !important;
  background: #7c3aed !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(196, 181, 253, 0.35) !important;
}

html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--custom-color a.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked),
html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--custom-color button.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked),
html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--custom-color a.libreoffice-task9-chip--active:not(.libreoffice-task9-chip--locked),
html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--custom-color button.libreoffice-task9-chip--active:not(.libreoffice-task9-chip--locked) {
  border: 2px solid var(--ege-variant-chip-color) !important;
  border-radius: 8px !important;
  background: color-mix(in srgb, var(--ege-variant-chip-color) 12%, transparent) !important;
  color: var(--ege-variant-chip-color) !important;
  box-shadow: inset 0 0 0 1px var(--ege-variant-chip-color) !important;
  transform: none !important;
}

html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--custom-color a.libreoffice-task9-chip--active:not(.libreoffice-task9-chip--locked),
html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--custom-color button.libreoffice-task9-chip--active:not(.libreoffice-task9-chip--locked) {
  background: color-mix(in srgb, var(--ege-variant-chip-color) 18%, transparent) !important;
  box-shadow:
    inset 0 0 0 1px var(--ege-variant-chip-color),
    0 0 0 1px var(--ege-variant-chip-color) !important;
  font-weight: 700 !important;
}

html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--custom-color a.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked):hover,
html body.variant-exam-body--oge.libreoffice-page-hf-task-list .hf-variants-shell .hf-variants-nav__chip-slot--custom-color button.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked):hover {
  background: color-mix(in srgb, var(--ege-variant-chip-color) 20%, transparent) !important;
  box-shadow: inset 0 0 0 1px var(--ege-variant-chip-color) !important;
}

html[data-theme="light"]
  body.variant-exam-body--oge.libreoffice-page-hf-task-list
  .hf-variants-shell
  .hf-variants-nav__chip-slot--official:not(.hf-variants-nav__chip-slot--custom-color)
  a.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked),
html[data-theme="light"]
  body.variant-exam-body--oge.libreoffice-page-hf-task-list
  .hf-variants-shell
  .hf-variants-nav__chip-slot--official:not(.hf-variants-nav__chip-slot--custom-color)
  button.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked) {
  border-color: #93c5fd !important;
  background: #eff6ff !important;
  color: #1e40af !important;
  box-shadow: none !important;
}

html[data-theme="light"]
  body.variant-exam-body--oge.libreoffice-page-hf-task-list
  .hf-variants-shell
  .hf-variants-nav__chip-slot--author:not(.hf-variants-nav__chip-slot--custom-color)
  a.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked),
html[data-theme="light"]
  body.variant-exam-body--oge.libreoffice-page-hf-task-list
  .hf-variants-shell
  .hf-variants-nav__chip-slot--author:not(.hf-variants-nav__chip-slot--custom-color)
  button.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked) {
  border-color: #c4b5fd !important;
  background: #f5f3ff !important;
  color: #5b21b6 !important;
  box-shadow: none !important;
}

html[data-theme="light"]
  body.variant-exam-body--oge.libreoffice-page-hf-task-list
  .hf-variants-shell
  .hf-variants-nav__chip-slot--official:not(.hf-variants-nav__chip-slot--custom-color)
  a.libreoffice-task9-chip--active:not(.libreoffice-task9-chip--locked),
html[data-theme="light"]
  body.variant-exam-body--oge.libreoffice-page-hf-task-list
  .hf-variants-shell
  .hf-variants-nav__chip-slot--author:not(.hf-variants-nav__chip-slot--custom-color)
  a.libreoffice-task9-chip--active:not(.libreoffice-task9-chip--locked) {
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="light"]
  body.variant-exam-body--oge.libreoffice-page-hf-task-list
  .hf-variants-shell
  .hf-variants-nav__chip-slot--official:not(.hf-variants-nav__chip-slot--custom-color)
  a.libreoffice-task9-chip--active:not(.libreoffice-task9-chip--locked) {
  border-color: #1d4ed8 !important;
  background: #2563eb !important;
}

html[data-theme="light"]
  body.variant-exam-body--oge.libreoffice-page-hf-task-list
  .hf-variants-shell
  .hf-variants-nav__chip-slot--author:not(.hf-variants-nav__chip-slot--custom-color)
  a.libreoffice-task9-chip--active:not(.libreoffice-task9-chip--locked) {
  border-color: #6d28d9 !important;
  background: #7c3aed !important;
}

html[data-theme="light"]
  body.variant-exam-body--oge.libreoffice-page-hf-task-list
  .hf-variants-shell
  .hf-variants-nav__chip-slot--custom-color
  a.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked),
html[data-theme="light"]
  body.variant-exam-body--oge.libreoffice-page-hf-task-list
  .hf-variants-shell
  .hf-variants-nav__chip-slot--custom-color
  button.libreoffice-task9-chip:not(.libreoffice-task9-chip--locked),
html[data-theme="light"]
  body.variant-exam-body--oge.libreoffice-page-hf-task-list
  .hf-variants-shell
  .hf-variants-nav__chip-slot--custom-color
  a.libreoffice-task9-chip--active:not(.libreoffice-task9-chip--locked),
html[data-theme="light"]
  body.variant-exam-body--oge.libreoffice-page-hf-task-list
  .hf-variants-shell
  .hf-variants-nav__chip-slot--custom-color
  button.libreoffice-task9-chip--active:not(.libreoffice-task9-chip--locked) {
  border: 2px solid var(--ege-variant-chip-color) !important;
  background: color-mix(in srgb, var(--ege-variant-chip-color) 12%, transparent) !important;
  color: var(--ege-variant-chip-color) !important;
  box-shadow: inset 0 0 0 1px var(--ege-variant-chip-color) !important;
}
