/* ═══ App-wide accessibility + shared utility styles ═══ */

/* Skip-to-content link (hidden until focused via Tab) */
.skip-link,
.visually-hidden-focusable.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10999;
  padding: 0.75rem 1.5rem;
  background: #0d4f2a;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0;
  transition: top 0.15s ease-in-out;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid #f9c80e;
  outline-offset: 2px;
}

/* ─── Kingsway brand tokens (safe to use everywhere) ─── */
:root {
  --kw-green: #0d4f2a;
  --kw-green-light: #198754;
  --kw-gold: #f9c80e;
  --kw-cream: #f5f5dc;
  --kw-green-grad: linear-gradient(135deg, #0d4f2a 0%, #198754 100%);
}

/* ─── Responsive modal height handling ────────────────────────────────────
   Apply this to every Bootstrap modal, including dynamically-created dialogs
   that do not include .modal-dialog-scrollable. Headers and footers remain
   visible while long modal bodies scroll within the available viewport. */
.modal .modal-dialog {
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
}

.modal .modal-content {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
}

.modal .modal-body {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal .modal-content > form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.modal .modal-content > form > .modal-body {
  flex: 1 1 auto;
}

@media (max-width: 575.98px) {
  .modal .modal-dialog,
  .modal .modal-content {
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .modal .modal-dialog {
    margin: .5rem auto;
  }
}

/* ─── Stat-card gradients (reused across dashboards) ─── */
.kw-grad-green  { background: linear-gradient(135deg, #0d4f2a 0%, #198754 100%); }
.kw-grad-gold   { background: linear-gradient(135deg, #b8860b 0%, #f9c80e 100%); }
.kw-grad-blue   { background: linear-gradient(135deg, #1a5276 0%, #2e86c1 100%); }
.kw-grad-purple { background: linear-gradient(135deg, #4a235a 0%, #7d3c98 100%); }
.kw-grad-red    { background: linear-gradient(135deg, #78281f 0%, #cb4335 100%); }
.kw-grad-teal   { background: linear-gradient(135deg, #0e6655 0%, #1abc9c 100%); }
.kw-grad-orange { background: linear-gradient(135deg, #7e5109 0%, #f39c12 100%); }
.kw-grad-indigo { background: linear-gradient(135deg, #1b2631 0%, #5b2c6f 100%); }

/* ─── Toast notification (centralized) ─── */
.kw-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10900;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.kw-toast {
  pointer-events: auto;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s, transform 0.3s;
  max-width: 400px;
}
.kw-toast.show {
  opacity: 1;
  transform: translateX(0);
}
.kw-toast-success { background: #198754; }
.kw-toast-danger  { background: #dc3545; }
.kw-toast-warning { background: #ffc107; color: #000; }
.kw-toast-info    { background: #0d6efd; }

/* ─── Table header scope helper ─── */
table.table thead th[scope="col"] {
  font-weight: 600;
}

/* ═══ Internal Messaging (Messages inbox) ═══ */
.kw-msg {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.kw-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #eef0f2;
  background: #fbfcfd;
}

.kw-msg-header-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.kw-msg-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--kw-green, #0d4f2a);
}

.kw-msg-subtitle {
  font-size: 0.78rem;
  color: #6c757d;
}

.kw-msg-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kw-msg-search {
  position: relative;
}

.kw-msg-search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa4af;
  font-size: 0.85rem;
}

.kw-msg-search-input {
  padding-left: 2rem;
  width: 240px;
  border-radius: 0.5rem;
}

.kw-msg-new {
  border-radius: 0.5rem;
  white-space: nowrap;
}

.kw-msg-body {
  display: flex;
  height: min(72vh, 720px);
  min-height: 440px;
}

/* ─── Left: conversation list ─── */
.kw-msg-list-pane {
  width: 340px;
  flex: 0 0 340px;
  border-right: 1px solid #eef0f2;
  display: flex;
  flex-direction: column;
  background: #fbfcfd;
}

.kw-msg-filters {
  display: flex;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #eef0f2;
}

.kw-msg-filter {
  border: 1px solid #e3e6ea;
  background: #fff;
  color: #495057;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.kw-msg-filter:hover {
  border-color: var(--kw-green-light, #198754);
  color: var(--kw-green-light, #198754);
}

.kw-msg-filter.active {
  background: var(--kw-green-light, #198754);
  border-color: var(--kw-green-light, #198754);
  color: #fff;
}

.kw-msg-list {
  flex: 1;
  overflow-y: auto;
}

.kw-msg-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid #f4f5f6;
  transition: background 0.12s ease;
}

.kw-msg-item:hover {
  background: #f1f5f2;
}

.kw-msg-item.active {
  background: #e8f2ec;
  border-left: 3px solid var(--kw-green, #0d4f2a);
}

.kw-msg-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.kw-msg-item-top,
.kw-msg-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.kw-msg-item-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kw-msg-item-time {
  font-size: 0.72rem;
  color: #8a949e;
  white-space: nowrap;
}

.kw-msg-item-preview {
  font-size: 0.8rem;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kw-msg-item-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
}

.kw-msg-unread {
  background: var(--kw-green-light, #198754);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}

.kw-badge-group {
  background: #eef1f5;
  color: #55606c;
  font-size: 0.68rem;
  font-weight: 600;
}

.kw-msg-empty-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #9aa4af;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.88rem;
}

.kw-msg-empty-list i {
  font-size: 2rem;
}

/* ─── Avatars ─── */
.kw-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  flex: 0 0 auto;
}

.kw-av-green  { background: #0d4f2a; }
.kw-av-blue   { background: #1a5276; }
.kw-av-gold   { background: #b8860b; }
.kw-av-purple { background: #5b2c6f; }
.kw-av-teal   { background: #0e6655; }
.kw-av-orange { background: #7e5109; }

/* ─── Right: thread pane ─── */
.kw-msg-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f7f9fa;
}

.kw-msg-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.kw-msg-empty-icon {
  font-size: 3.2rem;
  color: #c3ccd3;
  margin-bottom: 0.75rem;
}

.kw-msg-thread,
.kw-msg-compose {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.kw-msg-thread-header {
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid #eef0f2;
  background: #fff;
}

.kw-msg-thread-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kw-msg-thread-title {
  font-weight: 600;
  font-size: 1rem;
  color: #212529;
}

.kw-msg-thread-participants {
  font-size: 0.78rem;
  color: #8a949e;
}

.kw-msg-thread-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.kw-msg-row {
  display: flex;
}

.kw-msg-row.mine {
  justify-content: flex-end;
}

.kw-msg-row.theirs {
  justify-content: flex-start;
}

.kw-msg-bubble {
  max-width: 72%;
  padding: 0.55rem 0.8rem;
  border-radius: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.kw-msg-row.mine .kw-msg-bubble {
  background: var(--kw-green-light, #198754);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
}

.kw-msg-row.theirs .kw-msg-bubble {
  background: #fff;
  color: #212529;
  border: 1px solid #e9ecef;
  border-bottom-left-radius: 0.25rem;
}

.kw-msg-bubble-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.kw-msg-bubble-sender {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--kw-green, #0d4f2a);
}

.kw-msg-bubble-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.kw-msg-bubble-text a {
  color: inherit;
}

.kw-msg-row.mine .kw-msg-bubble-text a {
  text-decoration: underline;
  color: #fff;
}

.kw-msg-row.theirs .kw-msg-bubble-text a {
  color: var(--kw-green, #0d4f2a);
}

.kw-msg-bubble-time {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  justify-content: flex-end;
  font-size: 0.66rem;
  margin-top: 0.2rem;
  opacity: 0.85;
}

.kw-msg-read-icon {
  font-size: 0.85rem;
}

.kw-msg-priority {
  font-weight: 700;
  color: #b8860b;
}

.kw-msg-reply {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  padding: 0.8rem 1.25rem;
  border-top: 1px solid #eef0f2;
  background: #fff;
}

.kw-msg-reply textarea {
  resize: none;
}

/* ─── Compose ─── */
.kw-msg-compose-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.kw-msg-compose-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.8rem 1.25rem;
  border-top: 1px solid #eef0f2;
  background: #fff;
}

.kw-msg-recipient-picker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kw-msg-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.kw-msg-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #e8f2ec;
  color: var(--kw-green, #0d4f2a);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.kw-msg-chip-x {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.1rem;
}

.kw-msg-chip-x:hover {
  color: #842029;
}

.kw-msg-recipient-results {
  position: absolute;
  z-index: 1055;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 0.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.kw-msg-recipient-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-bottom: 1px solid #f4f5f6;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.kw-msg-recipient-item:hover {
  background: #f1f5f2;
}

.kw-msg-recipient-item .kw-avatar {
  width: 2rem;
  height: 2rem;
  font-size: 0.7rem;
}

.kw-msg-recipient-item-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #212529;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kw-msg-recipient-item-role {
  font-size: 0.72rem;
  color: #8a949e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40%;
}

.kw-msg-recipient-empty {
  padding: 0.75rem;
  color: #8a949e;
  font-size: 0.82rem;
  text-align: center;
}

/* ─── Responsive ─── */
@media (max-width: 767.98px) {
  .kw-msg-body {
    height: auto;
    min-height: 0;
    flex-direction: column;
  }

  .kw-msg-list-pane {
    width: 100%;
    flex: 0 0 auto;
    max-height: 42vh;
    border-right: 0;
    border-bottom: 1px solid #eef0f2;
  }

  .kw-msg-pane {
    min-height: 55vh;
  }

  .kw-msg-search-input {
    width: 100%;
  }

  .kw-msg-bubble {
    max-width: 88%;
  }
}

/* ─── Modern page shell (app-page-header / app-stat-card / app-panel) ─── */
.app-page-header {
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}
.app-page-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex: 0 0 auto;
}
.app-page-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #172b4d;
}
.app-page-subtitle {
  font-size: 0.82rem;
  color: #6b7280;
}
.app-stat-card {
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}
.app-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex: 0 0 auto;
}
.app-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #172b4d;
}
.app-stat-label {
  font-size: 0.8rem;
  color: #6b7280;
}
.app-panel {
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

/* Announcement card */
.app-ann-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-ann-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.1);
}

/* Staff assistant (AI co-worker): a full workspace on desktop (80vw x 100vh)
   with a chat-history rail, and full-screen on phones. */
.offcanvas.ai-assistant-panel {
  --bs-offcanvas-width: 80vw;
  width: 80vw;
  max-width: 100vw;
  height: 100vh;
  padding: 0;
  border-left: 1px solid #e2e8f0;
  overflow: hidden;
}
.ai-assistant-panel .assistant-shell {
  min-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: row;
}
.ai-assistant-panel .assistant-sidebar {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ai-assistant-panel .assistant-sidebar-label {
  font-size: 0.82rem;
  letter-spacing: 0;
}
.ai-assistant-panel .assistant-sidebar-brand {
  min-height: 28px;
  color: #202123;
  font-size: 0.9rem;
}
.ai-assistant-panel .assistant-sidebar-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}
.ai-assistant-panel .assistant-sidebar-school-name {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-assistant-panel .assistant-sidebar-brand-copy small {
  margin-top: 2px;
  color: #6b7280;
  font-size: 0.68rem;
}
.ai-assistant-panel .assistant-sidebar-logo {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  object-fit: contain;
  border: 1px solid #d7dce2;
  border-radius: 50%;
  background: #fff;
}
.ai-assistant-panel .assistant-new-chat {
  min-height: 38px;
  border-radius: 9px;
  font-size: 0.82rem;
}
.ai-assistant-panel #global-ai-assistant-history {
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #cbd0d6 transparent;
}
.ai-assistant-panel .chat-history-row {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  margin-bottom: 4px;
  border-radius: 8px;
}
.ai-assistant-panel .assistant-sidebar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.ai-assistant-panel .assistant-sidebar-action:hover,
.ai-assistant-panel .assistant-sidebar-action:focus-visible {
  background: #e2e8f0;
  color: var(--kw-green, #0d4f2a);
}
.ai-assistant-panel .chat-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #34383d;
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.25;
  transition: background 0.15s ease, padding-right 0.15s ease;
}
.ai-assistant-panel .chat-history-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-assistant-panel .chat-history-date {
  flex: 0 0 auto;
  color: #858b92;
  font-size: 0.68rem;
}
.ai-assistant-panel .session-delete-btn {
  position: absolute;
  right: 4px;
  display: none;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: #eef0f2;
  color: #69717a;
  font-size: 0.75rem;
}
.ai-assistant-panel .chat-history-item:hover,
.ai-assistant-panel .chat-history-item:focus-visible {
  background: #f1f2f3;
}
.ai-assistant-panel .chat-history-row:hover .session-delete-btn,
.ai-assistant-panel .chat-history-row:focus-within .session-delete-btn {
  display: inline-flex;
}
.ai-assistant-panel .chat-history-row:hover .chat-history-item,
.ai-assistant-panel .chat-history-row:focus-within .chat-history-item {
  padding-right: 34px;
}
.ai-assistant-panel .chat-history-row.active .chat-history-item {
  background: #e9f3ed;
  color: var(--kw-green, #0d4f2a);
  font-weight: 600;
}
.assistant-delete-dialog .modal-dialog {
  width: min(100% - 2rem, 430px);
}
.assistant-delete-dialog .modal-content {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, .22);
}
.assistant-delete-dialog .modal-body {
  position: relative;
  padding: 30px;
}
.assistant-delete-dialog .assistant-delete-close {
  position: absolute;
  top: 18px;
  right: 18px;
}
.assistant-delete-dialog .assistant-delete-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid #f4c7c7;
  border-radius: 13px;
  background: #fff1f1;
  color: #b42318;
  font-size: 1.15rem;
}
.assistant-delete-dialog .assistant-delete-title {
  margin: 0 0 8px;
  color: #202124;
  font-size: 1.2rem;
  font-weight: 650;
}
.assistant-delete-dialog .assistant-delete-name {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
  color: #343a40;
  font-weight: 600;
}
.assistant-delete-dialog .assistant-delete-copy {
  margin: 0;
  color: #626b75;
  font-size: .9rem;
  line-height: 1.55;
}
.assistant-delete-dialog .assistant-delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}
.assistant-delete-dialog .assistant-delete-actions .btn {
  min-height: 42px;
  padding-inline: 16px;
  font-weight: 600;
}
.assistant-delete-dialog .assistant-delete-actions .btn:focus-visible,
.assistant-delete-dialog .assistant-delete-close:focus-visible {
  outline: 3px solid rgba(13, 79, 42, .35);
  outline-offset: 2px;
  box-shadow: none;
}
@media (max-width: 575.98px) {
  .assistant-delete-dialog .modal-body { padding: 24px; }
  .assistant-delete-dialog .assistant-delete-actions { flex-direction: column-reverse; }
  .assistant-delete-dialog .assistant-delete-actions .btn { width: 100%; }
}
.ai-assistant-panel .assistant-main {
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ai-assistant-panel .assistant-header {
  background: var(--kw-green-grad);
  color: #fff;
  flex: 0 0 auto;
  border-bottom: 1px solid #e2e8f0;
}
.ai-assistant-panel .assistant-header-meta {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}
.ai-assistant-panel .assistant-empty-state {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0.5rem 0.25rem 1rem;
}
.ai-assistant-panel .assistant-empty-state > .d-flex > div {
  padding-top: 0.25rem;
}
.ai-assistant-panel .assistant-prompt-chips {
  padding-left: 2.75rem;
}
.ai-assistant-panel .assistant-prompt-chips .btn {
  border-color: #e1e5e9;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 0.76rem;
}
.ai-assistant-panel .assistant-prompt-chips .btn:hover,
.ai-assistant-panel .assistant-prompt-chips .btn:focus-visible {
  border-color: #b8c7be;
  background: #f3f8f5;
  color: var(--kw-green, #0d4f2a);
}
.ai-assistant-panel .assistant-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
}
.ai-assistant-panel .assistant-online-badge .bi {
  font-size: 0.45rem;
  color: #6ee7a2;
}
.ai-assistant-panel .assistant-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--kw-green-light, #198754);
  font-size: 0.9rem;
  box-shadow: none;
}
.ai-assistant-panel .assistant-avatar-sm {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
  background: #f1f5f9;
  color: var(--kw-green-light, #198754);
  box-shadow: none;
}
.ai-assistant-panel .assistant-conversation {
  scroll-behavior: smooth;
  background: #fff;
  overflow-y: auto;
}
.ai-assistant-panel .assistant-conversation #global-ai-assistant-empty-state {
  margin: auto 0;
}
/* The conversation pane is the ONLY scroller. The thread grows with its
   content; as a nested flex scroller it shrank to its padding and hid chats. */
.ai-assistant-panel .assistant-thread {
  flex: 1 0 auto;
  min-height: 0;
  overflow: visible;
}
.ai-assistant-panel .assistant-insights {
  flex: 0 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  background: #f8fafc;
  padding: .5rem .75rem;
}
.ai-assistant-panel .assistant-insights-summary {
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  color: #475569;
  list-style-position: inside;
}
.ai-assistant-panel .assistant-insights:not([open]) .assistant-insights-summary::after {
  content: " · tap to expand";
  font-weight: 400;
  color: #94a3b8;
}
.ai-assistant-panel .assistant-insights-body {
  max-height: 45vh;
  overflow-y: auto;
}
.ai-assistant-panel .assistant-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex: 0 0 auto;
  padding: 1rem;
}
.ai-assistant-panel .bot-bubble {
  max-width: 85%;
  background: #f1f5f9;
  color: #1e293b;
  border-radius: 8px 16px 16px 16px;
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
}
.ai-assistant-panel .user-bubble {
  max-width: 85%;
  background: var(--kw-green, #0d4f2a);
  color: #fff;
  border-radius: 16px 16px 16px 8px;
  font-size: 0.92rem;
  word-break: break-word;
  padding: 0.85rem 1rem;
}
.ai-assistant-panel .chat-input-box {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  box-shadow: none;
  transition: border-color 0.15s ease;
}
.ai-assistant-panel .chat-input-box:focus-within {
  border-color: var(--kw-green-light, #198754);
  box-shadow: none;
}
.ai-assistant-panel .assistant-input {
  border: 0;
  outline: 0;
  resize: none;
  max-height: 130px;
  min-height: 38px;
  padding: 0.45rem 0.25rem;
  background: transparent;
  box-shadow: none !important;
  font-size: 0.9rem;
  color: #1e293b;
}
.ai-assistant-panel .btn-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}
.ai-assistant-panel .btn-icon-only.btn-light {
  background: #f1f5f9;
  border-color: transparent;
}
.ai-assistant-panel .ai-followup-question {
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 0.83rem;
  padding: 0.3rem 0.8rem;
}
.ai-assistant-panel .ai-followup-question:hover {
  border-color: var(--kw-green-light, #198754);
  color: var(--kw-green, #0d4f2a);
  background: #f0fdf4;
}
.ai-assistant-panel .ai-stream-bubble {
  max-width: 85%;
  padding: 0.85rem 1rem;
  border-radius: 8px 16px 16px 16px;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 0.92rem;
  white-space: pre-line;
  word-break: break-word;
  border: 1px solid #e2e8f0;
}
.ai-assistant-panel .assistant-markdown {
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.ai-assistant-panel .assistant-markdown > :last-child {
  margin-bottom: 0;
}
.ai-assistant-panel .assistant-markdown ul,
.ai-assistant-panel .assistant-markdown ol {
  padding-left: 1.35rem;
}
.ai-assistant-panel .assistant-markdown pre {
  overflow-x: auto;
  padding: .75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.ai-assistant-panel .assistant-markdown code {
  color: #31445b;
  overflow-wrap: anywhere;
}
.ai-assistant-panel .assistant-stream-markdown {
  min-height: 1.5rem;
  color: #263238;
}
/* Rendered Markdown for a governed answer, live while streaming and once final. */
.ai-assistant-panel .assistant-answer-body,
.ai-assistant-panel .ai-stream-bubble.assistant-answer-body {
  overflow-wrap: anywhere;
  line-height: 1.65;
  white-space: normal;
}
.ai-assistant-panel .assistant-answer-body > :last-child,
.ai-assistant-panel .ai-stream-bubble.assistant-answer-body > :last-child {
  margin-bottom: 0;
}
.ai-assistant-panel .assistant-answer-body ul,
.ai-assistant-panel .assistant-answer-body ol,
.ai-assistant-panel .ai-stream-bubble.assistant-answer-body ul,
.ai-assistant-panel .ai-stream-bubble.assistant-answer-body ol {
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
}
.ai-assistant-panel .assistant-answer-body li,
.ai-assistant-panel .ai-stream-bubble.assistant-answer-body li {
  margin-bottom: 0.15rem;
}
.ai-assistant-panel .assistant-answer-body pre.assistant-code-block,
.ai-assistant-panel .ai-stream-bubble.assistant-answer-body pre.assistant-code-block {
  overflow-x: auto;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  white-space: pre-wrap;
}
.ai-assistant-panel .assistant-answer-body code,
.ai-assistant-panel .ai-stream-bubble.assistant-answer-body code {
  color: #31445b;
  overflow-wrap: anywhere;
}
.ai-assistant-panel .assistant-answer-body h6,
.ai-assistant-panel .ai-stream-bubble.assistant-answer-body h6 {
  font-size: 0.95rem;
}
.ai-assistant-panel .assistant-answer-body strong,
.ai-assistant-panel .ai-stream-bubble.assistant-answer-body strong {
  color: #0f172a;
}
.ai-assistant-panel .assistant-greeting-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.ai-assistant-panel .assistant-greeting-card p {
  margin: 0;
  color: #1e293b;
}
.ai-assistant-panel #global-ai-assistant-greeting {
  margin: auto 0;
  padding-top: 2rem;
}
.ai-assistant-panel #global-ai-assistant-thread .card,
.ai-assistant-panel #global-ai-assistant-briefing .card {
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}
.ai-assistant-panel #global-ai-assistant-thread .card-body,
.ai-assistant-panel #global-ai-assistant-briefing .card-body {
  padding: 0.9rem 1rem;
  color: #1e293b;
}

/* Markdown rendering inside assistant answers */
.ai-assistant-panel #global-ai-assistant-thread .card-body p,
.ai-assistant-panel #global-ai-assistant-briefing .card-body p {
  margin: 0 0 0.75rem;
  line-height: 1.55;
  color: #1e293b;
}
.ai-assistant-panel #global-ai-assistant-thread .card-body ul,
.ai-assistant-panel #global-ai-assistant-thread .card-body ol,
.ai-assistant-panel #global-ai-assistant-briefing .card-body ul,
.ai-assistant-panel #global-ai-assistant-briefing .card-body ol {
  margin: 0.5rem 0 0.75rem 1.25rem;
  padding: 0;
  line-height: 1.5;
  color: #1e293b;
}
.ai-assistant-panel #global-ai-assistant-thread .card-body li,
.ai-assistant-panel #global-ai-assistant-briefing .card-body li {
  margin-bottom: 0.35rem;
  color: #1e293b;
}
.ai-assistant-panel #global-ai-assistant-thread .card-body h1,
.ai-assistant-panel #global-ai-assistant-thread .card-body h2,
.ai-assistant-panel #global-ai-assistant-thread .card-body h3,
.ai-assistant-panel #global-ai-assistant-thread .card-body h4,
.ai-assistant-panel #global-ai-assistant-thread .card-body h5,
.ai-assistant-panel #global-ai-assistant-thread .card-body h6,
.ai-assistant-panel #global-ai-assistant-briefing .card-body h1,
.ai-assistant-panel #global-ai-assistant-briefing .card-body h2,
.ai-assistant-panel #global-ai-assistant-briefing .card-body h3,
.ai-assistant-panel #global-ai-assistant-briefing .card-body h4,
.ai-assistant-panel #global-ai-assistant-briefing .card-body h5,
.ai-assistant-panel #global-ai-assistant-briefing .card-body h6 {
  margin: 0.9rem 0 0.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1e293b;
}
.ai-assistant-panel #global-ai-assistant-thread .card-body h6,
.ai-assistant-panel #global-ai-assistant-briefing .card-body h6 {
  font-size: 1rem;
}
.ai-assistant-panel #global-ai-assistant-thread .card-body strong,
.ai-assistant-panel #global-ai-assistant-briefing .card-body strong {
  color: #1e293b;
}
.ai-assistant-panel #global-ai-assistant-thread .card-body code,
.ai-assistant-panel #global-ai-assistant-briefing .card-body code {
  background: #f1f5f9;
  color: var(--kw-green, #0d4f2a);
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  font-size: 0.85rem;
}
.ai-assistant-panel #global-ai-assistant-thread .card-body pre,
.ai-assistant-panel #global-ai-assistant-briefing .card-body pre {
  background: #f1f5f9;
  color: #1e293b;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}
.ai-assistant-panel #global-ai-assistant-thread .card-body strong,
.ai-assistant-panel #global-ai-assistant-briefing .card-body strong,
.ai-assistant-panel #global-ai-assistant-thread .card-body b,
.ai-assistant-panel #global-ai-assistant-briefing .card-body b {
  font-weight: 700;
}
.ai-assistant-panel #global-ai-assistant-thread .card-body em,
.ai-assistant-panel #global-ai-assistant-briefing .card-body em,
.ai-assistant-panel #global-ai-assistant-thread .card-body i,
.ai-assistant-panel #global-ai-assistant-briefing .card-body i {
  font-style: italic;
}
.ai-assistant-panel #global-ai-assistant-thread .card-body code,
.ai-assistant-panel #global-ai-assistant-briefing .card-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background: #f1f5f9;
  padding: 0.15em 0.35em;
  border-radius: 4px;
  color: #0f766e;
}
.ai-assistant-panel #global-ai-assistant-thread .card-body pre,
.ai-assistant-panel #global-ai-assistant-briefing .card-body pre {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.75rem;
  overflow-x: auto;
  font-size: 0.85rem;
  margin: 0.75rem 0;
}
.ai-assistant-panel #global-ai-assistant-thread .card-body blockquote,
.ai-assistant-panel #global-ai-assistant-briefing .card-body blockquote {
  border-left: 3px solid #0ea5e9;
  margin: 0.75rem 0;
  padding-left: 0.75rem;
  font-style: italic;
  color: #475569;
}
.ai-assistant-panel #global-ai-assistant-thread .card-body hr,
.ai-assistant-panel #global-ai-assistant-briefing .card-body hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1rem 0;
}
.ai-assistant-panel .min-w-0 {
  min-width: 0;
}
@media (max-width: 991.98px) {
  .offcanvas.ai-assistant-panel {
    width: 100vw;
    max-width: 100vw;
  }
}
/* The briefing widget renders alerts and metrics as two halves. On the
   full-width dashboard that is correct, but inside the narrow assistant
   offcanvas each half is ~270px and forces horizontal cramping, so give each
   one the full panel width. Scoped to the panel's briefing container so the
   dashboard layout is untouched. */
.offcanvas.ai-assistant-panel #global-ai-assistant-briefing .row > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
}
.ai-briefing-finding {
  border-left: 3px solid var(--bs-info);
}
.ai-briefing-finding[data-severity="warning"] {
  border-left-color: var(--bs-warning);
}
.ai-briefing-finding[data-severity="critical"] {
  border-left-color: var(--bs-danger);
}
/* Coworker "Today" card: compact, permission-scoped schedule / attention /
   notification rows plus one-click coworker prompts. */
.offcanvas.ai-assistant-panel #global-ai-assistant-today .card {
  background: var(--app-surface, #fff);
}
.offcanvas.ai-assistant-panel #global-ai-assistant-today .ai-today-row {
  padding-left: .25rem;
}
.offcanvas.ai-assistant-panel #global-ai-assistant-today .ai-today-row ul {
  max-height: 5.5rem;
  overflow-y: auto;
}
.offcanvas.ai-assistant-panel #global-ai-assistant-today .ai-today-actions .btn {
  white-space: normal;
  text-align: left;
}
@media print {
  .offcanvas.ai-assistant-panel {
    display: none !important;
  }
}

/* ═══ Cookie Consent Banner ═══ */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  right: -420px;
  max-width: 380px;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(16, 24, 40, 0.12);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10999;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
  opacity: 0;
  font-family: inherit;
}

.cookie-consent-banner.show {
  right: 20px;
  opacity: 1;
}

.cookie-consent-banner.hiding {
  right: -420px;
  opacity: 0;
}

.cookie-consent-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-consent-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-consent-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--kw-green-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  flex: 0 0 auto;
}

.cookie-consent-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #172b4d;
  line-height: 1.3;
}

.cookie-consent-text {
  margin: 0;
  font-size: 0.875rem;
  color: #475467;
  line-height: 1.5;
}

.cookie-consent-text a {
  color: var(--kw-green-light, #198754);
  text-decoration: none;
  font-weight: 500;
}

.cookie-consent-text a:hover {
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.cookie-consent-actions .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.cookie-consent-actions .btn-primary {
  background: var(--kw-green-grad);
  border: none;
  color: #fff;
}

.cookie-consent-actions .btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 79, 42, 0.3);
}

.cookie-consent-actions .btn-outline-secondary {
  border: 1.5px solid #e3e6ea;
  color: #475467;
  background: #fff;
}

.cookie-consent-actions .btn-outline-secondary:hover {
  background: #f7f9fa;
  border-color: #d0d5dd;
  color: #172b4d;
}

@media (max-width: 480px) {
  .cookie-consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .cookie-consent-banner.show {
    right: 12px;
  }
  .cookie-consent-banner.hiding {
    right: 12px;
    opacity: 0;
  }
}
/* Compact, keyboard friendly navigation for the student register. */
.students-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 0.75rem;
  background: var(--bg-card, #fff);
}

.students-table-range {
  font-size: 0.9rem;
}

.students-table-range strong {
  color: var(--text-primary, #1f2937);
  font-weight: 600;
}

.students-table-controls,
.students-page-size,
.students-page-navigation {
  display: flex;
  align-items: center;
}

.students-table-controls {
  gap: 1.25rem;
}

.students-page-size {
  gap: 0.55rem;
  margin: 0;
  color: var(--text-secondary, #6b7280);
  font-size: 0.875rem;
  white-space: nowrap;
}

.students-page-size select {
  width: 5rem;
}

.students-page-navigation {
  gap: 0.6rem;
}

.students-page-navigation .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
}

.students-page-indicator {
  min-width: 5.5rem;
  color: var(--text-secondary, #6b7280);
  font-size: 0.875rem;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .students-table-footer,
  .students-table-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .students-page-navigation {
    justify-content: space-between;
  }
}

/* ===== Summative results pivot table (Results workspace) ===== */
.vrp-scroll { max-height: 65vh; overflow: auto; border: 1px solid var(--bs-border-color); border-radius: .375rem; }
.vrp-table { margin-bottom: 0; }
.vrp-table .vrp-head th { position: sticky; top: 0; z-index: 3; background: var(--bs-body-bg); box-shadow: 0 1px 0 var(--bs-border-color); }
.vrp-table td, .vrp-table th { white-space: nowrap; }
.vrp-sticky { position: sticky; z-index: 2; background: var(--bs-body-bg); }
.vrp-sticky-1 { left: 0; min-width: 12rem; }
.vrp-sticky-2 { left: 12rem; min-width: 9rem; }
.vrp-sticky-3 { left: 21rem; min-width: 10rem; }
.vrp-sticky-actions { left: 31rem; min-width: 7rem; z-index: 2; box-shadow: -4px 0 8px -4px rgba(0,0,0,.12); }
.vrp-sortable { cursor: pointer; }
.vrp-sortable:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
.vrp-table td.vrp-dirty { background: #fff7d6 !important; box-shadow: inset 0 0 0 1px #d9b900; }
.vrp-table td.vrp-invalid { background: #fde8e8 !important; }
.vrp-table td.vrp-dirty input { background: transparent; border-color: #d9b900; }
.vrp-err { color: var(--bs-danger); font-size: .7rem; margin-top: .15rem; white-space: normal; }
.vrp-editing input.vrp-input { width: 5.5rem; text-align: center; }
.vrp-grade { font-size: .7rem; margin-left: .25rem; padding: 0 .3rem; border-radius: .25rem; background: var(--bs-tertiary-bg); }
.vrp-menu { z-index: 1050; }
.vrp-status { font-size: .8rem; }
@media print {
  @page { size: A4 landscape; }
  .vrp-scroll { max-height: none; overflow: visible; border: none; }
  .vrp-table .vrp-sticky { position: static; }
  .vrp-toolbar, .vrp-kebab, .vrp-status { display: none !important; }
}

/* ===== System Tour — guided walkthrough overlay ===== */
#system-tour-overlay {
  z-index: 1055 !important;
}

/* ---------------------------------------------------------------------------
   Proactive assistant nudge
   ---------------------------------------------------------------------------
   Offered only when a workspace has been idle or a long page stops scrolling,
   and only once per page state. It sits above the page content in the same
   visual language as the assistant panel, never over a dialog, and is small
   enough to ignore. */
.ai-nudge {
  position: fixed;
  top: calc(var(--app-header-height, 72px) + 12px);
  right: 16px;
  z-index: 1080;
  width: min(340px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid var(--app-border, #e2e8f0);
  border-radius: 14px;
  background: var(--app-surface, #fff);
  color: var(--app-text, #202123);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  animation: ai-nudge-in 180ms ease-out;
}

@keyframes ai-nudge-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-nudge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.ai-nudge-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--app-green, #178a50);
}

.ai-nudge-title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.ai-nudge-reason {
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--app-muted, #697386);
}

.ai-nudge .btn-close {
  padding: 0.35rem;
  font-size: 0.65rem;
}

@media (max-width: 575.98px) {
  .ai-nudge {
    left: 12px;
    right: 12px;
    width: auto;
    top: calc(var(--app-header-height, 64px) + 8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-nudge {
    animation: none;
  }
}
