/* ZemGuru modular styles 15/16. Original cascade order preserved. */
/* Lesson reader contrast fix — 2026-06-30
   Уроки у ученика читаются как светлая статья даже при включённой тёмной теме.
   Исправляет тёмный блок с почти невидимым текстом, геро-блок и материалы. */
.student-lesson-page {
  --lesson-paper: #ffffff;
  --lesson-paper-soft: #f8fbf9;
  --lesson-paper-line: #dfe9e2;
  --lesson-ink: #111814;
  --lesson-text: #253029;
  --lesson-muted: #5f6b64;
}

.student-lesson-hero,
body[data-theme="dark"] .student-lesson-hero {
  background:
    radial-gradient(circle at 92% 14%, rgba(47, 111, 78, 0.14), transparent 34%),
    linear-gradient(135deg, #f8fbf7 0%, #ffffff 52%, #eef7f1 100%) !important;
  border-color: var(--lesson-paper-line) !important;
  color: var(--lesson-text) !important;
}

.student-lesson-hero h1,
body[data-theme="dark"] .student-lesson-hero h1 {
  color: var(--lesson-ink) !important;
  opacity: 1 !important;
}

.student-lesson-hero p,
body[data-theme="dark"] .student-lesson-hero p {
  color: var(--lesson-muted) !important;
  opacity: 1 !important;
}

.student-lesson-progress-card,
body[data-theme="dark"] .student-lesson-progress-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(47, 111, 78, 0.16) !important;
  color: var(--lesson-text) !important;
}

.student-lesson-progress-card strong,
body[data-theme="dark"] .student-lesson-progress-card strong {
  color: var(--lesson-ink) !important;
}

.student-lesson-progress-card span,
.student-lesson-progress-card small,
body[data-theme="dark"] .student-lesson-progress-card span,
body[data-theme="dark"] .student-lesson-progress-card small {
  color: var(--lesson-muted) !important;
}

.student-lesson-article.panel,
body[data-theme="dark"] .student-lesson-article.panel {
  background: var(--lesson-paper) !important;
  border: 1px solid var(--lesson-paper-line) !important;
  color: var(--lesson-text) !important;
  box-shadow: 0 16px 40px rgba(16, 40, 28, 0.08) !important;
}

.student-lesson-article :where(h1, h2, h3, h4, .lesson-block-heading, strong, b),
body[data-theme="dark"] .student-lesson-article :where(h1, h2, h3, h4, .lesson-block-heading, strong, b) {
  color: var(--lesson-ink) !important;
  opacity: 1 !important;
}

.student-lesson-article :where(p, li, span, div, em),
.student-lesson-article .lesson-formatted-content :where(p, li, span, div, em),
.student-lesson-article .lesson-content-text p,
.student-lesson-article .lesson-content-body p,
body[data-theme="dark"] .student-lesson-article :where(p, li, span, div, em),
body[data-theme="dark"] .student-lesson-article .lesson-formatted-content :where(p, li, span, div, em),
body[data-theme="dark"] .student-lesson-article .lesson-content-text p,
body[data-theme="dark"] .student-lesson-article .lesson-content-body p {
  color: var(--lesson-text) !important;
  opacity: 1 !important;
}

.student-lesson-article .muted,
body[data-theme="dark"] .student-lesson-article .muted {
  color: var(--lesson-muted) !important;
}

.student-lesson-article .lesson-article-image,
body[data-theme="dark"] .student-lesson-article .lesson-article-image {
  background: #ffffff !important;
  border-radius: 20px;
}

.student-lesson-article .lesson-article-image img,
body[data-theme="dark"] .student-lesson-article .lesson-article-image img {
  display: block;
  background: #ffffff !important;
}

.student-lesson-empty-video,
body[data-theme="dark"] .student-lesson-empty-video,
.student-lesson-empty-content,
body[data-theme="dark"] .student-lesson-empty-content {
  background: var(--lesson-paper-soft) !important;
  border-color: var(--lesson-paper-line) !important;
  color: var(--lesson-text) !important;
}

.student-lesson-empty-video span,
body[data-theme="dark"] .student-lesson-empty-video span {
  color: #9b5d1a !important;
}

.student-lesson-empty-video p,
.student-lesson-empty-content p,
body[data-theme="dark"] .student-lesson-empty-video p,
body[data-theme="dark"] .student-lesson-empty-content p {
  color: var(--lesson-muted) !important;
}

.lesson-view-materials.panel,
body[data-theme="dark"] .lesson-view-materials.panel {
  background: var(--lesson-paper) !important;
  border: 1px solid var(--lesson-paper-line) !important;
  color: var(--lesson-text) !important;
}

.lesson-view-materials h2,
.lesson-view-materials strong,
body[data-theme="dark"] .lesson-view-materials h2,
body[data-theme="dark"] .lesson-view-materials strong {
  color: var(--lesson-ink) !important;
}

.lesson-view-materials .compact-row,
body[data-theme="dark"] .lesson-view-materials .compact-row {
  background: #fbfdfb !important;
  border: 1px solid #edf3ef !important;
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--lesson-text) !important;
}

.lesson-view-materials .compact-row span,
body[data-theme="dark"] .lesson-view-materials .compact-row span {
  color: var(--lesson-muted) !important;
}

.student-lesson-homework-card,
body[data-theme="dark"] .student-lesson-homework-card {
  background: linear-gradient(135deg, #fff8e8, #ffffff) !important;
  color: var(--lesson-text) !important;
  border: 1px solid #f0e2c4 !important;
}

.student-lesson-homework-card h2,
.student-lesson-homework-card strong,
body[data-theme="dark"] .student-lesson-homework-card h2,
body[data-theme="dark"] .student-lesson-homework-card strong {
  color: var(--lesson-ink) !important;
}

.student-lesson-homework-card p,
body[data-theme="dark"] .student-lesson-homework-card p {
  color: var(--lesson-muted) !important;
}

.student-lesson-bottom-nav .btn.secondary[disabled],
body[data-theme="dark"] .student-lesson-bottom-nav .btn.secondary[disabled] {
  opacity: .75;
}

@media (max-width: 860px) {
  .student-lesson-article.panel,
  body[data-theme="dark"] .student-lesson-article.panel {
    padding: 18px !important;
    border-radius: 20px;
  }
}

/* === ZG TOPBAR PROFILE FIX START === */
/* ZG TOPBAR PROFILE FIX v1
   Fixes profile chip wrapping under the header on desktop when page title/search/icons are present.
*/
@media (min-width: 1101px) {
  body .topbar,
  body .topbar.has-page-title {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    padding: 0 24px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  body .topbar .hamburger {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    justify-self: auto !important;
  }

  body .topbar-page-title {
    flex: 1 1 auto !important;
    min-width: 220px !important;
    max-width: 520px !important;
    padding-left: 0 !important;
    overflow: hidden !important;
  }

  body .topbar-page-title strong,
  body .topbar-page-title small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body .topbar .top-search {
    flex: 1 1 420px !important;
    min-width: 260px !important;
    max-width: 520px !important;
  }

  body .topbar .theme-toggle,
  body .topbar .top-icon,
  body .topbar .profile-chip {
    flex: 0 0 auto !important;
  }

  body .topbar .profile-chip {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    align-self: center !important;
    margin: 0 !important;
    z-index: 3 !important;
  }

  body .topbar .profile-chip span:first-child {
    max-width: 120px !important;
  }
}

@media (min-width: 1101px) and (max-width: 1380px) {
  body .topbar .top-search {
    flex-basis: 300px !important;
    max-width: 360px !important;
  }
  body .topbar-page-title {
    max-width: 430px !important;
  }
}

@media (min-width: 1101px) and (max-width: 1240px) {
  body .topbar .top-search {
    display: none !important;
  }
  body .topbar-page-title {
    max-width: none !important;
  }
}
/* === ZG TOPBAR PROFILE FIX END === */

/* === ZEMGURU CALL REMINDERS SERVER V3 START === */
.zg-call-server-toast {
  position: fixed;
  z-index: 999999;
  right: 22px;
  top: 82px;
  width: min(390px, calc(100vw - 28px));
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 126, 64, .98), rgba(20, 83, 45, .98));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.zg-call-server-toast.is-visible { opacity: 1; transform: translateY(0); }
.zg-call-server-toast strong { display:block; margin-bottom:6px; font-size:16px; line-height:1.2; }
.zg-call-server-toast span { display:block; color:rgba(255,255,255,.86); font-size:14px; line-height:1.35; }
@media (max-width: 768px) {
  .zg-call-server-toast { right: 14px; left: 14px; top: 72px; width: auto; }
}
/* === ZEMGURU CALL REMINDERS SERVER V3 END === */

/* =========================================================
   ZG Messenger message layout fix 2026-07-01
   Время сообщений внизу пузыря, шапка сообщения не растягивает карточку.
   ========================================================= */
.community-chat-feed .community-chat-message {
  align-items: flex-end !important;
}

.community-chat-feed .community-chat-bubble-tg {
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 10px 12px 8px !important;
}

.community-chat-feed .community-chat-content,
.community-chat-feed .community-chat-body,
.community-chat-feed .community-chat-body-row {
  max-width: 100% !important;
  min-width: 0 !important;
}

.community-chat-feed .community-chat-author-line {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-bottom: 7px !important;
}

.community-chat-feed .community-chat-author-line .community-chat-author {
  min-width: 0 !important;
  max-width: min(260px, 52vw) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

.community-chat-feed .community-chat-role,
.community-chat-feed .community-message-important-badge {
  flex: 0 0 auto !important;
}

.community-chat-feed .community-chat-author-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin-left: auto !important;
  flex: 0 0 auto !important;
}

.community-chat-feed .community-chat-author-actions .community-message-menu-wrap {
  margin-left: 0 !important;
}

.community-chat-feed .community-chat-author-line .community-chat-tail {
  margin-left: 0 !important;
}

.community-chat-feed .community-chat-body-row {
  display: block !important;
  width: auto !important;
  line-height: 1.45 !important;
}

.community-chat-feed .community-chat-body-row::after {
  content: "";
  display: block;
  clear: both;
}

.community-chat-feed .community-chat-body-row > .community-chat-text {
  display: inline !important;
  vertical-align: baseline !important;
}

.community-chat-feed .community-chat-body-row > .community-chat-tail {
  float: right !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 6px 0 0 12px !important;
  padding: 0 !important;
  white-space: nowrap !important;
  vertical-align: baseline !important;
}

.community-chat-feed .community-chat-tail .community-message-menu-wrap {
  margin-left: 3px !important;
}

.community-chat-feed .community-chat-time {
  font-size: 11px !important;
  line-height: 1 !important;
  color: rgba(15, 23, 42, 0.46) !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

.community-chat-feed .community-chat-message.is-mine .community-chat-time {
  color: rgba(15, 23, 42, 0.54) !important;
}

.community-chat-feed .community-chat-message.is-other .community-chat-bubble-tg {
  width: fit-content !important;
}

.community-chat-feed .community-chat-message.is-mine .community-chat-bubble-tg {
  width: fit-content !important;
}

body[data-theme="dark"] .community-chat-feed .community-chat-time {
  color: rgba(255, 255, 255, 0.58) !important;
}

body[data-theme="dark"] .community-chat-feed .community-chat-message.is-other .community-chat-time {
  color: rgba(17, 24, 39, 0.46) !important;
}

@media (max-width: 720px) {
  .community-chat-feed .community-chat-message {
    max-width: min(92%, 640px) !important;
  }

  .community-chat-feed .community-chat-author-line .community-chat-author {
    max-width: 46vw !important;
  }

  .community-chat-feed .community-chat-bubble-tg {
    padding: 9px 10px 7px !important;
  }
}

/* ZEMGURU CALL SIDEBAR FIX START */
.right-rail .rail-row.call-reminder {
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 10px 0;
  padding: 12px 12px 11px;
  border: 1px solid rgba(22, 35, 28, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,248,0.98) 100%);
  box-shadow: 0 8px 22px rgba(17, 31, 23, 0.04);
}

.right-rail .rail-row.call-reminder .rail-icon {
  align-self: start;
  margin-top: 2px;
}

.right-rail .rail-row.call-reminder > div {
  min-width: 0;
}

.right-rail .rail-row.call-reminder strong {
  margin: 0 0 4px;
  line-height: 1.25;
}

.right-rail .rail-row.call-reminder small {
  display: block;
  line-height: 1.35;
}

.right-rail .rail-row.call-reminder .call-reminder-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
}

.right-rail .rail-row.call-reminder.call-reminder--planned {
  border-color: rgba(45, 135, 64, 0.16);
  box-shadow: 0 8px 20px rgba(45, 135, 64, 0.06);
  background: linear-gradient(180deg, rgba(247, 252, 248, 0.98) 0%, rgba(242, 249, 244, 0.98) 100%);
}
.right-rail .rail-row.call-reminder.call-reminder--planned .call-reminder-status,
.right-rail .rail-row.call-reminder.call-reminder--soon .call-reminder-status {
  color: #23723d;
  background: rgba(45, 135, 64, 0.10);
  border-color: rgba(45, 135, 64, 0.14);
}

.right-rail .rail-row.call-reminder.call-reminder--live {
  border-color: rgba(214, 170, 39, 0.18);
  box-shadow: 0 8px 20px rgba(214, 170, 39, 0.07);
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.98) 0%, rgba(255, 249, 232, 0.98) 100%);
}
.right-rail .rail-row.call-reminder.call-reminder--live .call-reminder-status {
  color: #8a6810;
  background: rgba(214, 170, 39, 0.14);
  border-color: rgba(214, 170, 39, 0.16);
}

.right-rail .rail-row.call-reminder.call-reminder--cancelled {
  border-color: rgba(196, 67, 67, 0.14);
  box-shadow: 0 8px 20px rgba(196, 67, 67, 0.05);
  background: linear-gradient(180deg, rgba(255, 249, 249, 0.98) 0%, rgba(255, 244, 244, 0.98) 100%);
}
.right-rail .rail-row.call-reminder.call-reminder--cancelled .call-reminder-status {
  color: #a54848;
  background: rgba(196, 67, 67, 0.10);
  border-color: rgba(196, 67, 67, 0.12);
}
.right-rail .rail-row.call-reminder.call-reminder--cancelled small {
  color: #936565;
}

body[data-theme="dark"] .right-rail .rail-row.call-reminder {
  border-color: rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(18,31,24,0.96) 0%, rgba(14,24,20,0.96) 100%);
  box-shadow: 0 10px 22px rgba(0,0,0,0.20);
}
body[data-theme="dark"] .right-rail .rail-row.call-reminder.call-reminder--planned {
  border-color: rgba(66, 174, 95, 0.18);
  box-shadow: 0 10px 24px rgba(41, 131, 68, 0.14);
}
body[data-theme="dark"] .right-rail .rail-row.call-reminder.call-reminder--live {
  border-color: rgba(214, 170, 39, 0.22);
  box-shadow: 0 10px 24px rgba(214, 170, 39, 0.12);
}
body[data-theme="dark"] .right-rail .rail-row.call-reminder.call-reminder--cancelled {
  border-color: rgba(196, 67, 67, 0.18);
  box-shadow: 0 10px 24px rgba(196, 67, 67, 0.12);
}
/* ZEMGURU CALL SIDEBAR FIX END */

/* ZEMGURU LESSON COMPLETE PROGRESS FIX START */
.zg-lesson-complete-card {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(35, 122, 58, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(249, 253, 250, 0.98) 0%, rgba(243, 250, 245, 0.98) 100%);
  box-shadow: 0 12px 30px rgba(20, 75, 38, 0.06);
}

.zg-lesson-complete-card.is-completed {
  border-color: rgba(35, 122, 58, 0.22);
  background: linear-gradient(180deg, rgba(245, 252, 247, 0.98) 0%, rgba(237, 248, 240, 0.98) 100%);
}

.zg-lesson-complete-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.zg-lesson-complete-card__head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.15;
  color: #142033;
}

.zg-lesson-complete-card__head p {
  margin: 0;
  color: #667085;
  line-height: 1.45;
}

.zg-lesson-complete-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #237a3a;
  background: rgba(35, 122, 58, 0.10);
  border: 1px solid rgba(35, 122, 58, 0.14);
}

.zg-lesson-complete-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.zg-lesson-complete-card .btn[disabled] {
  opacity: .72;
  cursor: default;
}

.zg-lesson-complete-note {
  margin: 10px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.student-lesson-progress-card.zg-lesson-viewed-pulse {
  box-shadow: 0 0 0 4px rgba(35, 122, 58, 0.12), 0 12px 30px rgba(20, 75, 38, 0.08);
}

body[data-theme="dark"] .zg-lesson-complete-card {
  border-color: rgba(107, 199, 128, 0.20);
  background: linear-gradient(180deg, rgba(18, 31, 24, 0.96) 0%, rgba(14, 24, 20, 0.96) 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.20);
}

body[data-theme="dark"] .zg-lesson-complete-card__head h2 {
  color: #f4fbf6;
}

body[data-theme="dark"] .zg-lesson-complete-card__head p,
body[data-theme="dark"] .zg-lesson-complete-note {
  color: rgba(244, 251, 246, 0.72);
}

@media (max-width: 720px) {
  .zg-lesson-complete-card {
    padding: 16px;
    border-radius: 16px;
  }
  .zg-lesson-complete-card__head {
    flex-direction: column;
  }
  .zg-lesson-complete-card__head h2 {
    font-size: 20px;
  }
  .zg-lesson-complete-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
/* ZEMGURU LESSON COMPLETE PROGRESS FIX END */

/* ZEMGURU PROFILE NOTIFICATIONS ROUTE FIX START */
.profile-notifications-focus {
  outline: 2px solid rgba(34, 122, 55, 0.24);
  box-shadow: 0 0 0 6px rgba(34, 122, 55, 0.08);
  border-radius: 16px;
  transition: box-shadow .25s ease, outline-color .25s ease;
}

.profile-form .notification-jump-note {
  display: none;
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(34, 122, 55, 0.08);
  color: #1f6f37;
  font-weight: 700;
}

.profile-form.profile-notifications-focus .notification-jump-note {
  display: block;
}
/* ZEMGURU PROFILE NOTIFICATIONS ROUTE FIX END */

/* ZEMGURU USER MODAL DRAFT FIX START */
.zg-user-draft-note {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(45, 135, 64, 0.18);
  border-radius: 12px;
  background: rgba(45, 135, 64, 0.07);
  color: #216b35;
  font-size: 13px;
  font-weight: 700;
}

.zg-user-draft-note.is-visible {
  display: flex;
}

.zg-user-draft-note button {
  border: 0;
  background: transparent;
  color: #1f6f38;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

body[data-theme="dark"] .zg-user-draft-note {
  border-color: rgba(92, 198, 120, 0.20);
  background: rgba(92, 198, 120, 0.10);
  color: #9ce4ae;
}
body[data-theme="dark"] .zg-user-draft-note button {
  color: #9ce4ae;
}
/* ZEMGURU USER MODAL DRAFT FIX END */

/* ZEMGURU NOTIFICATIONS CALL DIFF FIX START */
.notification-card .notification-main .zg-call-change-summary {
  display: grid;
  gap: 7px;
  margin: 10px 0 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(34, 122, 55, 0.06);
  border: 1px solid rgba(34, 122, 55, 0.12);
}

.notification-card .notification-main .zg-call-change-summary b {
  color: #172033;
}

.notification-card .notification-main .zg-call-change-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 13px;
  line-height: 1.35;
}

.notification-card .notification-main .zg-call-change-row span:first-child {
  color: #6b7280;
  font-weight: 700;
}

.notification-card .notification-main .zg-call-change-arrow {
  color: #237a3a;
  font-weight: 800;
  padding: 0 4px;
}

.notification-card .notification-main .zg-call-muted {
  color: #6b7280;
}

.notification-card .notification-main .zg-call-admin-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(72, 94, 124, .10);
  color: #485e7c;
  font-size: 12px;
  font-weight: 800;
}

body[data-theme="dark"] .notification-card .notification-main .zg-call-change-summary {
  background: rgba(72, 187, 120, 0.08);
  border-color: rgba(72, 187, 120, 0.14);
}
body[data-theme="dark"] .notification-card .notification-main .zg-call-change-summary b {
  color: #f2f7f3;
}
body[data-theme="dark"] .notification-card .notification-main .zg-call-change-row span:first-child,
body[data-theme="dark"] .notification-card .notification-main .zg-call-muted {
  color: rgba(242,247,243,.68);
}

@media (max-width: 720px) {
  .notification-card .notification-main .zg-call-change-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
/* ZEMGURU NOTIFICATIONS CALL DIFF FIX END */

/* ZEMGURU RECORD MODAL DRAFT FIX START */
.zg-draft-badge {
  position: sticky;
  top: 0;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(45, 135, 64, .18);
  background: rgba(45, 135, 64, .08);
  color: #207238;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.zg-draft-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.zg-draft-restored {
  animation: zgDraftPulse 1.2s ease;
}

@keyframes zgDraftPulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 135, 64, .28); }
  100% { box-shadow: 0 0 0 12px rgba(45, 135, 64, 0); }
}

body[data-theme="dark"] .zg-draft-badge,
.dark .zg-draft-badge {
  border-color: rgba(106, 216, 135, .24);
  background: rgba(106, 216, 135, .11);
  color: #9cf0af;
}
/* ZEMGURU RECORD MODAL DRAFT FIX END */


/* ZEMGURU STUDENT LEVEL FIX START */
.user-modal [data-user-student-level],
.user-modal [data-invite-student-level] {
  font-weight: 700;
}
.user-modal .student-level-help {
  margin-top: 6px;
  color: var(--muted, #6b7280);
  font-size: 12px;
  line-height: 1.35;
}
.user-modal .student-level-help b {
  color: var(--text, #111827);
}
/* ZEMGURU STUDENT LEVEL FIX END */

