/* Шпаргалка курсу (REQ-2026-11-22-1): кнопка в уроці й панель над уроком; js/cheatsheet-panel.js. */
.cheatsheet-link { margin: 12px 0; }
.cheatsheet-link__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--accent); border-radius: 8px; color: var(--accent); background: transparent;
  font-weight: 600; text-decoration: none;
}
.cheatsheet-link__btn:hover { background: var(--accent-soft); }
.cheatsheet-link__note { font-weight: 400; color: var(--muted); }

.cheatsheet-panel {
  width: min(960px, calc(100vw - 32px)); height: calc(100dvh - 32px); max-width: none; max-height: none;
  margin: auto; padding: 0; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text); box-shadow: 0 12px 40px rgba(0,0,0,.3); overflow: hidden;
}
.cheatsheet-panel[open] { display: flex; flex-direction: column; }
.cheatsheet-panel::backdrop { background: rgba(0,0,0,.45); }
.cheatsheet-panel__bar {
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
  padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--border);
}
.cheatsheet-panel__title { margin: 0; font-size: 17px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cheatsheet-panel__open { font-size: 14px; white-space: nowrap; }
/* «Закрити» — як у панелі довідника: великий бурштиновий хрестик 44 × 44. */
.cheatsheet-panel__close {
  width: 44px; height: 44px; flex: 0 0 auto; padding: 0; border: 1px solid var(--accent); border-radius: 7px;
  background: var(--surface2); color: var(--accent); font-size: 28px; line-height: 1; font-weight: 700; cursor: pointer;
}
.cheatsheet-panel__close:hover { background: var(--accent-soft); }
.cheatsheet-panel__frame { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: var(--surface); }
body.cheatsheet-open { overflow: hidden; }
@media (max-width: 600px) {
  .cheatsheet-panel { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
}

/* «Сповістити, коли вийде» (REQ-2026-11-22-3): кнопка списку очікування; js/course-notify.js. */
.course-notify { margin: 16px 0; }
.course-notify form { margin: 0; }
.course-notify__btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 8px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--surface); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.course-notify__btn[aria-pressed="true"] { background: transparent; color: var(--accent); }
.course-notify__btn:disabled { opacity: .6; cursor: default; }
.course-notify__btn--go { background: transparent; color: var(--accent); }
.course-notify__note { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
