/*
 * «Покажи как» в Calc (ege-3, 9, 18, 22, 26):
 * панель объяснения — вместо univer-libre-title-bar,
 * комментарии — вместо univer-libre-menu-bar.calc-menu-menubar.
 * Класс на контейнере ставит ege_calc_explain_header_slot.js.
 */

.libreoffice-sheet-calc-container.neuroege-calc-explain-in-header > .univer-libre-title-bar {
  display: none !important;
}

/* Меню прячем на всё время «Покажи как» — на его месте комментарии. */
.libreoffice-sheet-calc-container.neuroege-calc-explain-in-header > .univer-libre-menu-bar {
  display: none !important;
}

/* ——— Компактная панель в шапке окна Calc ——— */
.libreoffice-sheet-calc-container > .neuroege-calc-explain-slot-chrome {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0.15rem 0.4rem;
  min-height: 2rem;
  border-radius: 0;
  border-width: 0 0 1px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.libreoffice-sheet-calc-container > .neuroege-calc-explain-slot-chrome::-webkit-scrollbar {
  display: none;
}

.libreoffice-sheet-calc-container > .neuroege-calc-explain-slot-chrome [class*="-explain-chrome__group"] {
  flex-wrap: nowrap;
  gap: 0.2rem;
  padding: 0;
}

.libreoffice-sheet-calc-container > .neuroege-calc-explain-slot-chrome .oge-kumir-chrome__btn {
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.3rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
}

.libreoffice-sheet-calc-container > .neuroege-calc-explain-slot-chrome [class*="-explain-chrome__label"] {
  min-width: 5.25rem;
  padding: 0.08rem 0.4rem;
  font-size: 0.72rem;
}

.libreoffice-sheet-calc-container > .neuroege-calc-explain-slot-chrome [class*="-explain-chrome__speed-group"] {
  margin: 0;
  padding: 0.05rem 0.35rem;
  border-radius: 0.5rem;
}

.libreoffice-sheet-calc-container > .neuroege-calc-explain-slot-chrome [class*="-explain-chrome__speed-label"] {
  gap: 0.3rem;
}

.libreoffice-sheet-calc-container > .neuroege-calc-explain-slot-chrome [class*="-explain-chrome__speed-value"] {
  min-width: 2rem;
  font-size: 0.66rem;
}

.libreoffice-sheet-calc-container > .neuroege-calc-explain-slot-chrome [class*="-explain-chrome__speed-range"] {
  width: 4.25rem;
  height: 1rem;
}

/* ——— Компактные комментарии вместо menubar ——— */
.libreoffice-sheet-calc-container > .neuroege-calc-explain-slot-narration {
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  box-sizing: border-box;
}

.libreoffice-sheet-calc-container > .neuroege-calc-explain-slot-narration > [id$="-step-narration"] {
  min-height: 1.9rem;
  margin: 0;
  padding: 0.15rem 0.6rem;
  border-radius: 0;
  border-width: 0 0 1px;
  font-size: 0.84rem;
  line-height: 1.25;
}

/* ege-26: простая панель текста шага (без печатной машинки). */
.task26-step-narration {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 650;
  color: #115e59;
  background: color-mix(in srgb, #ccfbf1 55%, #ffffff 45%);
  border: 1px solid color-mix(in srgb, #14b8a6 30%, transparent);
  box-sizing: border-box;
}

html[data-theme="dark"] .task26-step-narration,
[data-theme="dark"] .task26-step-narration {
  color: #ecfdf5;
  background: color-mix(in srgb, #134e4a 55%, #0f172a 45%);
  border-color: color-mix(in srgb, #2dd4bf 28%, transparent);
}
