/* Страница /kumir-online/ — полноэкранный тренажёр Кумир */

.kumir-online-seo-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.neuroege-kumir-online-page {
  --home-fab-bottom: 1.75rem;
}

body.neuroege-kumir-online-page #neuroshka-kumir-online-fab.fab-cta--premium.fab-cta--neuroshka {
  right: 3.5rem;
  left: auto;
  bottom: var(--home-fab-bottom);
  z-index: 10120;
  gap: 0.35rem;
  padding: 0.48rem 0.82rem 0.52rem;
  padding-right: 0.9rem;
  font-size: 0.8rem;
}

body.neuroege-kumir-online-page #neuroshka-kumir-online-fab .fab-cta__emoji {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.88rem;
}

body.neuroege-kumir-online-page .neuroege-ai-chat--kumir-online.neuroege-ai-chat--floating {
  z-index: 10130;
}

@media (max-width: 768px) {
  body.neuroege-kumir-online-page {
    --home-fab-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  body.neuroege-kumir-online-page #neuroshka-kumir-online-fab.fab-cta--premium.fab-cta--neuroshka {
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    padding: 0.4rem 0.68rem 0.44rem;
    padding-right: 0.78rem;
    font-size: 0.75rem;
    gap: 0.32rem;
  }

  body.neuroege-kumir-online-page #neuroshka-kumir-online-fab .fab-cta__emoji {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (pointer: coarse) {
  body.neuroege-kumir-online-page {
    --home-fab-bottom: max(0.55rem, env(safe-area-inset-bottom, 0px));
  }

  body.neuroege-kumir-online-page #neuroshka-kumir-online-fab.fab-cta--premium.fab-cta--neuroshka {
    right: max(0.65rem, env(safe-area-inset-right, 0px));
    padding: 0.34rem 0.58rem 0.38rem;
    padding-right: 0.68rem;
    font-size: 0.68rem;
    gap: 0.28rem;
  }

  body.neuroege-kumir-online-page #neuroshka-kumir-online-fab .fab-cta__emoji {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.72rem;
  }
}

.kumir-online-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kumir-online-body > .header--minimal {
  --header-scale: 0.325;
  flex-shrink: 0;
  padding: 0.22rem 0.55rem;
  min-height: 2.15rem;
}

.kumir-online-body .header__brand--minimal {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
}

.kumir-online-body .header__minimal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  text-decoration: none;
  color: var(--text, #e8eaed);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
}

.kumir-online-body .header__minimal-brand-icon {
  display: block;
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.kumir-online-body .header__minimal-neuronis {
  font-size: 0.58rem;
  color: var(--muted, #9aa0a6);
  text-decoration: none;
  opacity: 0.85;
  white-space: nowrap;
}

.kumir-online-body .header__minimal-neuronis:hover {
  opacity: 1;
  color: var(--accent, #34d399);
}

@keyframes kumir-header-toggle-glow-ege {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(5, 184, 125, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  50% {
    box-shadow:
      0 0 14px 1px rgba(5, 184, 125, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
}

@keyframes kumir-header-toggle-glow-oge {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(20, 184, 166, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  50% {
    box-shadow:
      0 0 14px 1px rgba(20, 184, 166, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
}

@keyframes kumir-header-toggle-glow-calc {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(24, 163, 3, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  50% {
    box-shadow:
      0 0 14px 1px rgba(24, 163, 3, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
}

@keyframes kumir-header-toggle-glow-python {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(55, 118, 171, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  50% {
    box-shadow:
      0 0 14px 1px rgba(55, 118, 171, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
}

@keyframes kumir-header-toggle-glow-oge-promo {
  0%,
  100% {
    box-shadow:
      0 0 10px rgba(20, 184, 166, 0.35),
      0 0 0 rgba(239, 68, 68, 0);
  }

  50% {
    box-shadow:
      0 0 24px rgba(45, 212, 191, 0.72),
      0 0 14px rgba(239, 68, 68, 0.45);
  }
}

@keyframes kumir-header-oge-alert-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 8px rgba(255, 59, 48, 0.9);
  }

  50% {
    opacity: 0.45;
    transform: scale(1.28);
    text-shadow: 0 0 16px rgba(255, 59, 48, 1);
  }
}

.kumir-online-body .header__minimal-nav--promo {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-left: 0.35rem;
  min-width: 0;
  flex: 0 1 auto;
}

.kumir-online-body .header__minimal-nav--promo .header__exam-toggle {
  padding: 0.14rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(165deg, rgba(18, 24, 32, 0.88) 0%, rgba(10, 14, 20, 0.72) 100%);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn {
  min-width: 2.65rem;
  padding: 0.34rem 0.88rem;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: none;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--oge-long {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.34rem 0.72rem;
  white-space: nowrap;
}

.kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--oge-long:not(.header__exam-toggle-btn--active) {
  border-color: rgba(45, 212, 191, 0.92);
  color: #f0fdfa;
  background: linear-gradient(165deg, rgba(13, 148, 136, 0.62) 0%, rgba(20, 184, 166, 0.42) 100%);
  animation: kumir-header-toggle-glow-oge-promo 1.35s ease-in-out infinite;
  filter: saturate(1.15);
}

.kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--oge-long .header__exam-toggle-btn__alert {
  display: inline-block;
  margin-left: 0.14rem;
  color: #ff3b30;
  font-weight: 900;
  font-size: 1.2em;
  line-height: 1;
  animation: kumir-header-oge-alert-pulse 0.82s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(255, 59, 48, 0.9);
}

.kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--oge-long.header__exam-toggle-btn--active {
  min-width: 0;
  font-size: 0.66rem;
  padding: 0.38rem 0.78rem;
}

.kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--active {
  min-width: 2.85rem;
  padding: 0.4rem 0.98rem;
  font-size: 0.8rem;
  transform: scale(1.04);
  pointer-events: auto;
  cursor: pointer;
}

.kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn:not(.header__exam-toggle-btn--active):hover {
  transform: translateY(-1px) scale(1.03);
}

.kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--ege:not(.header__exam-toggle-btn--active) {
  border-color: rgba(5, 184, 125, 0.62);
  color: #a7f3d0;
  background: linear-gradient(165deg, rgba(5, 184, 125, 0.2) 0%, rgba(5, 184, 125, 0.08) 100%);
  animation: kumir-header-toggle-glow-ege 2.6s ease-in-out infinite;
}

.kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--oge:not(.header__exam-toggle-btn--active) {
  border-color: rgba(20, 184, 166, 0.62);
  color: #99f6e4;
  background: linear-gradient(165deg, rgba(20, 184, 166, 0.2) 0%, rgba(20, 184, 166, 0.08) 100%);
  animation: kumir-header-toggle-glow-oge 2.6s ease-in-out infinite;
}

.kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--ege.header__exam-toggle-btn--active {
  border-color: rgba(110, 231, 183, 0.95);
  background: linear-gradient(165deg, #059669 0%, #10b981 52%, #34d399 100%);
  color: #fff;
  box-shadow:
    0 4px 22px rgba(5, 184, 125, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--oge.header__exam-toggle-btn--active {
  border-color: rgba(94, 234, 212, 0.95);
  background: linear-gradient(165deg, #0d9488 0%, #14b8a6 52%, #2dd4bf 100%);
  color: #fff;
  box-shadow:
    0 4px 22px rgba(20, 184, 166, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.kumir-online-body .header__minimal-trainer-btn--calc:not(.header__exam-toggle-btn--active) {
  border-color: rgba(36, 190, 12, 0.68);
  color: #dcfce7;
  background: linear-gradient(165deg, rgba(24, 163, 3, 0.34) 0%, rgba(14, 138, 0, 0.16) 100%);
  animation: kumir-header-toggle-glow-calc 2.8s ease-in-out infinite;
}

.kumir-online-body .header__minimal-trainer-btn--python:not(.header__exam-toggle-btn--active) {
  border-color: rgba(70, 140, 200, 0.72);
  color: #dbeafe;
  background: linear-gradient(165deg, rgba(55, 118, 171, 0.36) 0%, rgba(48, 105, 152, 0.18) 55%, rgba(255, 212, 59, 0.12) 100%);
  animation: kumir-header-toggle-glow-python 2.8s ease-in-out infinite;
}

.kumir-online-body .header__minimal-trainer-btn--calc.header__exam-toggle-btn--active {
  border-color: rgba(134, 239, 172, 0.95);
  background: linear-gradient(165deg, #18a303 0%, #22c55e 55%, #86efac 100%);
  color: #f0fff4;
  box-shadow:
    0 4px 22px rgba(24, 163, 3, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.kumir-online-body .header__minimal-trainer-btn--python.header__exam-toggle-btn--active {
  border-color: rgba(147, 197, 253, 0.95);
  background: linear-gradient(165deg, #3776ab 0%, #4b8bbe 48%, #ffd43b 100%);
  color: #fff;
  box-shadow:
    0 4px 22px rgba(55, 118, 171, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.kumir-online-body .header__minimal-trainer-btn--calc:not(.header__exam-toggle-btn--active):hover,
.kumir-online-body .header__minimal-trainer-btn--python:not(.header__exam-toggle-btn--active):hover {
  color: #fff;
  filter: brightness(1.08);
}

[data-theme="light"] .kumir-online-body .header__minimal-nav--promo .header__exam-toggle {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 250, 247, 0.9) 100%);
  border-color: rgba(5, 184, 125, 0.2);
  box-shadow:
    0 6px 18px rgba(26, 36, 48, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--ege:not(.header__exam-toggle-btn--active) {
  color: #047857;
  background: linear-gradient(165deg, rgba(5, 184, 125, 0.16) 0%, rgba(5, 184, 125, 0.06) 100%);
}

[data-theme="light"] .kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--oge:not(.header__exam-toggle-btn--active):not(.header__exam-toggle-btn--oge-long) {
  color: #0f766e;
  background: linear-gradient(165deg, rgba(20, 184, 166, 0.16) 0%, rgba(20, 184, 166, 0.06) 100%);
}

[data-theme="light"] .kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--oge-long:not(.header__exam-toggle-btn--active) {
  color: #115e59;
  border-color: rgba(13, 148, 136, 0.75);
  background: linear-gradient(165deg, rgba(20, 184, 166, 0.28) 0%, rgba(45, 212, 191, 0.14) 100%);
}

[data-theme="light"] .kumir-online-body .header__minimal-trainer-btn--calc:not(.header__exam-toggle-btn--active) {
  color: #166534;
}

[data-theme="light"] .kumir-online-body .header__minimal-trainer-btn--python:not(.header__exam-toggle-btn--active) {
  color: #1d4ed8;
}

@media (max-width: 640px) {
  .kumir-online-body .header__minimal-nav--promo {
    gap: 0.28rem;
    margin-left: 0.15rem;
  }

  .kumir-online-body .header__minimal-nav--promo .header__exam-toggle {
    padding: 0.1rem;
  }

  .kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn {
    min-width: 2.2rem;
    padding: 0.28rem 0.62rem;
    font-size: 0.66rem;
  }

  .kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--active {
    min-width: 2.35rem;
    padding: 0.32rem 0.7rem;
    font-size: 0.7rem;
  }

  .kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--oge-long {
    font-size: 0.54rem;
    padding: 0.28rem 0.52rem;
  }

  .kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--oge-long.header__exam-toggle-btn--active {
    font-size: 0.56rem;
    padding: 0.3rem 0.56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn:not(.header__exam-toggle-btn--active),
  .kumir-online-body .header__minimal-trainer-btn:not(.header__exam-toggle-btn--active) {
    animation: none;
  }

  .kumir-online-body .header__minimal-nav--promo .header__exam-toggle-btn--oge-long .header__exam-toggle-btn__alert {
    animation: none;
  }
}

.kumir-online-body .header--minimal .header__right {
  flex-shrink: 0;
}

.kumir-online-body .header--minimal .header__right--task-focus {
  gap: 0.18rem;
}

.kumir-online-body .header--minimal .hf-task-account-menu__trigger {
  gap: 0.22rem;
  max-width: min(8.5rem, 100%);
  padding: 0.1rem 0.35rem 0.1rem 0.18rem;
}

.kumir-online-body .header--minimal .hf-task-account-menu__avatar {
  width: 0.875rem;
  height: 0.875rem;
  font-size: 0.52rem;
}

.kumir-online-body .header--minimal .hf-task-account-menu__name {
  max-width: 4.5rem;
  font-size: 0.62rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kumir-online-body .header--minimal .hf-task-account-menu__chevron {
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.05rem;
}

.kumir-online-body .header--minimal .hf-header-util-toggle {
  gap: 0;
  border-radius: 5px;
}

.kumir-online-body .header--minimal .hf-header-util-toggle .theme-toggle {
  width: 1.125rem;
  height: 1.125rem;
  font-size: 0.62rem;
  border-radius: 0 5px 5px 0;
}

.kumir-online-body .header--minimal #hf-header-palette-toggle-slot,
.kumir-online-body .header--minimal .palette-toggle,
.kumir-online-body .header--minimal .telemost-header-link {
  display: none;
}

@media (max-width: 520px) {
  .kumir-online-body .header__minimal-neuronis {
    display: none;
  }

  .kumir-online-body > .header--minimal {
    padding-inline: 0.35rem;
  }
}

.kumir-online-body > .kumir-online-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.35rem 0.5rem 0.5rem;
  box-sizing: border-box;
}

.kumir-online-shell #oge-task15-kumir-trainer {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

/* AI-помощь на /kumir-online/ — строка с ошибкой в колонке «Было» */
body.kumir-online-body .oge-kumir-ai-help-modal__code-line--error {
  color: #fff;
  background: #c62828;
  box-shadow: inset 3px 0 0 #ef5350;
}

html[data-theme="light"] body.kumir-online-body .oge-kumir-ai-help-modal__code-line--error {
  color: #fff;
  background: #c62828;
}

@media (min-width: 768px) {
  .kumir-online-body > .kumir-online-shell {
    padding: 0.5rem 0.75rem 0.75rem;
  }
}

/* Планшет */
@media (max-width: 899px) {
  .kumir-online-body > .kumir-online-shell {
    padding: 0.25rem 0.35rem 0.4rem;
    padding-bottom: max(0.4rem, env(safe-area-inset-bottom, 0px));
  }
}

/* Мобильный */
@media (max-width: 599px) {
  .kumir-online-body {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  .kumir-online-body > .header--minimal {
    padding-top: max(0.12rem, env(safe-area-inset-top, 0px));
    padding-left: max(0.35rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.35rem, env(safe-area-inset-right, 0px));
  }

  .kumir-online-body .header--minimal .hf-task-account-menu__name {
    display: none;
  }

  .kumir-online-body .header--minimal .hf-task-account-menu__chevron {
    display: none;
  }

  .kumir-online-body .header--minimal .hf-task-account-menu__trigger {
    max-width: none;
    padding: 0.12rem;
    border-radius: 999px;
  }

  .kumir-online-body .header--minimal .hf-header-util-toggle .theme-toggle {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.72rem;
  }

  .kumir-online-body > .kumir-online-shell {
    padding: 0.15rem 0.2rem 0.3rem;
    padding-bottom: max(0.3rem, env(safe-area-inset-bottom, 0px));
  }
}

/* --- Практикум (MVP) --- */
.oge-kumir-trainer__right-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.oge-kumir-trainer__right-column > .oge-kumir-trainer__robot-panel {
  flex: 1 1 auto;
  min-height: 0;
}

.oge-kumir-practicum-panel[hidden],
.oge-kumir-practicum-split-resizer[hidden] {
  display: none !important;
}

.oge-kumir-trainer--practicum .oge-kumir-trainer__robot-panel {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 0;
}

/* ——— Практикум: премиальный chrome-стиль ——— */

.oge-kumir-practicum-panel {
  --practicum-accent: #4a90d9;
  --practicum-accent-deep: #2f6fb8;
  --practicum-accent-soft: rgba(74, 144, 217, 0.16);
  --practicum-accent-glow: rgba(74, 144, 217, 0.35);
  --practicum-surface: var(--oge-kumir-editor-panel-bg, #252a2e);
  --practicum-surface-raised: color-mix(in srgb, var(--practicum-surface) 88%, #fff 12%);
  --practicum-border: var(--oge-kumir-robot-panel-border, #3a4249);
  --practicum-text: var(--oge-kumir-chrome-menu-text, #e0e0e0);
  --practicum-muted: var(--oge-kumir-chrome-muted, #a8a8a8);
  --practicum-tree-bg: color-mix(in srgb, var(--practicum-surface) 92%, #000 8%);
  --practicum-section-head-bg: color-mix(in srgb, var(--practicum-surface) 80%, #fff 20%);
  --practicum-actions-bg: color-mix(in srgb, var(--practicum-surface) 88%, #000 12%);
  --practicum-scrollbar: rgba(255, 255, 255, 0.16);
}

.oge-kumir-practicum-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 140px;
  overflow: hidden;
  border-bottom: 1px solid var(--oge-kumir-chrome-border, #454545);
  background: var(--oge-kumir-chrome-bg, linear-gradient(180deg, #3a3a3a 0%, #2e2e2e 100%));
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22),
    var(--oge-kumir-chrome-shadow-inset, inset 0 1px 0 rgba(255, 255, 255, 0.06));
}

.oge-kumir-practicum-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex: 0 0 auto;
  padding: 0.32rem 0.5rem 0.32rem 0.55rem;
  border-bottom: 1px solid var(--oge-kumir-chrome-menubar-border, #454545);
  background: var(--oge-kumir-chrome-menubar-bg, #383838);
  box-shadow: var(--oge-kumir-chrome-shadow-inset, inset 0 1px 0 rgba(255, 255, 255, 0.06));
}

.oge-kumir-practicum-panel__header-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.oge-kumir-practicum-panel__icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  filter: var(--oge-kumir-chrome-icon-filter, none);
}

.oge-kumir-practicum-panel__header-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.oge-kumir-practicum-panel__title {
  margin: 0;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--oge-kumir-chrome-doc-title, #e8eaed);
}

.oge-kumir-practicum-panel__subtitle {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--practicum-muted);
}

.oge-kumir-practicum-panel__subtitle:not(:empty) {
  color: var(--practicum-accent);
}

.oge-kumir-practicum-panel__close {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
}

.oge-kumir-practicum-panel__close-icon {
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.85;
}

.oge-kumir-practicum-panel__body {
  display: flex;
  flex-direction: row;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--practicum-surface);
}

.oge-kumir-practicum-panel__section {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.oge-kumir-practicum-panel__section--tree {
  flex: 0 0 36%;
  min-width: 108px;
  border-right: 1px solid var(--practicum-border);
  background: var(--practicum-tree-bg);
}

.oge-kumir-practicum-panel__section--desc {
  flex: 1 1 auto;
  min-width: 108px;
  background: var(--practicum-surface-raised);
}

.oge-kumir-practicum-panel__section-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  flex: 0 0 auto;
  padding: 0.34rem 0.6rem;
  border-bottom: 1px solid var(--practicum-border);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--practicum-muted);
  background: var(--practicum-section-head-bg);
}

.oge-kumir-practicum-panel__section-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 3px;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--practicum-accent);
  background: var(--practicum-accent-soft);
}

.oge-kumir-practicum-tree {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.35rem 0.35rem 0.45rem;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--practicum-text);
  scrollbar-width: thin;
  scrollbar-color: var(--practicum-scrollbar) transparent;
}

.oge-kumir-practicum-tree::-webkit-scrollbar {
  width: 7px;
}

.oge-kumir-practicum-tree::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--practicum-scrollbar);
}

.oge-kumir-practicum-tree__section {
  margin-bottom: 0.12rem;
  padding-left: calc(var(--practicum-depth, 0) * 0.55rem);
}

.oge-kumir-practicum-tree__section-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  margin: 0;
  padding: 0.28rem 0.42rem;
  border: 1px solid transparent;
  border-radius: 5px;
  text-align: left;
  font: inherit;
  font-weight: 700;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease;
}

.oge-kumir-practicum-tree__section-title:hover,
.oge-kumir-practicum-tree__section-title:focus-visible {
  background: var(--oge-kumir-chrome-menu-hover, rgba(255, 255, 255, 0.08));
  border-color: color-mix(in srgb, var(--practicum-border) 70%, transparent);
}

.oge-kumir-practicum-tree__section-title--active,
.oge-kumir-practicum-tree__section-title--open {
  color: var(--practicum-accent);
}

.oge-kumir-practicum-tree__chevron {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0.72;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.oge-kumir-practicum-tree__section-title--open .oge-kumir-practicum-tree__chevron {
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 1;
}

.oge-kumir-practicum-tree__section-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oge-kumir-practicum-tree__section-body {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  padding: 0.12rem 0 0.18rem calc(0.95rem + var(--practicum-depth, 0) * 0.55rem);
  border-left: 1px solid color-mix(in srgb, var(--practicum-border) 65%, transparent);
  margin-left: 0.72rem;
}

.oge-kumir-practicum-tree__task {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  width: 100%;
  margin: 0;
  padding: 0.24rem 0.45rem 0.24rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 5px;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

.oge-kumir-practicum-tree__task-marker {
  flex: 0 0 auto;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--practicum-muted) 70%, transparent);
  background: transparent;
  transition:
    border-color 0.14s ease,
    background 0.14s ease,
    box-shadow 0.14s ease;
}

.oge-kumir-practicum-tree__task-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oge-kumir-practicum-tree__task:hover,
.oge-kumir-practicum-tree__task:focus-visible {
  background: var(--oge-kumir-chrome-menu-hover, rgba(255, 255, 255, 0.08));
  border-color: color-mix(in srgb, var(--practicum-border) 55%, transparent);
}

.oge-kumir-practicum-tree__task--active {
  color: var(--practicum-accent);
  background: var(--practicum-accent-soft);
  border-color: color-mix(in srgb, var(--practicum-accent) 42%, transparent);
  box-shadow: inset 3px 0 0 var(--practicum-accent);
}

.oge-kumir-practicum-tree__task--active .oge-kumir-practicum-tree__task-marker {
  border-color: var(--practicum-accent);
  background: var(--practicum-accent);
  box-shadow: 0 0 0 2px var(--practicum-accent-soft);
}

.oge-kumir-practicum-desc-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.5rem 0.65rem 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: var(--practicum-scrollbar) transparent;
}

.oge-kumir-practicum-desc-wrap::-webkit-scrollbar {
  width: 7px;
}

.oge-kumir-practicum-desc-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--practicum-scrollbar);
}

.oge-kumir-practicum-task-title {
  margin: 0 0 0.35rem;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--oge-kumir-chrome-doc-title, #e8eaed);
}

.oge-kumir-practicum-task-title[hidden] {
  display: none;
}

.oge-kumir-practicum-desc {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--practicum-text);
}

.oge-kumir-practicum-inner-split-resizer {
  flex: 0 0 7px;
  width: 7px;
  min-width: 7px;
  align-self: stretch;
  cursor: col-resize;
  touch-action: none;
  background: color-mix(in srgb, var(--practicum-border) 35%, transparent);
  border: none;
  transition: background 0.14s ease;
}

.oge-kumir-practicum-inner-split-resizer:hover,
.oge-kumir-practicum-inner-split-resizer:focus-visible {
  background: color-mix(in srgb, var(--practicum-accent) 35%, var(--practicum-border));
}

.oge-kumir-practicum-desc p {
  margin: 0;
}

.oge-kumir-practicum-desc__actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
  padding: 0.42rem 0.65rem 0.55rem;
  border-top: 1px solid var(--practicum-border);
  background: var(--practicum-actions-bg);
}

.oge-kumir-practicum-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 1.85rem;
  padding: 0.38rem 0.92rem;
  border: 1px solid var(--oge-kumir-chrome-btn-hover-border, #666);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 4px 14px rgba(0, 0, 0, 0.16);
  color: var(--oge-kumir-chrome-btn-text, #e8eaed);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.12s ease;
}

.oge-kumir-practicum-action-btn__icon {
  font-size: 0.68rem;
  opacity: 0.9;
}

.oge-kumir-practicum-action-btn--primary {
  border-color: color-mix(in srgb, var(--practicum-accent) 55%, var(--oge-kumir-chrome-btn-hover-border, #666));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--practicum-accent) 72%, #fff 28%) 0%,
    color-mix(in srgb, var(--practicum-accent-deep) 88%, #000 12%) 100%
  );
  color: #f8fbff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.oge-kumir-practicum-action-btn--primary:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--practicum-accent) 75%, #fff 25%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 6px 18px var(--practicum-accent-glow);
  transform: translateY(-1px);
}

.oge-kumir-practicum-action-btn--primary:active:not(:disabled),
.oge-kumir-practicum-action-btn--primary.oge-kumir-practicum-action-btn--revealed {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--practicum-accent-deep) 82%, #000 18%) 0%,
    color-mix(in srgb, var(--practicum-accent) 68%, #000 32%) 100%
  );
  box-shadow: var(--oge-kumir-chrome-btn-active-shadow, inset 0 1px 2px rgba(0, 0, 0, 0.35));
  transform: none;
}

.oge-kumir-practicum-action-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.oge-kumir-practicum-action-btn:focus-visible {
  outline: 2px solid var(--practicum-accent);
  outline-offset: 2px;
}

.oge-kumir-practicum-split-resizer:not([hidden]) {
  flex: 0 0 7px;
  height: 7px;
  min-height: 7px;
  cursor: row-resize;
  touch-action: none;
  background: color-mix(in srgb, var(--practicum-border) 35%, transparent);
  border: none;
  transition: background 0.14s ease;
}

.oge-kumir-practicum-split-resizer:not([hidden]):hover,
.oge-kumir-practicum-split-resizer:not([hidden]):focus-visible {
  background: color-mix(in srgb, var(--practicum-accent) 35%, var(--practicum-border));
}

.oge-kumir-trainer--practicum .oge-kumir-help-column,
.oge-kumir-trainer--practicum .oge-kumir-help-split-resizer {
  display: none !important;
}

.oge-kumir-trainer--practicum .oge-kumir-editor-scroll {
  flex: 1 1 auto;
}

.oge-kumir-trainer--practicum .oge-kumir-trainer__robot-panel .oge-kumir-trainer__panel-header {
  display: none;
}

/* ——— Практикум: тёмная тема ——— */

html[data-theme="dark"]:not([data-palette="pink"]) .oge-kumir-practicum-panel,
html:not([data-theme="light"]):not([data-palette="pink"]) .oge-kumir-practicum-panel {
  --practicum-accent: #4a90d9;
  --practicum-accent-deep: #2f6fb8;
  --practicum-accent-soft: rgba(74, 144, 217, 0.16);
  --practicum-accent-glow: rgba(74, 144, 217, 0.35);
  --practicum-surface: var(--oge-kumir-editor-panel-bg, #252a2e);
  --practicum-surface-raised: color-mix(in srgb, var(--practicum-surface) 88%, #fff 12%);
  --practicum-border: var(--oge-kumir-robot-panel-border, #3a4249);
  --practicum-text: var(--oge-kumir-chrome-menu-text, #e0e0e0);
  --practicum-muted: var(--oge-kumir-chrome-muted, #a8a8a8);
  --practicum-tree-bg: color-mix(in srgb, var(--practicum-surface) 92%, #000 8%);
  --practicum-section-head-bg: color-mix(in srgb, var(--practicum-surface) 80%, #fff 20%);
  --practicum-actions-bg: color-mix(in srgb, var(--practicum-surface) 88%, #000 12%);
  --practicum-scrollbar: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"]:not([data-palette="pink"]) .oge-kumir-practicum-panel:not([hidden]),
html:not([data-theme="light"]):not([data-palette="pink"]) .oge-kumir-practicum-panel:not([hidden]) {
  background: var(--oge-kumir-chrome-bg, linear-gradient(180deg, #3a3a3a 0%, #2e2e2e 100%));
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22),
    var(--oge-kumir-chrome-shadow-inset, inset 0 1px 0 rgba(255, 255, 255, 0.06));
}

html[data-theme="dark"]:not([data-palette="pink"]) .oge-kumir-practicum-panel__title,
html[data-theme="dark"]:not([data-palette="pink"]) .oge-kumir-practicum-task-title,
html:not([data-theme="light"]):not([data-palette="pink"]) .oge-kumir-practicum-panel__title,
html:not([data-theme="light"]):not([data-palette="pink"]) .oge-kumir-practicum-task-title {
  color: var(--oge-kumir-chrome-doc-title, #e8eaed);
}

html[data-theme="dark"]:not([data-palette="pink"]) .oge-kumir-practicum-panel__section--tree,
html:not([data-theme="light"]):not([data-palette="pink"]) .oge-kumir-practicum-panel__section--tree {
  background: var(--practicum-tree-bg);
}

html[data-theme="dark"]:not([data-palette="pink"]) .oge-kumir-practicum-panel__section-title,
html:not([data-theme="light"]):not([data-palette="pink"]) .oge-kumir-practicum-panel__section-title {
  background: var(--practicum-section-head-bg);
  color: var(--practicum-muted);
}

html[data-theme="dark"]:not([data-palette="pink"]) .oge-kumir-practicum-desc__actions,
html:not([data-theme="light"]):not([data-palette="pink"]) .oge-kumir-practicum-desc__actions {
  background: var(--practicum-actions-bg);
}

html[data-theme="dark"]:not([data-palette="pink"]) .oge-kumir-practicum-tree,
html:not([data-theme="light"]):not([data-palette="pink"]) .oge-kumir-practicum-tree {
  scrollbar-color: var(--practicum-scrollbar) transparent;
}

html[data-theme="dark"]:not([data-palette="pink"]) .oge-kumir-practicum-tree::-webkit-scrollbar-thumb,
html[data-theme="dark"]:not([data-palette="pink"]) .oge-kumir-practicum-desc-wrap::-webkit-scrollbar-thumb,
html:not([data-theme="light"]):not([data-palette="pink"]) .oge-kumir-practicum-tree::-webkit-scrollbar-thumb,
html:not([data-theme="light"]):not([data-palette="pink"]) .oge-kumir-practicum-desc-wrap::-webkit-scrollbar-thumb {
  background: var(--practicum-scrollbar);
}

html[data-theme="dark"]:not([data-palette="pink"]) .oge-kumir-practicum-action-btn,
html:not([data-theme="light"]):not([data-palette="pink"]) .oge-kumir-practicum-action-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  color: var(--oge-kumir-chrome-btn-text, #e8eaed);
  border-color: var(--oge-kumir-chrome-btn-hover-border, #666);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 4px 14px rgba(0, 0, 0, 0.16);
}

/* ——— Практикум: светлая тема ——— */

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-practicum-panel {
  --practicum-accent: #2563eb;
  --practicum-accent-deep: #1d4ed8;
  --practicum-accent-soft: rgba(37, 99, 235, 0.12);
  --practicum-accent-glow: rgba(37, 99, 235, 0.22);
  --practicum-surface: #f3f4f6;
  --practicum-surface-raised: #fafafa;
  --practicum-border: #d1d5db;
  --practicum-text: #1f2937;
  --practicum-muted: #6b7280;
  --practicum-tree-bg: #eceff3;
  --practicum-section-head-bg: #e5e7eb;
  --practicum-actions-bg: #eef0f3;
  --practicum-scrollbar: rgba(0, 0, 0, 0.14);
}

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-practicum-panel:not([hidden]) {
  background: var(--oge-kumir-chrome-bg, linear-gradient(180deg, #f5f5f5 0%, #ececec 100%));
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.08),
    var(--oge-kumir-chrome-shadow-inset, inset 0 1px 0 rgba(255, 255, 255, 0.65));
}

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-practicum-panel__title,
html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-practicum-task-title {
  color: #111827;
}

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-practicum-panel__section--tree {
  background: var(--practicum-tree-bg);
}

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-practicum-panel__section-title {
  background: var(--practicum-section-head-bg);
  color: #4b5563;
}

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-practicum-desc__actions {
  background: var(--practicum-actions-bg);
}

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-practicum-tree {
  scrollbar-color: var(--practicum-scrollbar) transparent;
}

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-practicum-tree::-webkit-scrollbar-thumb,
html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-practicum-desc-wrap::-webkit-scrollbar-thumb {
  background: var(--practicum-scrollbar);
}

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-practicum-action-btn {
  background: linear-gradient(180deg, #fff 0%, #f3f4f6 100%);
  color: #1f2937;
  border-color: #c4c4c4;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-practicum-action-btn--primary {
  color: #fff;
  border-color: #2563eb;
  background: linear-gradient(165deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 4px 14px rgba(37, 99, 235, 0.22);
}

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-practicum-action-btn--primary:hover:not(:disabled) {
  border-color: #1d4ed8;
  background: linear-gradient(165deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 6px 18px rgba(37, 99, 235, 0.28);
}

html[data-theme="light"]:not([data-palette="pink"])
  .oge-kumir-practicum-action-btn--primary:active:not(:disabled),
html[data-theme="light"]:not([data-palette="pink"])
  .oge-kumir-practicum-action-btn--primary.oge-kumir-practicum-action-btn--revealed {
  color: #fff;
  background: linear-gradient(165deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-practicum-action-btn--primary:disabled {
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(165deg, #93c5fd 0%, #60a5fa 100%);
  border-color: #93c5fd;
}

/* ——— Практикум: розовая тема (тёмная база) ——— */

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-panel {
  --practicum-accent: #f472b6;
  --practicum-accent-deep: #db2777;
  --practicum-accent-soft: rgba(244, 114, 182, 0.2);
  --practicum-accent-glow: rgba(244, 114, 182, 0.38);
  --practicum-surface: #261820;
  --practicum-surface-raised: #2f1c28;
  --practicum-border: rgba(244, 114, 182, 0.28);
  --practicum-text: #fff5f9;
  --practicum-muted: #f9a8d4;
  --practicum-tree-bg: #22141c;
  --practicum-section-head-bg: rgba(244, 114, 182, 0.1);
  --practicum-actions-bg: rgba(24, 10, 20, 0.55);
  --practicum-scrollbar: rgba(244, 114, 182, 0.28);
}

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-panel:not([hidden]) {
  background: linear-gradient(
    165deg,
    rgba(58, 24, 44, 0.98) 0%,
    rgba(42, 20, 36, 0.98) 50%,
    rgba(32, 16, 28, 0.98) 100%
  );
  border-bottom-color: rgba(244, 114, 182, 0.32);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 28px rgba(244, 114, 182, 0.12);
}

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-panel__header {
  background: rgba(36, 16, 28, 0.92);
  border-bottom-color: rgba(244, 114, 182, 0.22);
}

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-panel__title,
html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-task-title {
  color: #fff5f9;
}

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-panel__section--tree {
  background: var(--practicum-tree-bg);
}

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-panel__section-title {
  background: var(--practicum-section-head-bg);
  color: #fbcfe8;
}

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-panel__section-title-icon {
  color: #fce7f3;
  background: rgba(244, 114, 182, 0.24);
}

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-tree__section-title:hover,
html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-tree__section-title:focus-visible,
html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-tree__task:hover,
html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-tree__task:focus-visible {
  background: rgba(244, 114, 182, 0.14);
  border-color: rgba(244, 114, 182, 0.28);
}

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-desc__actions {
  background: var(--practicum-actions-bg);
}

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-action-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #fff5f9;
  border-color: rgba(244, 114, 182, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-action-btn--primary {
  border-color: rgba(244, 114, 182, 0.55);
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.82) 0%, rgba(232, 121, 249, 0.68) 100%);
  color: #fff5f9;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-action-btn--primary:hover:not(:disabled) {
  border-color: rgba(244, 114, 182, 0.75);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 6px 18px rgba(244, 114, 182, 0.32);
}

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-inner-split-resizer,
html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-split-resizer:not([hidden]) {
  background: rgba(244, 114, 182, 0.12);
}

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-inner-split-resizer:hover,
html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-inner-split-resizer:focus-visible,
html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-split-resizer:not([hidden]):hover,
html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-practicum-split-resizer:not([hidden]):focus-visible {
  background: rgba(244, 114, 182, 0.28);
}

/* ——— Практикум: розовая тема (светлая база) ——— */

html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-panel {
  --practicum-accent: #db2777;
  --practicum-accent-deep: #be185d;
  --practicum-accent-soft: rgba(219, 39, 119, 0.12);
  --practicum-accent-glow: rgba(219, 39, 119, 0.22);
  --practicum-surface: #fdf2f8;
  --practicum-surface-raised: #fff;
  --practicum-border: rgba(219, 39, 119, 0.18);
  --practicum-text: #701a45;
  --practicum-muted: #9d174d;
  --practicum-tree-bg: #fce7f3;
  --practicum-section-head-bg: #fbcfe8;
  --practicum-actions-bg: #fdf2f8;
  --practicum-scrollbar: rgba(157, 23, 77, 0.18);
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-panel:not([hidden]) {
  background: linear-gradient(165deg, #fff 0%, #fdf2f8 42%, #fce7f3 100%);
  border-bottom-color: rgba(219, 39, 119, 0.16);
  box-shadow:
    0 6px 18px rgba(157, 23, 77, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 24px rgba(244, 114, 182, 0.1);
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-panel__header {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(219, 39, 119, 0.14);
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-panel__title,
html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-task-title {
  color: #701a45;
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-panel__section--tree {
  background: var(--practicum-tree-bg);
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-panel__section-title {
  background: var(--practicum-section-head-bg);
  color: #9d174d;
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-panel__section-title-icon {
  color: #be185d;
  background: rgba(219, 39, 119, 0.12);
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-tree__section-title:hover,
html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-tree__section-title:focus-visible,
html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-tree__task:hover,
html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-tree__task:focus-visible {
  background: rgba(219, 39, 119, 0.08);
  border-color: rgba(219, 39, 119, 0.16);
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-desc__actions {
  background: var(--practicum-actions-bg);
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-action-btn {
  background: linear-gradient(180deg, #fff 0%, #fdf2f8 100%);
  color: #701a45;
  border-color: rgba(219, 39, 119, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-action-btn--primary {
  border-color: rgba(219, 39, 119, 0.35);
  background: linear-gradient(135deg, #db2777 0%, #e879f9 100%);
  color: #fff5f9;
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-action-btn--primary:hover:not(:disabled) {
  border-color: rgba(190, 24, 93, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 6px 18px rgba(219, 39, 119, 0.2);
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-inner-split-resizer,
html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-split-resizer:not([hidden]) {
  background: rgba(219, 39, 119, 0.1);
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-inner-split-resizer:hover,
html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-inner-split-resizer:focus-visible,
html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-split-resizer:not([hidden]):hover,
html[data-palette="pink"][data-theme="light"] .oge-kumir-practicum-split-resizer:not([hidden]):focus-visible {
  background: rgba(219, 39, 119, 0.22);
}

@media (max-width: 900px) {
  .oge-kumir-practicum-panel__body {
    flex-direction: column;
  }

  .oge-kumir-practicum-panel__section--tree {
    flex: 0 0 auto;
    max-height: 42vh;
    min-height: 120px;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--practicum-border);
  }

  .oge-kumir-practicum-panel__section--desc {
    flex: 1 1 auto;
    min-height: 100px;
  }

  .oge-kumir-practicum-inner-split-resizer {
    flex: 0 0 7px;
    width: 100%;
    min-width: 0;
    height: 7px;
    min-height: 7px;
    cursor: row-resize;
  }

  .oge-kumir-practicum-desc__actions {
    justify-content: stretch;
  }

  .oge-kumir-practicum-action-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .oge-kumir-practicum-panel__header {
    padding-inline: 0.4rem;
  }

  .oge-kumir-practicum-panel__title {
    font-size: 0.72rem;
  }

  .oge-kumir-practicum-panel__subtitle {
    font-size: 0.6rem;
  }

  .oge-kumir-practicum-tree,
  .oge-kumir-practicum-desc {
    font-size: 0.7rem;
  }

  .oge-kumir-practicum-panel__section--tree {
    max-height: 38vh;
  }
}
