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

/* SEO-панель — overlay на блоке «Поле», открывается из меню «Инфо» */
body.neuroege-kumir-online-page .oge-kumir-trainer__robot-panel {
  position: relative;
}

body.neuroege-kumir-online-page .kumir-online-seo {
  --kumir-seo-border: #454545;
  --kumir-seo-surface: linear-gradient(180deg, #3a3a3a 0%, #2e2e2e 100%);
  --kumir-seo-surface-raised: #383838;
  --kumir-seo-text: #e8eaed;
  --kumir-seo-muted: #a8a8a8;
  --kumir-seo-accent: #14b8a6;
  --kumir-seo-accent-soft: rgba(20, 184, 166, 0.16);
  --kumir-seo-accent-border: rgba(94, 234, 212, 0.45);
  --kumir-seo-ege-accent: #60a5fa;
  --kumir-seo-ege-soft: rgba(96, 165, 250, 0.14);
  --kumir-seo-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

body.neuroege-kumir-online-page .kumir-online-seo--on-field {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 0.3rem;
  box-sizing: border-box;
  pointer-events: none;
}

body.neuroege-kumir-online-page .kumir-online-seo[hidden] {
  display: none;
}

html[data-theme="light"] body.neuroege-kumir-online-page .kumir-online-seo {
  --kumir-seo-border: #c8c8c8;
  --kumir-seo-surface: linear-gradient(180deg, #f8f8f8 0%, #ececec 100%);
  --kumir-seo-surface-raised: #ffffff;
  --kumir-seo-text: #1f2937;
  --kumir-seo-muted: #64748b;
  --kumir-seo-accent: #0d9488;
  --kumir-seo-accent-soft: rgba(13, 148, 136, 0.1);
  --kumir-seo-accent-border: rgba(13, 148, 136, 0.35);
  --kumir-seo-ege-accent: #2563eb;
  --kumir-seo-ege-soft: rgba(37, 99, 235, 0.08);
  --kumir-seo-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

body.neuroege-kumir-online-page .kumir-online-seo__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.38);
  cursor: pointer;
  pointer-events: auto;
  border-radius: 0.35rem;
}

html[data-theme="light"] body.neuroege-kumir-online-page .kumir-online-seo__backdrop {
  background: rgba(15, 23, 42, 0.22);
}

body.neuroege-kumir-online-page .kumir-online-seo__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--kumir-seo-accent-border);
  border-radius: 0.45rem;
  background: var(--kumir-seo-surface);
  box-shadow: var(--kumir-seo-shadow);
  color: var(--kumir-seo-text);
  pointer-events: auto;
  overflow: hidden;
}

body.neuroege-kumir-online-page .kumir-online-seo__panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.55rem 0.45rem;
  border-bottom: 1px solid var(--kumir-seo-border);
  flex-shrink: 0;
}

body.neuroege-kumir-online-page .kumir-online-seo__panel-heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

body.neuroege-kumir-online-page .kumir-online-seo__badge {
  flex-shrink: 0;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  box-shadow: 0 1px 3px rgba(20, 184, 166, 0.35);
}

body.neuroege-kumir-online-page .kumir-online-seo__close {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--kumir-seo-border);
  border-radius: 0.35rem;
  background: var(--kumir-seo-surface-raised);
  color: var(--kumir-seo-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

body.neuroege-kumir-online-page .kumir-online-seo__close:hover {
  color: var(--kumir-seo-text);
  border-color: var(--kumir-seo-accent-border);
  background: var(--kumir-seo-accent-soft);
}

body.neuroege-kumir-online-page .kumir-online-seo__body {
  padding: 0.45rem 0.55rem 0.55rem;
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--kumir-seo-border) transparent;
}

body.neuroege-kumir-online-page .kumir-online-seo__title {
  margin: 0;
  font-family: var(--font-heading, Georgia, serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

body.neuroege-kumir-online-page .kumir-online-seo__subtitle {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  color: var(--kumir-seo-muted);
}

body.neuroege-kumir-online-page .kumir-online-seo__content {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

body.neuroege-kumir-online-page .kumir-online-seo__section {
  padding: 0.4rem 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid var(--kumir-seo-border);
  background: var(--kumir-seo-surface-raised);
}

body.neuroege-kumir-online-page .kumir-online-seo__section-title {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--kumir-seo-text);
}

body.neuroege-kumir-online-page .kumir-online-seo__section-body {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--kumir-seo-muted);
}

body.neuroege-kumir-online-page .kumir-online-seo__nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

body.neuroege-kumir-online-page .kumir-online-seo__nav-block {
  padding: 0.4rem 0.45rem 0.45rem;
  border-radius: 0.4rem;
  border: 1px solid var(--kumir-seo-border);
  background: var(--kumir-seo-surface-raised);
}

body.neuroege-kumir-online-page .kumir-online-seo__nav-heading {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
}

body.neuroege-kumir-online-page .kumir-online-seo__nav-tag {
  flex-shrink: 0;
  padding: 0.1rem 0.32rem;
  border-radius: 0.2rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

body.neuroege-kumir-online-page .kumir-online-seo__nav-tag--oge {
  color: #5eead4;
  background: var(--kumir-seo-accent-soft);
  border: 1px solid var(--kumir-seo-accent-border);
}

body.neuroege-kumir-online-page .kumir-online-seo__nav-tag--ege {
  color: var(--kumir-seo-ege-accent);
  background: var(--kumir-seo-ege-soft);
  border: 1px solid rgba(96, 165, 250, 0.35);
}

html[data-theme="light"] body.neuroege-kumir-online-page .kumir-online-seo__nav-tag--oge {
  color: #0f766e;
}

body.neuroege-kumir-online-page .kumir-online-seo__mode-list {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.neuroege-kumir-online-page .kumir-online-seo__mode-link {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.32rem 0.45rem;
  border: 1px solid var(--kumir-seo-border);
  border-radius: 0.35rem;
  text-decoration: none;
  color: inherit;
  background: rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

html[data-theme="light"] body.neuroege-kumir-online-page .kumir-online-seo__mode-link {
  background: #f8fafc;
}

body.neuroege-kumir-online-page .kumir-online-seo__mode-link:hover {
  border-color: var(--kumir-seo-accent-border);
  background: var(--kumir-seo-accent-soft);
}

body.neuroege-kumir-online-page .kumir-online-seo__mode-link--active {
  border-color: var(--kumir-seo-accent-border);
  background: var(--kumir-seo-accent-soft);
}

body.neuroege-kumir-online-page .kumir-online-seo__mode-link--ege:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: var(--kumir-seo-ege-soft);
}

body.neuroege-kumir-online-page .kumir-online-seo__mode-label {
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--kumir-seo-text);
}

body.neuroege-kumir-online-page .kumir-online-seo__mode-hint {
  font-size: 0.64rem;
  color: var(--kumir-seo-muted);
}

body.neuroege-kumir-online-page .kumir-online-seo__footer {
  padding-top: 0.4rem;
  border-top: 1px solid var(--kumir-seo-border);
}

body.neuroege-kumir-online-page .kumir-online-seo__footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.neuroege-kumir-online-page .kumir-online-seo__footer-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--kumir-seo-text);
  border: 1px solid var(--kumir-seo-border);
  background: var(--kumir-seo-surface-raised);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

body.neuroege-kumir-online-page .kumir-online-seo__footer-links a:hover {
  color: var(--kumir-seo-accent);
  border-color: var(--kumir-seo-accent-border);
  background: var(--kumir-seo-accent-soft);
}

/* Пункт «Инфо» — только на /kumir-online/ */
.oge-kumir-chrome__menu-entry--online-info {
  display: none;
}

body.neuroege-kumir-online-page .oge-kumir-chrome__menu-entry--online-info {
  display: flex;
}

@media (max-width: 720px) {
  body.neuroege-kumir-online-page .kumir-online-seo--on-field {
    padding: 0.2rem;
  }

  body.neuroege-kumir-online-page .kumir-online-seo__nav-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body.neuroege-kumir-online-page .kumir-online-seo__title {
    font-size: 0.88rem;
  }
}

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;
  }
}

/* Обратная связь — модалка telemost-consultation на /kumir-online/ */
.neuroege-kumir-online-page .telemost-consultation__textarea {
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.45;
}

.neuroege-kumir-online-page .telemost-consultation__actions--split {
  display: flex;
  gap: 0.55rem;
}

.neuroege-kumir-online-page .telemost-consultation__actions--split .telemost-consultation__btn {
  flex: 1 1 0;
}

body.kumir-online-body #oge-task15-kumir-trainer {
  --oge-kumir-chrome-feedback-bg: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  --oge-kumir-chrome-feedback-bg-hover: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%);
  --oge-kumir-chrome-feedback-text: #fff;
  --oge-kumir-chrome-feedback-border: rgba(94, 234, 212, 0.72);
  --oge-kumir-chrome-feedback-shadow: rgba(20, 184, 166, 0.42);
}

html[data-palette="pink"]:not([data-theme="light"]) body.kumir-online-body #oge-task15-kumir-trainer {
  --oge-kumir-chrome-feedback-bg: linear-gradient(135deg, #db2777 0%, #e879f9 100%);
  --oge-kumir-chrome-feedback-bg-hover: linear-gradient(135deg, #be185d 0%, #d946ef 100%);
  --oge-kumir-chrome-feedback-border: rgba(244, 114, 182, 0.78);
  --oge-kumir-chrome-feedback-shadow: rgba(219, 39, 119, 0.42);
}

html[data-palette="pink"][data-theme="light"] body.kumir-online-body #oge-task15-kumir-trainer {
  --oge-kumir-chrome-feedback-bg: linear-gradient(135deg, #db2777 0%, #e879f9 100%);
  --oge-kumir-chrome-feedback-bg-hover: linear-gradient(135deg, #be185d 0%, #d946ef 100%);
  --oge-kumir-chrome-feedback-border: rgba(219, 39, 119, 0.45);
  --oge-kumir-chrome-feedback-shadow: rgba(219, 39, 119, 0.22);
}

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

html:has(body.kumir-online-body) {
  overflow: hidden;
  height: 100%;
}

.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__minimal-oge-ai-trainer-btn {
  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;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid rgba(96, 165, 250, 0.78);
  color: #eff6ff;
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.58) 0%, rgba(59, 130, 246, 0.38) 100%);
  box-shadow:
    0 4px 14px rgba(37, 99, 235, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  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__minimal-oge-ai-trainer-btn:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(147, 197, 253, 0.95);
  color: #ffffff;
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.72) 0%, rgba(59, 130, 246, 0.52) 100%);
}

.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;
}

[data-theme="light"] .kumir-online-body .header__minimal-oge-ai-trainer-btn {
  border-color: rgba(37, 99, 235, 0.45);
  color: #1e3a8a;
  background: linear-gradient(165deg, rgba(219, 234, 254, 0.95) 0%, rgba(191, 219, 254, 0.82) 100%);
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .kumir-online-body .header__minimal-oge-ai-trainer-btn:hover {
  color: #1e40af;
  border-color: rgba(37, 99, 235, 0.62);
  background: linear-gradient(165deg, rgba(191, 219, 254, 0.98) 0%, rgba(147, 197, 253, 0.88) 100%);
}

/* ——— Розовая палитра: шапка /kumir-online/ ——— */

@keyframes kumir-header-toggle-glow-pink-promo {
  0%,
  100% {
    box-shadow:
      0 0 10px rgba(236, 72, 153, 0.35),
      0 0 0 rgba(192, 132, 252, 0);
  }

  50% {
    box-shadow:
      0 0 24px rgba(244, 114, 182, 0.72),
      0 0 14px rgba(192, 132, 252, 0.45);
  }
}

html[data-palette="pink"]:not([data-theme="light"]) .kumir-online-body .header__minimal-brand {
  color: #fdf2f8;
}

html[data-palette="pink"]:not([data-theme="light"]) .kumir-online-body .header__minimal-neuronis {
  color: var(--accent-muted);
}

html[data-palette="pink"]:not([data-theme="light"]) .kumir-online-body .header__minimal-neuronis:hover {
  color: #fce7f3;
}

html[data-palette="pink"]:not([data-theme="light"]) .kumir-online-body .header__minimal-nav--promo .header__exam-toggle {
  border-color: var(--header-premium-border);
  background: linear-gradient(165deg, rgba(50, 32, 40, 0.92) 0%, rgba(38, 24, 32, 0.78) 100%);
  box-shadow:
    var(--header-premium-shadow),
    inset 0 1px 0 var(--header-premium-inset);
}

html[data-palette="pink"]:not([data-theme="light"])
  .kumir-online-body
  .header__minimal-nav--promo
  .header__exam-toggle-btn--ege:not(.header__exam-toggle-btn--active) {
  border-color: var(--accent-border);
  color: var(--accent-muted);
  background: linear-gradient(165deg, rgba(236, 72, 153, 0.28) 0%, rgba(244, 114, 182, 0.12) 100%);
  animation: none;
  box-shadow:
    0 0 0 1px var(--accent-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-palette="pink"]:not([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) {
  border-color: var(--accent-secondary-border);
  color: var(--accent-secondary-muted);
  background: linear-gradient(165deg, rgba(192, 132, 252, 0.24) 0%, rgba(232, 121, 249, 0.1) 100%);
  animation: none;
}

html[data-palette="pink"]:not([data-theme="light"])
  .kumir-online-body
  .header__minimal-nav--promo
  .header__exam-toggle-btn--oge-long:not(.header__exam-toggle-btn--active) {
  border-color: var(--accent-border-strong);
  color: #fdf2f8;
  background: var(--gradient-accent);
  animation: kumir-header-toggle-glow-pink-promo 1.35s ease-in-out infinite;
  filter: none;
}

html[data-palette="pink"]:not([data-theme="light"])
  .kumir-online-body
  .header__minimal-nav--promo
  .header__exam-toggle-btn--oge-long
  .header__exam-toggle-btn__alert {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.9);
}

html[data-palette="pink"]:not([data-theme="light"])
  .kumir-online-body
  .header__minimal-nav--promo
  .header__exam-toggle-btn--ege.header__exam-toggle-btn--active {
  border-color: var(--accent-border-strong);
  background: var(--gradient-accent);
  color: #fff;
  box-shadow:
    0 4px 20px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html[data-palette="pink"]:not([data-theme="light"])
  .kumir-online-body
  .header__minimal-nav--promo
  .header__exam-toggle-btn--oge.header__exam-toggle-btn--active {
  border-color: rgba(245, 208, 254, 0.92);
  background: var(--gradient-secondary);
  color: #fff;
  box-shadow:
    0 4px 20px var(--accent-secondary-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html[data-palette="pink"]:not([data-theme="light"]) .kumir-online-body .header__minimal-nav--promo .header__minimal-oge-ai-trainer-btn {
  border-color: var(--accent-secondary-border);
  color: #fdf4ff;
  background: var(--gradient-secondary);
  box-shadow:
    0 4px 14px var(--accent-secondary-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-palette="pink"]:not([data-theme="light"])
  .kumir-online-body
  .header__minimal-nav--promo
  .header__minimal-oge-ai-trainer-btn:hover {
  border-color: rgba(245, 208, 254, 0.95);
  color: #fff;
  background: linear-gradient(165deg, rgba(192, 132, 252, 0.72) 0%, rgba(232, 121, 249, 0.52) 100%);
}

html[data-palette="pink"]:not([data-theme="light"]) .kumir-online-body .header__minimal-trainer-btn--calc:not(.header__exam-toggle-btn--active) {
  border-color: rgba(244, 114, 182, 0.52);
  color: #fbcfe8;
  background: linear-gradient(165deg, rgba(236, 72, 153, 0.32) 0%, rgba(190, 24, 93, 0.16) 100%);
  animation: none;
}

html[data-palette="pink"]:not([data-theme="light"]) .kumir-online-body .header__minimal-trainer-btn--python:not(.header__exam-toggle-btn--active) {
  border-color: rgba(192, 132, 252, 0.62);
  color: #f5d0fe;
  background: linear-gradient(
    165deg,
    rgba(168, 85, 247, 0.34) 0%,
    rgba(126, 34, 206, 0.18) 55%,
    rgba(244, 114, 182, 0.12) 100%
  );
  animation: none;
}

html[data-palette="pink"]:not([data-theme="light"]) .kumir-online-body .header__minimal-trainer-btn--calc.header__exam-toggle-btn--active {
  border-color: var(--accent-border-strong);
  background: var(--gradient-accent);
  color: #fff;
  box-shadow:
    0 4px 20px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html[data-palette="pink"]:not([data-theme="light"]) .kumir-online-body .header__minimal-trainer-btn--python.header__exam-toggle-btn--active {
  border-color: rgba(245, 208, 254, 0.92);
  background: var(--gradient-secondary);
  color: #fff;
  box-shadow:
    0 4px 20px var(--accent-secondary-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html[data-palette="pink"][data-theme="light"] .kumir-online-body .header__minimal-brand {
  color: var(--accent-deep);
}

html[data-palette="pink"][data-theme="light"] .kumir-online-body .header__minimal-neuronis {
  color: var(--text-muted);
}

html[data-palette="pink"][data-theme="light"] .kumir-online-body .header__minimal-neuronis:hover {
  color: var(--accent-deep);
}

html[data-palette="pink"][data-theme="light"] .kumir-online-body .header__minimal-nav--promo .header__exam-toggle {
  background: var(--surface-glass);
  border-color: var(--accent-border);
  box-shadow:
    0 6px 18px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

html[data-palette="pink"][data-theme="light"]
  .kumir-online-body
  .header__minimal-nav--promo
  .header__exam-toggle-btn--ege:not(.header__exam-toggle-btn--active) {
  color: var(--accent-deep);
  border-color: var(--accent-border);
  background: var(--accent-soft);
  animation: none;
}

html[data-palette="pink"][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: var(--accent-secondary-muted);
  border-color: var(--accent-secondary-border);
  background: rgba(250, 232, 255, 0.55);
  animation: none;
}

html[data-palette="pink"][data-theme="light"]
  .kumir-online-body
  .header__minimal-nav--promo
  .header__exam-toggle-btn--oge-long:not(.header__exam-toggle-btn--active) {
  color: var(--accent-deep);
  border-color: var(--accent-border-strong);
  background: var(--gradient-accent-light);
  animation: none;
  filter: none;
}

html[data-palette="pink"][data-theme="light"]
  .kumir-online-body
  .header__minimal-nav--promo
  .header__exam-toggle-btn--oge-long
  .header__exam-toggle-btn__alert {
  color: #be123c;
  text-shadow: none;
  animation: none;
}

html[data-palette="pink"][data-theme="light"]
  .kumir-online-body
  .header__minimal-nav--promo
  .header__exam-toggle-btn--ege.header__exam-toggle-btn--active,
html[data-palette="pink"][data-theme="light"] .kumir-online-body .header__minimal-trainer-btn--calc.header__exam-toggle-btn--active {
  color: var(--accent-deep);
  border-color: var(--accent-border-strong);
  background: var(--gradient-accent-light);
  box-shadow:
    0 4px 16px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html[data-palette="pink"][data-theme="light"]
  .kumir-online-body
  .header__minimal-nav--promo
  .header__exam-toggle-btn--oge.header__exam-toggle-btn--active,
html[data-palette="pink"][data-theme="light"] .kumir-online-body .header__minimal-trainer-btn--python.header__exam-toggle-btn--active {
  color: var(--accent-secondary-muted);
  border-color: var(--accent-secondary-border);
  background: var(--gradient-secondary);
  box-shadow:
    0 4px 16px var(--accent-secondary-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html[data-palette="pink"][data-theme="light"] .kumir-online-body .header__minimal-trainer-btn--calc:not(.header__exam-toggle-btn--active) {
  color: var(--accent-deep);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

html[data-palette="pink"][data-theme="light"] .kumir-online-body .header__minimal-trainer-btn--python:not(.header__exam-toggle-btn--active) {
  color: var(--accent-secondary-muted);
  border-color: var(--accent-secondary-border);
  background: rgba(250, 232, 255, 0.55);
}

html[data-palette="pink"][data-theme="light"] .kumir-online-body .header__minimal-oge-ai-trainer-btn {
  color: var(--accent-secondary-muted);
  border-color: var(--accent-secondary-border);
  background: rgba(250, 232, 255, 0.82);
  box-shadow:
    0 4px 12px var(--accent-secondary-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html[data-palette="pink"][data-theme="light"] .kumir-online-body .header__minimal-oge-ai-trainer-btn:hover {
  color: #86198f;
  border-color: var(--accent-secondary-border);
  background: rgba(245, 208, 254, 0.92);
}

@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;
  }

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

@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;
  }

  html[data-palette="pink"]:not([data-theme="light"])
    .kumir-online-body
    .header__minimal-nav--promo
    .header__exam-toggle-btn--oge-long:not(.header__exam-toggle-btn--active) {
    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-header-actions {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
}

.kumir-header-actions--with-burger {
  border-radius: 8px;
  border: 1px solid rgba(5, 184, 125, 0.28);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

[data-theme="light"] .kumir-header-actions--with-burger {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(5, 184, 125, 0.22);
  box-shadow: 0 2px 10px rgba(26, 36, 48, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.kumir-header-actions--with-burger .hf-header-util-toggle {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.kumir-header-actions--with-burger .hf-header-util-toggle .theme-cycle-toggle {
  border-radius: 0;
  border-left: none;
}

.kumir-online-body .header--minimal .kumir-header-actions .theme-cycle-toggle {
  --theme-toggle-seg: 1.38rem;
  padding: 0.1rem;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.kumir-online-body .header--minimal .kumir-header-actions:not(.kumir-header-actions--with-burger) .theme-cycle-toggle {
  border-radius: 5px;
}

.kumir-online-body .header--minimal .kumir-header-actions--with-burger .theme-cycle-toggle {
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.kumir-header-actions--with-burger .hf-header-util-toggle {
  flex: 0 0 auto;
  overflow: hidden;
}

.kumir-online-body .header--minimal .kumir-header-actions .theme-cycle-toggle__option {
  min-height: 1.65rem;
  padding: 0.14rem 0.08rem 0.1rem;
}

.kumir-online-body .header--minimal .kumir-header-actions .theme-cycle-toggle__preview {
  width: 0.72rem;
  height: 0.72rem;
}

.kumir-online-body .header--minimal .kumir-header-actions .theme-cycle-toggle__preview-crown {
  width: 8px;
  height: 8px;
}

.kumir-online-body .header--minimal .kumir-header-actions .theme-cycle-toggle__slider {
  top: 0.1rem;
  left: 0.1rem;
  height: calc(100% - 0.2rem);
}

.kumir-online-body .header--minimal .kumir-header-actions--with-burger .kumir-header-burger--premium {
  width: 1.85rem;
  min-width: 1.85rem;
  height: auto;
  align-self: stretch;
  border-radius: 0;
}

.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;
  overflow: hidden;
  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;
  max-height: 100%;
  overflow: hidden;
}

body.kumir-online-body .oge-inline-trainer--task15 {
  max-height: 100%;
  overflow: hidden;
}

body.kumir-online-body #oge-kumir-workspace {
  min-height: 0;
  overflow: hidden;
}

body.kumir-online-body #oge-kumir-workspace > .oge-kumir-trainer__editor-panel,
body.kumir-online-body #oge-kumir-workspace > .oge-kumir-trainer__split-resizer,
body.kumir-online-body #oge-kumir-workspace > .oge-kumir-trainer__right-column {
  min-height: 0;
  min-width: 0;
}

body.kumir-online-body .oge-kumir-editor-wrap:not(.oge-kumir-editor-wrap--io-hidden) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.kumir-online-body .oge-kumir-editor-wrap:not(.oge-kumir-editor-wrap--io-hidden) .oge-kumir-editor-main {
  flex: 1 1 0;
  min-height: 4.5rem;
}

body.kumir-online-body .oge-kumir-editor-wrap:not(.oge-kumir-editor-wrap--io-hidden) .oge-kumir-console-split-resizer {
  flex: 0 0 6px;
}

body.kumir-online-body .oge-kumir-editor-wrap:not(.oge-kumir-editor-wrap--io-hidden) .oge-kumir-console {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-height: 3.5rem;
}

body.kumir-online-body .oge-kumir-trainer__robot-panel {
  min-height: 0;
  overflow: hidden;
}

body.kumir-online-body .oge-kumir-trainer__robot-viewport {
  min-height: 0;
  overflow: hidden;
}

body.kumir-online-body #oge-kumir-field-status-bar {
  flex: 0 0 auto;
  flex-shrink: 0;
}

/* 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,
  .kumir-online-body .header--minimal .kumir-header-actions .theme-cycle-toggle {
    --theme-toggle-seg: 1.48rem;
  }

  .kumir-online-body .header--minimal .kumir-header-actions .theme-cycle-toggle__option {
    min-height: 1.75rem;
  }

  .kumir-online-body .header--minimal .kumir-header-actions .theme-cycle-toggle__preview {
    width: 0.78rem;
    height: 0.78rem;
  }

  .kumir-online-body .header--minimal .kumir-header-actions--with-burger .kumir-header-burger--premium {
    width: 2rem;
    min-width: 2rem;
  }

  .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],
.oge-kumir-manuals-panel[hidden],
.oge-kumir-manuals-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;
}

.oge-kumir-trainer--tutorial .oge-kumir-trainer__robot-panel,
.oge-kumir-trainer--manuals .oge-kumir-trainer__robot-panel {
  display: none !important;
}

.oge-kumir-trainer--tutorial #oge-kumir-field-status-bar,
.oge-kumir-trainer--manuals #oge-kumir-field-status-bar {
  display: none !important;
}

.oge-kumir-trainer--tutorial .oge-kumir-manuals-split-resizer,
.oge-kumir-trainer--manuals .oge-kumir-manuals-split-resizer {
  display: none !important;
}

.oge-kumir-trainer--tutorial .oge-kumir-manuals-panel:not([hidden]),
.oge-kumir-trainer--manuals .oge-kumir-manuals-panel:not([hidden]) {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  max-height: none !important;
  border-bottom: none;
}

/* ——— Практикум: премиальный 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__section:not(.oge-kumir-practicum-tree__section--open)
  > .oge-kumir-practicum-tree__section-body,
.oge-kumir-practicum-tree__section-body[hidden] {
  display: none !important;
}

.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,
.oge-kumir-trainer--manuals .oge-kumir-help-column,
.oge-kumir-trainer--manuals .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;
}

.oge-kumir-trainer--tutorial .oge-kumir-trainer__right-column,
.oge-kumir-trainer--manuals .oge-kumir-trainer__right-column {
  min-height: 0;
}

.oge-kumir-manuals-panel {
  --practicum-accent: #58a6d4;
  --practicum-accent-deep: #3d84b8;
  --practicum-accent-soft: rgba(88, 166, 212, 0.16);
  --practicum-accent-glow: rgba(88, 166, 212, 0.35);
  --manuals-prose-max: 52rem;
  --manuals-code-bg: color-mix(in srgb, var(--practicum-surface, #252a2e) 78%, #000 22%);
  --manuals-code-border: color-mix(in srgb, var(--practicum-accent) 28%, var(--practicum-border, #3a4249));
  --manuals-inline-code-bg: color-mix(in srgb, var(--practicum-surface, #252a2e) 72%, #fff 28%);
  --manuals-aside-bg: color-mix(in srgb, var(--practicum-accent-soft) 55%, var(--practicum-surface, #252a2e));
  --manuals-table-stripe: color-mix(in srgb, var(--practicum-surface, #252a2e) 88%, #fff 12%);
  --manuals-heading-rule: linear-gradient(
    90deg,
    var(--practicum-accent) 0%,
    color-mix(in srgb, var(--practicum-accent) 35%, transparent) 72%,
    transparent 100%
  );
}

.oge-kumir-manuals-panel .oge-kumir-practicum-panel__section--desc {
  background: var(--practicum-surface-raised);
}

.oge-kumir-manuals-desc-wrap {
  padding: 0.65rem 0.85rem 0.55rem;
}

.oge-kumir-manuals-panel .oge-kumir-practicum-task-title {
  position: relative;
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.oge-kumir-manuals-panel .oge-kumir-practicum-task-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(100%, 9rem);
  height: 2px;
  border-radius: 999px;
  background: var(--manuals-heading-rule);
}

.oge-kumir-manuals-article {
  max-width: var(--manuals-prose-max);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 0.8rem;
  line-height: 1.62;
  color: var(--practicum-text, #e0e0e0);
}

.oge-kumir-manuals-article > :first-child {
  margin-top: 0;
}

.oge-kumir-manuals-article h2,
.oge-kumir-manuals-article h3,
.oge-kumir-manuals-article h4 {
  margin: 1.05rem 0 0.45rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.015em;
  color: var(--oge-kumir-chrome-doc-title, #e8eaed);
}

.oge-kumir-manuals-article h2 {
  font-size: 1.02rem;
}

.oge-kumir-manuals-article h3 {
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--oge-kumir-chrome-doc-title, #e8eaed) 88%, var(--practicum-accent) 12%);
}

.oge-kumir-manuals-article h4 {
  font-size: 0.84rem;
  font-weight: 650;
}

.oge-kumir-manuals-article p {
  margin: 0.45rem 0;
}

.oge-kumir-manuals-article ul,
.oge-kumir-manuals-article ol {
  margin: 0.45rem 0 0.55rem 1.25rem;
  padding: 0;
}

.oge-kumir-manuals-article li {
  margin: 0.18rem 0;
}

.oge-kumir-manuals-article li::marker {
  color: var(--practicum-accent);
}

.oge-kumir-manuals-article blockquote {
  margin: 0.55rem 0;
  padding: 0.45rem 0.65rem;
  border-left: 3px solid var(--practicum-accent);
  border-radius: 0 0.35rem 0.35rem 0;
  background: color-mix(in srgb, var(--practicum-accent-soft) 45%, transparent);
  color: var(--practicum-muted, #a8a8a8);
}

.oge-kumir-manuals-article code {
  font-family: "Consolas", "Courier New", Courier, monospace;
  font-size: 0.9em;
  background: var(--manuals-inline-code-bg);
  padding: 0.08rem 0.32rem;
  border-radius: 0.25rem;
  border: 1px solid color-mix(in srgb, var(--practicum-border, #3a4249) 65%, transparent);
}

.oge-kumir-manuals-pre {
  position: relative;
  margin: 0.65rem 0;
  padding: 0.62rem 0.72rem;
  overflow: auto;
  border-radius: 0.45rem;
  background: var(--manuals-code-bg);
  border: 1px solid var(--manuals-code-border);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent),
    0 6px 18px color-mix(in srgb, #000 14%, transparent);
}

.oge-kumir-manuals-pre::before {
  content: "Кумир";
  position: absolute;
  top: 0.38rem;
  right: 0.55rem;
  padding: 0.06rem 0.38rem;
  border-radius: 999px;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--practicum-accent);
  background: color-mix(in srgb, var(--practicum-accent-soft) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--practicum-accent) 35%, transparent);
  pointer-events: none;
  opacity: 0.92;
}

.oge-kumir-manuals-pre--python::before {
  content: "Python";
}

.oge-kumir-manuals-pre:not(.oge-kumir-manuals-pre--kumir):not(.oge-kumir-manuals-pre--python)::before {
  content: none;
}

.oge-kumir-manuals-pre code {
  display: block;
  background: transparent;
  padding: 0;
  border: none;
  font-family: "Consolas", "Courier New", Courier, monospace;
  font-size: 0.76rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--oge-kumir-highlight-text, #e8eaed);
}

.oge-kumir-manuals-pre--highlighted code {
  color: inherit;
}

.oge-kumir-manuals-pre--python {
  --manuals-code-border: color-mix(in srgb, #3b82f6 28%, var(--practicum-border, #3a4249));
}

.oge-kumir-manuals-pre--python code {
  color: color-mix(in srgb, var(--practicum-text, #e0e0e0) 92%, #93c5fd 8%);
}

.oge-kumir-manuals-panel .oge-kumir-manuals-pre--highlighted .oge-kumir-hl--keyword {
  color: var(--oge-kumir-hl-keyword);
  font-weight: 600;
}

.oge-kumir-manuals-panel .oge-kumir-manuals-pre--highlighted .oge-kumir-hl--type {
  color: var(--oge-kumir-hl-type, var(--oge-kumir-hl-keyword));
  font-weight: 600;
}

.oge-kumir-manuals-panel .oge-kumir-manuals-pre--highlighted .oge-kumir-hl--command {
  color: var(--oge-kumir-hl-command);
  font-weight: 600;
}

.oge-kumir-manuals-panel .oge-kumir-manuals-pre--highlighted .oge-kumir-hl--module {
  color: var(--oge-kumir-hl-module);
}

.oge-kumir-manuals-panel .oge-kumir-manuals-pre--highlighted .oge-kumir-hl--number,
.oge-kumir-manuals-panel .oge-kumir-manuals-pre--highlighted .oge-kumir-hl--param {
  color: var(--oge-kumir-hl-number);
}

.oge-kumir-manuals-panel .oge-kumir-manuals-pre--highlighted .oge-kumir-hl--cast {
  color: var(--oge-kumir-hl-cast);
  font-weight: 600;
}

.oge-kumir-manuals-panel .oge-kumir-manuals-pre--highlighted .oge-kumir-hl--string {
  color: var(--oge-kumir-hl-string);
}

.oge-kumir-manuals-panel .oge-kumir-manuals-pre--highlighted .oge-kumir-hl--indent-dot {
  color: var(--oge-kumir-hl-indent);
}

.oge-kumir-manuals-panel .oge-kumir-manuals-pre--highlighted .oge-kumir-hl--comment {
  color: var(--oge-kumir-hl-comment);
  font-style: italic;
}

.oge-kumir-manuals-figure {
  margin: 0.75rem 0;
  padding: 0.35rem;
  border-radius: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--practicum-border, #3a4249) 70%, transparent);
  background: color-mix(in srgb, var(--practicum-surface, #252a2e) 90%, #fff 10%);
}

.oge-kumir-manuals-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.3rem;
}

.oge-kumir-manuals-figure figcaption {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--practicum-muted, #a8a8a8);
  text-align: center;
}

.oge-kumir-manuals-gui {
  display: inline-block;
  padding: 0.08rem 0.42rem;
  border-radius: 0.28rem;
  border: 1px solid color-mix(in srgb, var(--practicum-border, #3a4249) 80%, var(--practicum-accent) 20%);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--practicum-surface, #252a2e) 75%, #fff 25%) 0%,
    color-mix(in srgb, var(--practicum-surface, #252a2e) 88%, #000 12%) 100%
  );
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 10%, transparent) inset,
    0 2px 6px color-mix(in srgb, #000 12%, transparent);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 0.88em;
  font-weight: 600;
}

.oge-kumir-manuals-lede {
  margin: 0.15rem 0 0.65rem;
  padding: 0.42rem 0.55rem;
  border-radius: 0.35rem;
  color: var(--practicum-muted, #a8a8a8);
  font-size: 0.84rem;
  font-style: italic;
  background: color-mix(in srgb, var(--practicum-accent-soft) 35%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--practicum-accent) 55%, transparent);
}

.oge-kumir-manuals-example {
  margin: 0.75rem 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--practicum-accent) 28%, var(--practicum-border, #3a4249));
  background: color-mix(in srgb, var(--practicum-accent-soft) 22%, var(--practicum-surface, #252a2e));
  box-shadow: 0 4px 14px color-mix(in srgb, #000 10%, transparent);
}

.oge-kumir-manuals-example-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--practicum-accent);
}

.oge-kumir-manuals-aside {
  margin: 0.65rem 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.4rem;
  border: 1px solid color-mix(in srgb, var(--practicum-border, #3a4249) 75%, transparent);
  background: var(--manuals-aside-bg);
  font-size: 0.78rem;
  line-height: 1.5;
}

.oge-kumir-manuals-aside--tip {
  border-color: color-mix(in srgb, #22c55e 35%, var(--practicum-border, #3a4249));
}

.oge-kumir-manuals-aside--warning {
  border-color: color-mix(in srgb, #f59e0b 40%, var(--practicum-border, #3a4249));
}

.oge-kumir-manuals-aside--note {
  border-color: color-mix(in srgb, var(--practicum-accent) 40%, var(--practicum-border, #3a4249));
}

.oge-kumir-manuals-table {
  width: 100%;
  margin: 0.65rem 0;
  border-collapse: collapse;
  font-size: 0.76rem;
  line-height: 1.45;
  border: 1px solid var(--practicum-border, #3a4249);
  border-radius: 0.35rem;
  overflow: hidden;
}

.oge-kumir-manuals-table td,
.oge-kumir-manuals-table th {
  padding: 0.35rem 0.45rem;
  border: 1px solid color-mix(in srgb, var(--practicum-border, #3a4249) 75%, transparent);
  vertical-align: top;
}

.oge-kumir-manuals-table tr:nth-child(even) td {
  background: var(--manuals-table-stripe);
}

.oge-kumir-manuals-table th {
  background: color-mix(in srgb, var(--practicum-accent-soft) 55%, var(--practicum-surface, #252a2e));
  color: var(--practicum-accent);
  font-weight: 700;
  text-align: left;
}

/* ——— Справочное руководство: тёмная тема ——— */

html[data-theme="dark"]:not([data-palette="pink"]) .oge-kumir-manuals-panel,
html:not([data-theme="light"]):not([data-palette="pink"]) .oge-kumir-manuals-panel {
  --practicum-accent: #58a6d4;
  --practicum-accent-deep: #3d84b8;
  --practicum-accent-soft: rgba(88, 166, 212, 0.16);
  --practicum-accent-glow: rgba(88, 166, 212, 0.35);
  --manuals-code-bg: color-mix(in srgb, var(--practicum-surface) 78%, #000 22%);
  --manuals-inline-code-bg: color-mix(in srgb, var(--practicum-surface) 72%, #fff 28%);
  --manuals-aside-bg: color-mix(in srgb, var(--practicum-accent-soft) 55%, var(--practicum-surface));
}

html[data-theme="dark"]:not([data-palette="pink"]) .oge-kumir-manuals-panel:not([hidden]),
html:not([data-theme="light"]):not([data-palette="pink"]) .oge-kumir-manuals-panel:not([hidden]) {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.24),
    var(--oge-kumir-chrome-shadow-inset, inset 0 1px 0 rgba(255, 255, 255, 0.06)),
    0 0 32px rgba(88, 166, 212, 0.08);
}

/* ——— Справочное руководство: светлая тема ——— */

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-manuals-panel {
  --practicum-accent: #0891b2;
  --practicum-accent-deep: #0e7490;
  --practicum-accent-soft: rgba(8, 145, 178, 0.12);
  --practicum-accent-glow: rgba(8, 145, 178, 0.22);
  --manuals-code-bg: #f0f9fb;
  --manuals-code-border: rgba(8, 145, 178, 0.22);
  --manuals-inline-code-bg: #eef6f8;
  --manuals-aside-bg: rgba(8, 145, 178, 0.08);
  --manuals-table-stripe: #f8fafc;
}

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-manuals-panel:not([hidden]) {
  box-shadow:
    0 6px 18px rgba(8, 145, 178, 0.08),
    var(--oge-kumir-chrome-shadow-inset, inset 0 1px 0 rgba(255, 255, 255, 0.65)),
    0 0 24px rgba(8, 145, 178, 0.06);
}

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-manuals-article h2,
html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-manuals-article h3,
html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-manuals-article h4 {
  color: #0f172a;
}

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-manuals-pre code {
  color: #1e293b;
}

html[data-theme="light"]:not([data-palette="pink"]) .oge-kumir-manuals-pre--python code {
  color: #1e293b;
}

/* ——— Справочное руководство: розовая тема (тёмная) ——— */

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-manuals-panel {
  --practicum-accent: #5eead4;
  --practicum-accent-deep: #2dd4bf;
  --practicum-accent-soft: rgba(94, 234, 212, 0.18);
  --practicum-accent-glow: rgba(94, 234, 212, 0.32);
  --manuals-code-bg: rgba(18, 12, 20, 0.72);
  --manuals-code-border: rgba(94, 234, 212, 0.24);
  --manuals-inline-code-bg: rgba(36, 20, 32, 0.85);
  --manuals-aside-bg: rgba(94, 234, 212, 0.08);
  --manuals-table-stripe: rgba(36, 20, 32, 0.55);
}

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-manuals-panel:not([hidden]) {
  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(94, 234, 212, 0.12);
}

html[data-palette="pink"]:not([data-theme="light"]) .oge-kumir-manuals-panel .oge-kumir-practicum-panel__header {
  background: rgba(36, 16, 28, 0.92);
  border-bottom-color: rgba(94, 234, 212, 0.18);
}

/* ——— Справочное руководство: розовая тема (светлая) ——— */

html[data-palette="pink"][data-theme="light"] .oge-kumir-manuals-panel {
  --practicum-accent: #0d9488;
  --practicum-accent-deep: #0f766e;
  --practicum-accent-soft: rgba(13, 148, 136, 0.12);
  --practicum-accent-glow: rgba(13, 148, 136, 0.2);
  --manuals-code-bg: #f0fdfa;
  --manuals-code-border: rgba(13, 148, 136, 0.2);
  --manuals-inline-code-bg: #ecfdf5;
  --manuals-aside-bg: rgba(13, 148, 136, 0.07);
  --manuals-table-stripe: #fdf2f8;
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-manuals-panel:not([hidden]) {
  box-shadow:
    0 6px 18px rgba(157, 23, 77, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 24px rgba(13, 148, 136, 0.1);
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-manuals-panel .oge-kumir-practicum-panel__header {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(13, 148, 136, 0.16);
}

html[data-palette="pink"][data-theme="light"] .oge-kumir-manuals-article h2,
html[data-palette="pink"][data-theme="light"] .oge-kumir-manuals-article h3,
html[data-palette="pink"][data-theme="light"] .oge-kumir-manuals-article h4 {
  color: #134e4a;
}

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

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;
  }
}
