#math-refresh-modal { position: fixed; inset: 0; z-index: 9999; }
#math-refresh-modal .math-hint-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.35);
}
#math-refresh-modal .math-hint-dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(520px, 90vw); background: #fff; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2); overflow: hidden;
  font-size: 14px;
}
#math-refresh-modal .math-hint-title {
  padding: 14px 18px; font-weight: 700; border-bottom: 1px solid #f0f0f0;
}
#math-refresh-modal .math-hint-body {
  padding: 16px 18px; color: #333;
}
#math-refresh-modal .math-hint-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 18px; border-top: 1px solid #f0f0f0;
}
#math-refresh-modal .math-hint-ok {
  all: unset; cursor: pointer;
  padding: 8px 14px; border-radius: 8px;
  background: #1677ff; color: #fff; font-weight: 600;
}
#math-refresh-modal .math-hint-ok:hover { filter: brightness(0.95); }
