#topPanelShell>.tools-bar{width:min(1180px,calc((100vw - 22px)/.9))!important;box-sizing:border-box;overflow:visible!important;flex-wrap:wrap!important}
#topPanelShell .top-left-group:empty{display:none!important}#topPanelShell .top-right-group{flex:1 1 auto!important;flex-wrap:wrap!important;justify-content:center;gap:6px!important}
.volna-menu-wrap{position:relative;display:inline-flex;align-items:center}.volna-menu-trigger{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;min-height:44px!important;font-size:15px!important}.volna-menu-trigger:after{content:'▾';font-size:11px}
.volna-menu-drop{display:none;position:absolute;top:calc(100% + 7px);left:0;width:310px;max-width:85vw;padding:12px;box-sizing:border-box;flex-direction:column;gap:8px;max-height:70vh;overflow:auto;background:var(--server-paper,#fffaf3);color:var(--server-ink,#4c2930);border:2px solid var(--server-edge,#d6c3b5);border-radius:16px;box-shadow:0 10px 24px #4c293029;z-index:200010}.volna-menu-wrap.open>.volna-menu-drop{display:flex}.volna-menu-wrap:nth-last-child(-n+2)>.volna-menu-drop{left:auto;right:0}
#topPanelShell .volna-menu-drop>:is(button,input,select){width:100%!important;max-width:100%!important;min-height:42px!important;height:auto!important;flex:none!important;margin:0!important;box-sizing:border-box!important;font-size:15px!important;text-align:left;justify-content:flex-start}#topPanelShell .volna-menu-drop #searchTopic{width:100%!important}.subject-icon{width:31px!important;height:31px!important;object-fit:contain;flex:none}.volna-menu-drop button{display:flex;align-items:center;gap:8px}#topic-search-status{font:13px/1.3 'Segoe UI',sans-serif;color:var(--server-ink);padding:3px}
#topPanelShell #readingSelector{display:block!important}
#topPanelShell .top-left-group{display:none!important}#topPanelShell:has(.volna-menu-wrap.open){z-index:200050!important}
#toolbarScaleShell>.left-toolbar{max-height:min(var(--toolbar-base-max-height),calc((100dvh - 200px)/var(--toolbar-scale)))!important}
html body #time-v1-workspace{inset:95px 18px 125px 195px}
@media(max-width:899px){html body #bottomPanelShell>.bottom-right-floating{height:80px!important;overflow-y:hidden!important}#servicePanelShell>#boardServicePanel{height:54px!important;display:flex!important;flex-flow:row nowrap!important;box-sizing:border-box;overflow-y:hidden!important}.board-dock-tools{min-height:62px!important}.course-panel{bottom:170px}html body #time-v1-workspace{inset:160px 10px 170px}}
.course-panel{position:fixed;inset:95px 18px 125px 195px;z-index:200020;display:flex;flex-direction:column;background:var(--server-paper,#fffaf3);color:var(--server-ink,#4c2930);border:2px solid var(--server-edge,#d6c3b5);border-radius:16px;box-shadow:0 12px 30px #4c293025;box-sizing:border-box}.course-panel[hidden]{display:none!important}.course-panel>header{display:flex;align-items:center;gap:9px;padding:10px 14px;cursor:grab;border-bottom:1px solid var(--server-edge,#d6c3b5)}.course-panel>header strong{flex:1}.course-panel button{font:14px 'Segoe UI',sans-serif;min-height:36px;border:1px solid var(--server-edge,#d6c3b5);border-radius:10px;padding:6px 12px;background:var(--server-soft,#f4e6d7);color:inherit;cursor:pointer}.course-panel iframe{width:100%;flex:1;min-height:0;border:0;border-radius:0 0 14px 14px}.course-panel .board-scale-corner{border:0;min-height:0;padding:0}
#time-v1-workspace{inset:95px 18px 125px 195px;overflow:visible;border-radius:16px}#time-v1-workspace>header{border-radius:14px 14px 0 0}#time-v1-workspace iframe{min-height:0;border-radius:0 0 14px 14px}#servicePanelShell #boardServicePanel{gap:7px!important}#servicePanelShell .board-text-button{font-size:15px!important;min-height:43px!important;padding:7px 12px!important}
@media(max-width:800px){.course-panel,#time-v1-workspace{left:10px;right:10px;top:160px;bottom:115px}.volna-menu-trigger{font-size:14px!important;padding:6px 10px!important}.volna-menu-drop{width:290px}.course-panel>header{flex-wrap:wrap}}

/* December 1 controls revision: paired tools and one lilac button surface. */
#toolbarScaleShell>.left-toolbar{width:182px!important;height:var(--controls-toolbar-height,80vh)!important;max-height:var(--controls-toolbar-height,80vh)!important;padding:9px 8px 25px!important}
#toolbarScaleShell .tool-group{grid-template-columns:repeat(3,50px)!important;gap:4px 5px!important}
#servicePanelShell .board-text-button[hidden]{display:none!important}.speaking-placeholder{margin:3px 4px;font:600 16px/1.5 'Segoe UI',sans-serif}
#volna-workspace[data-loading=true] #volna-status{font:600 19px/1.5 'Segoe UI',sans-serif;padding:22px;color:var(--server-ink,#49345e);background:#eee2f6;border:2px solid #c7afd9;border-radius:14px;margin:12px}
#volna-workspace[data-loading=true] #volna-frames{visibility:hidden}#volna-workspace[data-loading=true] #volna-pin{opacity:.5}

/* Возвращаем верхнюю панель в одну аккуратную строку */
#topPanelShell > .tools-bar,
#topPanelShell .top-left-group,
#topPanelShell .top-right-group,
#topPanelShell .rule-timeline-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 5px !important;
  width: max-content !important;
  max-width: none !important;
}

/* Возвращаем изумрудный фон и читаемый белый текст верхним и нижним кнопкам */
#topPanelShell .board-text-button,
#servicePanelShell .board-text-button {
  background-color: transparent !important;
  background-image: var(--button-art, var(--v2-button-emerald)) !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75) !important;
  padding: 5px 10px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  flex: none !important;
}

/* Рубиновый фон для кнопок Мои доски, Админка и Выход */
#auth-topbar.volna-auth-docked {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 5px !important;
  margin-left: 4px !important;
  flex: none !important;
}
#auth-topbar.volna-auth-docked button,
#auth-topbar.volna-auth-docked a {
  background-color: transparent !important;
  background-image: var(--v2-button-ruby) !important;
  background-size: 100% 100% !important;
  color: #ffffff !important;
}

/* fix4: белый читаемый текст на рубиновых кнопках и сдвиг плашки ученика */
html body #auth-topbar.volna-auth-docked button,
html body #auth-topbar.volna-auth-docked button *,
html body #auth-topbar.volna-auth-docked a,
html body #auth-topbar.volna-auth-docked a * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}
html body #auth-topbar.volna-auth-docked svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}
html body #topPanelShell .board-text-button {
  padding: 4px 8px !important;
  font-size: 12.5px !important;
}
html body #active-student-badge {
  top: 56px !important;
  z-index: 250 !important;
}

/* fix5: плашка ученика ниже панели + белый текст на тёмных нижних кнопках */
html body #active-student-badge {
  top: 66px !important;
  z-index: 350 !important;
}
html body #boardServicePanel > button:nth-last-of-type(-n+3),
html body #boardServicePanel > button:nth-last-of-type(-n+3) * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}

/* fix6: плашка ученика строго внутри верхней панели в одну строку */
html body #topPanelShell #active-student-badge {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 2px !important;
  flex: none !important;
  white-space: nowrap !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* fix7: изумрудная объёмная плашка для ученика */
html body #topPanelShell #active-student-badge {
  background-color: transparent !important;
  background-image: var(--v2-button-emerald) !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: none !important;
  box-shadow: none !important;
  height: 32px !important;
  padding: 0 14px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}
html body #topPanelShell #active-student-badge * {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}

/* fix8: убираем мелькание старых кнопок при загрузке + белый текст в выпадающих меню */
html:not(.volna-ui-ready) #topPanelShell {
  opacity: 0 !important;
  visibility: hidden !important;
}
html.volna-ui-ready #topPanelShell {
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.15s ease-out !important;
}

html body #topPanelShell .volna-menu-drop button,
html body #topPanelShell .volna-menu-drop button * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}

/* Оставляем тёмный текст только на светлых/кремовых/оранжевых кнопках */
html body #topPanelShell .volna-menu-drop button#btnTimeline,
html body #topPanelShell .volna-menu-drop button#btnTimeline *,
html body #topPanelShell .volna-menu-drop button[style*="ivory"],
html body #topPanelShell .volna-menu-drop button[style*="ivory"] *,
html body #topPanelShell .volna-menu-drop button[style*="cream"],
html body #topPanelShell .volna-menu-drop button[style*="cream"] *,
html body #topPanelShell .volna-menu-drop button[style*="amber"],
html body #topPanelShell .volna-menu-drop button[style*="amber"] *,
html body #topPanelShell .volna-menu-drop button[style*="gold"],
html body #topPanelShell .volna-menu-drop button[style*="gold"] *,
html body #topPanelShell .volna-menu-drop button[id*="dict" i],
html body #topPanelShell .volna-menu-drop button[id*="dict" i] *,
html body #topPanelShell .volna-menu-drop button[id*="dice" i],
html body #topPanelShell .volna-menu-drop button[id*="dice" i] * {
  color: #3b2314 !important;
  -webkit-text-fill-color: #3b2314 !important;
  text-shadow: none !important;
}

/* fix9: изумрудный Кубик + левая панель до низа экрана и нижняя сбоку */
html body #topPanelShell .volna-menu-drop button[id*="dice" i],
html body #topPanelShell .volna-menu-drop button[style*="amber"],
html body #topPanelShell .volna-menu-drop button[style*="gold"],
html body #topPanelShell .volna-menu-drop button[style*="orange"] {
  --button-art: var(--v2-button-emerald) !important;
  background-image: var(--v2-button-emerald) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}
html body #topPanelShell .volna-menu-drop button[id*="dice" i] *,
html body #topPanelShell .volna-menu-drop button[style*="amber"] *,
html body #topPanelShell .volna-menu-drop button[style*="gold"] *,
html body #topPanelShell .volna-menu-drop button[style*="orange"] * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}

html body #toolbarScaleShell > .left-toolbar {
  height: calc(100vh - 68px) !important;
  max-height: calc(100vh - 68px) !important;
}
html body #bottomPanelShell {
  left: 198px !important;
}

/* fix10: раздвигаем нижние панели в один ряд без наложения + белый текст на кнопке Доски */
html body #bottomPanelShell {
  left: 216px !important;
  right: auto !important;
}
html body #servicePanelShell {
  left: auto !important;
  right: 76px !important;
}
html body #boardServicePanel > button:nth-of-type(2),
html body #boardServicePanel > button:nth-of-type(2) * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}

/* fix11: центрирование двух нижних панелей с сохранением индивидуальных уголков */
html body #volna-bottom-dock {
  position: fixed !important;
  bottom: 10px !important;
  left: 206px !important;
  right: 96px !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 10px !important;
  pointer-events: none !important;
  z-index: 110 !important;
  transform-origin: center bottom !important;
}
html body #volna-bottom-dock > #bottomPanelShell,
html body #volna-bottom-dock > #servicePanelShell {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  flex: none !important;
  pointer-events: auto !important;
}

/* fix13: большое окно «Мои сохранённые доски» с широкой хромированной рамкой и скрытым скроллом */
html body #boards-modal #boards-box {
  width: 95vw !important;
  max-width: 1200px !important;
  min-height: 68vh !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 9px solid transparent !important;
  border-radius: 28px !important;
  background:
    linear-gradient(160deg, #fffdf8 0%, #f4ede0 100%) padding-box,
    linear-gradient(135deg, #ffffff 0%, #c8d0d8 14%, #5e6772 28%, #eef3f7 44%, #88929e 58%, #ffffff 72%, #68727d 86%, #dce2e8 100%) border-box !important;
  box-shadow:
    0 24px 60px rgba(8, 46, 27, 0.38),
    0 0 0 1.5px #4f5862,
    inset 0 0 0 1.5px rgba(95, 105, 115, 0.45),
    inset 0 2px 4px rgba(255, 255, 255, 0.95) !important;
  padding: 30px 36px !important;
}

html body #boards-modal #boards-box .boards-head {
  flex: none !important;
  margin-bottom: 22px !important;
}
html body #boards-modal #boards-box .boards-head h3 {
  color: #0c4a2b !important;
  font-size: 28px !important;
  font-weight: 800 !important;
}

/* Крупные объёмные кнопки 100% 100% */
html body #boards-modal #boards-box button::before,
html body #boards-modal #boards-box button::after {
  content: none !important;
  display: none !important;
}
html body #boards-modal #boards-box button {
  background-color: transparent !important;
  background-image: var(--v2-button-ivory) !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #3b2314 !important;
  -webkit-text-fill-color: #3b2314 !important;
  text-shadow: none !important;
  padding: 11px 26px !important;
  min-height: 48px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: transform 0.12s ease, filter 0.12s ease !important;
}
html body #boards-modal #boards-box button:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.06) !important;
}

/* Поле ввода */
html body #boards-modal #boards-box .boards-save-row {
  flex: none !important;
  gap: 14px !important;
  margin-bottom: 22px !important;
}
html body #boards-modal #boards-box .boards-save-row input {
  background: #ffffff !important;
  border: 1.5px solid #cbbba0 !important;
  border-radius: 14px !important;
  padding: 13px 20px !important;
  font-size: 16.5px !important;
  color: #2f2419 !important;
}
html body #boards-modal #boards-box .boards-save-row input:focus {
  outline: none !important;
  border-color: #0f6b3e !important;
  box-shadow: 0 0 0 3px rgba(15, 107, 62, 0.15) !important;
}

/* Изумрудные кнопки: Сохранить, Открыть, активный фильтр */
html body #boards-modal #boards-box .boards-save-row button,
html body #boards-modal #boards-box .board-item-btns button.open-btn,
html body #boards-modal #boards-box button.active,
html body #boards-modal #boards-box button[aria-pressed="true"] {
  background-image: var(--v2-button-emerald) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}

/* Фиолетовая кнопка: Копировать ученику */
html body #boards-modal #boards-box .board-item-btns button[data-copy-student] {
  background-image: var(--v2-button-plum) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}

/* Рубиновые кнопки: Удалить и крестик закрытия */
html body #boards-modal #boards-box .board-item-btns button.del-btn,
html body #boards-modal #boards-box button#boards-close-btn {
  background-image: var(--v2-button-ruby) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}
html body #boards-modal #boards-box button#boards-close-btn {
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  font-size: 24px !important;
}

/* Прокрутка только у списка карточек — появляется лишь при необходимости */
html body #boards-modal #boards-box .boards-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  gap: 14px !important;
  padding-right: 6px !important;
}
html body #boards-modal #boards-box .boards-list::-webkit-scrollbar {
  width: 7px !important;
}
html body #boards-modal #boards-box .boards-list::-webkit-scrollbar-track {
  background: transparent !important;
}
html body #boards-modal #boards-box .boards-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #16854e, #0b522f) !important;
  border-radius: 999px !important;
}

/* Карточки сохранённых досок */
html body #boards-modal #boards-box .board-item {
  background: #ffffff !important;
  border: 1.5px solid #dfd3bd !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  box-shadow: 0 4px 12px rgba(12, 74, 43, 0.07) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}
html body #boards-modal #boards-box .board-item:hover {
  border-color: #16854e !important;
}
html body #boards-modal #boards-box .board-title-overwrite {
  color: #0c4a2b !important;
  font-size: 19px !important;
}
html body #boards-modal #boards-box .board-item-info small {
  font-size: 14px !important;
}
html body #boards-modal #boards-box .board-item-btns {
  gap: 10px !important;
}

/* fix20: чистый CSS только для кнопок слайдов и самой кнопки «Обвести кнопки» (без обёрток и ведра) */
html body #bottomPanelShell .slide-btn::before,
html body #bottomPanelShell .slide-btn::after,
html body #bottomPanelShell #btnAddSlide::before,
html body #bottomPanelShell #btnAddSlide::after,
html body #bottomPanelShell #btnDeleteSlide::before,
html body #bottomPanelShell #btnDeleteSlide::after {
  content: none !important;
  display: none !important;
}

html body #bottomPanelShell .slide-btn,
html body #bottomPanelShell #btnAddSlide,
html body #bottomPanelShell #btnDeleteSlide,
html body #bottomPanelShell button[title*="Обвести" i],
html body #bottomPanelShell button#rtcHlToggle {
  background-color: transparent !important;
  background-image: var(--v2-button-ivory) !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 36px !important;
  padding: 6px 15px !important;
  font-weight: 700 !important;
  color: #3b2314 !important;
  -webkit-text-fill-color: #3b2314 !important;
  text-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: transform 0.12s ease, filter 0.12s ease !important;
}

html body #bottomPanelShell .slide-btn:hover,
html body #bottomPanelShell #btnAddSlide:hover,
html body #bottomPanelShell #btnDeleteSlide:hover,
html body #bottomPanelShell button[title*="Обвести" i]:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.06) !important;
}

/* Активный слайд — рубиновая плашка */
html body #bottomPanelShell .slide-btn.active {
  background-image: var(--v2-button-ruby) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}

/* + Слайд — изумрудная плашка */
html body #bottomPanelShell #btnAddSlide {
  background-image: var(--v2-button-emerald) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}

/* Удалить слайд (крестик) — рубиновая плашка */
html body #bottomPanelShell #btnDeleteSlide {
  background-image: var(--v2-button-ruby) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
  width: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  font-size: 16px !important;
}

/* fix23: убираем мелькание окна логина при обновлении страницы */
@keyframes twAuthDelayShow {
  0% { opacity: 0; pointer-events: none; }
  100% { opacity: 1; pointer-events: auto; }
}
#auth-overlay {
  opacity: 0;
  pointer-events: none;
  animation: twAuthDelayShow 0.25s ease-out 1.6s forwards !important;
}

/* fix25: убираем зелёный фон и обводку за кнопкой замочка */
.draggable .lock-btn,
.draggable:not([data-is-locked="true"]) .lock-btn,
.draggable[data-is-locked="true"] .lock-btn,
.tw-sd-action-bar .tw-sd-act-btn {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* fix27: GPU layer for smooth drag over 8000x6000 canvas */
.draggable {
  will-change: transform;
  contain: layout style;
}
body.dragging-active .draggable {
  transition: none !important;
}
